Canary Speech

GetSubject

GET - /v3/api/subject
Required Permissions:
  • scope:api

Description

Fetches metadata associated with a specified subject.

Headers

Header KeyDescriptionExample
Authorization
The Authorization header for this endpoint. The value must be the token from the /v3/auth/tokens/get endpoint and given using the Bearer pattern.
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdW...
Content-Type
The content type for this request.
application/json

Query Parameters

NameTypeDescription
idstring
The ID of the subject to query.

Successful Response

A successful response

Field NameTypeDescription
iduuid
The ID of the subject.
namestring
The name of the subject.
subjectGroupIds
array<string>
A list of groups that this subject belongs to, if any.
identityobject
The identity object for the subject.
dateCreateddate-time
The ISO-8601 timestamp of when this subject was added.
dateRetireddate-time
The ISO-8601 timestamp of when this subject was retired.

Code Example

Models

identity

The identity object for the subject.

NameTypeDescription
firstNamestring
The first name of the subject.
middleNamestring
The middle name of the subject.
lastNamestring
The last name of the subject.
prefixstring
A prefix for this subject. (e.g. Mr., Mrs., etc.)
suffixstring
A suffix for this subject. (e.g. Sr., Jr., etc.)
aliasstring
An alternate identifier for this subject.
dateOfBirthstring
The date of birth for this subject.
contactobject

identity.contact

NameTypeDescription
emailstring
The email of this subject.
phoneNumberstring
The phone number of this subject.