Get a staff member
https://zwhwryofdsgmzgqbcghl.supabase.co/functions/v1/api/v1/staff/{id}Requires the org:read scope. See keys and scopes.
Try it
10 requests a minute
Kept in this tab only (sessionStorage), never saved to disk and never put in the code sample. It is sent to CuspFlow's own proxy on this domain, not to a third party.
Confirm the clinic id (optional)
Fill this in and the request is refused unless the key really belongs to that clinic. It guards against pasting the wrong key, not against an attacker: the clinic is already in the key and anyone holding it can read it from whoami.
Path parameters
Query parameters (1)
curl --request GET \
--url 'https://zwhwryofdsgmzgqbcghl.supabase.co/functions/v1/api/v1/staff/{id}' \
--header 'Authorization: Bearer '"$CUSPFLOW_API_KEY" \
--header 'Accept: application/json'Path parameters
idstring<uuid> required | — |
Query parameters
fieldsstring | — |
Responses
{
"data": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"clinic_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"branch_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"working_branch_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"staff_code": "string",
"salutation": "string",
"first_name": "Amina",
"last_name": "Okello",
"...": "…"
}
}401 | Missing, malformed, revoked or expired key. |
403 | Key lacks the `org:read` scope, or the clinic is read-only. |
404 | No such row IN THIS CLINIC. A row belonging to another clinic also returns 404, never 403, so the API never confirms that an id exists elsewhere. |
429 | Rate limited. See Retry-After. |
Every error is application/problem+json and carries a code you can branch on. The full catalogue is in error codes.
Try it
10 requests a minute
Kept in this tab only (sessionStorage), never saved to disk and never put in the code sample. It is sent to CuspFlow's own proxy on this domain, not to a third party.
Confirm the clinic id (optional)
Fill this in and the request is refused unless the key really belongs to that clinic. It guards against pasting the wrong key, not against an attacker: the clinic is already in the key and anyone holding it can read it from whoami.
Path parameters
Query parameters (1)
curl --request GET \
--url 'https://zwhwryofdsgmzgqbcghl.supabase.co/functions/v1/api/v1/staff/{id}' \
--header 'Authorization: Bearer '"$CUSPFLOW_API_KEY" \
--header 'Accept: application/json'