For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/api/latest/user-authorized-clients/list-user-authorized-clients.md. A documentation index is available at /llms.txt.

List user authorized clients

GET https://api.ap1.datadoghq.com/api/v2/user_authorized_clientshttps://api.ap2.datadoghq.com/api/v2/user_authorized_clientshttps://api.datadoghq.eu/api/v2/user_authorized_clientshttps://api.ddog-gov.com/api/v2/user_authorized_clientshttps://api.us2.ddog-gov.com/api/v2/user_authorized_clientshttps://api.uk1.datadoghq.com/api/v2/user_authorized_clientshttps://api.datadoghq.com/api/v2/user_authorized_clientshttps://api.us3.datadoghq.com/api/v2/user_authorized_clientshttps://api.us5.datadoghq.com/api/v2/user_authorized_clients

Overview

Get a list of all OAuth2 clients authorized by the current user.

OAuth apps require the built_in_features authorization scope to access this endpoint.

Arguments

Query Strings

Name

Type

Description

page[size]

integer

Size for a given page. The maximum allowed value is 100.

page[number]

integer

Specific page number to return.

filter

string

Filter results by client name, app title, or app description.

filter[disabled]

string

Filter results by the user-level disabled status.

include

string

Comma-separated list of related resources to include. Options: oauth2_client, oauth2_client.app.

Response

OK

Response containing a list of user authorized clients.

Expand All

Field

Type

Description

data [required]

[object]

List of user authorized client data objects.

attributes [required]

object

Attributes of a user authorized client.

created_at [required]

date-time

The date and time this authorization was created.

disabled [required]

boolean

Whether the user has disabled this authorization.

last_exercised [required]

date-time

The date and time this authorization was last exercised.

modified_at [required]

date-time

The date and time this authorization was last modified.

org_disabled [required]

boolean

Whether the organization has disabled this authorization.

id [required]

string

The unique identifier of the user authorized client.

relationships [required]

object

Relationships for a user authorized client.

oauth2_client [required]

object

Relationship to the OAuth2 client that was authorized.

data [required]

object

Data identifying the OAuth2 client that was authorized.

id [required]

string

The ID of the OAuth2 client.

type [required]

enum

OAuth2 client resource type. Allowed enum values: oauth2_clients

scopes [required]

object

Relationship to the scopes granted to the OAuth2 client.

data [required]

[object]

List of scope relationship data objects.

id [required]

string

The identifier of the scope.

type [required]

enum

Scope resource type. Allowed enum values: scopes

user [required]

object

Relationship to the user who granted this authorization.

data [required]

object

Data identifying the user who granted this authorization.

id [required]

string

The ID of the user.

type [required]

enum

User resource type. Allowed enum values: users

type [required]

enum

The resource type for user authorized clients. Allowed enum values: user_authorized_clients

meta [required]

object

Object describing meta attributes of response.

page

object

Pagination object.

total_count

int64

Total count.

total_filtered_count

int64

Total count of elements matched by the filter.

{
  "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"
    }
  ],
  "meta": {
    "page": {
      "total_count": "integer",
      "total_filtered_count": "integer"
    }
  }
}

Authentication error

API error response.

Expand All

Field

Type

Description

errors [required]

[object]

A list of errors.

detail

string

A human-readable explanation specific to this occurrence of the error.

meta

object

Non-standard meta-information about the error

source

object

References to the source of the error.

header

string

A string indicating the name of a single request header which caused the error.

parameter

string

A string indicating which URI query parameter caused the error.

pointer

string

A JSON pointer to the value in the request document that caused the error.

status

string

Status code of the response.

title

string

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

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Code Example

                  # 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" \ -H "Accept: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}"