Skip to main content
GET
/
api
/
me
Get authenticated user context.
curl --request GET \
  --url https://openagents.com/api/me \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "chatThreads": [
      {
        "id": "<string>",
        "title": "<string>",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "user": {
      "avatar": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "email": "<string>",
      "handle": "<string>",
      "id": 123,
      "name": "<string>",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

chat_limit
integer

Maximum number of recent chat threads to include.

Required range: 1 <= x <= 200
Example:

50

Response

Authenticated user profile and quick chat thread summary

data
object