Skip to Content
0
Jun 29, 2020 at 06:54 AM

need ASAP information on Bot Builder & Connector APIs

60 Views Last edit Jun 29, 2020 at 07:58 AM 2 rev

Hi colleagues,

I have 2 questions for which I need an answer ASAP please.

  1. I need to do a simple script to extract the conversation logs (so using the Bot Builder and Bot Connector APIs which are protected by an Authorization header) from a local HTML file. Most of the time all the requests pass and I get a response, but sometimes they fail due to CORS.
    Can you please let me know what the CORS policy is for the CAI APIs? Is it possible that I call them locally?
  2. I keep getting a status code 429 on the Conversation States API (nr 1 below) when calling from a NodeJS app. I am doing 41 requests on this route in total.
    Could you please let me know what is the request limit and/or the Retry After parameter?
    [UPDATE] Some of the requests return 429, others 500. From Postman any call to the Conversation States API returns 504GATEWAY_TIMEOUT. Is there something wrong to this API?

Thank you!!

I am interested in the following routes:

  1. /build/v1/users/${USER_SLUG}/bots/${BOT_SLUG}/versions/${BOT_VERSION}/builder/conversation_states/${conversationID}
  2. /connect/v1/conversations/${conversationID}
  3. /connect/v1/conversations/