List the user's recent AI conversations
GET/v1/ai/conversations
This route returns a paginated list of the calling user's AI assistant conversations, sorted by latest activity descending.
Use the cursor query parameter with the previous page's last askedAt value to fetch older pages.
To learn more about Port AI API interaction, check out the documentation.
Request
Parameters (JSON)
{
"parameters": [
{
"schema": {
"default": 20,
"type": "integer",
"exclusiveMinimum": true,
"maximum": 100
},
"in": "query",
"name": "limit",
"required": false,
"description": "Maximum number of conversations to return (default 20)."
},
{
"schema": {
"type": "string"
},
"in": "query",
"name": "cursor",
"required": false,
"description": "asked_at value of the last item from the previous page (ISO timestamp)."
},
{
"schema": {
"type": "string"
},
"in": "query",
"name": "search",
"required": false,
"description": "Case-insensitive substring match against conversation title."
}
]
}Request body schema (JSON)
{
"title": "Body"
}Responses
- 200
- 500
Default Response
Default Response
Responses (JSON)
{
"responses": {
"200": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"conversations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"conversationId": {
"type": "string",
"description": "Unique identifier for the conversation."
},
"title": {
"description": "Display title for the conversation.",
"type": "string"
},
"askedAt": {
"type": "string",
"description": "Timestamp of the most recent activity (ISO 8601)."
},
"status": {
"type": "string",
"enum": [
"In Progress",
"Completed",
"Failed"
],
"description": "Status of the latest invocation in the conversation."
},
"latestInvocationId": {
"type": "string",
"description": "Identifier of the most recent invocation segment in this conversation."
},
"pinned": {
"description": "Whether the conversation is pinned by the user.",
"type": "boolean"
}
},
"required": [
"conversationId",
"askedAt",
"status",
"latestInvocationId"
],
"additionalProperties": false
}
},
"nextCursor": {
"nullable": true,
"description": "Cursor for the next page, or null when there are no more results.",
"type": "string"
}
},
"required": [
"ok",
"conversations",
"nextCursor"
],
"additionalProperties": false
}
}
}
},
"500": {
"description": "Default Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"error": {
"type": "string"
},
"message": {
"type": "string"
},
"details": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"ok",
"error"
],
"additionalProperties": false
}
}
}
}
}
}