GET https://api.ap1.datadoghq.com/api/v2/user_authorized_clients/{user_authorized_client_id}https://api.ap2.datadoghq.com/api/v2/user_authorized_clients/{user_authorized_client_id}https://api.datadoghq.eu/api/v2/user_authorized_clients/{user_authorized_client_id}https://api.ddog-gov.com/api/v2/user_authorized_clients/{user_authorized_client_id}https://api.us2.ddog-gov.com/api/v2/user_authorized_clients/{user_authorized_client_id}https://api.uk1.datadoghq.com/api/v2/user_authorized_clients/{user_authorized_client_id}https://api.datadoghq.com/api/v2/user_authorized_clients/{user_authorized_client_id}https://api.us3.datadoghq.com/api/v2/user_authorized_clients/{user_authorized_client_id}https://api.us5.datadoghq.com/api/v2/user_authorized_clients/{user_authorized_client_id}
Overview
Get a single OAuth2 client authorization for the current user.
OAuth apps require the built_in_features authorization scope to access this endpoint.
Arguments
Path Parameters
user_authorized_client_id [required]
The ID of the user authorized client.
Response
OK
Response containing a single user authorized client.
Expand All
Data object representing a user authorized client.
Attributes of a user authorized client.
The date and time this authorization was created.
Whether the user has disabled this authorization.
last_exercised [required]
The date and time this authorization was last exercised.
The date and time this authorization was last modified.
Whether the organization has disabled this authorization.
The unique identifier of the user authorized client.
Relationships for a user authorized client.
Relationship to the OAuth2 client that was authorized.
Data identifying the OAuth2 client that was authorized.
The ID of the OAuth2 client.
OAuth2 client resource type.
Allowed enum values: oauth2_clients
Relationship to the scopes granted to the OAuth2 client.
List of scope relationship data objects.
The identifier of the scope.
Scope resource type.
Allowed enum values: scopes
Relationship to the user who granted this authorization.
Data identifying the user who granted this authorization.
User resource type.
Allowed enum values: users
The resource type for user authorized clients.
Allowed enum values: user_authorized_clients
{
"data": {
"attributes": {
"created_at": "2024-01-10T08:00:00+00:00",
"disabled": false,
"last_exercised": "2024-01-15T10:30:00+00:00",
"modified_at": "2024-01-10T08:00:00+00:00",
"org_disabled": false
},
"id": "00000000-0000-0000-0000-000000000001",
"relationships": {
"oauth2_client": {
"data": {
"id": "00000000-0000-0000-0000-000000000010",
"type": "oauth2_clients"
}
},
"scopes": {
"data": [
{
"id": "example_scope",
"type": "scopes"
}
]
},
"user": {
"data": {
"id": "00000000-0000-9999-0000-000000000001",
"type": "users"
}
}
},
"type": "user_authorized_clients"
}
}
Authentication error
API error response.
Expand All
A human-readable explanation specific to this occurrence of the error.
Non-standard meta-information about the error
References to the source of the error.
A string indicating the name of a single request header which caused the error.
A string indicating which URI query parameter caused the error.
A JSON pointer to the value in the request document that caused the error.
Status code of the response.
Short human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}
Not Found
API error response.
Expand All
A human-readable explanation specific to this occurrence of the error.
Non-standard meta-information about the error
References to the source of the error.
A string indicating the name of a single request header which caused the error.
A string indicating which URI query parameter caused the error.
A JSON pointer to the value in the request document that caused the error.
Status code of the response.
Short human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}
Too many requests
{
"errors": [
"Bad Request"
]
}
Code Example
# Path parameters
export user_authorized_client_id="00000000-0000-0000-0000-000000000001"
# Curl command
curl -X GET "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.us2.ddog-gov.com"https://api.uk1.datadoghq.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/user_authorized_clients/${user_authorized_client_id}" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}"