> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.api.corpx.com/ib/referencia/accounts/create-limit-request-evidence-upload-url/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.api.corpx.com/_mcp/server. # Presign a limit-request document upload POST https://client.api.corpx.com/v1/accounts/{accountId}/limit-requests/{requestId}/evidence/upload-url Content-Type: application/json Returns a 15-minute PUT URL. The browser uploads the bytes directly. The file then goes through the same quarantine, antivirus and sanitizer pipeline as MED evidence. Call `.../evidence/add` with the returned `key`. Allowed while the request is `awaiting_documents` or `info_requested`. `documentType` must belong to the account catalog, or be `other` when the reviewer asked for it. Reference: https://docs.api.corpx.com/ib/referencia/accounts/create-limit-request-evidence-upload-url ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Path parameters - `accountId` (string, required) — Account identifier. - `requestId` (string, required) — Limit request id. ### Headers - `X-Tenant-Id` (string, required) — Tenant context used for authorization and routing. - `X-Acting-Document` (string, optional) — CPF of the human performing the operation. Required on cashout routes when the credential enforces a transaction PIN. - `Idempotency-Key` (string, optional) — Optional client-generated idempotency token (recommended for safe retries). - `X-Request-Timestamp` (string, required) — Unix seconds. Required on the signed host; tolerance is 300s either way (`403 request_timestamp_skew`). - `X-Content-SHA256` (string, required) — Lowercase hex SHA-256 of the body. An empty body hashes the empty string, so the header is always present. Mismatch returns `400 body_hash_mismatch`. - `X-Request-Signature` (string, required) — Detached JWS (`..`, ES256 or PS256) over `METHOD\nPATH?QUERY\nTIMESTAMP\nIDEMPOTENCY_KEY_OR_EMPTY\nX_CONTENT_SHA256`. ## Response ### 200 Presigned PUT. ## Errors ### 409 Conflict Error `limit_request_closed`. - `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values. - `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change. - `docs` (string, optional) — Link to this code in the public error catalogue. - `requestId` (string, optional) — Gateway request id. Quote it when contacting support. - `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context. - `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only. ### 413 Content Too Large Error File above 5 MB or the 60 MB request cap. - `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values. - `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change. - `docs` (string, optional) — Link to this code in the public error catalogue. - `requestId` (string, optional) — Gateway request id. Quote it when contacting support. - `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context. - `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only. ### 422 Unprocessable Entity Error `limit_request_document_type_invalid`, `unsupported_media_type` or `too_many_files`. - `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values. - `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change. - `docs` (string, optional) — Link to this code in the public error catalogue. - `requestId` (string, optional) — Gateway request id. Quote it when contacting support. - `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context. - `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only. ## Types ### ErrorResponsePartner Raw error from the settlement bank, when the failure came from it. Diagnostic only. - `code` (string, optional) - `message` (string, optional) - `field` (string, optional) — Field the partner pointed at, when any. ## Examples **Request** ```json { "contentType": "application/pdf", "documentType": "identity_document", "filename": "rg.pdf", "sizeBytes": 120000 } ``` **Response** ```json { "contentType": "application/pdf", "documentType": "identity_document", "evidenceId": "lrev_1", "expiresIn": 900, "key": "limit-request-evidences/tn/lr/lrev_1-rg.pdf", "method": "PUT", "requestId": "lr_01J9XQ8K2M3N4P5Q6R7S8T9U0V", "sizeBytes": 120000, "uploadUrl": "https://uploads.example/put" } ``` **SDK Code** ```python Accounts_createLimitRequestEvidenceUploadUrl_example import requests url = "https://client.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/evidence/upload-url" payload = { "contentType": "application/pdf", "documentType": "identity_document", "filename": "rg.pdf", "sizeBytes": 120000 } headers = { "X-Content-SHA256": "X-Content-SHA256", "X-Request-Signature": "X-Request-Signature", "X-Request-Timestamp": "X-Request-Timestamp", "X-Tenant-Id": "X-Tenant-Id", "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Accounts_createLimitRequestEvidenceUploadUrl_example const url = 'https://client.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/evidence/upload-url'; const options = { method: 'POST', headers: { 'X-Content-SHA256': 'X-Content-SHA256', 'X-Request-Signature': 'X-Request-Signature', 'X-Request-Timestamp': 'X-Request-Timestamp', 'X-Tenant-Id': 'X-Tenant-Id', Authorization: 'Bearer ', 'Content-Type': 'application/json' }, body: '{"contentType":"application/pdf","documentType":"identity_document","filename":"rg.pdf","sizeBytes":120000}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Accounts_createLimitRequestEvidenceUploadUrl_example package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://client.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/evidence/upload-url" payload := strings.NewReader("{\n \"contentType\": \"application/pdf\",\n \"documentType\": \"identity_document\",\n \"filename\": \"rg.pdf\",\n \"sizeBytes\": 120000\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("X-Content-SHA256", "X-Content-SHA256") req.Header.Add("X-Request-Signature", "X-Request-Signature") req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp") req.Header.Add("X-Tenant-Id", "X-Tenant-Id") req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Accounts_createLimitRequestEvidenceUploadUrl_example require 'uri' require 'net/http' url = URI("https://client.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/evidence/upload-url") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["X-Content-SHA256"] = 'X-Content-SHA256' request["X-Request-Signature"] = 'X-Request-Signature' request["X-Request-Timestamp"] = 'X-Request-Timestamp' request["X-Tenant-Id"] = 'X-Tenant-Id' request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"contentType\": \"application/pdf\",\n \"documentType\": \"identity_document\",\n \"filename\": \"rg.pdf\",\n \"sizeBytes\": 120000\n}" response = http.request(request) puts response.read_body ``` ```java Accounts_createLimitRequestEvidenceUploadUrl_example import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://client.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/evidence/upload-url") .header("X-Content-SHA256", "X-Content-SHA256") .header("X-Request-Signature", "X-Request-Signature") .header("X-Request-Timestamp", "X-Request-Timestamp") .header("X-Tenant-Id", "X-Tenant-Id") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"contentType\": \"application/pdf\",\n \"documentType\": \"identity_document\",\n \"filename\": \"rg.pdf\",\n \"sizeBytes\": 120000\n}") .asString(); ``` ```php Accounts_createLimitRequestEvidenceUploadUrl_example request('POST', 'https://client.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/evidence/upload-url', [ 'body' => '{ "contentType": "application/pdf", "documentType": "identity_document", "filename": "rg.pdf", "sizeBytes": 120000 }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', 'X-Content-SHA256' => 'X-Content-SHA256', 'X-Request-Signature' => 'X-Request-Signature', 'X-Request-Timestamp' => 'X-Request-Timestamp', 'X-Tenant-Id' => 'X-Tenant-Id', ], ]); echo $response->getBody(); ``` ```csharp Accounts_createLimitRequestEvidenceUploadUrl_example using RestSharp; var client = new RestClient("https://client.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/evidence/upload-url"); var request = new RestRequest(Method.POST); request.AddHeader("X-Content-SHA256", "X-Content-SHA256"); request.AddHeader("X-Request-Signature", "X-Request-Signature"); request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp"); request.AddHeader("X-Tenant-Id", "X-Tenant-Id"); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"contentType\": \"application/pdf\",\n \"documentType\": \"identity_document\",\n \"filename\": \"rg.pdf\",\n \"sizeBytes\": 120000\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Accounts_createLimitRequestEvidenceUploadUrl_example import Foundation let headers = [ "X-Content-SHA256": "X-Content-SHA256", "X-Request-Signature": "X-Request-Signature", "X-Request-Timestamp": "X-Request-Timestamp", "X-Tenant-Id": "X-Tenant-Id", "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [ "contentType": "application/pdf", "documentType": "identity_document", "filename": "rg.pdf", "sizeBytes": 120000 ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://client.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/evidence/upload-url")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```