POST
/
auth
/
v1
/
method
/
token
curl --request POST \
  --url https://try.flipt.io/auth/v1/method/token \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer <token>' \
  --data '{
  "description": "<description>",
  "name": "<name>"
}'
{
  "clientToken": "<string>",
  "authentication": {
    "id": "<string>",
    "method": "METHOD_NONE",
    "expiresAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "metadata": {}
  }
}
curl --request POST \
  --url https://try.flipt.io/auth/v1/method/token \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer <token>' \
  --data '{
  "description": "<description>",
  "name": "<name>"
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
description
string
expiresAt
string
namespaceKey
string
metadata
object

Response

200 - application/json
OK
clientToken
string
authentication
object