Skip to content

Read one person, e.g. the one an event names

GET
/v1/integration-api/people/{id}
curl --request GET \
--url https://api.academy.example.com/v1/integration-api/people/example \
--header 'Authorization: Bearer <token>'

Versioned integration contract.

id
required
string

Success

Media typeapplication/json
object
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
name
required
string
email
required
string
status
required
string
Allowed values: active inactive
department
required
string | null
managerId
required
Any of:
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
employeeNumber
required
string | null
joinedAt
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/

Example

{
"id": "6f1c2a10-0000-4000-8000-0000000000a1",
"name": "Ada Lovelace",
"email": "ada@example.com",
"status": "active",
"department": "Research",
"managerId": "6f1c2a10-0000-4000-8000-0000000000a2",
"employeeNumber": "E-1042",
"joinedAt": null
}

Error; error and message identify the reason

Media typeapplication/json
object
error
required

Stable code, e.g. insufficient_scope, not_found, validation_failed

string
message
string

Example generated

{
"error": "example",
"message": "example"
}