Skip to main content
GET
/
athlete
/
ai-athlete-assistant
/
history
Get AI assistant conversation history for a job
curl --request GET \
  --url http://localhost/mogl/mogl-backend/api/athlete/ai-athlete-assistant/history \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "turn_id": 1,
      "session_id": "550e8400-e29b-41d4-a716-446655440000",
      "sender": "athlete",
      "content": "What deliverables are expected for this deal?",
      "created_at": "2025-01-01T00:00:00Z"
    }
  ],
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 5,
    "path": "https://api.mogl.online/api/athlete/ai-athlete-assistant/history",
    "per_page": 10,
    "to": 10,
    "total": 48
  },
  "links": {
    "first": "https://api.mogl.online/api/athlete/ai-athlete-assistant/history?page=1",
    "last": "https://api.mogl.online/api/athlete/ai-athlete-assistant/history?page=5",
    "prev": null,
    "next": "https://api.mogl.online/api/athlete/ai-athlete-assistant/history?page=2"
  }
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Query Parameters

job_id
integer
required

Job ID to retrieve the conversation history for.

Required range: x >= 1
Example:

42

page
integer

Page number (default 1).

Example:

1

limit
integer

Items per page (default 10).

Example:

10

page_limit
integer

Alternative to limit. Takes precedence over limit if both are provided.

Example:

10

Response

Paginated conversation history.

data
object[]
meta
object