from kombo import Kombo
from kombo.utils import parse_datetime
with Kombo(
integration_id="workday:HWUTwvyx2wLoSUHphiWVrp28",
api_key="<YOUR_BEARER_TOKEN_HERE>",
) as k_client:
res = k_client.ats.create_candidate(candidate={
"first_name": "Frank",
"last_name": "Doe",
"email_address": "[email protected]",
"company": "Acme Inc.",
"title": "Head of Integrations",
"phone_number": "+1-541-754-3010",
"location": {
"city": "New York",
"country": "US",
"state": "NY",
},
"gender": "MALE",
"availability_date": parse_datetime("2021-01-01T00:00:00Z"),
"salary_expectations": {
"period": "YEAR",
"amount": 100000,
},
"social_links": [
{
"url": "https://www.linkedin.com/in/frank-doe-123456789/",
},
{
"url": "https://twitter.com/frankdoe",
},
],
}, application={
"job_id": "BDpgnpZ148nrGh4mYHNxJBgx",
"stage_id": "8x3YKRDcuRnwShdh96ShBNn1",
}, screening_question_answers=[
{
"question_id": "3phFBNXRweGnDmsU9o2vdPuQ",
"answer": "Yes",
},
{
"question_id": "EYJjhMQT3LtVKXnTbnRT8s6U",
"answer": [
"GUzE666zfyjeoCJX6A8n7wh6",
"5WPHzzKAv8cx97KtHRUV96U8",
"7yZfKGzWigXxxRTygqAfHvyE",
],
},
], attachments=[
{
"name": "Frank Doe CV.txt",
"content_type": "text/plain",
"data": "SGkgdGhlcmUsIEtvbWJvIGlzIGN1cnJlbnRseSBoaXJpbmcgZW5naW5lZXJzIHRoYXQgbG92ZSB0byB3b3JrIG9uIGRldmVsb3BlciBwcm9kdWN0cy4=",
"type": "CV",
},
])
# Handle response
print(res){
"status": "success",
"data": {
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"remote_id": "32",
"first_name": "John",
"last_name": "Doe",
"company": "Acme, Inc.",
"title": "Head of Marketing",
"confidential": false,
"source": "Employee Referral",
"phone_numbers": [
{
"phone_number": "+1-541-754-3010",
"type": "HOME"
}
],
"email_addresses": [
{
"email_address": "[email protected]",
"type": "PRIVATE"
}
],
"social_media": [
{
"link": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"type": "YOUTUBE",
"username": null
}
],
"location": {
"city": "Berlin",
"country": "DE",
"raw": "Berlin, Germany",
"state": "Berlin",
"street_1": "Lohmühlenstraße 65",
"street_2": null,
"zip_code": "12435"
},
"custom_fields": {},
"integration_fields": [],
"remote_url": "https://app.greenhouse.io/people/32",
"remote_created_at": "2022-04-02T00:00:00.000Z",
"remote_updated_at": "2022-04-04T00:00:00.000Z",
"remote_data": null,
"changed_at": "2022-04-04T00:00:00.000Z",
"remote_deleted_at": null,
"applications": [
{
"id": "H77fDF8uvEzGNPRubiz5DvQ7",
"remote_id": "32",
"outcome": "HIRED",
"rejection_reason_name": null,
"rejected_at": null,
"remote_url": "https://app.greenhouse.io/applications/32",
"changed_at": "2022-04-04T00:00:00.000Z",
"remote_created_at": "2022-04-02T00:00:00.000Z",
"remote_updated_at": "2022-04-04T00:00:00.000Z",
"current_stage": {
"id": "5J7L4b48wBfffYwek9Az9pkM",
"name": "Initial Screening",
"remote_id": "32",
"index": 2
},
"job": {
"id": "H5daSm8e85Dmvmne3wLeCPhX",
"name": "Backend Engineer",
"remote_id": "32"
}
}
],
"tags": [
{
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"name": "High Potential",
"remote_id": "32"
}
]
},
"warnings": [
{
"message": "This is an example warning!"
}
]
}Create a new candidate and application for the specified job.
from kombo import Kombo
from kombo.utils import parse_datetime
with Kombo(
integration_id="workday:HWUTwvyx2wLoSUHphiWVrp28",
api_key="<YOUR_BEARER_TOKEN_HERE>",
) as k_client:
res = k_client.ats.create_candidate(candidate={
"first_name": "Frank",
"last_name": "Doe",
"email_address": "[email protected]",
"company": "Acme Inc.",
"title": "Head of Integrations",
"phone_number": "+1-541-754-3010",
"location": {
"city": "New York",
"country": "US",
"state": "NY",
},
"gender": "MALE",
"availability_date": parse_datetime("2021-01-01T00:00:00Z"),
"salary_expectations": {
"period": "YEAR",
"amount": 100000,
},
"social_links": [
{
"url": "https://www.linkedin.com/in/frank-doe-123456789/",
},
{
"url": "https://twitter.com/frankdoe",
},
],
}, application={
"job_id": "BDpgnpZ148nrGh4mYHNxJBgx",
"stage_id": "8x3YKRDcuRnwShdh96ShBNn1",
}, screening_question_answers=[
{
"question_id": "3phFBNXRweGnDmsU9o2vdPuQ",
"answer": "Yes",
},
{
"question_id": "EYJjhMQT3LtVKXnTbnRT8s6U",
"answer": [
"GUzE666zfyjeoCJX6A8n7wh6",
"5WPHzzKAv8cx97KtHRUV96U8",
"7yZfKGzWigXxxRTygqAfHvyE",
],
},
], attachments=[
{
"name": "Frank Doe CV.txt",
"content_type": "text/plain",
"data": "SGkgdGhlcmUsIEtvbWJvIGlzIGN1cnJlbnRseSBoaXJpbmcgZW5naW5lZXJzIHRoYXQgbG92ZSB0byB3b3JrIG9uIGRldmVsb3BlciBwcm9kdWN0cy4=",
"type": "CV",
},
])
# Handle response
print(res){
"status": "success",
"data": {
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"remote_id": "32",
"first_name": "John",
"last_name": "Doe",
"company": "Acme, Inc.",
"title": "Head of Marketing",
"confidential": false,
"source": "Employee Referral",
"phone_numbers": [
{
"phone_number": "+1-541-754-3010",
"type": "HOME"
}
],
"email_addresses": [
{
"email_address": "[email protected]",
"type": "PRIVATE"
}
],
"social_media": [
{
"link": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"type": "YOUTUBE",
"username": null
}
],
"location": {
"city": "Berlin",
"country": "DE",
"raw": "Berlin, Germany",
"state": "Berlin",
"street_1": "Lohmühlenstraße 65",
"street_2": null,
"zip_code": "12435"
},
"custom_fields": {},
"integration_fields": [],
"remote_url": "https://app.greenhouse.io/people/32",
"remote_created_at": "2022-04-02T00:00:00.000Z",
"remote_updated_at": "2022-04-04T00:00:00.000Z",
"remote_data": null,
"changed_at": "2022-04-04T00:00:00.000Z",
"remote_deleted_at": null,
"applications": [
{
"id": "H77fDF8uvEzGNPRubiz5DvQ7",
"remote_id": "32",
"outcome": "HIRED",
"rejection_reason_name": null,
"rejected_at": null,
"remote_url": "https://app.greenhouse.io/applications/32",
"changed_at": "2022-04-04T00:00:00.000Z",
"remote_created_at": "2022-04-02T00:00:00.000Z",
"remote_updated_at": "2022-04-04T00:00:00.000Z",
"current_stage": {
"id": "5J7L4b48wBfffYwek9Az9pkM",
"name": "Initial Screening",
"remote_id": "32",
"index": 2
},
"job": {
"id": "H5daSm8e85Dmvmne3wLeCPhX",
"name": "Backend Engineer",
"remote_id": "32"
}
}
],
"tags": [
{
"id": "26vafvWSRmbhNcxJYqjCzuJg",
"name": "High Potential",
"remote_id": "32"
}
]
},
"warnings": [
{
"message": "This is an example warning!"
}
]
}Supported integrations
{
"candidate": {
"first_name": "Frank",
"last_name": "Doe",
"company": "Acme Inc.",
"title": "Head of Integrations",
"email_address": "[email protected]",
"phone_number": "+1-541-754-3010",
"gender": "MALE",
"salary_expectations": {
"amount": 100000,
"period": "YEAR"
},
"availability_date": "2021-01-01",
"location": {
"city": "New York",
"country": "US",
"state": "NY"
},
"social_links": [
{
"url": "https://www.linkedin.com/in/frank-doe-123456789/"
},
{
"url": "https://twitter.com/frankdoe"
}
]
},
"application": {
"job_id": "BDpgnpZ148nrGh4mYHNxJBgx",
"stage_id": "8x3YKRDcuRnwShdh96ShBNn1"
},
"attachments": [
{
"name": "Frank Doe CV.txt",
"data": "SGkgdGhlcmUsIEtvbWJvIGlzIGN1cnJlbnRseSBoaXJpbmcgZW5naW5lZXJzIHRoYXQgbG92ZSB0byB3b3JrIG9uIGRldmVsb3BlciBwcm9kdWN0cy4=",
"type": "CV",
"content_type": "text/plain"
}
],
"screening_question_answers": [
{
"question_id": "3phFBNXRweGnDmsU9o2vdPuQ",
"answer": "Yes"
},
{
"question_id": "EYJjhMQT3LtVKXnTbnRT8s6U",
"answer": [
"GUzE666zfyjeoCJX6A8n7wh6",
"5WPHzzKAv8cx97KtHRUV96U8",
"7yZfKGzWigXxxRTygqAfHvyE"
]
}
],
"remote_fields": {}
}
ID of the integration you want to interact with.
POST /ats/candidates Request body
Show child attributes
The first name of the candidate.
The last name of the candidate.
The primary email address this application will be created with.
The company where the candidate is currently working.
The current job title of the candidate.
The phone number of the candidate.
The location of the candidate.
Show child attributes
The uppercase two-letter ISO country (e.g., DE). For systems that use codes in formats other than ISO 3166-1 alpha-2, Kombo transforms the ISO Codes to the appropriate value.
The gender of the candidate. Must be one of MALE, FEMALE, or OTHER.
MALE, FEMALE, OTHER The date the candidate is available to start working.
The salary expectations of the applicant. We will automatically convert the amount to a format that is suitable for the ATS you are using. For example, if you are using monthly salary expectations, we will convert the amount to a yearly salary if the ATS expects yearly salary expectations.
Show child attributes
Currently, every candidate has one application. If you are interested in talent pools, please contact Kombo.
Show child attributes
The Kombo ID or Remote ID of the Job this candidate should apply to. If you want to use the ID of the integrated system (remote_id) you need to prefix the ID with "remote:". You can use the remote ID if you do not want to sync jobs.
Stage this candidate should be in. If left out, the default stage for this job will be used.
Array of answers to screening questions. Currently, not all question types are supported, and unsupported ones will not be submitted.
The available questions for a job can be retrieved from the get jobs endpoint. The answers will be validated based on the format of the questions. Make sure to follow this schema to avoid errors.
Show child attributes
ID of the question returned by the Kombo API. We'll report a warning in the logs if the question can't be found on the job.
Answer to a question. This will be validated based on the question format and throw an error if the answer is invalid. Here is a description of each question type and the required answer format:
TEXT - Simply provide a "string" answer.
SINGLE_SELECT - Provide the ID of the answer as a string.
MULTI_SELECT - Provide a string array containing the question IDs of the selected options.
BOOLEAN - Either true or false.
NUMBER - A number.
DATE - Provide the answer as an ISO 8601 date string.
FILE - Please select Option 6 in the dropdown above to see the required format.
An array of the attachments you would like upload.
Show child attributes
File name of the file you want to upload. We recommend providing something human-readable with a valid file extension (like Resume.pdf), as this might be shown in your customer's system.
Type of the attachment in the ATS. This may affect where the uploaded file will be shown in your customer's system.
CV, COVER_LETTER, OTHER Content/MIME type of the file (e.g., application/pdf).
If you provide data, this is required. If you provide data_url, this is optional and we'll attempt to use the Content-Type header of the response.
Note: Please validate that the content type you provide is actually meaningful (and not something generic like application/octet-stream). Especially when using object storage (like AWS S3), it's easy to accidentally discard the content types of user-provided files, so make sure to explicitly persist them when processing uploads from your users (see guides for AWS, Google Cloud, and Azure).
URL to the file you want to upload that can be accessed without authentication headers. We will download the content immediately when receiving the request, so the URL can be short-lived.
If you're using an object storage provider (like AWS S3), we strongly recommend providing a signed URL for secure access (see guides for AWS, Google Cloud, and Azure).
Note: You must provide either this or data_url. We recommend data_url over data for most cases.
Base64-encoded contents of the file you want to upload.
Note: You must provide either this or data_url. We recommend data_url over data for most cases.
(⚠️ Deprecated - Use automatic source writing instead) Optional source information that will be attached to the candidate. If you're a job board or recruiting service, you can use this to make sure your customers can see which candidates came from you.
This is deprecated because writing sources requires users to do some setup in most ATSs.
Credit the recruiter or team member who sourced this candidate.
While the source field tracks the channel/platform (e.g., "Awesome Jobboard"), the sourced_by field tracks the individual person responsible for finding the candidate.
Show child attributes
The Kombo ID or Remote ID of the User. Use the Kombo ID directly, or prefix the remote ID with "remote:" to reference the user by their ID in the remote system.
Optional GDPR consent information required in some jurisdictions (like the Czech Republic or Slovakia).
Additional fields that we will pass through to specific ATS systems.
Show child attributes
Fields specific to SAP SuccessFactors.
Show child attributes
Fields that we will pass through to SuccessFactor's Candidate object.
Fields that we will pass through to SuccessFactor's JobApplication object.
If set to true, we will copy custom attachments from the JobApplication to the Candidate.
When the candidate already exists, whether to update the Candidate with the remote fields found under the Candidate entity.
Show child attributes
Fields that we will pass through to Teamtailor's Candidate object.
Fields specific to Greenhouse. Fields specific to Greenhouse.
Show child attributes
Fields that we will pass through to Greenhouse's Candidate object.
Fields that we will pass through to Greenhouse's Application object.
Headers we will pass with POST requests to Greenhouse.
Show child attributes
ID of the the user that will show up as having performed the action in Greenhouse. We already pass a value by default, but you can use this to override it.
Fields specific to Workable. Workable specific remote fields for ATS actions.
Fields specific to Workday. The remote fields schema follows the documentation at https://community.workday.com/sites/default/files/file-hosting/productionapi/Recruiting/v43.0/Put_Candidate.html. Only defined fields are supported, if you need additional field support please reach out to Kombo support.
Show child attributes
Show child attributes
Show child attributes
The candidate's middle name
Show child attributes
Show child attributes
Show child attributes
x >= -1.7976931348623157e+308x >= -1.7976931348623157e+308Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
YYYY-MM-DDTHH:mm:ss.sssZ
YYYY-MM-DDTHH:mm:ss.sssZ
Show child attributes
Show child attributes
Used to override the automatic source WID.
Fields specific to SmartRecruiters.
Show child attributes
(⚠️ Deprecated - Use the candidate field instead.) Fields that we will pass through to the SmartRecruiters's Candidate object when created with screening question answers. This API is used: https://developers.smartrecruiters.com/reference/createcandidate-1
(⚠️ Deprecated - Use the candidate field instead.) Fields that we will pass through to the SmartRecruiters's Candidate object when created with screening question answers. This API is used: https://developers.smartrecruiters.com/reference/candidatesaddtojob-1
Fields that we will pass through to the SmartRecruiters's Candidate object. This API is used: https://developers.smartrecruiters.com/reference/createcandidate-1
Fields specific to d.vinci.
Show child attributes
Fields that we will pass through to d.vinci's application object. This API is used: https://static.dvinci-easy.com/files/d.vinci%20application-apply-api.html#jobs__id__applyApi_post
Fields specific to GuideCom.
Show child attributes
Fields that we will pass through to HRWorks's Job Application object. This API is used: https://developers.hrworks.de/docs/hrworks-api-v2/53021f035f62d-post-job-applications
Fields specific to Jobylon.
Fields specific to Recruitee.
Show child attributes
Show child attributes
The cover letter text as a string. This will be visible on the main candidate page. Can be provided together with the cover_letter attachment, which will end up in a separate file section.
POST /ats/candidates Positive response
"success"Show child attributes
The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.
First name of the candidate.
Last name of the candidate.
The current company of the candidate.
The current job title of the candidate.
Whether the candidate’s profile is confidential in the ATS.
The hiring source of the candidate. If you're a job board or recruiting service, you can use this to validate which candidates applied through your service and ensure that the correct referral compensation is paid out.
An array of selected passthrough integration fields. Read more
Show child attributes
The globally unique ID of this object.
The key of the field in the remote system.
DEFAULT: static fields in the remote system.CUSTOM: fields that are created/editable by the user.DEFAULT, CUSTOM The label of the field. (not always available)
The field's value.
URL to the candidate profile in the source ATS system. When embedding this in your system, please consider that not for all ATS a dedicated candidate profile URL is available, so you might need to fall back to the application URL.
The date and time the object was created in the remote system.
A timestamp retrieved from the remote system, describing when the resource was last updated.
Includes the data fetched from the remote system. Please be aware that including this in you scope config might violate other scopes that are set.
Remote data always has the endpoint path that we got the data from as the
top level key. For example, it could look like: { "/companies": { ... }}
This is not available on all plans. Reach out to Kombo if you need it.
The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the updated_after parameter which will return records when either the record itself OR its related models have been updated.
The date and time the object was deleted in the remote system. Objects are automatically marked as deleted when Kombo can't retrieve them from the remote system anymore. Kombo will also anonymize entries 14 days after they disappear.
Show child attributes
The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.
Parsed status of the application. If Kombo identifies that the application was accepted and the candidate hired, it will be HIRED. If the application was rejected or the candidate declined, it will be DECLINED. If the application is still in process, it will be PENDING.
Kombo will always try to deliver this information as reliably as possible.
PENDING, HIRED, DECLINED Reason for the rejection of the candidate.
The time that the application was rejected.
URL to the application in the source ATS system. When embedding this in your system, please consider that not for all ATS a dedicated application URL is available, so you might need to fall back to the candidate URL.
The timestamp when this specific record was last modified. This field only updates when properties directly on this record change, NOT when related or nested models change. For filtering that considers nested data changes, use the updated_after parameter which will return records when either the record itself OR its related models have been updated.
The date and time the object was created in the remote system.
A timestamp retrieved from the remote system, describing when the resource was last updated.
Show child attributes
The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
The application stage name. For example, "Initial Screening".
The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.
Show child attributes
The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
Title of the job.
The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.
Show child attributes
The globally unique ID of this object generated by Kombo. We recommend using this as a stable primary key for syncing.
The raw ID of the object in the remote system. We don't recommend using this as a primary key on your side as it might sometimes be compromised of multiple identifiers if a system doesn't provide a clear primary key.
A list of email addresses of the candidate with an optional type. If an email address is invalid, it will be filtered out.
Location of the candidate.
Show child attributes
Contains the ISO2 country code if possible. If not, it contains the original value.
If we have address data, this is filled with the raw address string.
If we can parse the address data, this field contains the first part of the street information.
Was this page helpful?