Skip to main content
POST
/
api
/
beta
/
files
/
upload
curl "https://customerName.ambersearch.de/api/beta/files/upload?type=document" \
-H "Authorization: Bearer ambrs-exampletoken" \
-F file="@myfile.pdf"
{
  "id": "<string>",
  "type": "document",
  "created_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "size": 123
}
curl "https://customerName.ambersearch.de/api/beta/files/upload?type=document" \
-H "Authorization: Bearer ambrs-exampletoken" \
-F file="@myfile.pdf"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

type
enum<string>
required

The type of file being uploaded.

**Possible values:**
* `document` - Document files (PDF, Word, etc.)
* `image` - Image files (PNG, JPEG, etc.)
Available options:
document,
image

Body

multipart/form-data
file
file
required

The file to upload

Response

Successful Response

id
string
required
type
enum<string>
required
Available options:
document,
image
created_at
string<date-time>
required
name
string
required
size
integer
required