Skillflare
API

Errors and pagination

Response envelopes, error codes, and list pagination

Success envelope

Single resources (GET by id, create, actions) return the entity at the top level:

{ "...": "..." }

Lists:

{
  "data": [ { "...": "..." } ],
  "meta": {
    "limit": 20,
    "offset": 0,
    "count": 42
  }
}

count is the total number of matching rows (not just the current page).

Pagination

List endpoints accept:

QueryDefaultNotes
limit20Clamped to a maximum of 100
offset0Zero-based

Invalid or missing values fall back to the defaults.

An offset past the last matching row returns 200 with data: [] and the same meta shape.

curl "https://api.skillflare.co/v1/candidates?limit=50&offset=50" \
  -H "x-api-key: sk_skillflare_YOUR_KEY"

Errors

{
  "error": "VALIDATION_ERROR",
  "message": "email must be an email address"
}
CodeTypical statusWhen
UNAUTHORIZED401Missing/invalid API key
FORBIDDEN403Authenticated but not allowed
NOT_FOUND404Unknown route or resource
VALIDATION_ERROR400Bad UUID, body fields, or business-rule validation
CONFLICT409Duplicate organization slug (Slug is already in use)
INTERNAL_ERROR500Unexpected server failure

Unknown paths return NOT_FOUND with message Route not found.

On this page