Request Rate Limiting
The public API tracks requests from each client using the API token and limits the client's request rate. The default limit is 1,000 requests per 60 seconds. If this limit is exceeded, the server returns HTTP status 429 Too Many Requests.
Configuring Rate Limits
Configure rate limits using the following environment variables:
RATE_LIMIT_PERMIT_LIMIT specifies the maximum number of allowed requests. The default is 1000.
# Set the maximum number of allowed requests.
RATE_LIMIT_PERMIT_LIMIT=1500
RATE_LIMIT_WINDOW_SECONDS specifies the time window, in seconds, during which the limit applies. The default is 60.
# Set the time window to two minutes.
RATE_LIMIT_WINDOW_SECONDS=120
Limiting the Number of Returned Records
The server returns no more than 100 records matching the query conditions per request. Use recursive requests to build large tree structures.
Example: Retrieve more than 100 descendants of an EPS node using top and skip.
Retrieve the first 100 records:
curl -X 'GET' \
'https://your-org.domain/public-api/eps?filter=parentId eq '3635745e-412b-4c76-861c-822eb55c2718' & orderby=name & $top=100 & $skip=0' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'
Retrieve the next 100 records:
curl -X 'GET' \
'https://your-org.domain/public-api/eps?filter=parentId eq '3635745e-412b-4c76-861c-822eb55c2718' & orderby=name & $top=100 & $skip=100' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'
Repeat the request, increasing skip, until the server stops returning data.
Example: Retrieve the number of EPS nodes of type project to implement pagination.
curl -X 'GET' \
'https://your-org.domain/public-api/eps?apply=filter(Type eq 'version')/aggregate($count as eps_count)' \
-H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
-H 'x-version: 409' \
-H 'Authorization: your-api-key' \
-H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'