Boca Raton Partner API

List Documents

GET
/v1/users/{externalId}/documents
X-Api-Key<token>

Partner API key issued during onboarding. Must be included in every request alongside the HMAC signature headers.

In: header

Path Parameters

externalId*string

Partner-owned user identifier.

Length1 <= length <= 128

Query Parameters

cursor?string

Pagination cursor returned by the previous page.

limit?integer
Default25
Range1 <= value <= 100

Header Parameters

X-Request-Timestamp*string

RFC 3339 timestamp used in the request signing payload. Requests outside the allowed clock-skew window are rejected.

Formatdate-time
X-Request-Signature*string

HMAC-SHA256 signature over the canonical request string. See the Request Signing section above for the format.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://partner-api.bocaraton.com/v1/users/partner-user-42/documents?cursor=2026-03-12T18%3A30%3A00Z&limit=25" \  -H "X-Request-Timestamp: 2026-03-13T12:00:00Z" \  -H "X-Request-Signature: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2"
{
  "externalId": "partner-user-42",
  "userId": "550e8400-e29b-41d4-a716-446655440000",
  "nextCursor": null,
  "items": [
    {
      "id": "7f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c",
      "type": "statement",
      "date": "2026-02-28",
      "expiresAt": "2026-03-15T00:00:00Z",
      "url": "https://docs.bocaraton.com/presigned/stmt-202602.pdf?token=abc123"
    },
    {
      "id": "9a8b7c6d-5e4f-3a2b-1c0d-e9f8a7b6c5d4",
      "type": "taxDocument",
      "date": "2025-12-31",
      "expiresAt": "2026-03-15T00:00:00Z",
      "url": "https://docs.bocaraton.com/presigned/tax-2025.pdf?token=def456"
    }
  ]
}
{
  "error": "bad_request",
  "message": "Request body failed validation",
  "requestId": "req-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "fieldErrors": [
    {
      "field": "email",
      "message": "Must be a valid email address"
    }
  ]
}
{
  "error": "unauthorized",
  "message": "Invalid API key or request signature",
  "requestId": "req-a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
{
  "error": "not_found",
  "message": "User not found for the authenticated partner",
  "requestId": "req-a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
{
  "error": "too_many_requests",
  "message": "Rate limit exceeded. Retry after the duration indicated in the Retry-After header.",
  "requestId": "req-a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
{
  "error": "internal_error",
  "message": "An unexpected error occurred. Please retry or contact support with the requestId.",
  "requestId": "req-a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}