Authentication
Create Token
POST
/auth/v1/method/token
{
"authentication": {
"createdAt": "string",
"expiresAt": "string",
"id": "string",
"metadata": "object",
"method": "METHOD_NONE",
"updatedAt": "string"
},
"clientToken": "string"
}
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
Authorizationheaderrequired
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
descriptionrequired
string
expiresAt
string
namerequired
string
Response
200 - application/json
authenticationrequired
object
clientTokenrequired
string
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>"
}'
{
"authentication": {
"createdAt": "string",
"expiresAt": "string",
"id": "string",
"metadata": "object",
"method": "METHOD_NONE",
"updatedAt": "string"
},
"clientToken": "string"
}