Push API and Webhooks
API
Application
model in jobylon every candidate can be represented by one or more applications, where every application relates to a job to run the examples export host='https //staging jobylon com' export api version='p1' export app id='0123456789123456' export app key='abc123xyz' basic example please note the trailing slash in the api endpoint \# request curl i \\ x post "$host/$api version/applications/" \\ h "x app id $app id" \\ h "x app key $app key" \\ h "content type application/json" \\ d '{ "job id" 123456789, "first name" "kalle", "last name" "kula", "email" "kalle\@kula se", "phone" "+4670 123456789", "phone number" "+46766112088", "ln url" "https //www linkedin com/in/kalle kula 123a4567", "cv url" "https //www w3 org/wai/er/tests/xhtml/testfiles/resources/pdf/dummy pdf", "message" "message from the applicant ", "source type" "applied", "source json" { "partner name" "best source", "message" "some other message ", "referrer" { "name" "kella kalu", "email" "kello\@kalu se", "phone" "+46123456789", "avatar" "https //gravatar com/avatar/ce757a5d51e6285434134e7b6c96ab86?s=200\&d=robohash\&r=g" }, "questions" \[ { "order" 1, "question" "why should we hire the person?", "question type" "text", "answer" "because she is great!" }, { "order" 2, "question" "rank the skills", "question type" "range", "question args" { "min" 1, "max" 5, "step" 1, "unit" "star" }, "answer" 4 }, { "order" 3, "question" "where can they be located?", "question type" "select multiple", "question alternatives" \[ "avesta", "london", "moskva", "new york", "paris", "stockholm" ], "answer" \[ "london", "new york", "paris", "stockholm" ] }, { "order" 4, "question" "do they have a eu work permit?", "question type" "select one", "answer" "yes" } ] }, "original referrer" "https //bestreferrals com/?utm source=google\&utm medium=cpc\&utm term=earn referrals", "ab test" "abtestid", "answers" \[ { "question id" 1, "text" \[ "i am ready to start in the beggining of next month " ] }, { "question id" 2, "text" \[ "swedish", "english", "norwegian" ] }, { "question id" 3, "text" \["https //www w3 org/wai/er/tests/xhtml/testfiles/resources/pdf/dummy pdf"] } ], "status id" 1 }' \# response status code 201 created content type application/json {'id' 123} example using a local json file \# request curl i \\ x post "$host/$api version/applications/" \\ h "x app id $app id" \\ h "x app key $app key" \\ h "content type application/json" d @\<path to file> example with files attached (multipart/form data) \# request curl i \\ x post "$host/$api version/applications/" \\ h "x app id $app id" \\ h "x app key $app key" \\ f "job id=55" \\ f "first name=kalle" \\ f "last name=kula" \\ f "email=kalle\@kula se" \\ f "phone=+4670 123456789" \\ f "message=message from the applicant " \\ f "source type=applied" \\ f "source json={ \\"partner name\\" \\"best source\\", \\"message\\" \\"some other message \\" }" \\ f "cv=@cv pdf" \\ f "cover letter=@cover letter pdf" \\ f "other 1=@other 1 pdf" \\ f "other 2=@other 2 pdf" \\ f "other 3=@other 3 pdf" \\ f "other 4=@other 4 pdf" \\ f "other 5=@other 5 pdf" create post /applications/ query string parameters none request payload true 165,165,165,166left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type answers object \[ { "question id" 1, "text" \[ "driver's license category b", "driver's license category d" ] } ] true 330,331left unhandled content type left unhandled content type left unhandled content type left unhandled content type response true 220,220,221left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type exceptions true 330,331left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type retrieve a pushapi partner can only retrieve applications that have been created by that partner applications created by another partner or created in jobylon using other means will not be available get /applications/\<application id> query string parameters none response true 154,112 44984615384615,263 550153846154left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type exceptions true 330,331left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type update a pushapi partner can only update applications that have been created by that partner applications created by another partner or created in jobylon using other means will not be available put /applications/\<application id>/ patch /applications/\<application id>/ query string parameters none request payload email, phone, phone number and status id are the only fields that can be updated true 154,112 44984615384615,263 550153846154left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type response true 154,112 44984615384615,263 550153846154left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type left 1 1 unhandled content type exceptions true 330,331left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type