Skip to main content

{METHOD} {path}

Template — copy this section into the appropriate api/*.md file when documenting a new endpoint. Delete this callout when you're done.

One-sentence description of what the endpoint does.

Request

Headers

HeaderRequiredNotes
Authorization: Bearer …yesFirebase ID token.
Idempotency-KeynoRecommended on flaky networks.
Content-Typeyesapplication/json (or multipart, etc.).

Path parameters

NameTypeNotes
idUUIDIdentifier of the resource.

Query parameters

NameTypeDefaultNotes
limitint50Max 100.

Body

{
"field": "value"
}
FieldTypeRequiredNotes
fieldstringyesDescription.

Response — 200 OK

{
"id": "...",
"field": "value"
}
FieldTypeNotes
idUUIDServer-generated.

Errors

StatuscodeCause
400validation_failedField-level validation.
401auth_invalidBad / missing token.
404xxx_not_foundResource missing or owned by another user.

Examples

Successful call

curl -X POST https://api.scryon.app/api/.../{id} \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"field": "value"}'

Error

curl -i ... # what the user sees on the most common error

Notes

  • Idempotency: idempotent / not idempotent.
  • Side effects: what changes in the system on success.
  • Rate limits: if any.
  • Privacy notes: anything sensitive.