https://retellai.com/?utm_source=discord&utm_medium=seo logo
what error code can this throw and in what cases
# ❓・ai-evy-support
m
@AI Evy what error code can this throw and in what cases? await retell.phoneNumber.retrieve(phone);
a
Thanks for tagging me @mannankhan. I'll look through relevant sources and get back to you shortly.
### Answer The
client.phoneNumber.retrieve()
method can throw the following error codes: [(1) ]() | Error Code | Case | |------------|------| | 400 | Bad request (e.g., malformed input) | | 401 | Authentication failure (invalid or missing API key) | | 422 | Unprocessable entity (e.g., validation errors) | | 500 | Internal server error | The phone number parameter should be in E.164 format (e.g.,
+14157774444
) .
​ To learn more, see the sources I considered: [[1] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
hey @AI Evy
a
Thanks for the follow-up, @mannankhan. I'll get back to you soon.
### Answer Hey! How can I help you with Retell AI?
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.