Account-level APIs do not provide access to organization-level data. Ensure the correct scope when integrating APIs. Design automation workflows based on the data access layer required—account or organization—so that permissions and data visibility align with the intended scope. See Treatment of APIs when Creating Organizations for more information.
API key scope
Always generate API keys at the organization level when you need to access data specific to that organization. Account-level API keys do not provide access to organization-level data.
Ensure you choose the correct scope (account or organization) before integrating APIs so that permissions and data visibility match the intended design.
Regenerate API keys whenever you create, elevate, or merge organizations to ensure valid and secure access.
Efficiency and limits
Monitor and respect API rate limits; use techniques like batching, pagination, and retry logic to optimize performance.
Request only the data you truly need—apply filters and pagination to reduce unnecessary calls.
When working with data across multiple organizations, query each organization separately using its own key, then aggregate results.
Data handling
Validate and sanitize incoming data before processing.
Maintain a clear mapping between the data and its source organization when combining data from multiple organizations.
Error handling and logging
Implement error handling for API failures, timeouts, and rate-limit responses.
Keep detailed logs of API calls, responses, and error conditions to simplify troubleshooting.