Public Intake API Reference

The stateless public edge: accepts child abuse and neglect reports from the public and from partner agencies, validates them, and forwards them to craig-cases. The edge holds no data of its own.

Endpoints

Partner

Submit a report via API key

POST /partner/v1/reports

In integrated mode, the X-JWS-Signature header is required and is verified against craig-security’s signer-key registry, and a replayed signature is refused. In standalone mode the report is authenticated by its API key only: an X-JWS-Signature header is neither verified nor forwarded, a missing one is not refused, and there is no replay check. Verification in standalone mode is planned.

Table 1. Request Fields
Field Type Required Description

additional_info

string (optional)

No

Any additional information the reporter wants to provide.

admin_unit

string

Yes

Administrative unit (county/region office) the report is routed to.

adults

object

No

Adult subjects, as a JSON array (untyped here; deserialized into AdultEntry server-side by validate_adults_array, which bounds the array length via MAX_ADULTS). An entry’s race answers are forwarded in their typed form: an unknown key is dropped, and one carrying a control character is a 422 validation-failed on <list>[<index>].race.

anonymous

boolean

No

The reporter chose to report anonymously. Only valid with reporter_type = concerned_citizen. Reporter-detail fields are optional either way, and details volunteered with this flag are still accepted (for follow-up). Defaults to false when omitted.

captcha_token

string (optional)

No

CAPTCHA token (required when CAPTCHA is enabled).

Cap permits mainstream remote-verifier tokens which can run several KB — IDENTIFIER_LONG_MAX (1024) accommodates current providers without unbounded memory use.

children

object

No

Child subjects, as a JSON array (untyped here; deserialized into ChildEntry server-side by validate_children_array, which bounds the array length via the shared craig_validation::MAX_REPORT_CHILDREN — 10, the same cap the SDK builders and the cases create boundary enforce; more is a typed 400 batch-too-large). An entry’s race answers are forwarded in their typed form: an unknown key is dropped, and one carrying a control character is a 422 validation-failed on <list>[<index>].race.

client_request_id

UUID

Yes

The client-minted, client-HELD submission id. REQUIRED — the intake edge never mints one per inbound request (an HTTP retry must not produce two cases reports). Resubmitting the SAME id with the same substance replays the original stored report; a divergent resubmit under the same id is refused (409). A NEW id is a NEW submission. Distinct from the server-assigned ReportConfirmation.id used for status lookups.

concern_description

string

Yes

Free-text description of the concern.

concern_type

string

Yes

Concern category (e.g. neglect, physical_abuse).

immediate_danger

boolean

No

Whether the child is in immediate danger.

incident_date

date (optional)

No

Date the incident occurred (legacy date-only field).

incident_datetime

datetime (optional)

No

Date and time the incident occurred (RFC 3339).

incident_location

string (optional)

No

Where the incident occurred.

indian_heritage

string (optional)

No

Indian heritage indicator (ICWA screening).

indian_heritage_details

string (optional)

No

Free-text details about Indian heritage (ICWA screening).

mandated_reporter_category

string (optional)

No

Mandated-reporter profession category (e.g. physician, dentist) — set when the reporter identifies as a mandated reporter. Captured in the forwarded raw_submission like the other reporter fields.

narrative

object

No

Structured narrative payload (JSONB), stored with its string leaves sanitized. An object key carrying a control character (a NUL included), at any depth, is a 422 validation-failed on this field, refused rather than stripped so two keys can never collide. The payload may nest at most 16 levels, hold at most 5,000 values, and no key longer than 32,768 bytes; past one of those limits it is the same 422. A string value over 32,768 bytes is refused too: as a 400 where the sanitizer reads the value, and as this 422 where it leaves the value as sent.

report_source

string

Yes

