Download OpenAPI specification:Download
The typical use case for this is to support an externally initiated assessment for a candidate job application. This is often done "inline" with the candidate's application, or asynchronously after the candidate submits their application. This data can then be used for career pathing and employee development in subsequent stages.
The expected sequence of API calls is:
Generate OAuth Token
with the OAuth Client ID and Secret you've been providedGet Assessment Configurations
to determine which configured assessment templates are availableCreate Assessment Order
for a selected Assessment and candidate job applicationGet Assessment Order
to receive the recommendation results and reports, once they are availableLists the assessment templates that are currently registered for your integration. These are configured outside of the API, and represent the different candidate experiences for each role pymetrics is being leveraged for.
Authorization | string Standard Bearer token request, from |
X-Api-Key | string Mandatory API Key that pymetrics will provide |
{- "assessments": [
- {
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "games"
}
]
}
Gets the capability content for an assessment order by its ID.
uuid required | string The Order ID of the candidates order. |
type required | string The Capability Report Type (talent, recruiter, manager). |
Authorization | string Standard Bearer token request, from |
X-Api-Key | string Mandatory API Key that pymetrics will provide |
{- "capabilities": [
- {
- "behaviors_exhibited": [
- [
- "string"
]
], - "description": "string",
- "icon": "string",
- "label": "string",
- "learning_content": [
- {
- "language_code": "string",
- "link": "string",
- "title": "string",
- "type": "string"
}
], - "quintile": "string",
- "ways_to_develop": [
- "string"
], - "ways_to_lead": [
- "string"
]
}
], - "overall_capabilities_alignment": "Low Alignment",
- "title": "string"
}
Gets the factor content for an assessment order by its ID.
uuid required | string The Order ID value from creating the order. |
Authorization | string Standard Bearer token request, from |
X-Api-Key | string Mandatory API Key that pymetrics will provide |
{- "factors": [
- {
- "definition": "string",
- "development_report_factor_content": {
- "maximize_strengths": [
- "string"
], - "opportunities": "string",
- "results": "string",
- "strengths": "string",
- "ways_to_develop": [
- "string"
]
}, - "high_label": "string",
- "low_label": "string",
- "model_directions": [
- {
- "assessment": {
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "games"
}, - "direction": "string"
}
], - "name": "string",
- "quadrant": "string"
}
], - "order": {
- "assessment_id": "9f60a03f-b3de-4b19-9361-0380d9aa1e9e",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "implementation_id": "7df57ffa-1994-4578-a9cc-78886ea4768a",
- "status": "Rejected"
}
}
The response's bearer token must be used in the Authorization
header for any other API request. Tokens are valid for only a period of time.
All requests, with the exception of this one, also require an API Key to be supplied in the X-Api-Key
request header.
pymetrics will supply this along with the OAuth Client ID and Secret.
OAuth2 Client Credentials
client_id required | string (Client Id) OAuth Client ID provided during setup |
client_secret required | string (Client Secret) OAuth Client Secret provided during setup |
grant_type required | string (Grant Type) Usually set to |
scope | string (Scope) This is an optional field. If not specified, the token will be scoped to read write |
{- "client_id": "string",
- "client_secret": "string",
- "grant_type": "string",
- "scope": "string"
}
{- "access_token": "string",
- "expires_in": 0,
- "scope": "string",
- "token_type": "string"
}
Get a list of Assessment Orders by either job application ID and/or candidate ID. At least one of the IDs must be provided.
job_application_id | string Job application ID by which to optionally filter on |
candidate_id | string Candidate ID by which to optionally filter on |
Authorization | string Standard Bearer token request, from |
X-Api-Key | string Mandatory API Key that pymetrics will provide |
{- "orders": [
- {
- "application_id": "string",
- "assessment": {
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "games"
}, - "assessment_id": "9f60a03f-b3de-4b19-9361-0380d9aa1e9e",
- "ats_type": "adp",
- "candidate": {
- "can_replay": true,
- "email": "user@example.com",
- "external_id": "string",
- "first_name": "string",
- "gameplay_completion_date": "string",
- "last_name": "string"
}, - "create_date": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "metadata": { },
- "reports": [
- {
- "create_date": "2019-08-24T14:15:22Z",
- "modify_date": "2019-08-24T14:15:22Z",
- "report_type": "development-report"
}
], - "requisition_id": "string",
- "requisition_title": "string",
- "results": [
- {
- "assessment": {
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "games"
}, - "band": "string",
- "create_date": "2019-08-24T14:15:22Z",
- "description": "string",
- "score": 0
}
], - "status": "Rejected"
}
]
}
Creates an assessment order for a candidate. This represents the transaction for a candidate's job application.
This is an idempotent operation, and may return an existing assessment order. The following inputs constitute the uniqueness criteria:
candidate.email
assessment_id
application_id
Authorization | string Standard Bearer token request, from |
X-Api-Key | string Mandatory API Key that pymetrics will provide |
Candidate, assessment, and job application details
application_id required | string (Application Id) One component of the uniqueness and idempotency criteria. This should relate to your system's job application ID |
assessment_id required | string <uuid> (Assessment Id) One component of the uniqueness and idempotency criteria. Must be one of the |
required | object (MercuryCandidate) |
candidate_redirect_url | string <uri> (Candidate Redirect Url) [ 1 .. 65536 ] characters A URL that redirects candidates back to their respective ATS |
metadata | object (Metadata) List of key-value pairs that will returned in future API responses |
requisition_id | string (Requisition Id) This will be returned in future API responses |
requisition_title | string (Requisition Title) This can be used in email templates if pymetricswill be sending candidates invitation emails. This will be returned in future API responses |
send_email | boolean (Send Email) Default: false If true, pymetrics will send an invitation email to the candidate |
{- "application_id": "string",
- "assessment_id": "9f60a03f-b3de-4b19-9361-0380d9aa1e9e",
- "candidate": {
- "can_replay": true,
- "email": "user@example.com",
- "external_id": "string",
- "first_name": "string",
- "gameplay_completion_date": "string",
- "last_name": "string"
}, - "metadata": { },
- "requisition_id": "string",
- "requisition_title": "string",
- "send_email": false
}
{- "created": true,
- "order": {
- "application_id": "string",
- "assessment": {
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "games"
}, - "assessment_id": "9f60a03f-b3de-4b19-9361-0380d9aa1e9e",
- "ats_type": "adp",
- "candidate": {
- "can_replay": true,
- "email": "user@example.com",
- "external_id": "string",
- "first_name": "string",
- "gameplay_completion_date": "string",
- "last_name": "string"
}, - "create_date": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "metadata": { },
- "reports": [
- {
- "create_date": "2019-08-24T14:15:22Z",
- "modify_date": "2019-08-24T14:15:22Z",
- "report_type": "development-report"
}
], - "requisition_id": "string",
- "requisition_title": "string",
- "results": [
- {
- "assessment": {
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "games"
}, - "band": "string",
- "create_date": "2019-08-24T14:15:22Z",
- "description": "string",
- "score": 0
}
], - "status": "Rejected"
}
}
Get an existing order by ID. It will move from Completed
to Fulfilled
if the order has results.
uuid required | string The Order ID value from creating the order. The create operation is idempotent, based on candidate.email, assessment_id, and application_id |
report | boolean Set to true to optionally force a report to be generated if one does not exist |
Authorization | string Standard Bearer token request, from |
X-Api-Key | string Mandatory API Key that pymetrics will provide |
{- "application_id": "string",
- "assessment": {
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "games"
}, - "assessment_id": "9f60a03f-b3de-4b19-9361-0380d9aa1e9e",
- "ats_type": "adp",
- "candidate": {
- "can_replay": true,
- "email": "user@example.com",
- "external_id": "string",
- "first_name": "string",
- "gameplay_completion_date": "string",
- "last_name": "string"
}, - "create_date": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "metadata": { },
- "reports": [
- {
- "create_date": "2019-08-24T14:15:22Z",
- "modify_date": "2019-08-24T14:15:22Z",
- "report_type": "development-report"
}
], - "requisition_id": "string",
- "requisition_title": "string",
- "results": [
- {
- "assessment": {
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "games"
}, - "band": "string",
- "create_date": "2019-08-24T14:15:22Z",
- "description": "string",
- "score": 0
}
], - "status": "Rejected"
}