Skip to main content
POST
/
projects
/
{project_id}
/
files
Attach File Endpoint
curl --request POST \
  --url https://backend.overtenai.com/api/v1/projects/{project_id}/files \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form 'file=<string>' \
  --form role=context \
  --form 'category=<string>' \
  --form 'description=<string>' \
  --form 'tags=<string>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Send X-API-Key: sk_live_<your_key>. Keys are issued via POST /signup or via the dashboard. Legacy callers may also use Authorization: Bearer sk_live_<your_key>.

Path Parameters

project_id
string
required

Body

multipart/form-data
file
string
required
role
string
default:context
category
string | null
description
string | null
tags
string | null

Response

Successful Response