Upload requests let a customer, supplier, or other partner add a file to your Inttegro account through a secure, time-limited link. Your application creates the request and shares the link; the uploader sends the file directly to Inttegro without gaining access to your API credentials.
Use an upload request when someone outside your application needs to provide a product image, downloadable product, catalog import, video, or support document. Each request collects one file and produces a normal Inttegro file when the upload succeeds.
The upload request object
An upload request records what file you expect, who should provide it, and whether it has arrived. New requests start as Inttegro.UploadRequestStatus.Pending"pending"uploadrequest.StatusPendingUploadRequestStatus.PENDING\Inttegro\UploadRequest\Status::Pendinginttegro.upload_request.Status.PENDINGInttegro::UploadRequest::Status::PENDINGInttegro.UploadRequestStatuses.Pending; an accepted file changes the request to Inttegro.UploadRequestStatus.Fulfilled"fulfilled"uploadrequest.StatusFulfilledUploadRequestStatus.FULFILLED\Inttegro\UploadRequest\Status::Fulfilledinttegro.upload_request.Status.FULFILLEDInttegro::UploadRequest::Status::FULFILLEDInttegro.UploadRequestStatuses.Fulfilled and sets FileIdupload_request.file_idFileIDfileIdfileIdfile_idupload_request.file_idfileId. A request can instead become Inttegro.UploadRequestStatus.Failed"failed"uploadrequest.StatusFailedUploadRequestStatus.FAILED\Inttegro\UploadRequest\Status::Failedinttegro.upload_request.Status.FAILEDInttegro::UploadRequest::Status::FAILEDInttegro.UploadRequestStatuses.Failed, Inttegro.UploadRequestStatus.Expired"expired"uploadrequest.StatusExpiredUploadRequestStatus.EXPIRED\Inttegro\UploadRequest\Status::Expiredinttegro.upload_request.Status.EXPIREDInttegro::UploadRequest::Status::EXPIREDInttegro.UploadRequestStatuses.Expired, or Inttegro.UploadRequestStatus.Canceled"canceled"uploadrequest.StatusCanceledUploadRequestStatus.CANCELED\Inttegro\UploadRequest\Status::Canceledinttegro.upload_request.Status.CANCELEDInttegro::UploadRequest::Status::CANCELEDInttegro.UploadRequestStatuses.Canceled.
Use Activeupload_request.activeActiveactiveactiveactiveupload_request.activeactive to decide whether the link can still accept a file. When a request is fulfilled, retrieve the resulting file through Lookup a file.
Properties
UploadRequestv13.1.0Go SDK responseUploadRequestv14.0.0Java SDK responseUploadRequestv11.1.0PHP SDK responseUploadRequestv15.0.0Python SDK responseUploadRequestv15.0.0Ruby SDK responseUploadRequestDetailsv13.0.0TypeScript SDK responseUploadRequestv15.0.0#
AttemptattemptAttemptattemptattemptattemptattemptattemptDictionary<string, object?>objectmap[string]anyMap<String, Object>?UploadRequest\AttemptUploadRequestAttempt | NoneT::Hash[String, T.untyped]Record<string, unknown>Most recent upload attempt. Lookup and upload responses include it after the uploader has tried to send a file.Click or tap to expand- #
AttemptedAtattempted_atAttemptedAtattemptedAtattemptedAtattempted_atattempted_atattemptedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen the upload attempt started. - #
ContentTypecontent_typeContentTypecontentTypecontentTypecontent_typecontent_typecontentTypestringstringstringString?stringstr | NoneStringstringDeclared content type when present. - #
DeclaredSizedeclared_sizeDeclaredSizedeclaredSizedeclaredSizedeclared_sizedeclared_sizedeclaredSizelongintegerint64Long?intint | NoneIntegernumberDeclared file size in bytes when present. - #
ErrorerrorErrorerrorerrorerrorerrorerrorDictionary<string, object?>objectmap[string]anyMap<String, Object>?UploadRequest\LatestErrorUploadRequestLatestError | NoneT::Hash[String, T.untyped]Record<string, unknown>View error detailsClick or tap to expand
Why the file was not accepted and whether the uploader may try again. - #
ReviewreviewReviewreviewreviewreviewreviewreviewDictionary<string, object?>objectmap[string]anyMap<String, Object>?UploadRequest\ReviewUploadRequestReview | NoneT::Hash[String, T.untyped]Record<string, unknown>View review detailsClick or tap to expand
Your approval or rejection of the uploaded file, when reviewed. - #
SucceededAtsucceeded_atSucceededAtsucceededAtsucceededAtsucceeded_atsucceeded_atsucceededAtDateTimeOffsettimestampTimeOffsetDateTime?DateTimeImmutabledatetime | NoneTimeDateWhen a successful attempt completed. - #
UploadRequestIdupload_request_idUploadRequestIDuploadRequestIduploadRequestIdupload_request_idupload_request_iduploadRequestIdstringstringstringStringstringstrStringstringUpload-request ID that owns the attempt.
#
AttemptsattemptsAttemptsattemptsattemptsattemptsattemptsattemptsUploadRequestAttempts?objectmap[string]anyUploadAttemptsUploadRequest\AttemptsUploadRequestAttemptsT::Hash[String, T.untyped]UploadRequestAttemptsUpload-attempt limit and current counts.Click or tap to expand- #
AttemptCountattempt_countAttemptCountattemptCountattemptCountattempt_countattempt_countattemptCountint?integerint64LongintintIntegernumberTotal upload attempts recorded for this request. - #
FailedAttemptCountfailed_attempt_countFailedAttemptCountfailedAttemptCountfailedAttemptCountfailed_attempt_countfailed_attempt_countfailedAttemptCountint?integerint64LongintintIntegernumberHow many upload attempts have failed validation or fulfillment. - #
LastAttemptedAtlast_attempted_atLastAttemptedAtlastAttemptedAtlastAttemptedAtlast_attempted_atlast_attempted_atlastAttemptedAtDateTimeOffset?timestampTimeOffsetDateTime?DateTimeImmutabledatetime | NoneTimeDateWhen the most recent upload attempt happened. - #
MaxAttemptsmax_attemptsMaxAttemptsmaxAttemptsmaxAttemptsmax_attemptsmax_attemptsmaxAttemptsint?integerint64Integer?intint | NoneIntegernumberMaximum number of allowed failed attempts.
- #
CanceledAtcanceled_atCanceledAtcanceledAtcanceledAtcanceled_atcanceled_atcanceledAtDateTimeOffset?timestampTimeOffsetDateTime?DateTimeImmutabledatetime | NoneTimeDate | nullWhen the request was canceled. Returned only after cancellation.
#
CanceledBycanceled_byCanceledBycanceledBycanceledBycanceled_bycanceled_bycanceledByDictionary<string, object?>objectmap[string]anyMap<String, Object>?UploadRequest\ActorUploadRequestActor | NoneT::Hash[String, T.untyped]Record<string, unknown>Person or system that canceled the request. Present only after cancellation.Click or tap to expand- #
ServiceserviceServiceserviceserviceserviceserviceservicestringstringstringStringstringstrStringstringService name when the request was canceled by an automated workflow.
#
ConstraintsconstraintsConstraintsconstraintsconstraintsconstraintsconstraintsconstraintsUploadRequestConstraints?objectmap[string]anyUploadConstraintsUploadRequest\ConstraintsUploadRequestConstraintsT::Hash[String, T.untyped]UploadRequestConstraintsOptional file requirements that are stricter than the selected purpose.Click or tap to expand- #
ContentTypescontent_typesContentTypescontentTypescontentTypescontent_typescontent_typescontentTypesList<string>?array[]anyList<String>?arraylist[str] | NoneT::Array[T.untyped]string[]Optional narrowed allow-list of MIME types. - #
ExtensionsextensionsExtensionsextensionsextensionsextensionsextensionsextensionsList<string>?array[]anyList<String>?arraylist[str] | NoneT::Array[T.untyped]string[]Optional narrowed allow-list of filename extensions.
#
CustomDatacustom_dataCustomDatacustomDatacustomDatacustom_datacustom_datacustomDataCustomData?object*DataCustomData?CustomDataCustomData | NoneT::Hash[String, T.untyped]CustomDataClick or tap to expandOptional string key-value custom data copied to the resulting file.
#
DisplaydisplayDisplaydisplaydisplaydisplaydisplaydisplayUploadRequestDisplay?objectmap[string]anyUploadDisplayUploadRequest\DisplayUploadRequestDisplayT::Hash[String, T.untyped]UploadRequestDisplayHuman-facing copy shown to the uploader.Click or tap to expand- #
DescriptiondescriptionDescriptiondescriptiondescriptiondescriptiondescriptiondescriptionstring?stringstringString?stringstr | NoneStringstringOptional longer explanation of what should be uploaded.
- #
ExpiredAtexpired_atExpiredAtexpiredAtexpiredAtexpired_atexpired_atexpiredAtDateTimeOffsettimestampTimeOffsetDateTime?DateTimeImmutabledatetime | NoneTimeDateWhen the request was marked expired. Returned only after expiry is recorded.
- #
FulfilledAtfulfilled_atFulfilledAtfulfilledAtfulfilledAtfulfilled_atfulfilled_atfulfilledAtDateTimeOffsettimestampTimeOffsetDateTime?DateTimeImmutabledatetime | NoneTimeDateWhen a valid upload produced the file. Returned only after fulfillment succeeds.
#
LatestErrorlatest_errorLatestErrorlatestErrorlatestErrorlatest_errorlatest_errorlatestErrorDictionary<string, object?>objectmap[string]anyMap<String, Object>?UploadRequest\LatestErrorUploadRequestLatestError | NoneT::Hash[String, T.untyped]Record<string, unknown>Most recent validation or fulfillment error.Click or tap to expand#
MetadatametadataMetadatametadatametadatametadatametadatametadataFileMetadata?objectmap[string]stringFileMetadata?arraydict[str, str] | NoneT::Hash[String, T.untyped]FileMetadataClick or tap to expandAdditional read-only details supplied by Inttegro. Use
CustomDataupload_request.custom_dataCustomDatacustomDatacustomDatacustom_dataupload_request.custom_datacustomDatafor your own data.- #
PurposepurposePurposepurposepurposepurposepurposepurposestring?stringstringStringstringstrStringstringFile purpose the upload must satisfy:
"product_download""product_download""product_download""product_download"'product_download''product_download''product_download'"product_download"accepts PDF, ZIP, text, and CSV files up to 100 MiB."product_image""product_image""product_image""product_image"'product_image''product_image''product_image'"product_image"accepts JPEG, PNG, and GIF images up to 10 MiB."product_video""product_video""product_video""product_video"'product_video''product_video''product_video'"product_video"accepts MP4, WebM, and QuickTime video up to 250 MiB."products_import""products_import""products_import""products_import"'products_import''products_import''products_import'"products_import"accepts a CSV catalog import up to 32 MiB and 10,000 product rows."support_document""support_document""support_document""support_document"'support_document''support_document''support_document'"support_document"accepts PDF, JPEG, PNG, and text files up to 25 MiB.
#
RecipientrecipientRecipientrecipientrecipientrecipientrecipientrecipientDictionary<string, object?>objectmap[string]anyMap<String, Object>File\PartyFilePartyT::Hash[String, T.untyped]FileActorPerson expected to provide the file, when you want that context on the request.Click or tap to expand- Recipient type such as
"customer""customer""customer""customer"'customer''customer''customer'"customer","email""email""email""email"'email''email''email'"email", or"user""user""user""user"'user''user''user'"user".
#
RequesterrequesterRequesterrequesterrequesterrequesterrequesterrequesterDictionary<string, object?>objectmap[string]anyMap<String, Object>UploadRequest\ActorUploadRequestActorT::Hash[String, T.untyped]FileActorPerson or system that created the request. Inttegro identifies the caller from the API key unless you supply additional details.Click or tap to expand- #
ServiceserviceServiceserviceserviceserviceserviceservicestringstringstringStringstringstrStringstringService name when the request came from an automated workflow.
#
ResourceresourceResourceresourceresourceresourceresourceresourceDictionary<string, object?>objectmap[string]anyMap<String, Object>File\ResourceFileResourceT::Hash[String, T.untyped]FileResourceOrder, product, case, or other resource that needs the file.Click or tap to expand- #
StatusstatusStatusstatusstatusstatusstatusstatusstring?stringStatusUploadRequestStatusstringLiteral['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed']StringUploadRequestStatusUpload-request lifecycle status:
Inttegro.UploadRequestStatus.Pending"pending"uploadrequest.StatusPendingUploadRequestStatus.PENDING\Inttegro\UploadRequest\Status::Pendinginttegro.upload_request.Status.PENDINGInttegro::UploadRequest::Status::PENDINGInttegro.UploadRequestStatuses.Pending,Inttegro.UploadRequestStatus.Uploading"uploading"uploadrequest.StatusUploadingUploadRequestStatus.UPLOADING\Inttegro\UploadRequest\Status::Uploadinginttegro.upload_request.Status.UPLOADINGInttegro::UploadRequest::Status::UPLOADINGInttegro.UploadRequestStatuses.Uploading,Inttegro.UploadRequestStatus.Fulfilled"fulfilled"uploadrequest.StatusFulfilledUploadRequestStatus.FULFILLED\Inttegro\UploadRequest\Status::Fulfilledinttegro.upload_request.Status.FULFILLEDInttegro::UploadRequest::Status::FULFILLEDInttegro.UploadRequestStatuses.Fulfilled,Inttegro.UploadRequestStatus.Expired"expired"uploadrequest.StatusExpiredUploadRequestStatus.EXPIRED\Inttegro\UploadRequest\Status::Expiredinttegro.upload_request.Status.EXPIREDInttegro::UploadRequest::Status::EXPIREDInttegro.UploadRequestStatuses.Expired,Inttegro.UploadRequestStatus.Canceled"canceled"uploadrequest.StatusCanceledUploadRequestStatus.CANCELED\Inttegro\UploadRequest\Status::Canceledinttegro.upload_request.Status.CANCELEDInttegro::UploadRequest::Status::CANCELEDInttegro.UploadRequestStatuses.Canceled, orInttegro.UploadRequestStatus.Failed"failed"uploadrequest.StatusFailedUploadRequestStatus.FAILED\Inttegro\UploadRequest\Status::Failedinttegro.upload_request.Status.FAILEDInttegro::UploadRequest::Status::FAILEDInttegro.UploadRequestStatuses.Failed. - #
UpdatedAtupdated_atUpdatedAtupdatedAtupdatedAtupdated_atupdated_atupdatedAtDateTimeOffsettimestampTimeOffsetDateTimeDateTimeImmutabledatetimeTimeDateWhen the upload request was last updated.
- #
UploadingAtuploading_atUploadingAtuploadingAtuploadingAtuploading_atuploading_atuploadingAtDateTimeOffsettimestampTimeOffsetDateTime?DateTimeImmutabledatetime | NoneTimeDateWhen an upload attempt moved into active fulfillment. Returned only while or after an upload attempt has started.
When an attempt has been reviewed, Attempt.Reviewupload_request.attempt.reviewAttempt.Reviewattempt.reviewattempt.reviewattempt.reviewupload_request.attempt.reviewattempt.review records the decision, the review time, an optional message for the uploader, and any structured reasons.
For "products_import""products_import""products_import""products_import"'products_import''products_import''products_import'"products_import", every nonblank data row must contain at least these columns in order: name, type, price_currency, price_value, reference, description, about, category, tax_code, unit_dimension, price_label, publish, and attributes. An optional first header row may use those names in the same order. The file must contain between 1 and 10,000 data rows.
Create an upload request POST /upload_requests/create
Create an upload request when another person or system should send the file directly to Inttegro. The response includes a secure UploadUrlupload_request.upload_urlUploadURLuploadUrluploadUrlupload_urlupload_urluploadUrl that you can place behind a button, send in a message, or hand to another trusted system.
The PurposepurposePurposepurposepurposepurposepurposepurpose sets the kinds and maximum size of file Inttegro accepts. Use ConstraintsconstraintsConstraintsconstraintsconstraintsconstraintsconstraintsconstraints only when this particular request should be stricter—for example, to accept only PDF support documents under 10 MiB.
Request body
CreateParamsv14.0.0Java SDK requestUploadRequestCreateParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestCreateRequestv15.0.0Ruby SDK requestUploadRequest::CreateRequestv13.0.0TypeScript SDK requestUploadRequestCreateRequestv15.0.0#
AttemptsattemptsAttemptsattempts(…)attemptsattemptsattemptsattemptsDictionary<string, object?>objectmap[string]anyUploadAttemptsarray<string, mixed>AttemptsRequestT.nilable(UploadRequest::AttemptsRequest)Pick<UploadRequestAttempts, 'maxAttempts'>Optional limit on failed upload attempts.Click or tap to expand- #
MaxAttemptsmax_attemptsMaxAttemptsmaxAttempts(…)maxAttemptsmax_attemptsmax_attemptsmaxAttemptslongintegerint64IntegerintintT.nilable(Integer)numberMaximum number of allowed failed attempts. Defaults to33333333.
#
ConstraintsconstraintsConstraintsconstraints(…)constraintsconstraintsconstraintsconstraintsDictionary<string, object?>objectConstraintsUploadConstraintsarray<string, mixed>ConstraintsInputT.nilable(UploadRequest::Constraints)UploadRequestConstraintsOptional requirements for this upload. These can narrow, but not widen, the selected purpose.Click or tap to expand- #
ContentTypescontent_typesContentTypescontentTypes(…)contentTypescontent_typescontent_typescontentTypesList<object?>array[]stringList<String>list<mixed>list[str]T.nilable(T::Array[String])string[]Optional narrowed allow-list of MIME types. - #
ExactSizeexact_sizeExactSizeexactSize(…)exactSizeexact_sizeexact_sizeexactSizelongintegerint64IntegerintintT.nilable(Integer)numberOptional exact file size in bytes. - #
ExtensionsextensionsExtensionsextensions(…)extensionsextensionsextensionsextensionsList<object?>array[]stringList<String>list<mixed>list[str]T.nilable(T::Array[String])string[]Optional narrowed allow-list of filename extensions.
#
CustomDatacustom_dataCustomDatacustomData(…)customDatacustom_datacustom_datacustomDataDictionary<string, object?>object*DataCustomDataarray<string, mixed>CustomDataT.nilable(CustomData)CustomDataClick or tap to expandOptional string key-value data for your own reconciliation. Inttegro copies it to the resulting file. The object can be at most 25 KiB and each key at most 256 characters.
#
DisplaydisplayDisplaydisplay(…)displaydisplaydisplaydisplayDictionary<string, object?>objectDisplayUploadDisplayarray<string, mixed>DisplayInputT::Hash[String, T.untyped]UploadRequestDisplayOptional uploader-facing copy.Click or tap to expand- #
DescriptiondescriptionDescriptiondescription(…)descriptiondescriptiondescriptiondescriptionstringstringstringStringstringstrStringstringOptional longer description of what to upload. - #
HelpTexthelp_textHelpTexthelpText(…)helpTexthelp_texthelp_texthelpTextstringstringstringStringstringstrStringstringOptional supporting guidance for the uploader.
- #
ExpiresAtexpires_atExpiresAtexpiresAt(…)expiresAtexpires_atexpires_atexpiresAtDateTimeOffsettimestamp*TimeOffsetDateTimeDateTimeImmutabledatetimeT.nilable(Time)DateOptional RFC 3339 expiry. The default is 24 hours from creation.
#
RecipientrecipientRecipientrecipient(…)recipientrecipientrecipientrecipientDictionary<string, object?>objectPartyActorarray<string, mixed>PartyInputT.nilable(File::Party)FileActorOptional uploader identity details.Click or tap to expand#
RequesterrequesterRequesterrequester(…)requesterrequesterrequesterrequesterDictionary<string, object?>objectActorActorarray<string, mixed>ActorInputT.nilable(File::ActorInput)FileActorOptional details about the person or system creating the request. Normally, Inttegro identifies the caller from the API key.Click or tap to expand#
ResourceresourceResourceresource(…)resourceresourceresourceresourceDictionary<string, object?>objectFileResourceResourceRefarray<string, mixed>ResourceInputT.nilable(File::Resource)FileResourceOptional Inttegro resource or workflow that needs the file.Click or tap to expand#
SubjectsubjectSubjectsubject(…)subjectsubjectsubjectsubjectDictionary<string, object?>objectPartyActorarray<string, mixed>PartyInputT.nilable(File::Party)FileActorOptional person or Inttegro object the requested file is about.Click or tap to expand
Upload limits
- The link expires after 24 hours unless you provide a future
ExpiresAtexpires_atExpiresAtexpiresAtexpires_atexpires_atexpires_atexpiresAt. - The uploader gets three failed attempts unless you set
Attempts.MaxAttemptsattempts.max_attemptsAttempts.MaxAttemptsattempts.maxAttemptsattempts.max_attemptsattempts.max_attemptsattempts.max_attemptsattempts.maxAttempts. - File sizes are measured in bytes. Any minimum, maximum, or exact size must fit within the selected purpose’s limit.
- Content types, extensions, and an exact filename can make a request more restrictive, but they cannot permit a file that the selected purpose rejects.
Response
Returns the new upload request and its UploadUrlupload_request.upload_urlUploadURLuploadUrluploadUrlupload_urlupload_urluploadUrl. Save the URL when you create the request because Inttegro does not return it again through lookup, page, or cancel.
Treat the URL like a temporary secret: anyone who has the complete URL can upload against the request. Use a stable idempotency key when retrying this call so that a network failure does not create multiple live links for the same upload.
Request
curl https://api.inttegro.com/upload_requests/create \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Idempotency-Key: support-doc-upload-001" \
-H "Content-Type: application/json" \
-d '{
"purpose": "support_document",
"constraints": {
"content_types": ["application/pdf"],
"max_size": 10485760
},
"display": {
"title": "Upload dispute evidence",
"help_text": "Attach a PDF under 10 MB."
},
"recipient": { "type": "customer", "email": "ama@example.com" },
"resource": { "type": "dispute", "id": "disp_123" },
"custom_data": { "case_id": "CASE-1001" },
"expires_at": "2030-07-06T12:30:00Z"
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.uploadRequests.create({
purpose: "support_document",
constraints: {
contentTypes: [
"application/pdf",
],
maxSize: 10485760,
},
display: {
title: "Upload dispute evidence",
helpText: "Attach a PDF under 10 MB.",
},
recipient: {
type: "customer",
email: "ama@example.com",
},
resource: {
type: "dispute",
id: "disp_123",
},
customData: {
case_id: "CASE-1001",
},
expiresAt: new Date("2030-07-06T12:30:00Z"),
}, {
idempotencyKey: "support-doc-upload-001",
})package main
import (
"context"
"log"
"os"
"time"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/customdata"
"github.com/inttegro/inttegro-sdk-go/v14/request"
"github.com/inttegro/inttegro-sdk-go/v14/uploadrequest"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := uploadrequest.CreateParams{
Purpose: "support_document",
Constraints: uploadrequest.Constraints{
ContentTypes: []string{
"application/pdf",
},
MaxSize: 10485760,
},
Display: uploadrequest.Display{
Title: "Upload dispute evidence",
HelpText: "Attach a PDF under 10 MB.",
},
Recipient: uploadrequest.Party{
Type: "customer",
Email: "ama@example.com",
},
Resource: uploadrequest.FileResource{
Type: "dispute",
ID: "disp_123",
},
CustomData: func() *customdata.Data { value, err := customdata.New(map[string]string{
"case_id": "CASE-1001",
}); if err != nil { panic(err) }; return value }(),
ExpiresAt: mustParseTime("2030-07-06T12:30:00Z"),
}
result, err := client.UploadRequests.Create(ctx, params, request.WithIdempotencyKey("support-doc-upload-001"))
if err != nil {
log.Fatal(err)
}
_ = result
}
func mustParseTime(value string) *time.Time {
parsed, err := time.Parse(time.RFC3339, value)
if err != nil {
panic(err)
}
return &parsed
}import os
from datetime import datetime
import inttegro
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.upload_requests.create(inttegro.upload_request.CreateRequest(
purpose="support_document",
constraints=inttegro.upload_request.ConstraintsInput(
content_types=[
"application/pdf",
],
max_size=10485760,
),
display=inttegro.upload_request.DisplayInput(
title="Upload dispute evidence",
help_text="Attach a PDF under 10 MB.",
),
recipient=inttegro.file.PartyInput(
type="customer",
email="ama@example.com",
),
resource=inttegro.file.ResourceInput(
type="dispute",
id="disp_123",
),
custom_data=inttegro.CustomData({
"case_id": "CASE-1001",
}),
expires_at=datetime.fromisoformat("2030-07-06T12:30:00Z".replace("Z", "+00:00")),
),
idempotency_key="support-doc-upload-001")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->uploadRequests->create([
'purpose' => 'support_document',
'constraints' => [
'content_types' => [
'application/pdf',
],
'max_size' => 10485760,
],
'display' => [
'title' => 'Upload dispute evidence',
'help_text' => 'Attach a PDF under 10 MB.',
],
'recipient' => [
'type' => 'customer',
'email' => 'ama@example.com',
],
'resource' => [
'type' => 'dispute',
'id' => 'disp_123',
],
'custom_data' => [
'case_id' => 'CASE-1001',
],
'expires_at' => '2030-07-06T12:30:00Z',
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.upload_requests.create(
purpose: "support_document",
constraints: {
content_types: [
"application/pdf",
],
max_size: 10485760,
},
display: {
title: "Upload dispute evidence",
help_text: "Attach a PDF under 10 MB.",
},
recipient: {
type: "customer",
email: "ama@example.com",
},
resource: {
type: "dispute",
id: "disp_123",
},
custom_data: {
case_id: "CASE-1001",
},
expires_at: "2030-07-06T12:30:00Z",
idempotency_key: "support-doc-upload-001"
)import com.inttegro.Client;
import com.inttegro.files.UploadRequestCreateParams;
import com.inttegro.files.UploadConstraints;
import java.util.List;
import com.inttegro.files.UploadDisplay;
import com.inttegro.files.Actor;
import com.inttegro.files.ResourceRef;
import com.inttegro.CustomData;
import java.time.OffsetDateTime;
import com.inttegro.RequestOptions;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = UploadRequestCreateParams.builder()
.purpose("support_document")
.constraints(UploadConstraints.builder()
.contentTypes(List.of(
"application/pdf"
))
.maxSize(10485760)
.build())
.display(UploadDisplay.builder()
.title("Upload dispute evidence")
.helpText("Attach a PDF under 10 MB.")
.build())
.recipient(Actor.builder()
.type("customer")
.email("ama@example.com")
.build())
.resource(ResourceRef.builder()
.type("dispute")
.id("disp_123")
.build())
.customData(new CustomData()
.set("case_id", "CASE-1001"))
.expiresAt(OffsetDateTime.parse("2030-07-06T12:30:00Z"))
.build();
var result = client.uploadRequests().create(params, RequestOptions.withIdempotencyKey("support-doc-upload-001"));
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.UploadRequests.CreateAsync(new {
purpose = "support_document",
constraints = new {
content_types = new[] {
"application/pdf",
},
max_size = 10485760,
},
display = new {
title = "Upload dispute evidence",
help_text = "Attach a PDF under 10 MB.",
},
recipient = new {
type = "customer",
email = "ama@example.com",
},
resource = new {
type = "dispute",
id = "disp_123",
},
custom_data = new {
case_id = "CASE-1001",
},
expires_at = "2030-07-06T12:30:00Z",
}, "support-doc-upload-001");{
"upload_request": {
"id": "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
"purpose": "support_document",
"status": "pending",
"active": true,
"upload_url": "<UPLOAD_URL>",
"constraints": {
"content_types": ["application/pdf"],
"max_size": 10485760
},
"display": {
"help_text": "Attach a PDF under 10 MB.",
"title": "Upload dispute evidence"
},
"subject": {},
"recipient": { "type": "customer", "email": "ama@example.com" },
"resource": { "type": "dispute", "id": "disp_123" },
"requester": { "type": "api_key" },
"attempts": {
"max_attempts": 3,
"attempt_count": 0,
"failed_attempt_count": 0
},
"custom_data": { "case_id": "CASE-1001" },
"created_at": "2026-06-05T12:30:00Z",
"updated_at": "2026-06-05T12:30:00Z",
"expires_at": "2030-07-06T12:30:00Z"
}
}Fulfill an upload request POST /upload_requests/upload
Send the file as multipart/form-data to the complete upload link returned when the request was created. This call is made by the uploader and does not use your application’s API key; the secure values needed to accept the upload are already part of the URL.
Use the URL exactly as returned. Do not extract, log, or reconstruct its query parameters.
Included in the upload URL
FulfillParamsv14.0.0Java SDK requestUploadRequestFulfillParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestv13.0.0TypeScript SDK requestv15.0.0Identifies the upload request. It is already present in the generated upload link.
Authorizes the upload. It is already present in the generated upload link and must remain private.
Request body
FulfillParamsv14.0.0Java SDK requestUploadRequestFulfillParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestv15.0.0Ruby SDK requestv13.0.0TypeScript SDK requestv15.0.0Response
Returns the fulfilled upload request and a file receipt containing the resulting File.Idfile.idIDfile.idfile.idfile.idfile.idfile.id. Your authenticated backend can pass that ID to Lookup a file when it needs the complete file object.
If Inttegro rejects the file, the response includes an error and the failed attempt. Check error.retryable before offering another try. A retryable failure leaves the request pending while attempts remain; otherwise, create a new upload request.
Expired, canceled, fulfilled, and exhausted requests no longer accept uploads.
Request
curl "<UPLOAD_URL>" \
-F "file=@./evidence.pdf;type=application/pdf"import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.uploadRequests.fulfill({
uploadUrl: '<UPLOAD_URL>',
file: './evidence.pdf',
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/uploadrequest"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
uploadRequest, file, err := client.UploadRequests.Fulfill(ctx, uploadrequest.FulfillParams{
UploadURL: "<UPLOAD_URL>",
File: "./evidence.pdf",
})
if err != nil {
log.Fatal(err)
}
_ = uploadRequest
_ = file
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.upload_requests.fulfill(
upload_url="<UPLOAD_URL>",
file="./evidence.pdf",
)<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->uploadRequests->fulfill([
'upload_url' => '<UPLOAD_URL>',
'file' => './evidence.pdf',
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.upload_requests.fulfill(
upload_url: "<UPLOAD_URL>",
file: "./evidence.pdf"
)import com.inttegro.Client;
import com.inttegro.files.UploadRequestFulfillParams;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = UploadRequestFulfillParams.builder()
.uploadUrl("<UPLOAD_URL>")
.file("./evidence.pdf")
.build();
var result = client.uploadRequests().fulfill(params);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.UploadRequests.FulfillAsync(new {
upload_url = "<UPLOAD_URL>",
file = "./evidence.pdf",
});Lookup an upload request POST /upload_requests/lookup
Retrieve an upload request when you need its current status or the result of the uploader’s latest attempt. After fulfillment, FileIdupload_request.file_idFileIDfileIdfileIdfile_idupload_request.file_idfileId identifies the file Inttegro created.
Request body
Upload-request ID to retrieve.
Response
Returns the upload request and its latest attempt, when one exists. The response does not include UploadUrlupload_request.upload_urlUploadURLuploadUrluploadUrlupload_urlupload_request.upload_urluploadUrl; retain that URL only for as long as the intended uploader needs it.
Request
curl https://api.inttegro.com/upload_requests/lookup \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"uplreq_1gK9pQ4vL8mN2sT5wX7yZ0"}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.uploadRequests.lookup({
id: "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
result, err := client.UploadRequests.Lookup(ctx, "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0")
if err != nil {
log.Fatal(err)
}
_ = result
}import os
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.upload_requests.lookup("uplreq_1gK9pQ4vL8mN2sT5wX7yZ0")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->uploadRequests->lookup("uplreq_1gK9pQ4vL8mN2sT5wX7yZ0");require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.upload_requests.lookup(id: "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0")import com.inttegro.Client;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var result = client.uploadRequests().lookup("uplreq_1gK9pQ4vL8mN2sT5wX7yZ0");
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.UploadRequests.LookupAsync("uplreq_1gK9pQ4vL8mN2sT5wX7yZ0");Review an upload attempt POST /upload_requests/review
Approve or reject the latest upload attempt after your application has checked the file itself—for example, after confirming that a document is readable or contains the requested evidence. Approval keeps a successful request fulfilled. Rejection reopens it for a replacement when another attempt is available.
Request body
ReviewUploadRequestAttemptByIdRequest or ReviewUploadRequestAttemptByOrdinalRequestv13.1.0Go SDK requestReviewParamsv14.0.0Java SDK requestReviewUploadRequestAttemptByOrdinalParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestReviewAttemptByIDRequest or ReviewAttemptByOrdinalRequestv15.0.0Ruby SDK requestT.any(UploadRequest::ReviewAttemptByIDRequest, UploadRequest::ReviewAttemptByOrdinalRequest)v13.0.0TypeScript SDK requestUploadRequestReviewRequestv15.0.0- #
AttemptIdattempt_idAttemptIDattemptIdattemptIdattempt_idattempt_idattemptIdstring?stringstringStringstringstrStringstringAttempt ID to review. Supply exactly one of
AttemptIdattempt_idAttemptIDattemptIdattempt_idattempt_idattempt_idattemptIdorAttemptOrdinalattempt_ordinalAttemptOrdinalattemptOrdinalattempt_ordinalattempt_ordinalattempt_ordinalattemptOrdinal. - #
AttemptOrdinalattempt_ordinalAttemptOrdinalattemptOrdinal(…)attemptOrdinalattempt_ordinalattempt_ordinalattemptOrdinallongintegerint64LongintintIntegernumberOne-based attempt number to review. Supply exactly one of
AttemptIdattempt_idAttemptIDattemptIdattempt_idattempt_idattempt_idattemptIdorAttemptOrdinalattempt_ordinalAttemptOrdinalattemptOrdinalattempt_ordinalattempt_ordinalattempt_ordinalattemptOrdinal. - #
DecisiondecisionDecisiondecision(…)decisiondecisiondecisiondecisionstringstringstring(UploadReviewDecision)UploadRequestReviewDecisionstringLiteral['approved', 'rejected', UploadReviewDecision.APPROVED, UploadReviewDecision.REJECTED]Shared::UploadReviewDecisionUploadReviewDecisionrequiredReview decision:
Inttegro.UploadReviewDecision.Approved"approved"uploadrequest.ReviewDecisionApprovedUploadRequestReviewDecision.APPROVED\Inttegro\UploadRequest\ReviewDecision::Approvedinttegro.upload_request.ReviewDecision.APPROVEDInttegro::Shared::UploadReviewDecision::APPROVEDInttegro.UploadReviewDecisions.ApprovedorInttegro.UploadReviewDecision.Rejected"rejected"uploadrequest.ReviewDecisionRejectedUploadRequestReviewDecision.REJECTED\Inttegro\UploadRequest\ReviewDecision::Rejectedinttegro.upload_request.ReviewDecision.REJECTEDInttegro::Shared::UploadReviewDecision::REJECTEDInttegro.UploadReviewDecisions.Rejected. - #
PublicMessagepublic_messagePublicMessagepublicMessage(…)publicMessagepublic_messagepublic_messagepublicMessagestringstringstringStringstringstrT.nilable(String)stringOptional explanation suitable for showing to the uploader.
#
ReasonsreasonsReasonsreasons(…)reasonsreasonsreasonsreasonsList<UploadRequestReviewReason>object[]ReviewReasonList<UploadRequestReviewReason>array<string, mixed>list[ReviewReasonInput]T.nilable(T::Array[UploadRequest::ReviewReasonInput])UploadRequestReviewReason[]Optional structured reasons for the decision.Click or tap to expand
Only the latest attempt can be reviewed. You can approve only a successful attempt, and you cannot review a canceled or expired request. Use PublicMessagepublic_messagePublicMessagepublicMessagepublic_messagepublic_messagepublic_messagepublicMessage and ReasonsreasonsReasonsreasonsreasonsreasonsreasonsreasons for explanations that are safe to show to the uploader.
Response
Returns the updated upload request with the reviewed attempt. Use an idempotency key when submitting a review so a retry cannot record the decision twice.
Request
curl https://api.inttegro.com/upload_requests/review \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Idempotency-Key: review-upload-attempt-001" \
-H "Content-Type: application/json" \
-d '{
"id": "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
"attempt_ordinal": 1,
"decision": "rejected",
"reasons": [{
"code": "document_unreadable",
"message": "The document is too blurry to read."
}],
"public_message": "Please upload a clearer copy."
}'import { InttegroClient, UploadReviewDecisions } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.uploadRequests.review({
id: "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
attemptOrdinal: 1,
decision: UploadReviewDecisions.Rejected,
reasons: [
{
code: "document_unreadable",
message: "The document is too blurry to read.",
},
],
publicMessage: "Please upload a clearer copy.",
}, {
idempotencyKey: "review-upload-attempt-001",
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/request"
"github.com/inttegro/inttegro-sdk-go/v14/uploadrequest"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := uploadrequest.ReviewParams{
ID: "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
AttemptOrdinal: 1,
Decision: string(uploadrequest.ReviewDecisionRejected),
Reasons: []uploadrequest.ReviewReason{
{
Code: "document_unreadable",
Message: "The document is too blurry to read.",
},
},
PublicMessage: "Please upload a clearer copy.",
}
result, err := client.UploadRequests.Review(ctx, params, request.WithIdempotencyKey("review-upload-attempt-001"))
if err != nil {
log.Fatal(err)
}
_ = result
}import os
import inttegro
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.upload_requests.review(inttegro.upload_request.ReviewAttemptByOrdinalRequest(
id="uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
attempt_ordinal=1,
decision=inttegro.upload_request.ReviewDecision.REJECTED,
reasons=[
inttegro.upload_request.ReviewReasonInput(
code="document_unreadable",
message="The document is too blurry to read.",
),
],
public_message="Please upload a clearer copy.",
),
idempotency_key="review-upload-attempt-001")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->uploadRequests->review([
'id' => 'uplreq_1gK9pQ4vL8mN2sT5wX7yZ0',
'attempt_ordinal' => 1,
'decision' => \Inttegro\UploadReviewDecision::Rejected,
'reasons' => [
[
'code' => 'document_unreadable',
'message' => 'The document is too blurry to read.',
],
],
'public_message' => 'Please upload a clearer copy.',
], [
'idempotency_key' => "review-upload-attempt-001",
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.upload_requests.review(
id: "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
attempt_ordinal: 1,
decision: Inttegro::UploadReviewDecision::REJECTED,
reasons: [
{
code: "document_unreadable",
message: "The document is too blurry to read.",
},
],
public_message: "Please upload a clearer copy.",
idempotency_key: "review-upload-attempt-001"
)import com.inttegro.Client;
import com.inttegro.files.ReviewUploadRequestAttemptByOrdinalParams;
import com.inttegro.files.UploadRequestReviewDecision;
import java.util.List;
import com.inttegro.files.UploadRequestReviewReason;
import com.inttegro.RequestOptions;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = ReviewUploadRequestAttemptByOrdinalParams.builder()
.id("uplreq_1gK9pQ4vL8mN2sT5wX7yZ0")
.attemptOrdinal(1L)
.decision(UploadRequestReviewDecision.REJECTED)
.reasons(List.of(
UploadRequestReviewReason.builder()
.code("document_unreadable")
.message("The document is too blurry to read.")
.build()
))
.publicMessage("Please upload a clearer copy.")
.build();
var result = client.uploadRequests().review(params, RequestOptions.withIdempotencyKey("review-upload-attempt-001"));
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.UploadRequests.ReviewAsync(new Inttegro.ReviewUploadRequestAttemptByOrdinalRequest {
Id = "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
AttemptOrdinal = 1,
Decision = "rejected",
Reasons = new List<Inttegro.UploadRequestReviewReason> {
new Inttegro.UploadRequestReviewReason {
Code = "document_unreadable",
Message = "The document is too blurry to read.",
},
},
PublicMessage = "Please upload a clearer copy.",
}, "review-upload-attempt-001");Page upload requests POST /upload_requests/page
List upload requests when you need to find outstanding uploads, recent fulfillments, or requests associated with a particular order, product, case, or other resource.
Request body
PageParamsv14.0.0Java SDK requestUploadRequestPageParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestPageRequestv15.0.0Ruby SDK requestUploadRequest::PageRequestv13.0.0TypeScript SDK requestUploadRequestPageRequestv15.0.0- #
PageNumberpage_numberPageNumberpageNumber(…)pageNumberpage_numberpage_numberpageNumberlongintegerintIntegerintintT.nilable(Integer)numberPage number to retrieve. Defaults to
11111111. #
ResourceresourceResourceresourceresourceresourceresourceresourceDictionary<string, object?>objectFileResourceResourceRefarray<string, mixed>ResourceInputT.nilable(File::Resource)FileResourceOptional resource filter.Click or tap to expand- #
StatusstatusStatusstatus(…)statusstatusstatusstatusstringstringstringUploadRequestStatusstringLiteral['pending', 'uploading', 'fulfilled', 'expired', 'canceled', 'failed', UploadRequestStatus.PENDING, UploadRequestStatus.UPLOADING, UploadRequestStatus.FULFILLED, UploadRequestStatus.EXPIRED, UploadRequestStatus.CANCELED, UploadRequestStatus.FAILED]T.nilable(UploadRequest::Status)UploadRequestStatusOptional status filter:
Inttegro.UploadRequestStatus.Pending"pending"uploadrequest.StatusPendingUploadRequestStatus.PENDING\Inttegro\UploadRequest\Status::Pendinginttegro.upload_request.Status.PENDINGInttegro::UploadRequest::Status::PENDINGInttegro.UploadRequestStatuses.Pending,Inttegro.UploadRequestStatus.Uploading"uploading"uploadrequest.StatusUploadingUploadRequestStatus.UPLOADING\Inttegro\UploadRequest\Status::Uploadinginttegro.upload_request.Status.UPLOADINGInttegro::UploadRequest::Status::UPLOADINGInttegro.UploadRequestStatuses.Uploading,Inttegro.UploadRequestStatus.Fulfilled"fulfilled"uploadrequest.StatusFulfilledUploadRequestStatus.FULFILLED\Inttegro\UploadRequest\Status::Fulfilledinttegro.upload_request.Status.FULFILLEDInttegro::UploadRequest::Status::FULFILLEDInttegro.UploadRequestStatuses.Fulfilled,Inttegro.UploadRequestStatus.Expired"expired"uploadrequest.StatusExpiredUploadRequestStatus.EXPIRED\Inttegro\UploadRequest\Status::Expiredinttegro.upload_request.Status.EXPIREDInttegro::UploadRequest::Status::EXPIREDInttegro.UploadRequestStatuses.Expired,Inttegro.UploadRequestStatus.Canceled"canceled"uploadrequest.StatusCanceledUploadRequestStatus.CANCELED\Inttegro\UploadRequest\Status::Canceledinttegro.upload_request.Status.CANCELEDInttegro::UploadRequest::Status::CANCELEDInttegro.UploadRequestStatuses.Canceled, orInttegro.UploadRequestStatus.Failed"failed"uploadrequest.StatusFailedUploadRequestStatus.FAILED\Inttegro\UploadRequest\Status::Failedinttegro.upload_request.Status.FAILEDInttegro::UploadRequest::Status::FAILEDInttegro.UploadRequestStatuses.Failed.
Response
Returns a page with UploadRequestspage.upload_requestsUploadRequestsuploadRequestsuploadRequestsupload_requestsupload_requestsuploadRequests, Numberpage.numberNumbernumbernumbernumbernumbernumber, and Sizepage.sizeSizesizesizesizesizesize. Page items omit the latest attempt; use Lookup an upload request when you need an attempt or its validation error. An empty page has an empty UploadRequestspage.upload_requestsUploadRequestsuploadRequestsuploadRequestsupload_requestsupload_requestsuploadRequests collection and Sizepage.sizeSizesizesizesizesizesize set to 00000000.
Request
curl https://api.inttegro.com/upload_requests/page \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"purpose":"support_document","status":"pending","page_number":1,"page_size":25}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.uploadRequests.page({
purpose: "support_document",
status: "pending",
pageNumber: 1,
pageSize: 25,
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/uploadrequest"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := uploadrequest.PageParams{
Purpose: "support_document",
Status: "pending",
PageNumber: 1,
PageSize: 25,
}
result, err := client.UploadRequests.Page(ctx, params)
if err != nil {
log.Fatal(err)
}
_ = result
}import os
import inttegro
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.upload_requests.page(inttegro.upload_request.PageRequest(
purpose="support_document",
status="pending",
page_number=1,
page_size=25,
))<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->uploadRequests->page([
'purpose' => 'support_document',
'status' => 'pending',
'page_number' => 1,
'page_size' => 25,
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.upload_requests.page(
purpose: "support_document",
status: "pending",
page_number: 1,
page_size: 25
)import com.inttegro.Client;
import com.inttegro.files.UploadRequestPageParams;
import com.inttegro.files.UploadRequestStatus;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = UploadRequestPageParams.builder()
.purpose("support_document")
.status(UploadRequestStatus.PENDING)
.pageNumber(1)
.pageSize(25)
.build();
var result = client.uploadRequests().page(params);
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.UploadRequests.PageAsync(new {
purpose = "support_document",
status = "pending",
page_number = 1,
page_size = 25,
});Cancel an upload request POST /upload_requests/cancel
Cancel a request when you no longer need the file or when you have issued a replacement link. Its upload URL stops working immediately.
Request body
CancelParamsv14.0.0Java SDK requestUploadRequestCancelParamsv11.1.0PHP SDK requestv15.0.0Python SDK requestCancelRequestv15.0.0Ruby SDK requestUploadRequest::CancelRequestv13.0.0TypeScript SDK requestUploadRequestCancelRequestv15.0.0#
CanceledBycanceled_byCanceledBycanceledBy(…)canceledBycanceled_bycanceled_bycanceledByDictionary<string, object?>objectActorActorarray<string, mixed>ActorInputT.nilable(File::ActorInput)FileActorOptional actor canceling the request.Click or tap to expand
Response
Returns the request with Statusupload_request.statusStatusstatusstatusstatusstatusstatus set to Inttegro.UploadRequestStatus.Canceled"canceled"uploadrequest.StatusCanceledUploadRequestStatus.CANCELED\Inttegro\UploadRequest\Status::Canceledinttegro.upload_request.Status.CANCELEDInttegro::UploadRequest::Status::CANCELEDInttegro.UploadRequestStatuses.Canceled. Use a stable idempotency key when retrying the cancellation.
Request
curl https://api.inttegro.com/upload_requests/cancel \
-H "Authorization: Bearer $INTTEGRO_API_KEY" \
-H "Idempotency-Key: cancel-upload-request-001" \
-H "Content-Type: application/json" \
-d '{
"id": "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
"canceled_by": { "type": "user", "id": "usr_support_123" }
}'import { InttegroClient } from '@inttegro/inttegro-sdk'
const inttegro = new InttegroClient({
apiKey: process.env.INTTEGRO_API_KEY!,
})
const result = await inttegro.uploadRequests.cancel({
id: "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
canceledBy: {
type: "user",
id: "usr_support_123",
},
}, {
idempotencyKey: "cancel-upload-request-001",
})package main
import (
"context"
"log"
"os"
inttegro "github.com/inttegro/inttegro-sdk-go/v14"
"github.com/inttegro/inttegro-sdk-go/v14/filelink"
"github.com/inttegro/inttegro-sdk-go/v14/request"
"github.com/inttegro/inttegro-sdk-go/v14/uploadrequest"
)
func main() {
ctx := context.Background()
client := inttegro.NewClient(os.Getenv("INTTEGRO_API_KEY"))
params := uploadrequest.CancelParams{
ID: "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
CanceledBy: filelink.Actor{
Type: "user",
ID: "usr_support_123",
},
}
result, err := client.UploadRequests.Cancel(ctx, params, request.WithIdempotencyKey("cancel-upload-request-001"))
if err != nil {
log.Fatal(err)
}
_ = result
}import os
import inttegro
from inttegro import InttegroClient
client = InttegroClient(api_key=os.environ["INTTEGRO_API_KEY"])
result = client.upload_requests.cancel(inttegro.upload_request.CancelRequest(
id="uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
canceled_by=inttegro.file.ActorInput(
type="user",
id="usr_support_123",
),
),
idempotency_key="cancel-upload-request-001")<?php
use Inttegro\Client;
$client = new Client($_ENV['INTTEGRO_API_KEY']);
$result = $client->uploadRequests->cancel([
'id' => 'uplreq_1gK9pQ4vL8mN2sT5wX7yZ0',
'canceled_by' => [
'type' => 'user',
'id' => 'usr_support_123',
],
]);require "inttegro"
client = Inttegro::Client.new(api_key: ENV.fetch("INTTEGRO_API_KEY"))
result = client.upload_requests.cancel(
id: "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
canceled_by: {
type: "user",
id: "usr_support_123",
},
idempotency_key: "cancel-upload-request-001"
)import com.inttegro.Client;
import com.inttegro.files.UploadRequestCancelParams;
import com.inttegro.files.Actor;
import com.inttegro.RequestOptions;
public class Example {
public static void main(String[] args) throws Exception {
var client = new Client(System.getenv("INTTEGRO_API_KEY"));
var params = UploadRequestCancelParams.builder()
.id("uplreq_1gK9pQ4vL8mN2sT5wX7yZ0")
.canceledBy(Actor.builder()
.type("user")
.id("usr_support_123")
.build())
.build();
var result = client.uploadRequests().cancel(params, RequestOptions.withIdempotencyKey("cancel-upload-request-001"));
}
}using Inttegro;
using var inttegro = new InttegroClient(
Environment.GetEnvironmentVariable("INTTEGRO_API_KEY")!
);
var result = await inttegro.UploadRequests.CancelAsync(new {
id = "uplreq_1gK9pQ4vL8mN2sT5wX7yZ0",
canceled_by = new {
type = "user",
id = "usr_support_123",
},
}, "cancel-upload-request-001");