Add sessions to an Agent Analytics dataset
Adds sessions to a dataset. Sessions already in the dataset are ignored, so
the call is safe to repeat. Every session must belong to the path project;
a session from another project fails the whole request with 422.
/v1/projects/{project_id}/agent-analytics/datasets/{dataset_id}/sessionsAuthorizations
Authorizationstringrequiredhttp
Path parameters
project_idstringrequiredAmplitude project identifier, backed by the canonical app ID.
12345pattern: ^[0-9]+$dataset_idstringrequiredStable dataset identifier, returned by create or by the Agent Analytics read surface.
Header parameters
Idempotency-KeystringrequiredRequired on write operations. Keys aren't stored yet, so retrying a write with the same key performs it again; a retried create makes another resource. Check whether the first attempt succeeded before you retry.
min length: 8max length: 255Body
application/jsonsession_idsstring[]requiredSession identifiers. All must belong to the path project.
Response
application/jsondataobjectrequiredShow child attributes
idstringrequiredStable dataset identifier (ULID).
objectstringrequiredproject_idstringrequirednamestringrequiredmin length: 1descriptionstringrequirednullableagent_namestringrequiredAgent the dataset is scoped to. Null for project-level datasets.
nullablesource_typestringrequiredHow the dataset was assembled, such as manual.
session_countintegerrequiredSessions currently in the dataset.
reviewed_countintegerrequiredSessions in the dataset that carry a human review.
created_atstringrequiredformat: date-timecreated_bystringnullableWas this helpful?
For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.