This article covers what you need before you start building APIs, along with practices that keep your API program secure, reliable, and easy to maintain as it grows.
Before you begin
- Only account owners or account administrators can create and push APIs to the APIM console.
- You must configure your API management subdomain before you can use APIM.
- Deleted API management resources are kept for at least 30 days, based on your account's data retention policy.
API Builder
- Design for clarity — Use consistent naming conventions and logical endpoint structures.
- Upload your schema — Configure your request and response quickly by uploading your schema directly in the API Builder, rather than building it field by field.
- Validate inputs and handle errors — Return meaningful error messages with the right HTTP status codes. See customizing your errors for details.
- Keep responses consistent — Return JSON with structured, predictable fields.
- Test thoroughly — Check functionality, security, and performance regularly, not just at launch.
- Return only what's needed — Trim unnecessary fields from responses to reduce size and improve performance.
APIM console
- Version your APIs — Versioning preserves backward compatibility when you change an API later. You can clone, edit, or push a new version of your documentation.
- Rate limit — Add a rate-limit policy in the console to prevent abuse, with limits scoped to what a legitimate consumer actually needs.
- Cache common requests — Reduces backend load and improves response times for requests that don't change often.
- Manage plans and policies centrally — Update them in the APIM console, then publish to the Developer Portal when ready.
Documentation
- Define the API's purpose clearly before you document it — what problem it solves and what it does.
- Document endpoints, parameters, request and response formats, error codes, and sample requests thoroughly enough that a new consumer can get started without asking you questions.
- integrator.io generates an OpenAPI specification automatically in most cases. When it doesn't, you can create one from the Documentation page in the APIM console.
- Review every specification before publishing, including ones you created manually.
- If you change a plan, response schema, or anything else that affects the API's behavior, update the specification on the Documentation page — it doesn't update on its own.
Monitoring and analytics
- Track usage patterns — response statuses, top endpoints, availability, response time, and call volume all inform where to invest next.
- Set up error alerts so you learn about failures before your consumers report them.
Resources
- Don't push a resource directly to the APIM console if it's also used in an integrator.io flow. Clone it first, then push the clone.
- Don't edit a resource after it's pushed — changing it can break the API contract your consumers depend on.
- Add a clear "do not modify" note to a pushed resource's name, so it isn't accidentally edited later — for example, "Slack Channel export – Do not modify."
Security
Require strong authentication — API keys, OAuth2, or JWT — so only authorized applications can reach your endpoints. See The API Management console - Features and concepts for how each authentication method works.
Testing
Run integration tests across your endpoints, covering both common workflows and edge cases. You can test an API through test mode in the API Builder, through the Developer Portal, with Postman, or using the debugging page in the APIM console.
Cloning and promotion
Cloning a resource lets you promote an API from a sandbox environment to production: clone the resource, then push the clone to the APIM console as a new API. Cloning applies to the resources used to build an API — exports, imports, lookups, and similar resource types. APIs created directly in the API Builder, and JavaScript APIs, aren't supported for cloning.