GET /v1/ai-goals
GET
/v1/ai-goals
const url = 'https://seu-endereco-da-api/v1/ai-goals?status=conducting&kind=agendar';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://seu-endereco-da-api/v1/ai-goals?status=conducting&kind=agendar' \ --header 'Authorization: Bearer <token>'Permissão que a Chave de acesso precisa: Ler conversas (conversations:read).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”status
string
kind
string
agentId
string format: uuid
startedByUserId
string format: uuid
cursor
string
limit
number
Responses
Seção intitulada “Responses”Goals of the conversations the caller sees, newest first, with nextCursor