TuxoPay Docs
APIAuthentication

Create team API token

There's no need and we discourage using this endpoint if you have manually generated an API Token.

Create a new API token programatically for a specific team. The user must belong to the team.

POST
/auth/token
emailstring
Formatemail
passwordstring
token_namestring
team_idinteger
abilities?array<string>

Response Body

curl -X POST "https://orchestrator.tuxopay.com/api/auth/token" \  -H "Content-Type: application/json" \  -d '{    "email": "[email protected]",    "password": "password",    "token_name": "Mobile App",    "team_id": 1  }'
{
  "token": "1|plaintext-token-here",
  "team": {
    "id": 1,
    "name": "My Company"
  },
  "user": {
    "id": 1,
    "name": "John Doe",
    "email": "[email protected]"
  },
  "abilities": [
    "string"
  ]
}
{
  "message": "string",
  "errors": {}
}