OhMyGPT
Chat

List stored responses

GET
/v1/responses

Lists stored responses owned by the authenticated user, newest first. Deleted responses are excluded; every stored status is returned. Use after with the previous page's last_id to page backwards.

授权

ApiKeyAuth
headerAuthorization<token>

查询参数

limit?integer

Maximum number of responses to return.

范围1 <= value <= 100
默认20
after?string

Response ID cursor from the previous page's last_id.

响应主体

Stored responses

application/json
  1. response
data*array<>
first_id*string
has_more*boolean
last_id*string
object*"list"
值于"list"
示例请求
curl -X GET 'https://api.ohmygpt.com/v1/responses'
示例响应
{  "data": [    {      "created_at": 0,      "expires_at": 0,      "id": "string",      "model": "string",      "object": "response",      "output_text": "string",      "previous_response_id": "string",      "status": "in_progress",      "usage": {        "input_tokens": 0,        "output_tokens": 0,        "total_tokens": 0      }    }  ],  "first_id": "string",  "has_more": true,  "last_id": "string",  "object": "list"}