Skip to content

File API

Develop modeUnverified

View as Markdown

File endpoints upload, download and delete files, attachments on a Service Ticket or Fallout Ticket, or general storage.

See REST API reference for the base URL and authentication header every request below needs.

Download File: download a file’s content by ID.

Parameter Type Need Notes
id string Required The file’s unique identifier.

Example request:

curl --location 'https://app.symphona.ai/dashboard/api/v1/file/5cda1d48-2378-4f8f-bd5c-131e7a7c70c0' \
--header 'apiKey: xxxxxx'

Sample response (200 OK): the raw file content.

Upload File: upload one or more files, optionally associated with an issue (a Service Ticket or Fallout Ticket). Supports multipart form data as well as JSON base64 payloads.

Request body:

Field Type Need Notes
issueId string Required if attaching to a ticket The issue/ticket this file belongs to.
file string (binary)[] Optional Binary file content; repeatable for multiple files.
fileInfo string Optional JSON metadata (e.g. per-file description).

Example request:

curl --location 'https://app.symphona.ai/dashboard/api/v1/file' \
--header 'apiKey: xxxxxx' \
--form 'file=@"/path/to/Hello World.txt"' \
--form 'fileInfo="[{\"description\": \"Demo\"}]"'

Sample response (200 OK):

[
{
"id": "5cda1d48-2378-4f8f-bd5c-131e7a7c70c0",
"name": "Hello World.txt",
"description": "Demo",
"type": "FILE",
"mediaLink": "https://storage.googleapis.com/download/storage/v1/b/symphona-st/o/..."
}
]

Delete File: remove a file from the system.

Parameter Type Need Notes
id string Required The file’s unique identifier.

Example request:

curl --location --request DELETE 'https://app.symphona.ai/dashboard/api/v1/file/5cda1d48-2378-4f8f-bd5c-131e7a7c70c0' \
--header 'apiKey: xxxxxx'

Sample response: 200 OK, “File deleted successfully”.