#ttt999_api

1 messages ยท Page 1 of 1 (latest)

south sealBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1317117417012596807

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

tribal herald
#

hi

#

[
{
"qs": [
{
"key": "name",
"value": "jane"
}
],
"url": "/v1/customers/search",
"body": null,
"method": "GET",
"headers": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
]
}
]

#

I'm sending this and getting an error:

maiden rain
#

hi! is there a request ID req_xxx in the error message/exception?

tribal herald
#

not that I can see. Nothing on the dashboard in events / logs either

maiden rain
#

what software or platform are you using to make this request?

tribal herald
maiden rain
#

maybe it doesn't support this API?

tribal herald
#

it does, I have other API calls working with it

maiden rain
#

your parameters are not how this API works though.

#

it takes one parameter, query , as a string

tribal herald
#

how should I be sending the query string? as json?

maiden rain
#

not sure where this key/value structure you're using comes from

tribal herald
#

Like this:
--query="name:'Jane Doe' AND metadata['foo']:'bar'"

#

?

maiden rain
#

seems more correct yes, worth trying it out!

tribal herald
#

ok but I am not sure how / where in the http request this goes

south sealBOT
maiden rain
#

as a query parameter, using URL-encoding like /v1/customers/search?query=name%3A%27Jane%20Doe%27%20AND%20metadata%5B%27foo%27%5D%3A%27bar%27

tribal herald
#

ok thank you

#

got it working

lyric parcel
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!