Skip to main content
POST
/
documents
/
{id}
/
rotate
Rotate a document
curl --request POST \
  --url https://api.terminal49.com/v2/documents/{id}/rotate \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{}

Documentation Index

Fetch the complete documentation index at: https://terminal49-codex-docs-audit-diataxis-skill.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Beta Feature - This endpoint is currently in beta. The API is stable, but the schema and behavior may evolve based on feedback.
After rotation is accepted, request GET /documents/{id}/download_url again to retrieve the updated image.

Authorizations

Authorization
string
header
required

Use a Terminal49 API key in the Authorization header with the Token prefix.

Authorization: Token YOUR_API_KEY

Path Parameters

id
string<uuid>
required

Body

application/json
degrees
enum<integer>
required
Available options:
90,
180,
270

Response

Accepted

status
enum<string>
required
Available options:
accepted