PromptsList an answer's sources

List an answer's sources

Returns the pages one AI answer cited.

Required scope: v2:prompts. Takes no query parameters. The list is not paged.

  • label can be null.
  • A malformed id, or an answer in another workspace, returns 404 PROMPT_RESPONSE_NOT_FOUND.
curl -X GET "https://api.opttab.com/v1/external/responses/44444444-4444-4444-8444-444444444444/sources" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "items": [
    {
      "canonicalUrl": "https://north.example/shoes/daily-trainer",
      "domain": "north.example",
      "label": "Daily trainer"
    }
  ]
}
GET
/v1/external/responses/{responseId}/sources
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An API key secret from Settings › API. It starts with opt_live_. Send it as Authorization: Bearer opt_live_xxxxxxxx. A session cookie, an X-API-Key header and an ?api_key= query parameter do not authenticate.

An API key secret from Settings › API. It starts with opt_live_. Send it as Authorization: Bearer opt_live_xxxxxxxx. A session cookie, an X-API-Key header and an ?api_key= query parameter do not authenticate.
path
responseIdstring
Required

The answer's id, from GET /v1/external/prompts/{promptId}/responses.

Format: uuid
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An API key secret from Settings › API. It starts with opt_live_. Send it as Authorization: Bearer opt_live_xxxxxxxx. A session cookie, an X-API-Key header and an ?api_key= query parameter do not authenticate.

Path Parameters

responseIdstring
Required

The answer's id, from GET /v1/external/prompts/{promptId}/responses.

Example:
44444444-4444-4444-8444-444444444444

Responses

itemsarray
Required