Fetch the canonical intent record
curl --request GET \
--url https://sandbox.composer.id/v1/intent/{intent_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.composer.id/v1/intent/{intent_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.composer.id/v1/intent/{intent_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"intent_id": "<string>",
"intent_version": 2,
"state": "draft",
"created_at": "2023-11-07T05:31:56Z",
"payload": {
"diagnostics": {
"assessment_id": "<string>",
"scored": true,
"scores": [
{
"dimension": "<string>",
"value": 123,
"weight": 0.5
}
],
"answers": [
{
"question_id": "<string>",
"value": "<unknown>",
"label": "<string>"
}
],
"ranked_outcomes": [
{
"outcome": "contingent",
"score": 123,
"proportion": 0.5
}
],
"override_event": {
"reason": "<string>",
"actor": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"completed_at": "2023-11-07T05:31:56Z"
},
"routing": {
"role_title": "<string>",
"worker_type": "contingent",
"location": {
"country": "<string>",
"state": "<string>",
"city": "<string>",
"postal_code": "<string>",
"remote": true
},
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"description": "<string>",
"skills": [
"<string>"
],
"headcount": 1,
"destination": {
"provider": "<string>",
"object_type": "<string>",
"tenant_id": "<string>"
}
},
"admin": {
"cost_center": "<string>",
"budget": {
"max_bill_rate": 123,
"currency": "<string>",
"total_budget": 123
},
"approvals": [
{
"approver": "<string>",
"status": "pending",
"at": "2023-11-07T05:31:56Z"
}
],
"department": "<string>",
"business_unit": "<string>",
"project_code": "<string>",
"requester": {
"name": "<string>",
"email": "jsmith@example.com"
},
"hiring_manager": {
"name": "<string>",
"email": "jsmith@example.com"
}
}
},
"publishing": {
"receipts": [
"<unknown>"
],
"current_external_id": "<string>",
"current_idempotency_key": "<string>",
"adapter_status": "pending"
},
"defence_file_ref": "<string>",
"override_event": {
"reason": "<string>",
"actor": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Fetch the canonical intent record
GET
/
intent
/
{intent_id}
Fetch the canonical intent record
curl --request GET \
--url https://sandbox.composer.id/v1/intent/{intent_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.composer.id/v1/intent/{intent_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.composer.id/v1/intent/{intent_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"intent_id": "<string>",
"intent_version": 2,
"state": "draft",
"created_at": "2023-11-07T05:31:56Z",
"payload": {
"diagnostics": {
"assessment_id": "<string>",
"scored": true,
"scores": [
{
"dimension": "<string>",
"value": 123,
"weight": 0.5
}
],
"answers": [
{
"question_id": "<string>",
"value": "<unknown>",
"label": "<string>"
}
],
"ranked_outcomes": [
{
"outcome": "contingent",
"score": 123,
"proportion": 0.5
}
],
"override_event": {
"reason": "<string>",
"actor": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"completed_at": "2023-11-07T05:31:56Z"
},
"routing": {
"role_title": "<string>",
"worker_type": "contingent",
"location": {
"country": "<string>",
"state": "<string>",
"city": "<string>",
"postal_code": "<string>",
"remote": true
},
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"description": "<string>",
"skills": [
"<string>"
],
"headcount": 1,
"destination": {
"provider": "<string>",
"object_type": "<string>",
"tenant_id": "<string>"
}
},
"admin": {
"cost_center": "<string>",
"budget": {
"max_bill_rate": 123,
"currency": "<string>",
"total_budget": 123
},
"approvals": [
{
"approver": "<string>",
"status": "pending",
"at": "2023-11-07T05:31:56Z"
}
],
"department": "<string>",
"business_unit": "<string>",
"project_code": "<string>",
"requester": {
"name": "<string>",
"email": "jsmith@example.com"
},
"hiring_manager": {
"name": "<string>",
"email": "jsmith@example.com"
}
}
},
"publishing": {
"receipts": [
"<unknown>"
],
"current_external_id": "<string>",
"current_idempotency_key": "<string>",
"adapter_status": "pending"
},
"defence_file_ref": "<string>",
"override_event": {
"reason": "<string>",
"actor": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
oauth2bearerAuth
Path Parameters
The Intent ID minted by POST /intent. Minted at the decision and carried unchanged into every destination record. Fits a 64-character client-supplied id field, which is how the same id finds the record in either direction.
Pattern:
^[A-Za-z0-9_-]{10,64}$Example:
"itn_7f3aK2mQ9xLp"
Response
OK
Canonical system-of-engagement record keyed by intent_id.