{"id":87696,"date":"2023-06-05T13:09:54","date_gmt":"2023-06-05T17:09:54","guid":{"rendered":"https:\/\/jumpcloud.com\/?post_type=support&p=87696"},"modified":"2024-07-24T17:00:40","modified_gmt":"2024-07-24T21:00:40","slug":"best-practices-jumpcloud-api","status":"publish","type":"support","link":"https:\/\/jumpcloud.com\/support\/best-practices-jumpcloud-api","title":{"rendered":"Best Practices: JumpCloud API"},"content":{"rendered":"\n
Read this article for guidance on retrying failed requests to JumpCloud’s REST API, as well as best practices for structuring subsequent retry requests. Customizing retry mechanisms based on these recommendations will increase the reliability and dependability of your API calls.<\/p>\n\n\n\n
Considerations<\/strong>:<\/p>\n\n\n\n Supported HTTP Request Methods<\/strong><\/p>\n\n\n\n Response codes<\/strong><\/p>\n\n\n\n Because API keys are utilized in the development of solutions that interact with the JumpCloud API, and thus are sometimes shared, there are opportunities for these private API keys to be compromised.<\/p>\n\n\n\n Best security practice strongly encourages the API Key associated with your JumpCloud Administrator account to be rotated & re-generated on a periodic rolling basis. While specific security needs and risks will vary for your organization, it\u2019s generally recommended to re-create the API keys on an annual basis. Note that once an API key is rotated, the older key will be invalidated. Code that leverages older API keys will fail and will need to be updated with the new key.<\/p>\n\n\n\n You can also set an expiration for the API Keys, see JumpCloud APIs<\/a> to learn more. <\/p>\n\n\n\n When paginating results with “skip” or querying with a “filter”, it is highly recommended that you also add “sort” : “_id” to the query parameters. Sorting will ensure that you receive all and only the requested data (i.e., no missing or duplicate results). If you choose to sort by a different field, be sure that field contains unique values.<\/p>\n\n\n\n\n
\n
\n
API Key Rotation<\/h2>\n\n\n\n
Paginating<\/h2>\n\n\n\n