Skip to main content

GetPartnerTokensResponse

tokens object[]nullable

Array of tokens

  • Array [
  • idstringnullable

    Token ID

    Example: 9fkgh6
    namestringnullable

    Token name

    createdAtdate-timerequired

    Token creation date and time

    Example: 2022-12-21T10:01:11.123
    expiresInint32required

    Token validity period in seconds

    Example: 3600
    expiresAtdate-timerequired

    Token expiry date and time

    Example: 2022-12-21T10:01:11.123
    isRevokedbooleanrequired

    If the value is true, the token has been revoked

    isExpiredbooleanrequired

    If the value is true, the token has expired

    isValidbooleanrequired

    If the value is true, the token is valid

    The token is not valid if it is either revoked or expired. Only valid tokens can be used to access the API.

    scopestringrequired

    Scopes, delimited with space

    Possible values: non-empty

    Example: partner:create user:create
    lastUsedAtdate-timenullable

    Date and time when the token was last used

    Example: 2023-04-21T10:01:11.123
    revokedAtdate-timenullable

    Date and time when the token was revoked

    Example: 2023-04-21T10:01:11.123
  • ]
  • pagination objectnullable

    Pagination info

    pageNumberint32

    Returned page number

    Example: 1
    previousPageReferencestringnullable

    Reference to get the previous page

    nextPageReferencestringnullable

    Reference to get the next page

    previousPageurinullable

    URL of the previous page

    nextPageurinullable

    URL of the next page

    pageSizeint32

    Number of items per page

    Example: 25
    pagesCountint32nullable

    Total number of pages

    Example: 5
    totalCountint32

    Total number of items

    Example: 125
    GetPartnerTokensResponse
    {
    "tokens": [
    {
    "id": "9fkgh6",
    "name": "string",
    "createdAt": "2022-12-21T10:01:11.123",
    "expiresIn": 3600,
    "expiresAt": "2022-12-21T10:01:11.123",
    "isRevoked": true,
    "isExpired": true,
    "isValid": true,
    "scope": "partner:create user:create",
    "lastUsedAt": "2023-04-21T10:01:11.123",
    "revokedAt": "2023-04-21T10:01:11.123"
    }
    ],
    "pagination": {
    "pageNumber": 1,
    "previousPageReference": "string",
    "nextPageReference": "string",
    "previousPage": "string",
    "nextPage": "string",
    "pageSize": 25,
    "pagesCount": 5,
    "totalCount": 125
    }
    }