Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Discover OpenAPI tools

POST/api/v1/custom-providers/{provider_identifier}:collect-tools

Queues a tool collection run for a connector created from an OpenAPI spec. The run reads the connector's spec again and updates its tools to match. It returns at once with the status QUEUED: poll OpenAPI tool discovery status with the returned run_id for the outcome.

Authorization

Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.

Path parameters

provider_identifierstringrequired
The connector's identifier (NAME:environment-id), not its id.

Response 200

created_atstring
When the run was queued.
error_messagestring
Why the run failed. Empty unless status is FAILED.
finished_atstring
When the run ended.
provider_identifierstring
Identifier of the connector the run belongs to.
run_idstring
ID of the run.
skipped_tools_jsonstring
JSON text listing the operations the run did not turn into tools. Empty until the run ends.
started_atstring
When the run started.
statusstring
QUEUED, PROCESSING, COMPLETED or FAILED.
tools_createdinteger
Number of tools the run created.
tools_deletedinteger
Number of tools the run deleted because their operation left the spec.
tools_updatedinteger
Number of tools the run updated.
total_endpointsinteger
Number of operations found in the spec.

Errors

Every error has the same body: code, message and details. See Errors and rate limits.

400Invalid request - the connector was not created from an OpenAPI spec
404Not Found - no connector has this identifier
409Conflict - RESOURCE_ALREADY_EXISTS when a tool collection run is already queued or processing for this connector