Menu

API Token

The API token can be retrieved by calling the token endpoint.
To call any /token endpoints, you need to use a JWT token for authorization.

POST https://api-staging-v2.logyx.it/v1/tokens

When created it can be set in the header as the example below.
Authorization: Bearer {API Token}

Body


name required

expires_at Optional

Example

{
  "name": "string",
  "expires_at": "string"
}

Response

{
    "code": 201,
    "message": "Created",
    "data": {
      "id": "integer",
      "name": "string",
      "created_at": "string",
      "expires_at": "string"
    },
    "links": {},
    "errors": []
}

Possible responses


201 Created; created new API token.

403 Unauthorized. The request conflicts with (an) existing resource(s)

409 The request conflicts with (an) existing resource(s)

Menu