NCANDS report source — the RptSrc (#10) category of WHO is reporting (medical_personnel, parent, anonymous_reporter, …), distinct from the reporter’s STATUS above. REQUIRED on every channel (no default); craig-intake validates it against the full craig_reference::ReportSource vocabulary on both the public form and the signed API — there is no public subset.

reporter_city

string (optional)

No

Reporter’s city.

reporter_county

string (optional)

No

Reporter’s county.

reporter_email

string (optional)

No

Reporter’s email address.

reporter_first_name

string (optional)

No

Reporter’s first name.

reporter_is_household_member

boolean (optional)

No

Whether the reporter is a member of the child’s household.

reporter_is_primary_caregiver

boolean (optional)

No

Whether the reporter is the child’s primary caregiver.

reporter_is_self_reporting

boolean (optional)

No

Whether the reporter is reporting about themselves.

reporter_last_name

string (optional)

No

Reporter’s last name.

reporter_maltreater_relationship

string (optional)

No

Reporter’s relationship to the alleged maltreater.

reporter_phone

string (optional)

No

Reporter’s phone number.

reporter_relation

string (optional)

No

Reporter’s relationship to the child: a craig_reference::RelationshipToChild token (parent, teacher, neighbor, …), the type craig-cases parses it as. craig-intake refuses any other value, naming this field: a 400, or the length cap’s 422 when it is longer than the cap; a blank value counts as not provided.

reporter_relationship_to_caregiver

string (optional)

No

Reporter’s relationship to the caregiver.

reporter_relationship_to_child

string (optional)

No

Reporter’s relationship to the child.

reporter_state

string (optional)

No

Reporter’s state/territory code.

reporter_street

string (optional)

No

Reporter’s street address.

reporter_type

string

Yes

Reporter category. The public intake channel accepts a curated subset of the canonical ReporterType: mandated, concerned_citizen (see craig-intake’s PUBLIC_REPORTER_TYPES). Anonymity is the separate anonymous flag, not a reporter type.

reporter_zip

string (optional)

No

Reporter’s postal code.

safety_concerns

string (optional)

No

Any safety concerns relevant to a responding worker.

source_system_id

string (optional)

No

Source system tracking ID (for API submissions).

website

string

No

Honeypot field — if populated on the public form, the submission is silently dropped. It is never forwarded on any channel.

Capped defensively at ENUM_STRING_MAX so deserializing a malicious huge body can’t exhaust memory before the silent-drop check fires.

Responses
  • 200: Report submitted

  • 400: Validation error or missing JWS header

  • 401: Invalid or missing API key, or JWS verification / partner-binding / replay failure

  • 422: A narrative object key carrying a control character (narrative, validation-failed, value-free), or a person entry’s race key carrying one (<list>[<index>].race), or a SHINES narrative answer over its length cap (narrative.<key>, validation-failed, value-free), after API-key authentication

  • 429: Rate limit exceeded, answered as plain text (not a problem document) by one of two limits. The per-client-address limit (CRAIG_INTAKE__PARTNER_RATE_LIMIT requests an hour, at most a sixtieth of that in a burst, counted before the API key is checked, so it also answers a request with a missing or invalid key) answers rate limit exceeded — please try again later with no Retry-After. The per-partner limit (the partner’s rate_limit_rpm a minute, counted after the API key is accepted) answers partner rate limit exceeded — please try again later with Retry-After: 60

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


List attachments for a report (proxied to craig-cases)

GET /partner/v1/reports/{id}/attachments

Table 2. Parameters
Name In Required Description

id

path

Yes

Report ID

Responses
  • 200: Attachment list

  • 404: Report not found (or owned by a different partner)

  • 429: Rate limit exceeded, answered as plain text (not a problem document) by one of two limits. The per-client-address limit (CRAIG_INTAKE__PARTNER_RATE_LIMIT requests an hour, at most a sixtieth of that in a burst, counted before the API key is checked, so it also answers a request with a missing or invalid key) answers rate limit exceeded — please try again later with no Retry-After. The per-partner limit (the partner’s rate_limit_rpm a minute, counted after the API key is accepted) answers partner rate limit exceeded — please try again later with Retry-After: 60

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Upload an attachment to a report (proxied to craig-cases)

POST /partner/v1/reports/{id}/attachments

Table 3. Parameters
Name In Required Description

id

path

Yes

Report ID returned by submit

Table 4. Request Form Fields (multipart/form-data)
Field Type Required Description

client_request_id

UUID (optional)

No

The upload’s idempotency key (a UUID); the edge mints one when absent.

file

binary

Yes

The file to attach; only the first file part is read.

file_sha256

string (optional)

No

The file’s SHA-256 (64 lowercase hex); the edge computes it when absent.

Responses
  • 200: Attachment uploaded

  • 400: Edge pre-validation failure — MIME/size/digest/field-shape, with actionable detail

  • 404: Report not found (or owned by a different partner)

  • 413: Whole-request body over the edge limit

  • 429: Rate limit exceeded, answered as plain text (not a problem document) by one of two limits. The per-client-address limit (CRAIG_INTAKE__PARTNER_RATE_LIMIT requests an hour, at most a sixtieth of that in a burst, counted before the API key is checked, so it also answers a request with a missing or invalid key) answers rate limit exceeded — please try again later with no Retry-After. The per-partner limit (the partner’s rate_limit_rpm a minute, counted after the API key is accepted) answers partner rate limit exceeded — please try again later with Retry-After: 60

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Delete a report attachment (proxied to craig-cases)

DELETE /partner/v1/reports/{id}/attachments/{att_id}

Table 5. Parameters
Name In Required Description

id

path

Yes

Report ID

att_id

path

Yes

Attachment ID

Responses
  • 204: Attachment deleted

  • 400: craig-cases rejected the request (its body is not relayed)

  • 401: Invalid or missing API key

  • 404: Report not found (or owned by a different partner), or attachment not found

  • 409: craig-cases reported a conflict (its body is not relayed)

  • 429: Rate limit exceeded, answered as plain text (not a problem document) by one of two limits. The per-client-address limit (CRAIG_INTAKE__PARTNER_RATE_LIMIT requests an hour, at most a sixtieth of that in a burst, counted before the API key is checked, so it also answers a request with a missing or invalid key) answers rate limit exceeded — please try again later with no Retry-After. The per-partner limit (the partner’s rate_limit_rpm a minute, counted after the API key is accepted) answers partner rate limit exceeded — please try again later with Retry-After: 60

  • 500: craig-cases unreachable, refusing the edge’s service identity, or failing (its body is not relayed)

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Download a report attachment (proxied to craig-cases)

GET /partner/v1/reports/{id}/attachments/{att_id}/download

Table 6. Parameters
Name In Required Description

id

path

Yes

Report ID

att_id

path

Yes

Attachment ID

Responses
  • 200: The attachment’s bytes, streamed, with the Content-Type, Content-Disposition, Content-Length and Cache-Control craig-cases answered

  • 206: Partial content: the one Range slice craig-cases honoured, streamed with its Content-Range, Accept-Ranges: bytes, ETag and the slice’s Content-Length; the Range and If-Range headers are forwarded unchanged

  • 400: craig-cases rejected the request (its body is not relayed)

  • 401: Invalid or missing API key

  • 404: Report not found (or owned by a different partner), or attachment not found

  • 416: Range not satisfiable: Content-Range: bytes */<length> as craig-cases answered

  • 429: Rate limit exceeded, answered as plain text (not a problem document) by one of two limits. The per-client-address limit (CRAIG_INTAKE__PARTNER_RATE_LIMIT requests an hour, at most a sixtieth of that in a burst, counted before the API key is checked, so it also answers a request with a missing or invalid key) answers rate limit exceeded — please try again later with no Retry-After. The per-partner limit (the partner’s rate_limit_rpm a minute, counted after the API key is accepted) answers partner rate limit exceeded — please try again later with Retry-After: 60

  • 500: craig-cases unreachable, refusing the edge’s service identity, or failing (its body is not relayed)

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Check report status via API key

GET /partner/v1/reports/{id}/status

Table 7. Parameters
Name In Required Description

id

path

Yes

Report tracking reference

Responses
  • 200: Report status

  • 401: Invalid or missing API key

  • 404: Report not found (or owned by a different partner)

  • 429: Rate limit exceeded, answered as plain text (not a problem document) by one of two limits. The per-client-address limit (CRAIG_INTAKE__PARTNER_RATE_LIMIT requests an hour, at most a sixtieth of that in a burst, counted before the API key is checked, so it also answers a request with a missing or invalid key) answers rate limit exceeded — please try again later with no Retry-After. The per-partner limit (the partner’s rate_limit_rpm a minute, counted after the API key is accepted) answers partner rate limit exceeded — please try again later with Retry-After: 60

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Public

Declared field-relevance rules (visibility + required-if)

GET /public/v1/intake-schema

Responses
  • 200: Field-relevance schema

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Submit a public child abuse report

POST /public/v1/reports

Table 8. Request Fields
Field Type Required Description

additional_info

string (optional)

No

Any additional information the reporter wants to provide.

admin_unit

string

Yes

Administrative unit (county/region office) the report is routed to.

adults

object

No

Adult subjects, as a JSON array (untyped here; deserialized into AdultEntry server-side by validate_adults_array, which bounds the array length via MAX_ADULTS). An entry’s race answers are forwarded in their typed form: an unknown key is dropped, and one carrying a control character is a 422 validation-failed on <list>[<index>].race.

anonymous

boolean

No

The reporter chose to report anonymously. Only valid with reporter_type = concerned_citizen. Reporter-detail fields are optional either way, and details volunteered with this flag are still accepted (for follow-up). Defaults to false when omitted.

captcha_token

string (optional)

No

CAPTCHA token (required when CAPTCHA is enabled).

Cap permits mainstream remote-verifier tokens which can run several KB — IDENTIFIER_LONG_MAX (1024) accommodates current providers without unbounded memory use.

children

object

No

Child subjects, as a JSON array (untyped here; deserialized into ChildEntry server-side by validate_children_array, which bounds the array length via the shared craig_validation::MAX_REPORT_CHILDREN — 10, the same cap the SDK builders and the cases create boundary enforce; more is a typed 400 batch-too-large). An entry’s race answers are forwarded in their typed form: an unknown key is dropped, and one carrying a control character is a 422 validation-failed on <list>[<index>].race.

client_request_id

UUID

Yes

The client-minted, client-HELD submission id. REQUIRED — the intake edge never mints one per inbound request (an HTTP retry must not produce two cases reports). Resubmitting the SAME id with the same substance replays the original stored report; a divergent resubmit under the same id is refused (409). A NEW id is a NEW submission. Distinct from the server-assigned ReportConfirmation.id used for status lookups.

concern_description

string

Yes

Free-text description of the concern.

concern_type

string

Yes

Concern category (e.g. neglect, physical_abuse).

immediate_danger

boolean

No

Whether the child is in immediate danger.

incident_date

date (optional)

No

Date the incident occurred (legacy date-only field).

incident_datetime

datetime (optional)

No

Date and time the incident occurred (RFC 3339).

incident_location

string (optional)

No

Where the incident occurred.

indian_heritage

string (optional)

No

Indian heritage indicator (ICWA screening).

indian_heritage_details

string (optional)

No

Free-text details about Indian heritage (ICWA screening).

mandated_reporter_category

string (optional)

No

Mandated-reporter profession category (e.g. physician, dentist) — set when the reporter identifies as a mandated reporter. Captured in the forwarded raw_submission like the other reporter fields.

narrative

object

No

Structured narrative payload (JSONB), stored with its string leaves sanitized. An object key carrying a control character (a NUL included), at any depth, is a 422 validation-failed on this field, refused rather than stripped so two keys can never collide. The payload may nest at most 16 levels, hold at most 5,000 values, and no key longer than 32,768 bytes; past one of those limits it is the same 422. A string value over 32,768 bytes is refused too: as a 400 where the sanitizer reads the value, and as this 422 where it leaves the value as sent.

report_source

string

Yes

NCANDS report source — the RptSrc (#10) category of WHO is reporting (medical_personnel, parent, anonymous_reporter, …), distinct from the reporter’s STATUS above. REQUIRED on every channel (no default); craig-intake validates it against the full craig_reference::ReportSource vocabulary on both the public form and the signed API — there is no public subset.

reporter_city

string (optional)

No

Reporter’s city.

reporter_county

string (optional)

No

Reporter’s county.

reporter_email

string (optional)

No

Reporter’s email address.

reporter_first_name

string (optional)

No

Reporter’s first name.

reporter_is_household_member

boolean (optional)

No

Whether the reporter is a member of the child’s household.

reporter_is_primary_caregiver

boolean (optional)

No

Whether the reporter is the child’s primary caregiver.

reporter_is_self_reporting

boolean (optional)

No

Whether the reporter is reporting about themselves.

reporter_last_name

string (optional)

No

Reporter’s last name.

reporter_maltreater_relationship

string (optional)

No

Reporter’s relationship to the alleged maltreater.

reporter_phone

string (optional)

No

Reporter’s phone number.

reporter_relation

string (optional)

No

Reporter’s relationship to the child: a craig_reference::RelationshipToChild token (parent, teacher, neighbor, …), the type craig-cases parses it as. craig-intake refuses any other value, naming this field: a 400, or the length cap’s 422 when it is longer than the cap; a blank value counts as not provided.

reporter_relationship_to_caregiver

string (optional)

No

Reporter’s relationship to the caregiver.

reporter_relationship_to_child

string (optional)

No

Reporter’s relationship to the child.

reporter_state

string (optional)

No

Reporter’s state/territory code.

reporter_street

string (optional)

No

Reporter’s street address.

reporter_type

string

Yes

Reporter category. The public intake channel accepts a curated subset of the canonical ReporterType: mandated, concerned_citizen (see craig-intake’s PUBLIC_REPORTER_TYPES). Anonymity is the separate anonymous flag, not a reporter type.

reporter_zip

string (optional)

No

Reporter’s postal code.

safety_concerns

string (optional)

No

Any safety concerns relevant to a responding worker.

source_system_id

string (optional)

No

Source system tracking ID (for API submissions).

website

string

No

Honeypot field — if populated on the public form, the submission is silently dropped. It is never forwarded on any channel.

Capped defensively at ENUM_STRING_MAX so deserializing a malicious huge body can’t exhaust memory before the silent-drop check fires.

Responses
  • 200: Report submitted

  • 400: Validation error

  • 403: SHINES call-intake staff block, refused until staff authorization exists (field-permission-denied)

  • 422: Mandated reporter must sign (SHINES) — use the signed channel; or a narrative object key carrying a control character (narrative, validation-failed, value-free), or a person entry’s race key carrying one (<list>[<index>].race), or a SHINES narrative answer over its length cap (narrative.<key>, validation-failed, value-free)

  • 429: Rate limit exceeded

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Upload an attachment to a public report (proxied to craig-cases)

POST /public/v1/reports/{id}/attachments

Table 9. Parameters
Name In Required Description

id

path

Yes

Report ID returned by submit

Table 10. Request Form Fields (multipart/form-data)
Field Type Required Description

client_request_id

UUID (optional)

No

The upload’s idempotency key (a UUID); the edge mints one when absent.

file

binary

Yes

The file to attach; only the first file part is read.

file_sha256

string (optional)

No

The file’s SHA-256 (64 lowercase hex); the edge computes it when absent.

Responses
  • 200: Attachment uploaded

  • 400: Edge pre-validation failure — MIME/size/digest/field-shape, with actionable detail

  • 404: Report not found

  • 413: Whole-request body over the edge limit

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Check report status by tracking reference

GET /public/v1/reports/{id}/status

Table 11. Parameters
Name In Required Description

id

path

Yes

Tracking reference returned by submit

Responses
  • 200: Report status

  • 404: Report not found

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Signed

List registered signer keys (metadata only, proxied to the keyring)

GET /signed/v1/keys

Responses
  • 200: Registered-key metadata

  • 404: View-keys list is not enabled

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Look up whether a signer key is active (proxied to the keyring)

GET /signed/v1/keys/by-kid/{kid}

Table 12. Parameters
Name In Required Description

kid

path

Yes

The signer-key id (JWS kid) to check

Responses
  • 200: The key is active (approved + unexpired)

  • 404: The key is not active yet (pending / absent / revoked / expired)

  • 422: A kid over the identifier cap or containing a NUL (U+0000): validation-failed naming kid, value-free, before the keyring is asked

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Register a browser-generated public signing key (proxied to the keyring)

POST /signed/v1/keys/register

Two bodies are accepted. A body without a kind member is the key registration described here. Any other kind is refused with 400. A body with "kind": "webauthn" registers a passkey: user_identifier, display_name, iat (epoch seconds) and the base64url attestation_object and client_data_json of the browser’s registration ceremony, relayed unchanged to the keyring, which verifies the ceremony. A passkey body may be at most 16 KiB. Either way the key is pending until an administrator approves it.

Table 13. Request Fields
Field Type Required Description

algorithm

string (optional)

No

Signing algorithm (defaults to ES256 if omitted).

display_name

string

Yes

Human-readable display name, e.g. "Dr. Jones". A NUL (U+0000) is refused.

expires_at

datetime (optional)

No

Optional key expiry.

key_id

string

Yes

kid in the JWS header; globally unique. A NUL (U+0000) is refused.

public_key_jwk

object

Yes

Public key as a JWK (RFC 7517). The document may nest at most 4 levels, hold at most 32 values, and no string or key longer than 1,024 bytes; a document past a limit is refused before the key itself is checked, with the status each route documents for an invalid body.

user_identifier

string

Yes

Partner-scoped identifier for the signing person (email, employee id). A NUL (U+0000) is refused.

Responses
  • 200: Registered (pending admin approval)

  • 400: Invalid registration

  • 409: A key with that kid already exists

  • 415: The body was not sent as application/json

  • 422: A body field whose value does not deserialize, e.g. a malformed expires_at (validation-failed; the field is named, the value never echoed)

  • 429: Signer-key registry at capacity

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


View or change the signer’s own passkeys (proxied to the keyring)

POST /signed/v1/passkeys

One operation on the passkeys of the signer’s own identity, authenticated by a passkey assertion in the body: {op, credential_id, authenticator_data, client_data_json, signature, jti, iat}, byte members unpadded base64url. op is tagged by kind: view; rename with display_name; revoke with target_kid; or add_device with new_kid, attestation_object, registration_client_data_json and registration_iat. The assertion’s challenge is SHA-256 of the canonical {op, iat, jti} plus what the operation binds: display_name, target_kid, or new_kid with attestation_digest (unpadded base64url SHA-256 of the attestation object). The body may be at most 16 KiB.

Responses
  • 200: The identity as it now stands: its labels and, per passkey, kid, status, creation time, whether it can be synced, and whether it signed this request

  • 400: Malformed request, over 16 KiB, or an added device whose registration does not verify

  • 401: The assertion was not accepted, was replayed, or its passkey may not perform the operation

  • 404: The passkey to revoke is not one of the signer’s

  • 409: The added device’s passkey is already registered

  • 413: The body is over the signed nest’s request size limit

  • 415: The body was not sent as application/json

  • 429: Signer-key registry at capacity

  • 500: The keyring could not be reached or answered unexpectedly

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Submit a report authenticated by a detached JWS (standalone SHINES)

POST /signed/v1/reports

The report is authenticated by exactly one of two headers. X-JWS-Signature is a detached JWS over the canonical report. X-WebAuthn-Assertion is a passkey assertion: unpadded base64url of a JSON object {credential_id, authenticator_data, client_data_json, signature, jti, iat}, each byte member itself unpadded base64url, at most 8 KiB in all. The assertion’s challenge is SHA-256 of the canonical {iat, jti, payload_sha256}, where payload_sha256 is the hex SHA-256 of the canonical report. Sending both headers, or neither, is 401.

Table 14. Request Fields
Field Type Required Description

additional_info

string (optional)

No

Any additional information the reporter wants to provide.

admin_unit

string

Yes

Administrative unit (county/region office) the report is routed to.

adults

object

No

Adult subjects, as a JSON array (untyped here; deserialized into AdultEntry server-side by validate_adults_array, which bounds the array length via MAX_ADULTS). An entry’s race answers are forwarded in their typed form: an unknown key is dropped, and one carrying a control character is a 422 validation-failed on <list>[<index>].race.

anonymous

boolean

No

The reporter chose to report anonymously. Only valid with reporter_type = concerned_citizen. Reporter-detail fields are optional either way, and details volunteered with this flag are still accepted (for follow-up). Defaults to false when omitted.

captcha_token

string (optional)

No

CAPTCHA token (required when CAPTCHA is enabled).

Cap permits mainstream remote-verifier tokens which can run several KB — IDENTIFIER_LONG_MAX (1024) accommodates current providers without unbounded memory use.

children

object

No

Child subjects, as a JSON array (untyped here; deserialized into ChildEntry server-side by validate_children_array, which bounds the array length via the shared craig_validation::MAX_REPORT_CHILDREN — 10, the same cap the SDK builders and the cases create boundary enforce; more is a typed 400 batch-too-large). An entry’s race answers are forwarded in their typed form: an unknown key is dropped, and one carrying a control character is a 422 validation-failed on <list>[<index>].race.

client_request_id

UUID

Yes

The client-minted, client-HELD submission id. REQUIRED — the intake edge never mints one per inbound request (an HTTP retry must not produce two cases reports). Resubmitting the SAME id with the same substance replays the original stored report; a divergent resubmit under the same id is refused (409). A NEW id is a NEW submission. Distinct from the server-assigned ReportConfirmation.id used for status lookups.

concern_description

string

Yes

Free-text description of the concern.

concern_type

string

Yes

Concern category (e.g. neglect, physical_abuse).

immediate_danger

boolean

No

Whether the child is in immediate danger.

incident_date

date (optional)

No

Date the incident occurred (legacy date-only field).

incident_datetime

datetime (optional)

No

Date and time the incident occurred (RFC 3339).

incident_location

string (optional)

No

Where the incident occurred.

indian_heritage

string (optional)

No

Indian heritage indicator (ICWA screening).

indian_heritage_details

string (optional)

No

Free-text details about Indian heritage (ICWA screening).

mandated_reporter_category

string (optional)

No

Mandated-reporter profession category (e.g. physician, dentist) — set when the reporter identifies as a mandated reporter. Captured in the forwarded raw_submission like the other reporter fields.

narrative

object

No

Structured narrative payload (JSONB), stored with its string leaves sanitized. An object key carrying a control character (a NUL included), at any depth, is a 422 validation-failed on this field, refused rather than stripped so two keys can never collide. The payload may nest at most 16 levels, hold at most 5,000 values, and no key longer than 32,768 bytes; past one of those limits it is the same 422. A string value over 32,768 bytes is refused too: as a 400 where the sanitizer reads the value, and as this 422 where it leaves the value as sent.

report_source

string

Yes

NCANDS report source — the RptSrc (#10) category of WHO is reporting (medical_personnel, parent, anonymous_reporter, …), distinct from the reporter’s STATUS above. REQUIRED on every channel (no default); craig-intake validates it against the full craig_reference::ReportSource vocabulary on both the public form and the signed API — there is no public subset.

reporter_city

string (optional)

No

Reporter’s city.

reporter_county

string (optional)

No

Reporter’s county.

reporter_email

string (optional)

No

Reporter’s email address.

reporter_first_name

string (optional)

No

Reporter’s first name.

reporter_is_household_member

boolean (optional)

No

Whether the reporter is a member of the child’s household.

reporter_is_primary_caregiver

boolean (optional)

No

Whether the reporter is the child’s primary caregiver.

reporter_is_self_reporting

boolean (optional)

No

Whether the reporter is reporting about themselves.

reporter_last_name

string (optional)

No

Reporter’s last name.

reporter_maltreater_relationship

string (optional)

No

Reporter’s relationship to the alleged maltreater.

reporter_phone

string (optional)

No

Reporter’s phone number.

reporter_relation

string (optional)

No

Reporter’s relationship to the child: a craig_reference::RelationshipToChild token (parent, teacher, neighbor, …), the type craig-cases parses it as. craig-intake refuses any other value, naming this field: a 400, or the length cap’s 422 when it is longer than the cap; a blank value counts as not provided.

reporter_relationship_to_caregiver

string (optional)

No

Reporter’s relationship to the caregiver.

reporter_relationship_to_child

string (optional)

No

Reporter’s relationship to the child.

reporter_state

string (optional)

No

Reporter’s state/territory code.

reporter_street

string (optional)

No

Reporter’s street address.

reporter_type

string

Yes

Reporter category. The public intake channel accepts a curated subset of the canonical ReporterType: mandated, concerned_citizen (see craig-intake’s PUBLIC_REPORTER_TYPES). Anonymity is the separate anonymous flag, not a reporter type.

reporter_zip

string (optional)

No

Reporter’s postal code.

safety_concerns

string (optional)

No

Any safety concerns relevant to a responding worker.

source_system_id

string (optional)

No

Source system tracking ID (for API submissions).

website

string

No

Honeypot field — if populated on the public form, the submission is silently dropped. It is never forwarded on any channel.

Capped defensively at ENUM_STRING_MAX so deserializing a malicious huge body can’t exhaust memory before the silent-drop check fires.

Responses
  • 200: Accepted + forwarded to SHINES

  • 400: Malformed request body (post-auth)

  • 401: Missing / invalid / replayed signature, or both an X-JWS-Signature and an X-WebAuthn-Assertion

  • 403: SHINES call-intake staff block, refused until staff authorization exists (field-permission-denied)

  • 422: A narrative object key carrying a control character (narrative, validation-failed, value-free), or a person entry’s race key carrying one (<list>[<index>].race), or a SHINES narrative answer over its length cap (narrative.<key>, validation-failed, value-free), after signature verification

  • 429: Rate limit exceeded

  • 503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.

  • 504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.


Edit this page · latest