Skip to main content
POST
Request a signed upload URL for claim evidence
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /publishing/claims//evidence Description: Mints a v4 GCS signed PUT URL (15-minute expiry) for a piece of evidence, scoped to claims-evidence/{tenantId}/{claimId}/{timestamp}-{sanitizedFileName}. mimeType must be one of: application/pdf, image/png, image/jpeg, image/jpg, audio/mpeg, audio/mp3, audio/wav, audio/wave, audio/x-wav, text/plain. The upper size bound (25 MB) is enforced by GCS via an x-goog-content-length-range header the client must echo on the PUT. After the client’s PUT succeeds, call POST /publishing/claims/{id}/evidence/attach to register the upload on the claim. Supports the Idempotency-Key header (route key p5.claim.evidence). Authorization:
  • RBAC: user or higher; claimant-or-admin check enforced in the service
  • Requires an active publisher addon
Method: POST

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Headers

Idempotency-Key
string

Path Parameters

id
string<uuid>
required

Body

application/json
fileName
string
required
mimeType
enum<string>
required
Available options:
application/pdf,
image/png,
image/jpeg,
image/jpg,
audio/mpeg,
audio/mp3,
audio/wav,
audio/wave,
audio/x-wav,
text/plain

Response

Signed upload URL minted

status
string
Example:

"success"

data
object