List organization context
GET
/v1/context
const url = 'https://api.varman.io/v1/context';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.varman.io/v1/context \ --header 'X-API-Key: <X-API-Key>'List organization context entries used as approved source material for evidence, questionnaires, policies, and AI workflows.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”search
string
Search by question text
page
string
Page number (1-based)
perPage
string
Items per page
Responses
Section titled “Responses”Context entries retrieved successfully
Media typeapplication/json
object
data
Array<object>
object
id
string
organizationId
string
question
string
answer
string
tags
Array<string>
createdAt
string format: date-time
updatedAt
string format: date-time
count
number
authType
string
Example
{ "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"}Unauthorized - Invalid or missing authentication
Media typeapplication/json
object
message
string
statusCode
number
Example
{ "message": "Unauthorized", "statusCode": 401}Organization not found
Media typeapplication/json
object
message
string
statusCode
number
Example
{ "message": "Organization not found", "statusCode": 404}Internal server error
Media typeapplication/json
object
message
string
statusCode
number
Example
{ "message": "Internal server error", "statusCode": 500}