POST
/
v1
/
businesses
/
{businessId}
/
auth-token
curl --request POST \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/auth-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "session_duration": "3600"
}'
{
  "access_token": "eyJraWQiOiJaM1BNWbkhFakeAccessTokenKMGExb0ppUm5sRStlbytI6ImFjY2VzcyIsInNjb3BlIjoiaHR0cHM6XC9cLN5-TG3ktXvNe5B9hU9rQgZQ",
  "expires_in": "12345",
  "token_type": "Bearer"
}

Authorizations

Authorization
string
header
required

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

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to create a business-scoped auth token for

Body

application/json

Response

200
application/json

The response is of type object.