List agent input variables
curl --request GET \
--url https://julian.11x.ai/api/v1/agents/{agentId}/input-variables \
--header 'x-api-key: <api-key>'import requests
url = "https://julian.11x.ai/api/v1/agents/{agentId}/input-variables"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://julian.11x.ai/api/v1/agents/{agentId}/input-variables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"inputVariables": [
{
"slug": "first_name",
"displayName": "First name",
"description": "The contact's first name"
}
]
}{
"error": "INVALID_PHONE_NUMBER",
"message": "<string>"
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "Internal Server Error. Please contact 11x team."
}Agents
List agent input variables
Returns the non-deleted input-variable definitions configured on the agent. Use each variable’s slug as the key in customVariables when scheduling a sequence.
GET
/
agents
/
{agentId}
/
input-variables
List agent input variables
curl --request GET \
--url https://julian.11x.ai/api/v1/agents/{agentId}/input-variables \
--header 'x-api-key: <api-key>'import requests
url = "https://julian.11x.ai/api/v1/agents/{agentId}/input-variables"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://julian.11x.ai/api/v1/agents/{agentId}/input-variables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"inputVariables": [
{
"slug": "first_name",
"displayName": "First name",
"description": "The contact's first name"
}
]
}{
"error": "INVALID_PHONE_NUMBER",
"message": "<string>"
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "Internal Server Error. Please contact 11x team."
}