Post apiv1uploadsinit
A valid request URL is required to generate request examples{
"uploadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assetKind": "PROJECT_LOGO",
"contentType": "<string>",
"sizeBytes": 123,
"state": "INITIATED",
"expiresAt": "2023-11-07T05:31:56Z",
"originalName": "<string>"
}{
"error": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Purpose of the asset; determines the allowed contentType and max size on upload (see InitUploadRequest.contentType). PROJECT_LOGO — project logo (light/dark variants). CAMPAIGN_MEDIA — campaign creative.
PROJECT_LOGO, CAMPAIGN_MEDIA MIME type of the file. Allowed values depend on assetKind: PROJECT_LOGO — image/png, image/jpeg, image/svg+xml (max 5 MB); CAMPAIGN_MEDIA — image/png, image/jpeg, image/gif, video/mp4 (max 25 MB). The server also verifies the actual file bytes against the declared contentType and sizeBytes.
"image/png"
Response
Success
Purpose of the asset; determines the allowed contentType and max size on upload (see InitUploadRequest.contentType). PROJECT_LOGO — project logo (light/dark variants). CAMPAIGN_MEDIA — campaign creative.
PROJECT_LOGO, CAMPAIGN_MEDIA INITIATED, UPLOADING, CLEANING, COMPLETED, FAILED, EXPIRED A valid request URL is required to generate request examples{
"uploadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assetKind": "PROJECT_LOGO",
"contentType": "<string>",
"sizeBytes": 123,
"state": "INITIATED",
"expiresAt": "2023-11-07T05:31:56Z",
"originalName": "<string>"
}{
"error": "<string>"
}