How long can the REST API call URL be?

Shrinil
Tera Contributor

I want to query the Table API for sys_db_object by providing few table names in the query param to get their info.

This makes the URL longer than 500 characters. I tested that URL on couple of instances with Postman as well as python. I am able to make the API call and get expected response.

So I want to know if all the instances have a large limit for URL by default and I will be able to make the API call successfully on all of them?

FYI: Making changes into Servicenow account is not easy since I do not have the access to it.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I don't think any configuration tells you what is the max length of URL which is supported.

Have a look on this

Enable tiny URL support

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thank you for suggesting tiny url. Anything that requires changes into Servicenow instance is not possible since no access.

My doubt was, there must be some maximum limit to the URL right? Is there any way to find out what it is?

Second, if an API call works on my instance, can I assume it will work on other instances too?

Thanks,
Shrinil

Shrinil
Tera Contributor

@Mohith Devatte @Aman Kumar @Musab Rasheed @Mark Roethof @Sandeep Dutta @Harish KM 

If anyone of you can help me with this?

Hi did you check this

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0829648

 

Regards
Harish