Using the Make API call step in an AI agent for messaging (Legacy)



image avatar

Aimee Spanier

Zendesk Documentation Team

Edited May 07, 2025


0

64

69 comments

Hi Gabriele,
 
Thanks for reaching out!
 
The character limit for the value field is 256 including spaces. Generally, you shouldn't see oAuth tokens exceeding that length. Can you make sure there are no extra spaces in the value field that might be causing the issue?
 
Thanks!
 
Tipene

0


Hello 

I have a problem with the headers keys: i need to use "authorization" key with a bearer token, but the field value it's short!

So my bearer token was truncate and i have an authorization error....

 

 

0


Hi Diego,
 
Thanks for providing this clarification for me!
 
Unfortunately the error that you're seeing is a result of having a period in the variable, as you mentioned in your earlier comment. This is a system rule and can't be overwritten. Variables with additional symbols or punctuation should be sent as a payload body in a PUT or POST request.
 
Feel free to reach out with any questions!
 
Tipene

0


Hi Tipene, certainly, here are the steps to reproduce, in Bot Flow Builder:

 - Add Step

 - Make API Call

 - In API Details, include GET Request Method with this type of request https://XXXXXXX.XXXXX.XXXXX/api/admin/users/{{sf.requester.email}}/

 - Select Add Variable and select Responses from Customers: Email, which adds {{sf.requester.email}} as displayed above

 - Press Make API Call and then are asked to include Test Data in the email. I put in my email XXXXXX@gmail.com and get an error "Variables added in the URL path must not contain periods."

0


Hi Diego,
 
Can you provide an example of the endpoint URL you're making the request to, including any query parameters (being sure to redact any sensitive info). Also, could you include the full error you're seeing when making the request.
 
Thanks!
 
Tipene

0


We're trying to use a GET call to an endpoint on our server that receives a user's e-mail and returns a json with several data points about our user. However, as we try and test it out, we get an error saying that the API call can't include a period so sending an email as a variable in the call doesn't seem to work.

0


Hi Raphael, if you'd like to know more about how to make API calls to get info/make updates to tickets in ZD, please check out our API documentation here on the Tickets endpoint. The Key and Header fields in your screenshot are for any parameters that you want to add to the request, with more info on parameters found in each relevant endpoint's documentation. Cheers!

0


Hi Zendesk team,

Can you add the info:

- how to make API calls to the Zendesk instance to :

1- get info 

2- do updates on the ticket?

- what should we put as key and value to be able to connect to our proper Zendesk Instance?

 

Thank you

0


Unfortunately there currently is a bug where we stored variables are not translated when used in text.

This is quite detrimental to the end user experience.

0


Hi there,

How can we pass variables stored in the chat to an API request URL?

For example, is it possible to store the customer question as a variable to pass as a param in the URL?

Thank you in advance

2


Sign in to leave a comment.