Goals

This endpoint can be used to retrieve the list of Goals for a specific chatbot.

Request

The following request will retrieve a list of Goals:

curl --location --request GET 
'https://publicapi.xenioo.com/analytics/goals' \
--header 'Authorization: Bearer <BOT_AUTH_TOKEN>' \
--header 'Content-Type: application/json'

Response

If successful, the response will contain an array of Goals for the specified Bot.

[
   {
      "Id":"...",
      "Name":"Name of the Goal",
   } 
]

Response Codes

This endpoint will reply with the following standard HTTP codes.

Code

Meaning

200

Ok. The request has been successfully fulfilled.

401

Unauthorized. The account associated to the token is not authorized

404

Not Found. The specified account or bot has not been found.

Last updated

Was this helpful?