Candidates Candidates represents an individual that exists in a candidate pool. It may or may not have an association with a nomination
Relationships:
Job to Candidates has no direct relationship; Candidate relationships are through nominations
Create a Candidate
POST
https://endorsed.ai/api/v1/candidates
Creates a new Candidate and returns the Candidate's UUID id.
Name Type Description Authorization header containing the Bearer Access Token from the /auth/tokens
endpoint. Example: Bearer <ACCESS_TOKEN>
Must be application/json
. If not set, defaults to application/json
Request Body
Name Type Description The first name of the candidate
The last name of the candidate
The current title of the candidate
The current company name of the candidate
The current location of the candidate
List of phone numbers for the candidate. Empty array is allowed
String representing a candidate phone number
Type of the candidate phone number:
home
,
work
,
mobile
, or
other
.
List of email addresses for the candidate. Empty array is allowed
email_addresses[*].value*
String representing the candidate email address
Type of the candidate email address:
personal
or
work
List of personal links for the candidate. Empty array is allowed
String represnting the candidate's url links
Type of the candidate url link:
personal
,
portfolio
,
blog
,
social_media
,
linkedin
, or
github
The
id
of the candidate from the originating system
201 Successfully created 401 Unauthorized 500: Internal Server Error
Copy {
"is_error" : false ,
"result" : {
"id" : "b8c76214-d518-4d69-9aab-77b0166696d2"
}
}
Copy {
"is_error" : true ,
"error" : {
"code" : "UNAUTHENTICATED" ,
"issues" : [
{
"message" : "Resource requires authentication. Please provide a valid access token."
}
]
}
}
Copy {
"is_error" : true ,
"error" : {
"code" : "INTERNAL_SERVER_ERROR" ,
"issues" : [
{
"message": "An unexpected error occurred on our end. Please try again later, and if the problem persists, contact our support team"
}
]
}
}
Examples:
cURL
Copy curl -X POST "${BASE_URL}/api/v1/candidates" \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-d '{
"first_name": "John",
"last_name": "Doe",
"title": "Software Engineer",
"company_name": "Tech Corp",
"location": "San Francisco, CA",
"phone_numbers": [
{
"value": "123-456-7890",
"type": "mobile"
},
{
"value": "098-765-4321",
"type": "work"
}
],
"email_addresses": [
{
"value": "john.doe@example.com",
"type": "work"
},
{
"value": "johndoe@gmail.com",
"type": "personal"
}
],
"links": [
{
"value": "https://www.johndoe.com",
"type": "personal"
},
{
"value": "https://github.com/johndoe",
"type": "github"
},
{
"value": "https://www.linkedin.com/in/johndoe",
"type": "linkedin"
}
],
"remote_id": "remote-id_from-originating-system"
}'
Get an existing candidate
GET
https://endorsed.ai/api/v1/candidates/{id}
Get an existing candidate by it's UUID id or by it's remote id. Remote ids MUST be structured by remote.<id>
.
Path Parameters
Name Type Description Authorization header containing the Bearer Access Token from the /auth/tokens
endpoint. Example: Bearer <ACCESS_TOKEN>
200 Successfully fetched 401 Unauthorized 403: Forbidden Permission denied 404: Not Found 500: Internal Server Error
Copy {
"is_error" : false ,
"result" : {
"id" : "b8c76214-d518-4d69-9aab-77b0166696d2" ,
"first_name" : "Bob" ,
"last_name" : "Smith" ,
"title" : "Software Engineer" ,
"company_name" : "Google" ,
"location" : "San Francisco, CA" ,
"phone_numbers" : [
{
"value" : "123-456-7890" ,
"type" : "mobile"
}
] ,
"email_addresses" : [
{
"value" : "hello@google.com" ,
"type" : "personal"
}
] ,
"links" : [
{
"value" : "https://www.linkedin.com/in/ryanroslansky/" ,
"type" : "linkedin"
}
] ,
"remote_id" : "27bac5c5-7447-4714-8696-0aa2fbc78ffa" ,
"created_at" : "2023-09-25T22:06:01.000Z" ,
"modified_at" : "2023-09-25T22:06:01.000Z"
}
}
Copy {
"is_error" : true ,
"error" : {
"code" : "UNAUTHENTICATED" ,
"issues" : [
{
"message" : "Resource requires authentication. Please provide a valid access token."
}
]
}
}
Copy {
"is_error" : true ,
"error" : {
"code" : "FORBIDDEN" ,
"issues" : [
{
"message" : "Access to this resource is not authorized."
}
]
}
}
Copy {
"is_error" : true ,
"error" : {
"code" : "NOT_FOUND" ,
"issues" : [
{
"message" : "This resource entity does not exist."
}
]
}
}
Copy {
"is_error" : true ,
"error" : {
"code" : "INTERNAL_SERVER_ERROR" ,
"issues" : [
{
"message": "An unexpected error occurred on our end. Please try again later, and if the problem persists, contact our support team"
}
]
}
}
Examples:
cURL with Endorsed Id cURL with Remote Id
Copy curl -X GET "${BASE_URL}/api/v1/candidates/b13dc10a-78de-4213-b7d8-2e01c4b2c589" \
-H "Authorization: Bearer ${ACCESS_TOKEN}"
Copy curl -X GET "${BASE_URL}/api/v1/candidates/remote.73Yfih1Z9F21OYDUqrNL8" \
-H "Authorization: Bearer ${ACCESS_TOKEN}"
Update an existing Candidate
PUT
https://endorsed.ai/api/v1/candidates/{id}
Updates an existing Candidate by it's UUID id.
Name Type Description Authorization header containing the Bearer Access Token from the /auth/tokens
endpoint. Example: Bearer <ACCESS_TOKEN>
Must be application/json
. If not set, defaults to application/json
Request Body
Name Type Description The first name of the candidate
The last name of the candidate
The current title of the candidate
The current company name of the candidate
The current location of the candidate
List of phone numbers for the candidate
String representing a candidate phone number
Type of the candidate phone number:
home
,
work
,
mobile
, or
other
.
List of email addresses for the candidate
email_addresses[*].value*
String representing the candidate email address
Type of the candidate email address:
personal
or
work
List of personal links for the candidate
String represnting the candidate's url links
Type of the candidate url link:
personal
,
portfolio
,
blog
,
social_media
,
linkedin
, or
github
200 Successfully updated 401 Unauthorized 403: Forbidden Permission denied 404: Not Found 500: Internal Server Error
Copy {
"is_error" : false ,
"result" : {
"id" : "b8c76214-d518-4d69-9aab-77b0166696d2"
}
}
Copy {
"is_error" : true ,
"error" : {
"code" : "UNAUTHENTICATED" ,
"issues" : [
{
"message" : "Resource requires authentication. Please provide a valid access token."
}
]
}
}
Copy {
"is_error" : true ,
"error" : {
"code" : "FORBIDDEN" ,
"issues" : [
{
"message" : "Access to this resource is not authorized."
}
]
}
}
Copy {
"is_error" : true ,
"error" : {
"code" : "NOT_FOUND" ,
"issues" : [
{
"message" : "This resource entity does not exist."
}
]
}
}
Copy {
"is_error" : true ,
"error" : {
"code" : "INTERNAL_SERVER_ERROR" ,
"issues" : [
{
"message": "An unexpected error occurred on our end. Please try again later, and if the problem persists, contact our support team"
}
]
}
}
Examples:
cURL
Copy curl -X PUT "${BASE_URL}/api/v1/candidates/b13dc10a-78de-4213-b7d8-2e01c4b2c589" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-d '{
"first_name": "Jane",
"last_name": "Smith",
"title": "Senior Software Engineer",
"company_name": "Updated Tech Corp",
"location": "New York, NY",
"phone_numbers": [
{
"value": "987-654-3210",
"type": "home"
}
],
"email_addresses": [
{
"value": "jane.smith.updated@example.com",
"type": "work"
}
],
"links": [
{
"value": "https://www.janesmith-portfolio.com",
"type": "portfolio"
},
{
"value": "https://blob.janesmith.com",
"type": "blog"
},
{
"value": "https://instagram.com/janesmith",
"type": "social_media"
}
]
}'
Last updated 8 months ago