AI Runs
Search Ai Runs
Search AI runs for an organization. Use search for free text; optional runType (e.g. research) and productId map to lister filters; sortOrder sorts by createdAt.
Required scopes: org:airuns:read
Authorization
bearerAuth AuthorizationBearer <token>
API key (prefix: cogn_) from Account → Developer
In: header
Path Parameters
orgId*string
Organization ID (prefix: org_)
Query Parameters
search?string
Free-text search for AI runs
sortOrder?string
Sort order by createdAt
Default
"desc"Value in
"asc" | "desc"runType?string
Restrict to this run type (e.g. research)
Value in
"research" | "static-ad" | "scripted-ad" | "landing-page-copy" | "creative-translation" | "blog" | "blog-translation" | "design-proposal" | "product-discovery" | "product-ingest" | "product-page-ingest" | "brand-launch"productId?string
Restrict to runs for this product (SID)
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/v1/org/string/ai-runs/search"{
"success": true,
"data": [],
"message": "Success",
"traceId": "req_abc123"
}{
"success": false,
"message": "Invalid data",
"errors": [
{
"code": 400,
"message": "Invalid data"
}
],
"traceId": "req_xxx"
}{
"success": false,
"message": "Unauthorized",
"errors": [
{
"code": 401,
"message": "Unauthorized"
}
],
"traceId": "req_xxx"
}{
"success": false,
"message": "Forbidden",
"errors": [
{
"code": 403,
"message": "Forbidden"
}
],
"traceId": "req_xxx"
}{
"success": false,
"message": "Not found",
"errors": [
{
"code": 404,
"message": "Not found"
}
],
"traceId": "req_xxx"
}{
"success": false,
"message": "Conflict",
"errors": [
{
"code": 409,
"message": "Conflict"
}
],
"traceId": "req_xxx"
}{
"success": false,
"message": "string",
"errors": [
{
"code": 0,
"message": "string",
"details": {}
}
],
"traceId": "string",
"params": {},
"readableMessage": "string"
}{
"success": false,
"message": "Rate limit exceeded",
"errors": [],
"traceId": "req_xxx"
}{
"success": false,
"message": "Unexpected error",
"errors": [
{
"code": 500,
"message": "Unexpected error"
}
],
"traceId": "req_xxx"
}