Skip to main content
POST
/
api
/
v1
/
compress
Compress Context
curl --request POST \
  --url https://api.example.com/api/v1/compress \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "strategy": "ai_compress",
  "include_metadata": false,
  "webhook_url": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Headers

X-Workspace-Id
string | null

The workspace ID

Body

application/json
content
required
strategy
string | null
default:ai_compress
include_metadata
boolean | null
default:false
webhook_url
string | null

Response

Successful Response