List organization context
curl --request GET \
--url https://api.trycomp.ai/v1/context \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/context', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/context"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "ctx_abc123def456",
"organizationId": "org_xyz789uvw012",
"question": "How do we handle user authentication in our application?",
"answer": "We use a hybrid authentication system supporting both API keys and session-based authentication.",
"tags": [
"authentication",
"security",
"api",
"sessions"
],
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T14:20:00.000Z"
},
{
"id": "ctx_ghi789jkl012",
"organizationId": "org_xyz789uvw012",
"question": "What database do we use and why?",
"answer": "We use PostgreSQL as our primary database with Prisma as the ORM.",
"tags": [
"database",
"postgresql",
"prisma",
"architecture"
],
"createdAt": "2024-01-14T09:15:00.000Z",
"updatedAt": "2024-01-14T09:15:00.000Z"
}
],
"count": 2,
"authType": "apikey"
}{
"message": "Unauthorized",
"statusCode": 401
}{
"message": "Organization not found",
"statusCode": 404
}{
"message": "Internal server error",
"statusCode": 500
}Context
List organization context | Comp AI API
List organization context entries used as approved source material for evidence, questionnaires, policies, and AI workflows.
GET
/
v1
/
context
List organization context
curl --request GET \
--url https://api.trycomp.ai/v1/context \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/context', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/context"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "ctx_abc123def456",
"organizationId": "org_xyz789uvw012",
"question": "How do we handle user authentication in our application?",
"answer": "We use a hybrid authentication system supporting both API keys and session-based authentication.",
"tags": [
"authentication",
"security",
"api",
"sessions"
],
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T14:20:00.000Z"
},
{
"id": "ctx_ghi789jkl012",
"organizationId": "org_xyz789uvw012",
"question": "What database do we use and why?",
"answer": "We use PostgreSQL as our primary database with Prisma as the ORM.",
"tags": [
"database",
"postgresql",
"prisma",
"architecture"
],
"createdAt": "2024-01-14T09:15:00.000Z",
"updatedAt": "2024-01-14T09:15:00.000Z"
}
],
"count": 2,
"authType": "apikey"
}{
"message": "Unauthorized",
"statusCode": 401
}{
"message": "Organization not found",
"statusCode": 404
}{
"message": "Internal server error",
"statusCode": 500
}Authorizations
API key for authentication
Query Parameters
Search by question text
Page number (1-based)
Items per page
Was this page helpful?
⌘I

