Skip to main content
POST
/
chat
/
completions
Create chat completion
curl --request POST \
  --url https://app.generalcounsel.ai/api/external/v1/chat/completions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "What are the key terms to look for in a software license agreement?"
}
'
{
  "result": "When reviewing a software license agreement, key terms to examine include:\n\n1. **License Grant** - Understand the scope of rights granted..."
}

Authorizations

Authorization
string
header
required

API key for authentication. Format: gcai_xxxxxxxxx

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

Body

application/json
message
string
required

The user's message or prompt

Minimum string length: 1
Example:

"What are the key terms to look for in a software license agreement?"

Response

Successful completion

result
string
required

The AI-generated response text

Example:

"When reviewing a software license agreement, key terms to examine include:\n\n1. **License Grant** - Understand the scope of rights granted..."