POST /integration-tools/{tool_name}/runRun one integration tool synchronously by its qualified name, with provider arguments and an optional exact connection; returns the native tool result, where a provider failure or a refusal of the tool layer is a result with isError true, not an error.
Servers
[ { "url": "https://api.veryfront.com" }]Authentication
[ { "bearerAuth": [] }, { "apiKeyAuth": [] }]{ "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT or API Key", "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header." }, "apiKeyAuth": { "type": "apiKey", "in": "header", "name": "X-API-Key", "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens." }}Parameters
Parameter contracts
[ { "schema": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[^\\s/]+$", "description": "Qualified tool name, <integration>__<tool>.", "example": "github__list-repos" }, "required": true, "name": "tool_name", "in": "path" }, { "schema": { "type": "string", "format": "uuid", "description": "Optional immutable project UUID precondition, compared case-insensitively after project resolution and authorization. It never selects a project. A mismatch fails with validation-failed before tool discovery or execution, including for project-bound callers. Send exactly one value.", "example": "11111111-1111-4111-8111-111111111111" }, "required": false, "name": "x-veryfront-expected-project-id", "in": "header" }, { "schema": { "type": "string", "description": "Required for callers without a project-bound context. The slug is resolved and authorized before discovery or execution. A project-bound context takes precedence and ignores this header, including conflicting values.", "example": "example-project" }, "required": false, "name": "x-veryfront-project-slug", "in": "header" }]Request body
{ "required": false, "content": { "application/json": { "schema": { "type": "object", "properties": { "arguments": { "type": "object", "additionalProperties": {}, "default": {}, "description": "Tool arguments. Unknown top-level body fields are rejected, so provider arguments must be sent here." }, "run_id": { "type": "string", "description": "Agent run ID for validating run-declared integration tools" }, "agent_id": { "type": "string", "description": "Agent ID for validating run-declared integration tools" }, "connection_id": { "type": "string", "format": "uuid", "description": "Optional exact connected account to use for this call" }, "expected_connection_generation_id": { "type": "string", "format": "uuid", "description": "Require this observed generation of the selected connection. Requires connection_id; stale selections fail before credential or provider effects." } }, "additionalProperties": false } } }}Responses
200
The native tool result. A provider failure or a refusal of the tool layer is a result with isError true: a credential without the capability of the tool (project.integrations.read, or project.integrations.connect for a tool that writes) gets such a refusal.
{ "description": "The native tool result. A provider failure or a refusal of the tool layer is a result with isError true: a credential without the capability of the tool (project.integrations.read, or project.integrations.connect for a tool that writes) gets such a refusal.", "headers": { "x-veryfront-tool-preconditions": { "description": "Supported tool-call preconditions. Clients requiring a connection generation must observe connection_generation_id before dispatch and on the call response.", "schema": { "type": "string", "enum": [ "project_id,connection_generation_id" ] } }, "x-veryfront-project-id": { "description": "Effective authorized project ID used for this request, regardless of the supplied slug.", "schema": { "type": "string" } } }, "content": { "application/json": { "schema": { "type": "object", "properties": { "content": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "text" ] }, "text": { "type": "string" } }, "required": [ "type", "text" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "image" ] }, "data": { "type": "string" }, "mimeType": { "type": "string" } }, "required": [ "type", "data", "mimeType" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "audio" ] }, "data": { "type": "string" }, "mimeType": { "type": "string" } }, "required": [ "type", "data", "mimeType" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "resource" ] }, "resource": { "anyOf": [ { "type": "object", "properties": { "uri": { "type": "string" }, "mimeType": { "type": "string" }, "text": { "type": "string" } }, "required": [ "uri", "text" ] }, { "type": "object", "properties": { "uri": { "type": "string" }, "mimeType": { "type": "string" }, "blob": { "type": "string" } }, "required": [ "uri", "blob" ] } ] } }, "required": [ "type", "resource" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "resource_link" ] }, "uri": { "type": "string" }, "name": { "type": "string" } }, "required": [ "type", "uri", "name" ] } ] } }, "structuredContent": { "type": "object", "additionalProperties": {} }, "isError": { "type": "boolean" }, "_meta": { "type": "object", "additionalProperties": {} } } } } }}400
invalid_input: the body is malformed, carries an unknown top-level field or is not JSON, or the effective project does not match x-veryfront-expected-project-id.
{ "description": "invalid_input: the body is malformed, carries an unknown top-level field or is not JSON, or the effective project does not match x-veryfront-expected-project-id.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } }}401
Unauthorized
{ "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } }}403
forbidden: the credential is not bound to a project and lacks project.integrations.read on the project named by x-veryfront-project-slug.
{ "description": "forbidden: the credential is not bound to a project and lacks project.integrations.read on the project named by x-veryfront-project-slug.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } }}404
not_found: the project is not accessible, the integration is unknown, or the integration has no such tool.
{ "description": "not_found: the project is not accessible, the integration is unknown, or the integration has no such tool.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } }}409
integration-connection-stale: the expected connection generation was replaced; read the connection again
{ "description": "integration-connection-stale: the expected connection generation was replaced; read the connection again", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } }}500
internal: the run failed unexpectedly. A provider failure is an isError result, not this error.
{ "description": "internal: the run failed unexpectedly. A provider failure is an isError result, not this error.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } }}502
internal: the mock integration service did not answer the run of a tool in mock execution mode.
{ "description": "internal: the mock integration service did not answer the run of a tool in mock execution mode.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } }}503
internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.
{ "description": "internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } }}Referenced contracts
components/schemas/Problem
{ "type": "object", "properties": { "cause": { "type": "string", "enum": [ "schedule_concurrency_forbidden", "schedule_fire_in_progress", "schedule_run_limit_reached" ], "description": "Schedule admission refusal." }, "idempotency": { "type": "object", "properties": { "state": { "type": "string", "enum": [ "in_progress", "payload_mismatch", "outcome_unknown" ] }, "operation": { "type": "string", "minLength": 1 }, "retryable": { "type": "boolean" }, "retry_after_seconds": { "type": [ "integer", "null" ], "minimum": 0 }, "expires_at": { "type": [ "string", "null" ] }, "recovery": { "type": "object", "properties": { "available": { "type": "boolean" }, "description": { "type": "string" }, "resource_url": { "type": "string" } }, "required": [ "available", "description" ] } }, "required": [ "state", "operation", "retryable", "retry_after_seconds", "expires_at" ], "description": "Replay status, retry timing, and recovery lookup." }, "type": { "type": "string", "description": "URI reference identifying the problem type", "example": "https://api.veryfront.com/errors/validation-failed" }, "title": { "type": "string", "description": "Short human-readable summary of the problem", "example": "Validation Failed" }, "status": { "type": "integer", "minimum": 100, "maximum": 599, "description": "HTTP status code", "example": 400 }, "code": { "type": "string", "description": "Stable machine-readable error code", "example": "RUN_INVALID_INPUT" }, "detail": { "type": "string", "description": "Human-readable explanation specific to this occurrence", "example": "The 'email' field must be a valid email address" }, "instance": { "type": "string", "description": "URI reference identifying the specific occurrence", "example": "/projects/my-project/members" }, "slug": { "type": "string", "description": "Stable identifier for the problem type", "example": "validation-failed" }, "category": { "type": "string", "enum": [ "AUTH", "RESOURCE", "VALIDATION", "DATABASE", "SUBSCRIPTION", "INTEGRATION", "INTERNAL" ], "description": "API error category", "example": "VALIDATION" }, "suggestion": { "type": "string", "description": "Suggested action to resolve the problem", "example": "Check the request body and query parameters against the API documentation." }, "errors": { "type": "array", "items": { "type": "object", "properties": { "field": { "type": "string", "description": "Field path that caused the error", "example": "email" }, "message": { "type": "string", "description": "Error message for this field", "example": "Invalid email format" }, "code": { "type": "string", "description": "Error code for this field", "example": "INVALID_FORMAT" } }, "required": [ "field", "message" ] }, "description": "Detailed field-level errors for validation failures" } }, "required": [ "type", "title", "status" ]}Operation contract
{ "operationId": "runIntegrationTool", "tags": [ "integrations/Integrations/Integration tools" ], "summary": "Run integration tool", "description": "Run one integration tool synchronously by its qualified name, with provider arguments and an optional exact connection; returns the native tool result, where a provider failure or a refusal of the tool layer is a result with isError true, not an error.", "parameters": [ { "schema": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[^\\s/]+$", "description": "Qualified tool name, <integration>__<tool>.", "example": "github__list-repos" }, "required": true, "name": "tool_name", "in": "path" }, { "schema": { "type": "string", "format": "uuid", "description": "Optional immutable project UUID precondition, compared case-insensitively after project resolution and authorization. It never selects a project. A mismatch fails with validation-failed before tool discovery or execution, including for project-bound callers. Send exactly one value.", "example": "11111111-1111-4111-8111-111111111111" }, "required": false, "name": "x-veryfront-expected-project-id", "in": "header" }, { "schema": { "type": "string", "description": "Required for callers without a project-bound context. The slug is resolved and authorized before discovery or execution. A project-bound context takes precedence and ignores this header, including conflicting values.", "example": "example-project" }, "required": false, "name": "x-veryfront-project-slug", "in": "header" } ], "requestBody": { "required": false, "content": { "application/json": { "schema": { "type": "object", "properties": { "arguments": { "type": "object", "additionalProperties": {}, "default": {}, "description": "Tool arguments. Unknown top-level body fields are rejected, so provider arguments must be sent here." }, "run_id": { "type": "string", "description": "Agent run ID for validating run-declared integration tools" }, "agent_id": { "type": "string", "description": "Agent ID for validating run-declared integration tools" }, "connection_id": { "type": "string", "format": "uuid", "description": "Optional exact connected account to use for this call" }, "expected_connection_generation_id": { "type": "string", "format": "uuid", "description": "Require this observed generation of the selected connection. Requires connection_id; stale selections fail before credential or provider effects." } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "The native tool result. A provider failure or a refusal of the tool layer is a result with isError true: a credential without the capability of the tool (project.integrations.read, or project.integrations.connect for a tool that writes) gets such a refusal.", "headers": { "x-veryfront-tool-preconditions": { "description": "Supported tool-call preconditions. Clients requiring a connection generation must observe connection_generation_id before dispatch and on the call response.", "schema": { "type": "string", "enum": [ "project_id,connection_generation_id" ] } }, "x-veryfront-project-id": { "description": "Effective authorized project ID used for this request, regardless of the supplied slug.", "schema": { "type": "string" } } }, "content": { "application/json": { "schema": { "type": "object", "properties": { "content": { "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "text" ] }, "text": { "type": "string" } }, "required": [ "type", "text" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "image" ] }, "data": { "type": "string" }, "mimeType": { "type": "string" } }, "required": [ "type", "data", "mimeType" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "audio" ] }, "data": { "type": "string" }, "mimeType": { "type": "string" } }, "required": [ "type", "data", "mimeType" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "resource" ] }, "resource": { "anyOf": [ { "type": "object", "properties": { "uri": { "type": "string" }, "mimeType": { "type": "string" }, "text": { "type": "string" } }, "required": [ "uri", "text" ] }, { "type": "object", "properties": { "uri": { "type": "string" }, "mimeType": { "type": "string" }, "blob": { "type": "string" } }, "required": [ "uri", "blob" ] } ] } }, "required": [ "type", "resource" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "resource_link" ] }, "uri": { "type": "string" }, "name": { "type": "string" } }, "required": [ "type", "uri", "name" ] } ] } }, "structuredContent": { "type": "object", "additionalProperties": {} }, "isError": { "type": "boolean" }, "_meta": { "type": "object", "additionalProperties": {} } } } } } }, "400": { "description": "invalid_input: the body is malformed, carries an unknown top-level field or is not JSON, or the effective project does not match x-veryfront-expected-project-id.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "403": { "description": "forbidden: the credential is not bound to a project and lacks project.integrations.read on the project named by x-veryfront-project-slug.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "404": { "description": "not_found: the project is not accessible, the integration is unknown, or the integration has no such tool.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "409": { "description": "integration-connection-stale: the expected connection generation was replaced; read the connection again", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "500": { "description": "internal: the run failed unexpectedly. A provider failure is an isError result, not this error.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "502": { "description": "internal: the mock integration service did not answer the run of a tool in mock execution mode.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } }, "503": { "description": "internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/Problem" } } } } }, "x-documentation-source-tag": "Integration tools", "x-canonical-documentation": { "domain": "integrations", "resource": "Integrations", "subgroup": "Integration tools", "name": "Run integration tool", "description": "Run one integration tool synchronously by its qualified name, with provider arguments and an optional exact connection; returns the native tool result, where a provider failure or a refusal of the tool layer is a result with isError true, not an error.", "operationId": "runIntegrationTool" }, "x-mint": { "href": "/cloud/rest/api-reference/integrations-integrations-integration-tools/run-integration-tool" }}