Your API's documentation is what lets consumers understand and try your API before subscribing. This article is for publishers configuring and publishing that documentation. In most cases, integrator.io generates and uploads it for you as an OpenAPI specification (OAS) — the main exception is a JavaScript API-based resource, which is script-based and needs a manually created specification. You must review and publish your documentation before it's available to consumers, even when it was generated automatically. Several steps below depend on your API definition version; both v2 and v4 are fully supported and covered here.
Navigate your documentation
After pushing a resource, open your API's Documentation section to see its specification, titled OpenAPISpec.yaml if one was generated.
Documentation for v4 APIs
The Documentation section has three tabs: Main Pages, Documentation Pages, and Metadata.
- Main Pages sets the API's homepage in the Developer Portal — choose an existing page or create a new one.
-
Documentation Pages lists your pages in a folder tree starting at Home, including the auto-generated
OpenAPISpec.yaml. Each page shows its status (Published or Unpublished) and visibility, with actions to edit, publish or unpublish, reorder, or delete. Select Open API in Developer Portal to preview the result. -
Metadata sets API metadata you can reference through Markdown templating; an email support key is usually added automatically.
Open a page to configure it from three tabs: Configure Page (name and Visibility — Public pages are viewable by anyone browsing the API in the Developer Portal, including anonymous users if your authentication settings permit it; Private pages require the viewer to be signed in), Configure OpenAPI Viewer (see the reference table below), and Content (the specification itself, with a Toggle preview to render it live). Select Save, or Save and publish to do both at once.
Documentation for v2 APIs
The landing page has two tabs: Pages (every document you have, including an Aside folder for private documentation) and Metadata (the same kind of custom metadata described above). Publish your specification from the landing page using the cloud icon.
Selecting a spec opens several more tabs:
- Page — The document's landing page. You can add bearer token authentication here, requiring a token to view the documentation.
- Translation — Add a translation of your documentation into another language.
-
Configuration — Main documentation settings, including Try-it mode and content filtering for consumers.
- External source — Host your documentation outside the APIM console instead.
- Access control — Restrict access by group or role.
Configure OpenAPI viewer settings (v4)
These settings, on the Configure OpenAPI Viewer tab, control how the Swagger-based viewer behaves for consumers:
| Setting | What it does |
|---|---|
| OpenAPI Documentation Viewer | Set to SwaggerUI. |
| Enable "Try It!" mode | Lets signed-in consumers call the API directly from the Developer Portal. You may need to configure CORS in the entrypoint section first. |
| Enable "Try It!" mode for anonymous users | Extends Try-it to users who aren't signed in, when the page and the API are both public. |
| Show URL to download content | Displays a link consumers can use to download the specification directly. |
| Display the operationId in the operation list | Shows each operation's internal ID alongside its summary. |
| Use PKCE with OAuth | Uses PKCE (Proof Key for Code Exchange) when authenticating through the OAuth authorization code flow. |
| Expand content on the page | Controls whether operations, tags, or nothing expand by default when the page opens. |
| Add top bar to filter content | Adds a filter bar above the operation list. |
| Display vendor extensions | Shows x- prefixed vendor extension fields and values for operations, parameters, and schemas. |
| Display extension fields for Parameters | Shows pattern, maxLength, minLength, maximum, and minimum constraints on parameters. |
| Max number of tagged operations displayed | Limits how many tagged operations appear; -1 shows all of them. |
Configure CORS (required for Try-it)
CORS (cross-origin resource sharing) lets a web page request a restricted resource from a domain other than the one that served the page. You only need to configure it if you want consumers to use Try-it; if you don't, you can skip this section.
Guidelines to follow:
- Configure CORS at the API level, not the environment level.
- List the specific domains allowed in
Access-Control-Allow-Origininstead of using a wildcard (*). - Allow only the HTTP methods and headers your API actually expects.
- Configure
Access-Control-Allow-MethodsandAccess-Control-Allow-Headersto handle preflight (OPTIONS) requests correctly. - Keep authentication and authorization in place even with CORS configured — CORS controls origins, not permissions.
- Review your CORS rules periodically and remove ones that are outdated or too permissive.
- Test from multiple origins after configuring, to confirm legitimate requests succeed and unauthorized ones are still blocked.
To turn on CORS:
-
Navigate to Entrypoints > CORS (v4) or Proxy > CORS (v2), and turn on Enable CORS.
- In Allow-Origin, add your console and portal origins — for example,
https://*.console.apim.integrator.ioandhttps://*.portal.apim.integrator.io. Regular expressions are supported. - In Access-Control-Allow-Methods, add
GET,DELETE,PATCH,POST,PUT, andOPTIONS. - In Allow-Headers, add
access-control-allow-origin,x-celigo-api-key,content-type, andauthorization. - Turn on Access-Control-Allow-Credentials.
- Optionally, set a Max Age for cached preflight responses and turn on Run policies for preflight requests.
Enable Try-it
With CORS configured, turn on Try-it so consumers can test your API without subscribing first.
-
v4 — Open your API spec in Documentation, select the page, and turn on Enable "Try It!" mode on the Configure OpenAPI Viewer tab (see the reference table above).
- v2 — Navigate to <Your API> > Documentation > Configuration. Celigo recommends turning on Try-it for anonymous users and showing the download URL so consumers can get the specification directly.
Add, edit, or update documentation
Add documentation
v4:
- Open your API and select Documentation > Documentation Pages.
- Select Add new page or Add new folder.
- Choose a page format and add your content, or upload a file from your desktop.
v2:
- Navigate to API > Documentation.
- Select Add new page or Add new folder.
- Use ASCIIDOCS, AsyncAPI, Swagger, or Markdown, or upload or edit a YAML file directly.
Edit documentation
v4 — Open your API, select Documentation > Documentation Pages, select the page, and edit it on the Content tab or upload a new file. Select Save, or Save and publish to publish immediately.
v2 — Navigate to API > Documentation, edit the specification directly or upload a new file, and select Save.
Configure documentation authentication (optional)
You can require a bearer token to view your API documentation, in the OpenAPI viewer (v4) or the Page section (v2).
-
Confirm the Server URL — it's filled in automatically if the API was created through integrator.io.
- Select Authorize.
-
Add your bearer token or use another validation method.
- Select Authorize, then close the dialog. You can select Log out later to remove your authorization from the document.
- Save your changes.
Publish your documentation
- In the page list, select the publish (cloud) icon — the same icon unpublishes a page.
- In the v4 page editor, select Save and publish.