Skip to main content
POST
Get an upload URL for a file for a request for information

Authorizations

x-api-key
string
header
required

Headers

x-idempotency-key
string<uuid>
required

Unique key (UUID) to ensure request idempotency on POST, PUT and PATCH requests.

A key is scoped to your client, the HTTP method and the path, and is remembered for 24 hours after a successful (below 400) response. Repeating the same request (same JSON body, whatever the key order or whitespace) with the same key within that window returns the original response with X-Idempotent-Replayed: true instead of executing the request again. Using the same key on the same endpoint with a different body returns 422 with problem type idempotency-key-reused; the request is not executed. Error responses (4xx and 5xx) are not remembered, so a request refused for a fixable reason can be corrected and retried under the same key. Request bodies that are not JSON (for example file uploads) are not compared.

Path Parameters

transaction_id
string
required

Unique identifier of the transaction. KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Pattern: ^[0-9A-Za-z]{27}$
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

Body

application/json
file_type
enum<string>
required

The file's type. The upload must use its MIME type as Content-Type.

Available options:
pdf,
jpeg,
png
filename
string

The file's name, shown to the reviewer.

Maximum string length: 255

Response

The upload URL.

document_id
string
required

Name this in document_ids when you answer.

Example:

"trfidoc_2nGq0Ff1c1qvA3oZb0v8lJr2s9X"

upload_url
string
required

Upload the file here with an HTTP PUT.

upload_headers
object
required

The headers the PUT must send, each with its value. The URL is signed for them, so storage refuses a PUT without them.

Example:
expires_at
string<date-time>
required