Browse the docs ▾

Credentials API

Read licenses and certifications, and add or update them. GET /api/v1/credentials, POST /api/v1/credentials, PATCH /api/v1/credentials/{id}.

Generated from the app's endpoint listView as Markdown

3 operations. Each needs an API key with the permission shown; see API keys and permissions.

OperationPermission
GET /api/v1/credentialscredentials:read
POST /api/v1/credentialscredentials:write
PATCH /api/v1/credentials/{id}credentials:write

#GET /api/v1/credentials

Licenses and certifications by person. License numbers are never returned.

  • Permission: credentials:read
  • Returns: a page of records: { data, hasMore, nextCursor }, status 200

Query parameters (all optional)

NameDescription
providerIdOnly this person.
statuscurrent, expiring_soon, expired or missing.
typeA credential type, such as license.
expiresBeforeExpiring before this date (YYYY-MM-DD).
limitRows per page, 1 to 200. Default 50.
cursorThe nextCursor value from the previous page.

Fields in each record: id, providerId, type, state, facilityId, status, expiresAt

curl "https://app.staffedly.com/api/v1/credentials?limit=50" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY"

#POST /api/v1/credentials

Add a license or certification to a person.

  • Permission: credentials:write
  • Returns: one record: { data }, status 201
  • Safe retry: send an Idempotency-Key header (8 to 128 characters); the same key with the same request returns the first answer again

Body fields (JSON; a field the API does not know is refused)

FieldDescription
providerIdRequired.
typeRequired. One of your credential types, such as license.
stateTwo letters.
facilityIdRequired for facility_privilege.
expiresAtYYYY-MM-DD.
identifierThe license number. Stored encrypted, never returned.

Fields in each record: id, providerId, type, state, facilityId, status, expiresAt

curl -X POST "https://app.staffedly.com/api/v1/credentials" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"providerId":"<providerId>","type":"license","facilityId":"<facilityId>"}'

#PATCH /api/v1/credentials/{id}

Update a credential on file, such as a renewal's new expiry. Its status follows the date.

  • Permission: credentials:write
  • Returns: one record: { data }, status 200
  • Safe retry: send an Idempotency-Key header (8 to 128 characters); the same key with the same request returns the first answer again

Path

NameDescription
idThe record's id.

Body fields (JSON; a field the API does not know is refused)

FieldDescription
expiresAtYYYY-MM-DD, or null for no expiry.
stateTwo letters.
identifierThe number. Stored encrypted, never returned.

Fields in each record: id, providerId, type, state, facilityId, status, expiresAt

curl -X PATCH "https://app.staffedly.com/api/v1/credentials/<id>" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"expiresAt":"2028-06-30","state":"NY"}'

Something missing or wrong on this page? Email [email protected] or book a free call; our team sets up every new customer at no charge.