Skip to content
Last updated

Quickstart

Make your first successful Dyflexis API call in five minutes.

What you need

  • An API key. Issued by Dyflexis when you become a partner; during development you receive a key for your dedicated sandbox tenant. Keys are sent in the Authorization header with the Token prefix.
  • A system name. The tenant identifier of the Dyflexis environment you are calling, it is the first path segment of every URL (https://app.dyflexis.com/{systemName}/...). The customer (or your sandbox welcome mail) provides this value.
  • A scope that matches the endpoint. Every operation in the API reference lists the scope it requires. The call below works with the external_employees or clock scope.

Your first call

List the offices on the tenant:

curl 'https://app.dyflexis.com/{systemName}/api2/offices' \
  -H 'Accept: application/json' \
  -H 'Authorization: Token YOUR_AUTH_TOKEN'

Replace {systemName} with your tenant's system name and YOUR_AUTH_TOKEN with your API key.

A successful response returns 200 OK:

{
  "offices": [
    {
      "id": 1,
      "name": "Harborview Grand Hotel"
    }
  ]
}

If it didn't work

ResponseCauseFix
401 UnauthorizedMissing or malformed Authorization headerSend Authorization: Token YOUR_AUTH_TOKEN, the Token prefix is part of the header value
403 ForbiddenYour key does not include the required scopeAsk Dyflexis to enable the scope on your key
404 Not FoundWrong system name in the URLVerify the tenant identifier with the customer

Next steps

  • Pick the integration shape that matches your product in Use cases.
  • Browse the API reference for the resources you need, every operation lists its scope, request and response schemas, and ready-made code samples.
  • Receiving events instead of polling? See the Webhooks guide.