For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inBook a demo
DocsReferenceChangelog
DocsReferenceChangelog
  • Introduction
    • SDKs
    • Errors
  • Humanloop API
      • GETList
      • POSTCreate
      • GETGet
LogoLogo
Sign inBook a demo
Humanloop APISessions

Create

POST
https://api.humanloop.com/v4/sessions
POST
/v4/sessions
$curl -X POST https://api.humanloop.com/v4/sessions \
> -H "X-API-KEY: <apiKey>"
1{
2 "id": "id"
3}
Create a new session. Returns a session ID that can be used to log datapoints to the session.
Was this page helpful?
Previous

Get

Next
Built with

Authentication

X-API-KEYstring
API Key authentication via header

Response

Successful Response
idstring

String ID of session. Starts with sesh_.

Errors

422
Sessions Create Request Unprocessable Entity Error