List resources
The workspace's resources, newest first. Filter by type, tag, status (for instance failed) or q, a search in the title. Paginate with cursor: pass next_cursor from the previous page.
GET/v1/resources
Requires resources:read.
Results come newest first. Pass next_cursor back as cursor while has_more is true. See Pagination.
Filter with type (text, file, url or site), tag, status (for instance failed, to find what needs attention) and q, a search in the title. A mistyped parameter name is ignored, not rejected, so check that your filter really applied.
Check status before you build an assistant on a resource: only ready resources can answer. See Resources.
Authorizations
Authorizationbearerin headerrequiredQuery parameters
limitintegerrange: 1–100Number of items to return. Values outside 1-100 are clamped, and the response reports the limit actually applied.
cursorstringpattern: ^res_[abcdefghjkmnpqrstuvwxyz23456789]{12}$Pass next_cursor from the previous page, unchanged.
tagstringlength: 1–60 charsOnly resources carrying this tag.
typeenum<string>one of: text, file, url, siteOnly resources of this type.
statusenum<string>one of: queued, processing, ready, failed, stale, ready_simulatedOnly resources in this state, such as failed to find what needs a fix or processing to see what is still being read.
qstringlength: 1–100 charsOnly resources whose title contains this text, without regard to case.
Response
List resources
dataobject[]requiredhas_morebooleanrequiredTrue when another page follows: pass next_cursor back as cursor.
next_cursorstringnullrequiredPass it back unchanged as cursor. Null on the last page.
limitintegerrequiredThe page size actually applied.
request_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked, invalid_access_key
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required, permission_denied
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequired