Import API endpoints
import_api_endpointsImport custom API endpoints in bulk from a Postman collection (v2.x), an OpenAPI 3 / Swagger 2 spec, or endpoint JSON. Preview with dry_run=true (default), then import with dry_run=false; agent_id also attaches each one. Secret auth values in the source are stripped (listed in needs_auth) — complete auth in the portal or via set_endpoint_auth. Existing endpoint names are skipped, so re-importing is safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| select | No | Endpoint names to import; omit for every request except a login request. | |
| source | Yes | The Postman collection / OpenAPI spec / endpoint JSON, as a JSON string. | |
| dry_run | No | Preview only (default true). | |
| agent_id | No | Optional: attach each created endpoint to this agent. |