List documents for a connector
Retrieve documents for a specific API Connector. This endpoint requires a Data Source ID. To get started:
- Go to the API Connectors page
- Create a new API Connector
- Copy the data source ID from the connector details page
- Use this ID in the path parameter
Pagination
The endpoint uses cursor-based pagination to handle large result sets efficiently. Here’s how it works:
- First Request: Make a request without a cursor to get the first page of results
- Subsequent Requests: Use the
nextCursorfrom the previous response to get the next page - Cursor Format: The cursor is a string containing digits only.
- End of Results: When
nextCursorisundefined, you’ve reached the end of the results
Example pagination flow:
- First request:
GET /documents/int_21XZai6JGvd1111J→ Returns first page withnextCursor - Next request:
GET /documents/int_21XZai6JGvd1111J?cursor=456→ Returns next page - Continue until
nextCursorisundefined
Field Selection
By default, only document IDs are returned. Use the fields parameter to request additional fields:
- Available fields: id, title, content, content_type, url, document_created_at, document_updated_at, meta
- Example:
fields=id,title,content
Rate Limits
The endpoint is rate limited to 600 requests per minute.
Rate Limits
600 requests per minute.
Pagination
The endpoint uses cursor-based pagination. By default, only document IDs are returned. Use thefields parameter to request additional fields like title, content, url, and meta.
- Make a request without a cursor to get the first page of results
- Use the
nextCursorfrom the response to get the next page - Continue until
nextCursoris not present
Rate Limits
600 requests per minute.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Comma-separated list of fields to return. If not provided, only document IDs are returned.
id, title, content, content_type, url, document_created_at, document_updated_at, meta Cursor for pagination. Required for fetching results beyond the first 100 documents.
^\d+$Number of documents to return per page. Defaults to 20, maximum 100.
1 <= x <= 100
