Skip to main content
POST
Create an API token

Authorizations

X-Auth-Token
string
header
required

FlowPayroll JWT (raw token, no Bearer prefix)

Headers

Idempotency-Key
string

Your own key for this create, so a retry after a lost response finds what the first attempt made instead of making a second one. Any unique string up to 255 characters; a UUID is the usual choice. Send the same value on every retry of the same request, and a new value for a new one — reusing a key for a different body answers 409 idempotency_key_reused. Keys are remembered for 24 hours. Optional, and a request without one simply has no replay protection.

Maximum string length: 255

Body

application/json

Issues a new API token (client credential) for your account.

name
string | null

Required. A display name, unique within your account.

organisationIds
string[] | null

The organisations the token reaches. State exactly one of this and allOrganisations.

allOrganisations
boolean

Give the credential access to every organisation the account owns, including ones added later, instead of the ones named in organisationIds. State exactly one of the two. This is the widest grant this API makes, so only somebody who already holds account-wide access may ask for it.

Response

OK

message
object
content
object
validationIssues
object[] | null