CorefinityCorefinityDocs
Open the Control PanelControl Panel
Support · 2 of 15

Create an upload for a reply

Opens an upload for one file a reply will carry, for a caller that cannot send a multipart form. Send the file with a PUT to the url this answers, which carries no token, then name the upload_id in the reply's upload_ids; a file nobody attaches is deleted a day after its upload was opened.

POST/api/support/ticket-uploads

Body

filenamestringRequired

The file's name, of a type the ticket page takes. Up to 200 characters.

size_bytesintegerRequired

The size of the file, exactly. At most the max_bytes an upload answers, which is never more than 512 MB. 1 to 536870912.

Returns

201 The upload is open.

Fields of the 201 answer
expires_atstringRequired

The file waits until then for a reply, then it is deleted. Format: date-time.

linesobjectRequired
Fields
notestringRequired
one_requeststringRequired

A curl line that sends the file.

max_bytesintegerRequired

The largest file an upload takes.

methodstringRequired
upload_idstringRequired

What a reply names in upload_ids. Format: uuid.

urlstringRequired

The signed address to send the file to. Shown only now, and good until url_expires_at.

url_expires_atstringRequired

Format: date-time.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403scope_requiredUse a token with the scope named in scope.
422invalidFix the field named in field; errors says why.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X POST https://manage.corefinity.com/api/support/ticket-uploads \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "filename": "checkout-error.png",
    "size_bytes": 184320
  }'
{
  "expires_at": "2026-11-04T16:40:11Z",
  "lines": {
    "note": "Send the whole file in one request, exactly size_bytes long, before url_expires_at. Then pass upload_id in upload_ids when you reply to the ticket.",
    "one_request": "curl --fail -X PUT --upload-file 'checkout-error.png' 'https://manage.corefinity.com/api/support/ticket-uploads/0d9c1a4e-6f1b-4f5e-9b8a-2d7c3e4f5a6b?expires=1792604411&signature=0000000000000000000000000000000000000000000000000000000000000000'"
  },
  "max_bytes": 104857600,
  "method": "PUT",
  "upload_id": "0d9c1a4e-6f1b-4f5e-9b8a-2d7c3e4f5a6b",
  "url": "https://manage.corefinity.com/api/support/ticket-uploads/0d9c1a4e-6f1b-4f5e-9b8a-2d7c3e4f5a6b?expires=1792604411&signature=0000000000000000000000000000000000000000000000000000000000000000",
  "url_expires_at": "2026-11-03T17:40:11Z"
}
Try it

Try it is off for this endpointIt has not been cleared for the console. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT