HomeGuides

Authentication

You can authenticate with the GraphQL API using the same Bearer token as with our REST API, for example:

curl -X POST https://partners.payitoff.io/api/graphql \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-type: application/json" \
  -d '{"query": "query {consumer(uuid: \"8397ccfc-af02-4e0b-94b1-1fd9a2eee62f\") {firstName lastName debts{uuid balance}}}"}'