AI observability
datasets
List active datasets by default, or archived datasets when requested.
get/api/projects/{project_id}/datasets/
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/datasets/
- Auth: HTTP bearer
Path parameters
project_idstring required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
archivedboolean
Return archived datasets instead of active datasets.
id__instring[]
Filter to these dataset IDs. Repeat the parameter or pass one comma-separated list, up to 100 IDs.
limitinteger
Number of results to return per page.
offsetinteger
The initial index from which to return the results.
order_by'created_at' | '-created_at' | 'updated_at' | '-updated_at'
Field and direction used to order results.
- created_at - created_at
- -created_at - -created_at
- updated_at - updated_at
- -updated_at - -updated_at
searchstring
Search dataset names, descriptions, and metadata.
Response
Example response
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100"
}Changes
No recorded changes to this operation across all 1 revision of this API.