The API returns a maximum of 100 records per call.You can use this parameter to load the next set of records by passing in the value returned in the response, under last_id.
Listed below are common errors that may be returned by the endpoint, along with their corresponding status code.Status Code - 400
Missing Authorization header
Copy
Ask AI
{ "error": { "type": "missing_authorization", "message": "Your request does not include an 'Authorization' header with a bearer token for your account." }}
Status Code - 401
Expired Authorization header bearer token value
Copy
Ask AI
{ "error": { "type": "expired_token", "message": "The bearer token you have provided in the 'Authorization' header has expired. Please obtain a new one." }}
Status Code - 401
Invalid Authorization header bearer token value
Copy
Ask AI
{ "error": { "type": "invalid_authorization", "message": "The bearer token you have provided in the 'Authorization' header is invalid." }}
Status Code - 400
No search parameters provided
Copy
Ask AI
{ "error": { "type": "no_search_parameters", "message": "At least one search parameter is required to find communities." }}
Status Code - 404Returned if no communities could be found.
No communities found
Copy
Ask AI
{ "error": "No communities found matching the provided criteria."}
Status Code - 500
Internal server error
Copy
Ask AI
{ "error": "An internal error occurred while processing your request."}
Copy
Ask AI
curl --location --request GET 'https://api.travtus.com/communities/?name={Your_Community_name_here}' \--header 'Authorization: bearer <token>'