API Configuration and Setup
RSpace can be accessed through an API to create content, share it, search for it and export it. You can also create and edit forms.
API Access
To get set up to make an API call, a few conditions must be met:
- Your sysadmin has set the
api.available
setting to true – this is the default value, so the API should be available unless your sysadmin has turned it off. - You have set up an API key in your RSpace profile page. Your API key is confidential and should not be disclosed publicly, as it gives limited access to your account. You can revoke or regenerate your key at any time. All API requests require setting an HTTP header '
apiKey
’.
API usage limits
The rate of API calls you can make is currently limited, while we evaluate the performance impact of the API. The default rates are as follows:
Default Limits per user
- Maximum 15 requests per 15 seconds.
- Maximum 1000 requests per hour.
- Maximum 5000 requests per day.
Please allow at least 100ms between requests.
Default Global limits
- Maximum 75 requests per 15 seconds.
- Minimum interval of 25ms between requests
There is no default global limit on number of requests per day or per hour.
Setting custom usage limits:
You can set custom usage limits for your RSpace installation using the following deployment properties. Any properties not set will remain as defaults. For more information about deployment properties see Additional Server Properties / Settings.
api.user.limit.day
Maximum requests per user per dayapi.user.limit.hour
Maximum requests per user per hourapi.user.limit.15s
Maximum requests per user per 15sapi.user.minInterval
Minimum interval between requestsapi.global.limit.day
Maximum total requests per dayapi.global.limit.hour
Maximum total requests per hourapi.global.limit.15s
Maximum total requests per 15sapi.global.minInterval
Minimum interval between requests
If these limits are exceeded, you will receive a 429 TOO_MANY_REQUESTS error response.