SkillHub
Referenceauth

Create an API token

POST
/auth/tokens

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/auth/tokens" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "scopes": [      "read"    ]  }'
{  "token": "string",  "info": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "prefix": "stringstring",    "scopes": [      "read"    ],    "registryId": "771eb7a3-9cd7-46d3-86da-9e7e93b08f17",    "lastUsedAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "revokedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z"  }}