Skip to main content
POST
/
projects
/
{id}
/
files
Attach a file to a project
curl --request POST \
  --url https://app.generalcounsel.ai/api/external/v1/projects/{id}/files \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "error": "Invalid input: expected string, received undefined"
}

Documentation Index

Fetch the complete documentation index at: https://docs.gc.ai/llms.txt

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

Authorizations

Authorization
string
header
required

API key for authentication. Format: gcai_xxxxxxxxx

Create API keys in the GC AI app under Settings → API.

Path Parameters

id
string<uuid>
required

The project ID

Body

application/json
file_id
string<uuid>
required

ID of an already-uploaded file to attach to the project

Response

File attached (idempotent, repeat calls are no-ops)