User Api Tokens

GET /user_api_tokens

A +User Api Token+ is a user access generated token

Examples

##

Request

GET /user_api_tokens
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X GET /user_api_tokens
    

Response

Status

200

Response Type

hydra:Collection

Example Body

{
  "@type": "hydra:Collection",
  "@context": "/contexts/hydra:Collection.jsonld",
  "id": "/user_api_tokens",
  "members": [
    {
      "@type": "UserApiToken",
      "@context": "/contexts/UserApiToken.jsonld",
      "id": "/user_api_tokens/BYoaNE",
      "accessToken": null,
      "description": "API token for ABC",
      "createdAt": "2019-07-10T18:00:22.730257Z"
    },
    {
      "@type": "UserApiToken",
      "@context": "/contexts/UserApiToken.jsonld",
      "id": "/user_api_tokens/JYnGLo",
      "accessToken": null,
      "description": "API token for XYZ",
      "createdAt": "2019-07-10T18:00:22.730257Z"
    }
  ],
  "totalItems": 2
}

Table of contents


© 2024 TextUs