Authentication

Send your API key as a bearer token.

curl https://api.swyp.be/orders \
  -H "Authorization: Bearer $SWYP_API_KEY"

Keys start with swyp_. Call the API from your server, and never put the key in an app or a code repository.

Group keys

A key can cover several practices. If yours does, send the practice's ID on every request. Swyp gives you the IDs with the key.

curl https://api.swyp.be/orders \
  -H "Authorization: Bearer $SWYP_API_KEY" \
  -H "X-Practice-Id: 3f2b8c1e-5a47-4d0b-9e6f-1c2d3e4f5a6b"

Rate limit

60 requests per minute, per key and practice. Above that, the API responds 429 with a Retry-After header in seconds.

Replacing a key

A practice can have several keys at once. Ask Swyp for a new key, switch your system over, then have the old one revoked. Keys don't expire on their own.

Was this page helpful?

Last updated on

On this page