Introduction
What is a web hook?
web钩是一个简单的事件通知系统。When an event occurs in Greenhouse, a payload of JSON data containing information about the event is sent via POST to a specified endpoint URL over HTTPS.
Each delivery will include aGreenhouse-Event-ID
header. This will contain an unique id associated with this delivery.
Creating a web hook
Web hooks have three components. A name, an endpoint URL, and a secret key.
- 姓名: The name is simply a reference for you. It can contain any string value.
- 端点URL:这是事件发生时我们将发送帖子数据的URL。这必须是有效的URL,必须是HTTPS。保存或更新Web挂钩时,我们将尝试使用包含Web挂钩的某些配置设置的有效负载来ping此URL。如果此PING失败,我们将在残疾状态下创建Web挂钩,并通知您Ping失败了。
- Secret Key:此秘密键将用于生成一个签名标头,您可能会使用该标题来验证挂钩数据是从Greenhouse发送的。188bet安卓APP秘密键将与Web钩的有效载荷一起使用以生成数字签名。
Advanced settings
Advanced settings allow customers with certain other security needs to use web hooks for their system. In most cases, users will not need to configure these.
- Basic authentication username / password: These credentials are supplied if the web hook request needs to authenticate at the destination with HTTP Basic Authorization. These credentials will be encoded in to a HTTP Authorization header. See RFC 2617 for additional details.
- Additional Headers: This textarea should contain any additional HTTP headers that will allow the POST request access to your environment. These headers will be included exactly as pasted, but may not include the following headers already reserved by Greenhouse: Content-Type, Content-Length, Greenhouse-Event-ID, Authorization, User-Agent, and Signature. Please consult with your technology department before including anything in this field.
Authentication
签名:SHA256 37D2725109DF92747FFCEE59833A1D1262D74B9703FA1234C789407218B4A4AEF
To compute the HMAC digest in Ruby:
digest=OpenSSL::Digest。new('sha256')signature=OpenSSL::HMAC。hexdigest(digest,密钥,body)
To compute the HMAC digest in PHP:
// Requires PHP >= 5.1.2 and PECL hash >= 1.1$signature=hash_hmac('sha256',$身体,$ Secret_key);?>
The
body
以上代码样本中的变量是指JSON响应的整个内容。不只是payload
属性。
Greenhouse uses a digital signature which is generated using the secret key entered when creating a web hook and the body of the web hook’s request. This data is contained within the Signature header.
The header contains: the SHA algorithm used to generate the signature, a space, and the signature. To verify the request came from Greenhouse, compute the HMAC digest using your secret key and the body and compare it to the signature portion (after the space) contained in the header. If they match, you can be sure the web hook was sent from Greenhouse.
Important note on Unicode: Greenhouse will escape Unicode characters when they are encoded as JSON before computing the signature. For example, if the job post content is 你好
,Web挂钩主体将表示为\ u003cp \ u003ehello \ u003c / p \ u003e
。When we compute the signature, we use the string exactly as it appears in the body, including the escaped unicode. Be sure to duplicate this process on the receiving end so the signatures match.
Common Attributes
Currently, Web Hooks for all event types include these common attributes:
Attribute | Note |
application.id |
应用程序的唯一188bet安卓APP温室标识符。可以通过Web钩中包含的信息通过收获API-获取申请 |
application.credited_to |
如果填充和温室用户,将提供用户的温室I188bet安卓APPD,电子邮件地址和员工ID(如果有)。如果填充而不是温室用户,则将提供名称。188bet安卓APP |
application.status |
One of:rejected ,hired ,active |
application.candidate.id |
候选人的独特温188bet安卓APP室标识符。可以通过Web钩中包含的信息通过Harvest API - GET Candidates |
application.candidate.phone_numbers[].type |
One of:home ,work ,mobile ,skype ,other |
application.candidate.addresses[].type |
Application Candidate Addresses Type |
application.candidate.email_addresses[].type |
One of:personal ,work ,other |
application.candidate.attachments[].type |
One of:admin_only ,public ,求职信 ,offer_packet ,resume ,take_home_test ,offer_letter ,signed_offer_letter Note: Attachments expire in 7 days. |
application.candidate.external_id |
外部来源提供的任意ID;不映射到温室中的另一个实体。188bet安卓APP |
Application.prospect |
如果是真的,这是一个潜在的应用程序,这意味着关联的人是潜在客户,并且尚未申请这项工作。(只有潜在客户才能具有非零值prospect_owner ,prospect_pool , 或者prospect_stage underprospect_detail ) |
Application.prospect_detail.prospect_owner |
The user responsible for keeping track of the prospect. Either null or a user’sid and姓名 |
application.prospect_detail.prospect_pool |
The current prospect pool of a prospect. Either null or a pool’sid and姓名 |
application.prospect_detail.prospect_stage |
前景的当前前景阶段。null或舞台id and姓名 |
application.jobs [] |
Candidates will have one job. Prospects will have 0 or more jobs. |
application.jobs []。id |
Unique Greenhouse identifier of the job. Information not included in the web hook can be retrieved via收获API-找工作 |
application.jobs []。requisition_id |
外部来源提供的任意ID;不映射到温室中的另一个实体。188bet安卓APP |
application.opening.opening_id |
这是可以为HRIS系统定义的外部打开ID。这不会在温室中引用其他任何内容,可能是空白的。188bet安卓APP |
custom_fields |
包含哈希地图/关联阵列。哈希地图的钥匙是不可变的钥匙。这是在创建时定制字段名称的下划线套装版本。导出的属性反映了导出时自定义字段的活动值。所有自定义字段(公共和私人)都将出口。如果一个字段存在但没有值,则将其导出以单数值和空数阵列的null值导出。Important Note: If a custom field is created with the name薪水 the key will besalary 。如果以后此自定义字段的名称更改为Wage 或者Bonus , the key will remainsalary 。 |
custom_fields[].type |
One of:short_text ,long_text ,boolean ,single_select ,multi_select ,货币 ,货币_range ,number ,number_range ,date ,url , 或者user 。 |
Custom Fields
{"custom_fields":{“ short_text_field”:{"name":"Short Text Field",“类型”:“ short_text”,“价值”:“一个不到255个字符的文本字符串。”},"long_text_field":{"name":"Long Text Field",“类型”:"long_text",“价值”:"A text string of any length."},"boolean_field":{"name":"Boolean Field",“类型”:"boolean",“价值”:true(orfalse)},"single_select":{"name":"Single Select Field",“类型”:"single_select",“价值”:"The text of selected custom field option."},"multi_select":{"name":"Multi Select Field",“类型”:"multi_select",“价值”:["An array containing the text of",“所有选定”,"custom field options"]},"currency_field":{"name":"Currency Field",“类型”:"currency",“价值”:{"amount":80000,"unit":"USD"}},"currency_range_field":{"name":"Currency Range Field",“类型”:"currency_range",“价值”:{“ min_value”:80000,"max_value":150000,"unit":"USD"}},“ number_field”:{"name":“数字字段”,“类型”:"number",“价值”:125},"number_range_field":{"name":"Number Range Field",“类型”:"number_range",“价值”:{“ min_value”:80000,"max_value":150000}},"date_field":{"name":“日期字段”,“类型”:"date",“价值”:“ yyyy-mm-dd”},"url_field":{"name":"URL Field",“类型”:"url",“价值”:"https://www.thisisjustatextvalue.com"},“ user_field”:{"name":"User Field",“类型”:“用户”,“价值”:{“用户身份”:94354,"name":"Ben Smith",“email":"ben@example.com",“employee_id":"bs0615"}}}}
Custom fields may be attached to several objects within the Greenhouse Recruiting system. These fields may appear on candidates, applications, offers, and other objects in the system. These fields share several properties and are always indicated in web hooks by the “custom_fields” element. However, the “value” attribute of custom fields are different depending on the “type” attribute, so you must check the “type” attribute in order to predict what will be included in the value “attribute”. As described in the previous section, the type attribute will be one of short_text, long_text, boolean, single_select, multi_select, currency, currency_range, number, number_range, date, url, or user. An example of each of these fields’ expected value format are provided.
Disabled web hooks
如果禁用了Web挂钩,则在事件发生时不会触发。如果Ping事件在创建或更新时失败,则Web钩将自动禁用。如果发生这种情况,则需要手动重新启用它们。
Retry policy
In the event of a failed webhook request (due to timeout, a non HTTP 200 response, or network issues), Greenhouse will attempt a maximum of 6 retries according to the formula on the right:
This formula increases the amount of time between each retry, while assigning a random number of seconds to avoid consistent failures from overload or contention.
188bet安卓APP温室将在15小时内尝试6次重试。
retry_delay_minutes = [1、15、60、120、240、480] sidekiq_retry_in do | index,_exception |seconds_delay =(retry_delay_minutes [index] || retry_delay_minutes.last) * 60 offset = rand(30) *(index + 1)seconds_delay + offset end end
下表概述了每个重试请求的估计等待时间,假设RAND(30)始终返回0。
重试号码 | Next Retry in | Total waiting time |
1 | 1m | 0h 1m |
2 | 15m | 0h 16m |
3 | 60m | 1h 16m |
4 | 120m | 3h 16m |
5 | 240m | 7h 16m |
6 | 480m | 15h 16m |
Application Events
Application created
{"action":"new_candidate_application","payload":{"application":{“ID”:71980812,"rejected_at":null,“前景”:false,“地位”:"active","applied_at":"2017-10-27T14:44:43Z","last_activity_at":“ 2017-10-27T14:44:42Z”,"url":“ http://app188bet安卓APP.greenhouse.io/people/60304594?application_id = 71980812”,“来源”:{“ID”:16,"name":"LinkedIn (Prospecting)"},"credited_to":{“ID”:92120,“email":“ test123@example.com”,"name":"Greenhouse Admin",“employee_id":“ 123ABC”},"rejection_reason":null,“拒绝_details”:null,“ current_stage”:{“ID”:2944102,"name":"Preliminary Phone Screen",“采访”:[{“ID”:4368004,"name":“初步筛选电话”,“地位”:"to_be_scheduled","interview_kit":{"url":“ http://app188bet安卓APP.greenhouse.io/guides/4368142/people/60304594?application_id = 71980812”,"content":"Directions on how to conduct this interview.
","questions":[{“ID”:3136352,"question":"Could you tell me about your previous experience?"},{“ID”:3136353,"question":"Why do you want to work with us?"}]},"interviewers":[]}]},"prospect_detail":{"prospect_pool":null,"prospect_stage":null,"prospect_owner":null},"custom_fields":{"application_custom_test":{"name":"Application Custom Test",“类型”:"single_select",“价值”:null},"custom_boolean_test":{"name":"Custom Boolean Test",“类型”:"boolean",“价值”:null}},“候选人”:{“ID”:60304594,"first_name":"Jane","last_name":"Smith",“标题”:"Manager","company":"Current Company Co.","created_at":“ 2017-10-27T14:44:42Z”,“external_id":null,"photo_url":null,"url":“ http://app188bet安卓APP.greenhouse.io/people/60304594”,"is_private":false,"can_email":true,"phone_numbers":[{“价值”:“ 555-555-5555”,“类型”:"mobile"}],“email_addresses":[{“价值”:"person@work.com",“类型”:"work"},{“价值”:"person@example.com",“类型”:"personal"}],"addresses":[{“价值”:"123 Test Street\nNew York, NY 10001",“类型”:"home"}],“网站_addresses”:[{“价值”:"mysite.com",“类型”:"personal"}],"social_media_addresses":[{“价值”:"socialmedia.com"}],“educations":[{"school_name":"Stanford University","degree":“学士学位”,“纪律”:“计算机科学”,"start_date":“ 2007年9月15日”,“结束日期”:"05/15/2011"}],“employments":[],"recruiter":{“ID”:92121,“email":“employee@test.com","name":"Betty Smith",“employee_id":“ 123ABC”},"coordinator":{“ID”:92427,“email":"user@example.com","name":"Bonnie Bonnet",“employee_id":"456DEF"},"attachments":[{"filename":"Test Cover Letter.docx","url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:"cover_letter"},{"filename":“测试简历”,"url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:“恢复”}],"tags":["Ruby",“ Comp Sci”],"custom_fields":{"date_test":{"name":"Date Test",“类型”:"date",“价值”:""},"desired_salary":{"name":"Desired Salary",“类型”:“ short_text”,“价值”:null},"graduation_year_1":{"name":"Graduation Year",“类型”:"single_select",“价值”:null},"work_remotely":{"name":"Work Remotely",“类型”:"boolean",“价值”:null}}},"jobs":[{“ID”:274075,"name":“数据科学家”,"requisition_id":“ ABC”,"notes":null,"confidential":false,"job_post_id":263533,“地位”:"open","created_at":"2016-07-14T17:21:30Z","opened_at":“ 2016-07-20T16:00:00z”,"closed_at":null,"url":“ http://app188bet安卓APP.greenhouse.io/sdash/274075”,"departments":[{“ID”:8717,"name":"Data Science",“external_id":“ex-dept-1"}],"offices":[{“ID”:16478,"name":"London","location":"London, United Kingdom",“external_id":“ex-office-1"}],"hiring_team":{"hiring_managers":[{“用户身份”:92913,“employee_id":“ 123ABC”}],“源”:[{“用户身份”:92427,“employee_id":null}],“招聘人员”:[{“用户身份”:92427,“employee_id":null}],"coordinators":[{“用户身份”:92427,“employee_id":"DEFG123"}]},"custom_fields":{"date_test":{"name":"Date Test",“类型”:"date",“价值”:"2017-10-27"},“雇佣类型”:{"name":"Employment",“类型”:"single_select",“价值”:“全职”},“替换_role_”:{"name":"Replacement Role",“类型”:"boolean",“价值”:true},"salary_range_2":{"name":"Salary Range",“类型”:"currency_range",“价值”:{"unit":null,“ min_value”:"10000.0","max_value":"10000.0"}},“ test_field_1”:{"name":“测试短文本字段”,“类型”:“ short_text”,“价值”:“测试”},"test_user_field":{"name":"Test User Field",“类型”:“用户”,“价值”:{“用户身份”:117730,"name":"Job Admin",“email":“ Asegal+Jobadmin188bet安卓APP@greenhouse.io”,“employee_id":“用户-ABC”}}}}]}}}
当为候选人创建新申请时,就会发生新的候选应用程序事件。
See web hookcommon attributes。
删除应用程序
This web hook only fires when individual applications are destroyed. This occurs when the Harvest API delete endpoint is used, when a candidate is removed from a specific job, or when two duplicate candidates on the same job are merged together. This will not fire when a candidate is deleted. A candidate being deleted implies all their applications have been deleted with them.
{"action":"delete_application","payload":{"application":{“ID”:46194062,"candidate_id":37031511,“ job_id”:371417,"created_at":"2013-03-22T00:00:00Z","source_id":2,“ cantifate_rectiond_reason_id”:null,"rejection_note_id":123,"rejected_at":"2014-04-22T01:00:00Z","referrer_id":158104,“前景”:false,"rejected_by_user_id":158103}}}
Noteworthy response attributes
Attribute | Note |
rejected_by_user_id |
The Greenhouse user who rejected this application, if the application is rejected. |
Application updated
{"action":"application_updated","payload":{"application":{“ID”:22202940,"rejected_at":null,“前景”:false,"prospect_detail":{"prospect_owner":null,"prospect_pool":null,"prospect_stage":null},“地位”:"active","applied_at":"2015-12-03T06:31:26Z","last_activity_at":"2015-12-03T06:31:26Z","url":"https://app.greenhouse.io/people/13857579?application_id=22202940",“来源”:{“ID”:2,"name":"Jobs page on your website"},"credited_to":{“ID”:3695,“email":“ beauregard.blacksmith.3695@example.com”,"name":"Beauregard Blacksmith",“employee_id":“ 123ABC”},"rejection_reason":null,“拒绝_details”:null,“ current_stage”:{“ID”:711020,"name":“申请审查”,“采访”:[{“ID”:1063685,"name":“申请审查”,“地位”:"collect_feedback","interview_kit":{"url":"http://app.greenhouse.io/guides/1063859/people/13857579","content":"","questions":[]},"interviewers":[]}]},"custom_fields":{"custom_application_field":{"name":"Custom Application Field",“类型”:“ short_text”,“价值”:“例子”}},“候选人”:{“ID”:13857579,"first_name":"Hank","last_name":“冯·暗黑破坏神”,“标题”:null,"company":null,"created_at":"2015-12-03T06:31:26Z",“external_id":null,"photo_url":null,"url":“ https://app188bet安卓APP.greenhouse.io/people/13857579”,"is_private":false,"can_email":true,"phone_numbers":[{“价值”:“330-281-8004”,“类型”:“其他 ”}],“email_addresses":[{“价值”:“汉克。冯diablo.13857579@example.com",“类型”:"personal"}],"addresses":[],“网站_addresses”:[{“价值”:"http://www.example.com/",“类型”:“其他”}],"social_media_addresses":[{“价值”:"https://twitter.com/TheRock"}],“educations":[],"recruiter":null,"coordinator":null,"attachments":[],,"tags":[],,"custom_fields":{"current_salary":{"name":"Current Salary",“类型”:“ short_text”,“价值”:null},"desired_salary":{"name":"Desired Salary",“类型”:“ short_text”,“价值”:null}}},"jobs":[]}}}
The Application Updated event occurs when an application is updated.
See web hookcommon attributes。
创建的报价
This web hook fires when creating a new offer in Greenhouse. This may also fire when changing an offer if the change causes a new version to be created. When bulk creating offers, this will fire per offer created.
{"action":"offer_created","payload":{“ID”:12345,"application_id":234556,“ job_id”:45678,“用户身份”:67890,“版本”:1,"sent_on":"2013-03-22","resolved_at":"2013-03-25T00:00:00Z","start_date":"04/15/2013","notes":“假期预定的4/20-4/23”,"offer_status":"Accepted","custom_fields":{"custom_application_field":{"name":"Custom Application Field",“类型”:“ short_text”,“价值”:“例子”}}}}
优惠批准
This web hook fires when an offer requires approval and the approval is received.
{"action":"offer_approved","payload":{“ID”:12345,"application_id":234556,“ job_id”:45678,“用户身份”:67890,“版本”:1,"sent_on":"2013-03-22","resolved_at":"2013-03-25T00:00:00Z","start_date":"04/15/2013","notes":“假期预定的4/20-4/23”,"offer_status":"Accepted","custom_fields":{"custom_application_field":{"name":"Custom Application Field",“类型”:“ short_text”,“价值”:“例子”}}}}
Offer updated
This web hook fires when an offer is updated. In some cases, an offer may be changed without generating a new version. In that case, this will fire by itself. If a change causes a new offer version to be generated, this will fire on the old version with the update to deprecate this offer and also a new “create” web hook will fire for the new version. This web hook should also fire when a person is hired, which marks the offer as “accepted.”
{"action":"offer_updated","payload":{“ID”:12345,"application_id":234556,“ job_id”:45678,“用户身份”:67890,“版本”:2,"sent_on":"2013-03-22","resolved_at":"2013-03-25T00:00:00Z","start_date":"04/15/2013","notes":“假期预定的4/20-4/23”,"offer_status":"Deprecated","custom_fields":{"custom_application_field":{"name":"Custom Application Field",“类型”:“ short_text”,“价值”:“例子”}}}}
Offer deleted
此Web挂钩仅在从温室系统中删除优惠时发射。188bet安卓APP仅当单击单独的报价或使用“ all_offer_versions”选定选项的“匿名候选进程”选项运行“删除”链接或在“匿名候选进程”选项运行时,才会发生这种情况。删除应用程序时,这不会单独发射。
{"action":"offer_deleted","payload":{“提供”:{“ID”:506406,"application_id":46194062,“ ofering_user_id”:158104,"offer_status":"Created",“版本”:1,"sent_on":"2013-03-22","resolved_at":"2013-03-25T00:00:00Z","notes":“这些是报价的笔记。”,“ job_id”:371417}}
Noteworthy response attributes
Attribute | Note |
offer_status |
One of Created, Accepted, Rejected, or Deprecated. |
version |
This is the version of the offer in Greenhouse. New versions are triggered when certain fields are updated. |
在发送 |
When the offer was sent to the candidate |
resolved_at |
When this version was either accepted, rejected, or deprecated (a new version was made) |
创建了前景
{"action":"new_prospect_application","payload":{"application":{“ID”:979554,"rejected_at":null,“前景”:true,“地位”:"active","applied_at":"2014-12-02T23:10:16Z","last_activity_at":"2014-12-02T23:10:16Z","url":"https://app.greenhouse.io/people/968190?application_id=979554",“来源”:{“ID”:13,"public_name":"Referral"},"credited_to":{“ID”:2622,“email":"carl.buddha.2622@example.com","name":"Carl Buddha",“employee_id":“ 123ABC”},"rejection_reason":null,“拒绝_details”:null,“ current_stage”:null,"custom_fields":{"custom_application_field":{"name":"Custom Application Field",“类型”:“ short_text”,“价值”:null}},“候选人”:{“ID”:968190,"first_name":"Trisha","last_name":"Troy",“标题”:null,"company":null,"created_at":"2014-12-02T23:10:16Z",“external_id":null,"photo_url":null,"is_private":false,"can_email":true,"phone_numbers":[{“价值”:"123456",“类型”:“其他”}],“email_addresses":[{“价值”:"t.troy@example.com",“类型”:"personal"}],"addresses":[],“网站_addresses”:[],"social_media_addresses":[],“educations":[{"school_name":"Harvard University","degree":“学士学位”,“纪律”:"Information Systems","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],“employments":[{“公司名称”:“188bet安卓APP温室”,“标题”:"Engineer","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],"recruiter":{“ID”:3128,“email":"alicia.flopple.3128@example.com","name":"Alicia Flopple",“employee_id":"456DEF"},"coordinator":null,"attachments":[{"filename":"resume.pdf","url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:“恢复”}],"tags":["Import from Previous ATS"],"custom_fields":{"favorite_color":{"name":"Favorite Color",“类型”:“ short_text”,“价值”:“蓝色的”}}},"jobs":[{“ID”:371417,"name":"Designer","requisition_id":null,"notes":"Digital and print","confidential":false,"job_post_id":54321,“地位”:"open","created_at":"2013-10-02T22:59:29Z","opened_at":"2015-01-23T00:25:04Z","closed_at":null,"departments":[{“ID”:237,"name":"Community",“external_id":“ex-dept-1"}],"offices":[{“ID”:54,"name":"New York","location":“纽约,纽约”,“external_id":“ex-office-1"}],"custom_fields":{“雇佣类型”:{"name":"Employment Type",“类型”:"single_select",“价值”:“全职”}}}]}}}
创建新的Prospect应用程序时,将发生新的Prospect应用程序事件。
See web hookcommon attributes。
Candidate Events
Candidate deleted
当候选人或潜在客户从Greenhouse删除时,该网络挂钩将开火。188bet安卓APP当使用收获方法删除候选方法时,当候选人合并到另一个候选人,申请中删除候选人时,并且在批量删除操作中为每个候选人合并时,就会发生这种情况。删除候选人会在温室内导致其他删除,但我们不会为这些删除效果开一个单独的网钩。188bet安卓APP对于删除原因的应用程序,我们将包括一系列将从Greenhouse中删除的应用程序ID。188bet安卓APP
{"action":"delete_candidate","payload":{“人”:{“ID”:37031511,"first_name":"Jack","last_name":"Sparrow","company":“海盗运输”,“标题”:"Captain","created_at":"2013-03-22T00:00:00Z","headline":"Eager to find a new commission","is_private":false,“ Recruiter_user_id”:123,"coordinator_user_id":456,"can_email":false,"deleted_application_ids":[46196263,46196258]}}}
Noteworthy response attributes
Attribute | Note |
is_private |
对或错;如果该候选人在温室中被标记为私人。188bet安卓APP |
recruiter_user_id |
The Greenhouse user_id of this candidate’s recruiter |
coordinator_user_id |
该候选人188bet安卓APP协调员的温室用户_ID |
can_email |
对或错;if this candidate can be e-mailed. |
application_ids |
This is an array containing the Greenhouse application IDs that will be deleted as a consequence of this candidate being deleted |
Candidate hired
{"action":“ hire_candidate”,"payload":{"application":{“ID”:46194062,"opening":{"opening_id":"1234-56","custom_fields":[]},"credited_to":{“ID”:158104,“email":“ bob_johnson1@localhost.com”,"name":“罗伯特·约翰逊”,“employee_id":“ 123ABC”},“来源”:{“ID”:25,"public_name":"Monster"},"url":"https://app.greenhouse.io/people/35897443?application_id=46194062",“候选人”:{“ID”:35897443,"first_name":"Johnny","last_name":"Smith",“标题”:"Previous Title",“external_id":"12345","url":"https://app.greenhouse.io/people/35897443","is_private":false,"can_email":true,"phone_numbers":[{“价值”:“ 518-555-1212”,“类型”:"work"},{“价值”:"212-555-1212",“类型”:"home"}],“email_addresses":[{“价值”:"personal@example.com",“类型”:"personal"},{“价值”:"work@example.com",“类型”:"work"}],"addresses":[{“价值”:"455 Broadway New York, NY 10280",“类型”:"home"}],“educations":[{"school_name":"Harvard University","degree":“学士学位”,“纪律”:"Information Systems","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],“employments":[{“公司名称”:“188bet安卓APP温室”,“标题”:"Engineer","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],"recruiter":{“ID”:55,“email":"bob_johnson@localhost.com","name":"Bob Johnson",“employee_id":"456DEF"},"coordinator":{“ID”:56,“email":"bob_johnson_approver1@localhost.com","name":"Robert J Approver",“employee_id":"789GHI"},"attachments":[{"filename":"resume.pdf","url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:“恢复”}],"custom_fields":{"desired_level":{"name":"Desired Level",“类型”:“ short_text”,“价值”:"Senior"},"favorite_programming_language":{"name":"Favorite Programming Language",“类型”:“ short_text”,“价值”:"Rails"}}},"job":{“ID”:323753,"name":"Developer",“ open_date”:"2014-11-20T22:49:14Z","close_date":“ 2014-11-25T22:49:14Z”,"requisition_id":null,"departments":[{“ID”:7,"name":"Technology",“external_id":“ex-dept-1"}],"offices":[{“ID”:13,"name":"New York City","location":“纽约,纽约”,“external_id":“ex-office-1"},{“ID”:14,"name":"St. Louis","location":null,“external_id":null}],"custom_fields":{"approved":{"name":"Approved",“类型”:"boolean",“价值”:true},“雇佣类型”:{"name":"Employment Type",“类型”:"single_select",“价值”:“全职”},"salary_range":{"name":“工资范围”,“类型”:"currency_range",“价值”:{"unit":"USD",“ min_value”:"10000.0","max_value":“ 20000.0”}}}},"jobs":[{“ID”:323753,"name":"Developer","requisition_id":null,"confidential":false,"opened_at":"2014-11-20T22:49:14Z","closed_at":“ 2014-11-25T22:49:14Z”,"departments":[{“ID”:7,"name":"Technology",“external_id":“ex-dept-1"}],"offices":[{“ID”:13,"name":"New York City","location":“纽约,纽约”,“external_id":“ex-office-1"},{“ID”:14,"name":"St. Louis","location":null,“external_id":null}],"custom_fields":{"approved":{"name":"Approved",“类型”:"boolean",“价值”:true},“雇佣类型”:{"name":"Employment Type",“类型”:"single_select",“价值”:“全职”},"salary_range":{"name":“工资范围”,“类型”:"currency_range",“价值”:{"unit":"USD",“ min_value”:"10000.0","max_value":“ 20000.0”}}}}],"custom_fields":{"custom_application_field":{"name":"Custom Application Field",“类型”:“ short_text”,“价值”:“ example123”}},“提供”:{“ID”:506409,“版本”:2,"created_at":"2014-11-20T22:49:14Z","sent_at":"2014-11-10","resolved_at":"2014-11-20T22:49:14Z",“开始于”:“ 2015-01-23”,"custom_fields":{"salary":{"name":“薪水”,“类型”:"currency",“价值”:{"amount":80000,"unit":"USD"}},"seasons":{"name":"Seasons",“类型”:"multi_select",“价值”:["Season 1","Season 2"]}}}}}}
当接受要约时,就会发生雇用候选活动。通过单击候选人的私人选项卡上的“接受要约”按钮来触发这。
Noteworthy attributes
See web hookcommon attributes。
Attribute | Note |
application.offer.id |
Unique Greenhouse identifier of the offer. Information not included in the web hook can be retrieved viaHarvest API - GET Offers |
application.offer.created_at |
Date when this offer was drafted. |
application.offer.sent_on |
Date when this offer was sent to the candidate. |
application.offer.resolved_at |
Date the offer was accepted. |
application.offer.starts_at |
The candidate’s start date. Expected format is YYYY-MM-DD |
application.job |
Deprecated. Useapplication.jobs [] instead |
application.job.close_date |
Deprecated. Useapplication.jobs []。closed_at instead. |
application.job.open_date |
Deprecated. Useapplication.jobs []。打开_at instead. |
application.opening.custom_fields |
如果组织没有启用开口的自定义字段,则可能会省略此元素。 |
候选人合并
这个web钩或prospe火当候选人ct is merged with another candidate. This process should fire for regular manual merges and auto-merges. It will also fire per candidate for a bulk merge. This web hook supersedes the candidate deleted web hook. If both candidate deleted and candidate merged are configured on your site, only the candidate merged web hook will fire when candidate records are removed via merge. If a candidate deleted web hook is configured but candidate merged is not, then the candidate deleted web hook will fire when a candidate record is deleted via merge. The payload for a candidate merged web hook matches the payload for candidate deleted except it contains the ID of the winning candidate record.
{"action":“ merge_candidate”,"payload":{“人”:{“ID”:37031511,"first_name":"Jack","last_name":"Sparrow","company":“海盗运输”,“标题”:"Captain","created_at":"2013-03-22T00:00:00Z","headline":"Eager to find a new commission","is_private":false,“ Recruiter_user_id”:123,"coordinator_user_id":456,"can_email":false,"new_candidate_id":457456}}}
Noteworthy response attributes
Attribute | Note |
deleted_application_ids |
In many merge cases, this section will be blank, as applications will have been merged into the new candidate. |
new_candidate_id |
合并该候选人的候选人的身份证 |
Candidate stage change
{"action":"candidate_stage_change","payload":{"application":{“ID”:265277,"rejected_at":null,“前景”:false,“地位”:"active","applied_at":"2013-03-22T00:00:00Z","last_activity_at":"2015-02-09T16:38:36Z","url":"https://app.greenhouse.io/people/265772?application_id= 265277",“来源”:{“ID”:31,"name":“机构”},"credited_to":{“ID”:15,“email":“ ada@example.com”,"name":"Ada Lacey",“employee_id":“ 123ABC”},"rejection_reason":null,“拒绝_details”:null,“ current_stage”:{“ID”:71416,"name":"Assessment",“采访”:[{“ID”:113101,"name":"Assessment",“地位”:"to_be_scheduled","interview_kit":{"url":"https://app.greenhouse.io/guides/113153/people/265772","content":"Assess their skills","questions":[]},"interviewers":[{“ID”:2622,"display_name":"Carl Buddha",“地位”:"tentative"}]}]},"custom_fields":{"custom_application_field":{"name":"Custom Application Field",“类型”:“ short_text”,“价值”:“例子”}},“候选人”:{“ID”:265772,"first_name":"Giuseppe","last_name":"Hurley",“标题”:"Great Person","company":null,"created_at":"2013-10-04T01:24:44Z",“external_id":"241b399ce4b0fd1c84e5528d","photo_url":null,"url":“ https://app188bet安卓APP.greenhouse.io/people/265772”,"is_private":false,"can_email":true,"phone_numbers":[{“价值”:“330-281-8004”,“类型”:"home"}],“email_addresses":[{“价值”:“ giuseppe.hurley@example.com”,“类型”:"personal"}],"addresses":[{“价值”:"123 Fake St.",“类型”:"home"}],“网站_addresses”:[{“价值”:"ghurley.example.com",“类型”:"personal"}],"social_media_addresses":[{“价值”:"linkedin.example.com/ghurley"}],“educations":[{"school_name":"Harvard University","degree":“学士学位”,“纪律”:"Information Systems","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],“employments":[{“公司名称”:“188bet安卓APP温室”,“标题”:"Engineer","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],"recruiter":{“ID”:3128,“email":"alicia.flopple.3128@example.com","name":"Alicia Flopple",“employee_id":"789GHI"},"coordinator":{“ID”:3128,“email":"alicia.flopple.3128@example.com","name":"Alicia Flopple",“employee_id":"789GHI"},"attachments":[{"filename":"resume.pdf","url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:“恢复”},{"filename":“ cover_letter.pdf”,"url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:"cover_letter"},{"filename":“ portfolio.pdf”,"url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:"attachment"}],"tags":["Import from Previous ATS"],"custom_fields":{"favorite_color":{"name":"Favorite Color",“类型”:“ short_text”,“价值”:“蓝色的”}}},"jobs":[{“ID”:3485,"name":"Designer","requisition_id":null,"notes":"Digital and print","confidential":false,"job_post_id":553282,“地位”:"open","created_at":"2013-10-02T22:59:29Z","opened_at":"2015-01-23T00:25:04Z","closed_at":null,"departments":[{“ID”:237,"name":"Community",“external_id":“ex-dept-1"}],"offices":[{“ID”:54,"name":"New York","location":“纽约,纽约”,“external_id":“ex-office-1"}],"custom_fields":{“雇佣类型”:{"name":"Employment Type",“类型”:"single_select",“价值”:“全职”}}}]}}}
Noteworthy response attributes
See web hookcommon attributes。
Attribute | Note |
application.current_stage.interviews[].interviewers.status |
One of:needs_action ,拒绝 ,tentative ,accepted |
application.current_stage.interviews []。状态 |
One of:to_be_scheduled ,计划 ,awaiting_feedback ,complete ,skipped ,collect_feedback ,to_be_sent ,sent ,已收到 |
Candidate unhired
{"action":"unhire_candidate","payload":{"application":{“ID”:265293,"rejected_at":null,“前景”:false,“地位”:"active","applied_at":"2013-03-22T00:00:00Z","last_activity_at":"2015-03-18T20:28:09Z","url":"https://app.greenhouse.io/people/265788?application_id=265293",“来源”:{“ID”:27,"public_name":"LinkedIn"},"credited_to":null,"rejection_reason":null,“拒绝_details”:null,“ current_stage”:{“ID”:678901,"name":“申请审查”,“采访”:[{“ID”:989099,"name":“申请审查”,“地位”:"collect_feedback","interview_kit":{"url":"http://app.greenhouse.io/guides/67656/people/265788","content":"","questions":[]},"interviewers":[]}]},"custom_fields":{"custom_application_field":{"name":"Custom Application Field",“类型”:“ short_text”,“价值”:null}},“候选人”:{“ID”:265788,"first_name":"Hector","last_name":"Porter",“标题”:null,"company":null,"created_at":"2013-10-04T01:24:48Z",“external_id":null,"photo_url":null,"url":"https://app.greenhouse.io/people/265788","is_private":false,"can_email":true,"phone_numbers":[{“价值”:“330-281-8004”,“类型”:"home"}],“email_addresses":[{“价值”:"hector.porter.265788@example.com",“类型”:"personal"}],"addresses":[],“网站_addresses”:[],"social_media_addresses":[],“educations":[{"school_name":"Harvard University","degree":“学士学位”,“纪律”:"Information Systems","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],“employments":[{“公司名称”:“188bet安卓APP温室”,“标题”:"Engineer","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],"recruiter":null,"coordinator":null,"attachments":[{"filename":"resume.pdf","url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:“恢复”}],"tags":["Import from Previous ATS"],"custom_fields":{"favorite_color":{"name":"Favorite Color",“类型”:“ short_text”,“价值”:“蓝色的”}}},"jobs":[{“ID”:371417,"name":"Designer","requisition_id":null,"notes":"Digital and print","confidential":false,"job_post_id":54321,“地位”:"open","created_at":"2013-10-02T22:59:29Z","opened_at":"2015-01-23T00:25:04Z","closed_at":null,"departments":[{“ID”:14501,"name":"Community",“external_id":“ex-dept-1"}],"offices":[{“ID”:9099,"name":"New York","location":“纽约,纽约”,“external_id":“ex-office-1"}],"custom_fields":{“雇佣类型”:{"name":"Employment Type",“类型”:"single_select",“价值”:“全职”}}}]}}}
仅在温室中单击“ un乱”按钮时,此Web挂钩才会发射。188bet安卓APP此按钮仅在雇用候选人后的候选个人资料页面上可用。
See web hookcommon attributes。
Candidate/Prospect rejected
{"action":"reject_candidate","payload":{"application":{“ID”:265293,"rejected_at":“ 2015-02-11T15:50:41Z”,“前景”:false,“地位”:"rejected","applied_at":"2013-03-22T00:00:00Z","last_activity_at":“ 2015-02-11T15:50:41Z”,"url":"https://app.greenhouse.io/people/265788?application_id=265293",“来源”:{“ID”:27,"public_name":"LinkedIn"},"credited_to":null,"rejection_reason":{“ID”:14,"name":"Too Junior",“类型”:{“ID”:3,"name":“错误的技能”}},“拒绝_details”:{"custom_fields":{“ custom_rections_question_field”:{"name":"Custom Rejection Question Field",“类型”:“ short_text”,“价值”:“例子”}}},“ current_stage”:{“ID”:2708728,"name":"Offer",“采访”:[]},"custom_fields":{"custom_application_field":{"name":"Custom Application Field",“类型”:“ short_text”,“价值”:“ example123”}},“候选人”:{“ID”:265788,"first_name":"Hector","last_name":"Porter",“标题”:null,"company":null,"created_at":"2013-10-04T01:24:48Z",“external_id":null,"photo_url":null,"is_private":false,"can_email":true,"phone_numbers":[{“价值”:“330-281-8004”,“类型”:"home"}],“email_addresses":[{“价值”:"hector.porter.265788@example.com",“类型”:"personal"}],"addresses":[],“网站_addresses”:[],"social_media_addresses":[],“educations":[{"school_name":"Harvard University","degree":“学士学位”,“纪律”:"Information Systems","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],“employments":[{“公司名称”:“188bet安卓APP温室”,“标题”:"Engineer","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],"recruiter":null,"coordinator":null,"attachments":[{"filename":"resume.pdf","url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:“恢复”}],"tags":["Imported"],"custom_fields":{"favorite_color":{"name":"Favorite Color",“类型”:“ short_text”,“价值”:“蓝色的”}}},"jobs":[{“ID”:371417,"name":"Designer","requisition_id":null,"notes":"Digital and print","confidential":false,"job_post_id":54321,“地位”:"open","created_at":"2013-10-02T22:59:29Z","opened_at":"2015-01-23T00:25:04Z","closed_at":null,"departments":[{“ID”:237,"name":"Community",“external_id":“ex-dept-1"}],"offices":[{“ID”:9099,"name":"New York","location":“纽约,纽约”,“external_id":“ex-office-1"}],"custom_fields":{“雇佣类型”:{"name":"Employment Type",“类型”:"single_select",“价值”:“全职”}}}]}}}
The Reject Candidate event occurs when a prospect or candidate is rejected for a position.
See web hookcommon attributes。
Candidate/Prospect unrejected
{"action":"unreject_candidate","payload":{"application":{“ID”:265293,"rejected_at":null,“前景”:false,“地位”:"active","applied_at":"2013-03-22T00:00:00Z","last_activity_at":“ 2015-02-11T15:50:41Z”,"url":"https://app.greenhouse.io/people/265788?application_id=265293",“来源”:{“ID”:27,"public_name":"LinkedIn"},"credited_to":null,"rejection_reason":null,“拒绝_details”:null,“ current_stage”:{“ID”:2708728,"name":"Offer",“采访”:[]},"custom_fields":{"custom_application_field":{"name":"Custom Application Field",“类型”:“ short_text”,“价值”:“ example123”}},“候选人”:{“ID”:265788,"first_name":"Hector","last_name":"Porter",“标题”:null,"company":null,"created_at":"2013-10-04T01:24:48Z",“external_id":null,"photo_url":null,"is_private":false,"can_email":true,"phone_numbers":[{“价值”:“330-281-8004”,“类型”:"home"}],“email_addresses":[{“价值”:"hector.porter.265788@example.com",“类型”:"personal"}],"addresses":[],“网站_addresses”:[],"social_media_addresses":[],“educations":[{"school_name":"Harvard University","degree":“学士学位”,“纪律”:"Information Systems","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],“employments":[{“公司名称”:“188bet安卓APP温室”,“标题”:"Engineer","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],"recruiter":null,"coordinator":null,"attachments":[{"filename":"resume.pdf","url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:“恢复”}],"tags":["Imported"],"custom_fields":{"favorite_color":{"name":"Favorite Color",“类型”:“ short_text”,“价值”:“蓝色的”}}},"jobs":[{“ID”:371417,"name":"Designer","requisition_id":null,"notes":"Digital and print","confidential":false,"job_post_id":54321,“地位”:"open","created_at":"2013-10-02T22:59:29Z","opened_at":"2015-01-23T00:25:04Z","closed_at":null,"departments":[{“ID”:237,"name":"Community",“external_id":“ex-dept-1"}],"offices":[{“ID”:9099,"name":"New York","location":“纽约,纽约”,“external_id":“ex-office-1"}],"custom_fields":{“雇佣类型”:{"name":"Employment Type",“类型”:"single_select",“价值”:“全职”}}}]}}}
The Unreject Candidate event occurs when a prospect or candidate is unrejected.
See web hookcommon attributes。
候选人/潜在客户更新了
{"action":"update_candidate","payload":{“候选人”:{“ID”:15696179,"first_name":"Ronald","last_name":"Ronnie",“标题”:"Director of Strategic Janitorial Initiatives","company":“例子”,"created_at":“ 2016-08-23T17:51:27z”,“external_id":"946aa514658","photo_url":null,"url":“ https://app188bet安卓APP.greenhouse.io/people/15696179”,"phone_numbers":[{“价值”:"911",“类型”:"mobile"}],“email_addresses":[{“价值”:"123456email@email.com",“类型”:"work"}],"addresses":[{“价值”:“ 99-99 5th Ave. \ nnew York,NY 101-11”,“类型”:"home"}],“网站_addresses”:[{“价值”:"google.com",“类型”:"personal"}],"social_media_addresses":[{“价值”:“@ronaldronnie99999”}],“educations":[{"school_name":"Harvard University","degree":“学士学位”,“纪律”:"Information Systems","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],“employments":[{“公司名称”:“188bet安卓APP温室”,“标题”:"Engineer","start_date":"01/01/2012",“结束日期”:"01/01/2016"}],"recruiter":{“ID”:169779,“email":“汉克。hollandaise.169779@example.com","name":"Hank Hollandaise",“employee_id":“ 123ABC”},"coordinator":{“ID”:83637,“email":"sterling.kang.83637@example.com","name":"Sterling Kang",“employee_id":"456DEF"},"attachments":[{"filename":“ RESUMEA.PDF”,"url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:“恢复”},{"filename":"resumeB.pdf","url":“ https://prod-heroku.s3.amazonaws.com/...”,“类型”:“恢复”}],"tags":["foo",“档案导入”],"custom_fields":{"current_salary":{"name":"Current Salary",“类型”:“ short_text”,“价值”:null},"desired_salary":{"name":"Desired Salary",“类型”:“ short_text”,“价值”:null}}}}}
The Candidate or Prospect Updated event occurs when a candidate or prospect’s standard field or custom field is updated. For instance, an update to a candidate’s first name would trigger this event.
See web hookcommon attributes。
Candidate anonymized
当特定候选人收到匿名事件时,该网络挂钩将开火。匿名事件可能会发生Anonymize Endpointin Harvest or may be configured in the GDPR page in the Greenhouse application. An anonymize web hook consists of the action type, the id of the candidate who had properties anonymized, and the information that was anonymized.
{"action":“候选人_Anonymized”,"payload":{"candidate_id":37031511,"anonymized_fields":["full_name","current_title"]}}
Anonymized Fields
A list of possible anonymized fields are provided. If the item in “attribute” is received in the anonymized_fields array, the corresponding changes in notes have been applied in Greenhouse. Note that some of these fields may not be accessible via other web hooks or via Harvest.
Attribute | Anonymize Process |
activity_items |
Destroy all items in the candidate’s activity feed of type “activity”. In Harvest’s Activity Feed endpoint, these are items in theactivities section. |
addresses |
破坏所有价值candidate.addresses |
all_offer_versions |
对于该候选人的每个申请,都会销毁all offers. (For legacy reasons, this will also raise anOffer Deletedweb hook if one is configured.) |
application_questions |
对于本候选人的每个应用程序,都会破坏所有价值application.answers 。 |
attachments |
Destroy all attachments on this candidate and all their associated applications. |
candidate_stage_data |
For each of this candidate’s applications, set thecreated_at time to now, remove the candidate from the current stage, destroy all stage transition information, and set the candidate back to the first stage. |
coordinator |
Setcandidate.coordinator to null |
credited_to |
For each of this candidate’s application, destroyapplication.credited_to 。 |
custom_application_fields |
对于该候选人的每个申请,都会销毁application.custom_fields 。 |
custom_candidate_fields |
破坏所有价值candidate.custom_fields |
custom_rejection_question_fields |
For each of this candidate’s application, destroy all custom fields on rejection details. |
current_company |
Set候选人: null。 |
当前的标题 |
Set候选人 null。 |
education |
Remove all values fromcandidate.educations |
email_addresses |
破坏所有价值candidate.email_addresses |
employment |
Remove all values fromcandidate.employments |
电子邮件 |
Destroy record of any e-mails sent to this candidate via Greenhouse. |
follow_up_reminders |
Destroy any follow-up reminders configured on this person. |
全名 |
Setcandidate.first_name to “Anonymized” andcandidate.last_name to thecandidate.id 。 |
headline |
Set the candidate’s headline to null. |
inmails |
Destroy record of any LinkedIn Inmails synced to this candidate from LinkedIn. |
innotes |
Destroy record of any LinkedIn Innotes synced to this candidate from LinkedIn. |
location |
For each of this candidate’s applications, setapplication.location null。 |
notes |
Destroy all notes on this candidate. |
优惠 |
Destroy all information on all offers on any of this candidate’s applications without destroying that an offer was made. |
phone_numbers |
Remove all values fromcandidate.phone_numbers |
prospect_jobs |
Remove all associations between this prospect and jobs. |
prospect_offices |
删除该潜在客户和办公室之间的所有关联。 |
prospect_offices_and_departments |
Remove all associations between this prospect and departments. |
prospect_owner |
For each of this candidate’s prospect applications, destroy the prospect owner. |
PESTECT_POOL_AND_STAGE |
For each of this candidate’s application, destroy the prospect pool and the prospect pool stage. |
recruiter |
Setcandidate.recruiter to null |
referral_questions |
Destroy all referral answers for this candidate. |
rejection_notes |
Destroy all notes specifically related to this candidate’s rejection. |
rejection_reasons |
Setrejection_reason on all candidate applications to null. |
scorecards_and_interviews |
Destroy all scorecards with this candidate id and all interviews with any application from this candidate id |
social_media_links |
Remove all values from候选人.social_media_addresses |
来源 |
Removeapplication.source in all this candidate’s applications. |
tags |
Remove all values fromcandidate.tags |
third_party_integrations |
从LinkedIn CSA和RSC集成中删除候选人的个人资料。 |
touchpoints |
Destroy all touchpoints on the candidate, all the candidate’s applications, and any notes associated with touchpoints. |
websites |
Remove all values from候选人。website_addresses |
Interview Events
采访删除了
This web hook fires when a scheduled interview is cancelled or the interview is deleted directly. This web hook will not fire if an interview is deleted because a candidate, application, or hiring plan is deleted.
{"action":"interview_deleted","payload":{"interview":{“ID”:31087450}}}
Scorecard deleted
This web hook only fires when individual scorecards are destroyed. This occurs when the Harvest API delete endpoint is used, or when the delete scorecard link is used in the application. This will not fire when a candidate or application is deleted. A candidate being deleted implies all their scorecards have been deleted with them. An application being deleted does not cause scorecards to be deleted.
{"action":"scorecard_deleted","payload":{"scorecard":{“ID”:6036088,"candidate_id":29843272,“访谈_at”:“ 2016-12-28T17:00:00.000Z”,"created_at":"2016-12-28T22:58:03.552Z","updated_at":"2016-12-28T22:58:03.552Z","scorecard_status":"complete"}}}
Job Events
Job created
{"action":"job_created","payload":{"job":{“ID”:371417,"name":"Software Engineer","requisition_id":null,"notes":"Looking for the best!","confidential":false,"job_post_id":2154,“地位”:"open","created_at":“ 2016-10-20T18:16:32Z”,"opened_at":“ 2016-10-20T18:16:32Z”,"closed_at":null,"departments":[{“ID”:7,"name":"Technology",“external_id":“ex-dept-1"}],"offices":[{“ID”:13,"name":"New York City","location":“纽约,纽约”,“external_id":“ex-office-1"},{“ID”:14,"name":"St. Louis","location":null,“external_id":null}],"hiring_team":{"hiring_managers":[{“用户身份”:1234,“employee_id":“ ABC-123”}],“源”:[],“招聘人员”:[{“用户身份”:2345,“employee_id":null},{“用户身份”:3456,“employee_id":"abc-234"}],"coordinators":[]},“开口”:[{“ID”:1234,"opening_id":"abc-1","custom_fields":[]},{“ID”:1235,"opening_id":"abc-2","custom_fields":[]}],"custom_fields":{"approved":{"name":"Approved",“类型”:"boolean",“价值”:true},“雇佣类型”:{"name":"Employment Type",“类型”:"single_select",“价值”:“全职”},"salary_range":{"name":“工资范围”,“类型”:"currency_range",“价值”:{"unit":"USD",“ min_value”:"10000.0","max_value":“ 20000.0”}}}}}}
当从头开始创建新作业或从另一个作业复制新作业时,创建的事件将触发。
Attribute | Note |
hiring_team |
Field contains the Greenhouse users responsible for this job. Each field contains the user’s Greenhouse user id and the user’s external employee id from the customer’s system. The employee id will be null if it has not been set in Greenhouse. |
openings |
Field contains all the openings in this job. The custom field element on each opening may be omitted if the organization does not have custom fields on openings enabled. |
Job deleted
This web hook only fires when jobs are deleted from the Greenhouse system. This only happens when a job is closed and then the “Delete” button is clicked from the Job Dashboard.
{"action":"job_deleted","payload":{"job":{“ID”:209256,"name":"Project Manager"}}}
Noteworthy response attributes
Attribute | Note |
id |
The internal Greenhouse Job id |
姓名 |
删除的工作名称 |
Job updated
{"action":“ job_updated”,"payload":{"job":{“ID”:100445,"name":"Assistant Store Manager, NYC","requisition_id":null,"notes":"Looking for the best!<\/p>"
,"confidential":false,"job_post_id":88010,“地位”:"open","created_at":"2015-08-11T23:02:09Z","opened_at":"2015-08-11T23:02:09Z","closed_at":null,"departments":[{“ID”:74,"name":"Guideshops",“external_id":“ex-dept-1"}],"offices":[{“ID”:104,"name":"New York","location":“纽约,纽约”,“external_id":“ex-office-1"}],"hiring_team":{"hiring_managers":[{“用户身份”:1234,“employee_id":“ ABC-123”}],“源”:[],“招聘人员”:[{“用户身份”:2345,“employee_id":null},{“用户身份”:3456,“employee_id":"abc-234"}],"coordinators":[]},“开口”:[{“ID”:1234,"opening_id":"abc-1","custom_fields":[]},{“ID”:1235,"opening_id":"abc-2","custom_fields":[]}],"custom_fields":{“奖金”:{"name":“奖金”,“类型”:“ short_text”,“价值”:null},“雇佣类型”:{"name":"Employment Type",“类型”:"single_select",“价值”:null},"options":{"name":"Options",“类型”:“ short_text”,“价值”:null},"salary":{"name":“薪水”,“类型”:“ short_text”,“价值”:null}}}}}
The Job Updated event is triggered any time one or more of the following fields are changed for a job: Internal Job Name, Department, Office, Level, Open Date, Status, Notes, Team and Responsibilities, and How To Sell This Job. Changes to custom fields on a job will also trigger this web hook.
Attribute | Note |
hiring_team |
Field contains the Greenhouse users responsible for this job. Each field contains the user’s Greenhouse user id and the user’s external employee id from the customer’s system. The employee id will be null if it has not been set in Greenhouse. |
openings |
Field contains all the openings in this job. The custom field element on each opening may be omitted if the organization does not have custom fields on openings enabled. |
Job Approved
{"action":"job_approved","payload":{"approval_flow":{"approval_flow_type":"open_job"},"job":{“ID”:100445,"name":"Assistant Store Manager, NYC","requisition_id":null,"notes":"Looking for the best!<\/p>"
,"confidential":false,"job_post_id":88010,“地位”:"open","created_at":"2015-08-11T23:02:09Z","opened_at":"2015-08-11T23:02:09Z","closed_at":null,"departments":[{“ID”:74,"name":"Guideshops",“external_id":“ex-dept-1"}],"offices":[{“ID”:104,"name":"New York","location":“纽约,纽约”,“external_id":“ex-office-1"}],"hiring_team":{"hiring_managers":[{“用户身份”:1234,“employee_id":“ ABC-123”}],“源”:[],“招聘人员”:[{“用户身份”:2345,“employee_id":null},{“用户身份”:3456,“employee_id":"abc-234"}],"coordinators":[]},“开口”:[{“ID”:1234,"opening_id":"abc-1","custom_fields":[]},{“ID”:1235,"opening_id":"abc-2","custom_fields":[]}],"custom_fields":{“奖金”:{"name":“奖金”,“类型”:“ short_text”,“价值”:null},“雇佣类型”:{"name":"Employment Type",“类型”:"single_select",“价值”:null},"options":{"name":"Options",“类型”:“ short_text”,“价值”:null},"salary":{"name":“薪水”,“类型”:“ short_text”,“价值”:null}}}}}
The Job Approved event is triggered when the final approval is received in a Greenhouse job’s approval flow. “Approvals to start recruiting” will be identified as “approval_flow_type”: “open_job” while “Official job approval” will be identified as “approval_flow_type”: “offer_job”.
创建了职位
This web hook fires when a job post or prospect post is created. This occurs when a new job post or prospect post is added from the job set up.
如果job_id
ispresent in the payload, the payload represents a newjob post。
如果job_id
is notpresent, the payload represents a newprospect post。
{"action":“ job_post_created”,"payload":{“ID”:1815002,“标题”:"A Cool Job","location":“纽约,纽约”,"content":“ 嘿,这是一项整洁的工作。您应该申请!
”,"internal_content":null,"updated_at":“ 2017-10-12T15:06:32.691Z”,“ job_id”:1842002,“外部的”:true,"internal":false,"live":false,"questions":[{“必需的”:false,“私人的”:false,"label":"LinkedIn Profile",“类型”:"input_text","values":[]},{“必需的”:false,“私人的”:false,"label":“网站”,“类型”:"input_text","values":[]},{“必需的”:false,“私人的”:false,"label":“你是怎么听到这项工作的?”,“类型”:"input_text","values":[]}]}}
职位更新
当通过“编辑作业帖子”页面更新工作发布或潜在客户帖子时,此Web挂钩会发射。当作业的实时状态从On到OFF或反之亦然时,它也会开火。
如果job_id
ispresent in the payload, the payload represents an updatedjob post。
如果job_id
is not目前,有效载荷代表更新的prospect post。
{"action":"job_post_updated","payload":{“ID”:1813002,“标题”:"A Cool Job","location":"At a Cool Place","content":"Come work for us!
","internal_content":null,"updated_at":“ 2017-10-12T18:29:08.399Z”,“ job_id”:1842002,“外部的”:true,"internal":false,"live":false,"questions":[{“必需的”:false,“私人的”:false,"label":"LinkedIn Profile",“类型”:"input_text","values":[]},{“必需的”:false,“私人的”:false,"label":“网站”,“类型”:"input_text","values":[]},{“必需的”:false,“私人的”:false,"label":“你是怎么听到这项工作的?”,“类型”:"input_text","values":[]}]}}
Job Post deleted
This web hook fires when a job post or prospect post is deleted. This occurs when the delete link is clicked on a post. Only posts that are not live may be deleted. This will not fire if a job itself is deleted; a job being deleted implies all of its posts have been deleted with them.
如果job_id
ispresent in the payload, the payload represents a deletedjob post。
如果job_id
is not目前,有效载荷代表已删除的prospect post。
{"action":"job_post_deleted","payload":{"job_post":{“ID”:258341,“ job_id”:284999,“标题”:"Software Engineer","location":"Dallas","content":"A pretty interesting job post!
","updated_at":“ 2017-01-19T20:01:53.146Z”,"internal_content":null,"questions":[{“必需的”:false,“私人的”:false,"label":"LinkedIn Profile",“类型”:"input_text","values":[]},{“必需的”:false,“私人的”:false,"label":“网站”,“类型”:"input_text","values":[]},{“必需的”:false,“私人的”:false,"label":“你是怎么听到这项工作的?”,“类型”:"input_text","values":[]},{“必需的”:true,“私人的”:true,"label":"Are you a cool engineer?",“类型”:"multi_value_single_select","values":["Yes","No","As a cucumber"]}],“外部的”:true,"internal":false,"live":false}}}
Job Stage deleted
这个web钩只火灾在面试阶段a job are removed. This occurs when the remove stage link is used in the Job Setup section of the application. This will not fire when a job is deleted. A job being deleted implies all of its stages have been deleted with them.
{"action":“ job_interview_stage_deleted”,"payload":{"job_interview_stage":{“ID”:430608,“ job_id”:60453,"created_at":"2015-03-11T13:25:25.313Z","updated_at":"2016-08-16T09:29:33.650Z","name":"Phone Screen","active":true}}}
Organization Events
Department deleted
This web hook fires when departments are deleted from the Greenhouse system from the Configure » Organization screen. This only happens when the “Remove” button is clicked after clicking the “X” next to an office name.
{"action":"department_deleted","payload":{"department":{“ID”:106,"name":"Creative","child_ids":[23328],"parent_id":5,“external_id":“ex-office-1"}}}
Noteworthy response attributes
Attribute | Note |
id |
部门的温188bet安卓APP室ID |
姓名 |
The name of the department deleted |
child_ids |
Any former child department ids (this includes all descendants); will be [] if empty |
parent_id |
The department’s parent department id; will be null if empty |
Office deleted
当从Configure»组织屏幕上从温室系统中删除办公室时,此Web挂钩会发射。188bet安卓APP仅当单击Office名称旁边的“ X”后,单击“删除”按钮时,才会发生这种情况。
{"action":"office_deleted","payload":{"office":{“ID”:16492,"name":"New York","location":{"name":“纽约,纽约”},"child_ids":[123,456],"parent_id":789,“external_id":“ ex-dep-1”}}}
Noteworthy response attributes
Attribute | Note |
id |
The Greenhouse id for the office |
姓名 |
The name of the office deleted |
location |
The location for the office |
child_ids |
Any former child office ids; will be [] if empty |
parent_id |
The office’s parent office id; will be null if empty |