Tools API
The registry of what an agent is allowed to call.
A tool carries its own destination allowlist, risk rating and dangerous flag. Nothing is callable because it exists; an agent must be explicitly authorized for each tool.
#Endpoints
| Endpoint | Permission | Notes | |
|---|---|---|---|
GET |
/v1/integrations/n8n/suggestions |
none | — |
POST |
/v1/integrations/n8n/suggestions |
tool:create |
— |
POST |
/v1/integrations/n8n/research |
tool:create |
— |
POST |
/v1/integrations/n8n/tools |
tool:createtool:updateagent:manage_capabilities |
— |
GET |
/v1/integrations/sign-in/providers |
none | — |
POST |
/v1/integrations/sign-in/start |
credential:createtool:create |
— |
GET |
/v1/integrations/sign-in/callback |
none | — |
POST |
/v1/integrations/sign-in/service-account |
credential:createtool:create |
— |
POST |
/v1/integrations/sign-in/client-credentials |
credential:createtool:create |
— |
GET |
/v1/developer/code-assist |
none | — |
POST |
/v1/developer/code-assist/rewrite |
tool:update |
— |
GET |
/v1/tools |
tool:read |
— |
POST |
/v1/tools |
tool:create |
accepts Idempotency-Key |
POST |
/v1/tools/{toolId}/disable |
tool:disable |
— |
POST |
/v1/tools/{toolId}/agents |
tool:update |
— |
#What each endpoint does
#GET /v1/integrations/n8n/suggestions
Whether AI tool suggestions for n8n agents are enabled here.
Requires no console permission.
#POST /v1/integrations/n8n/suggestions
Suggest the tools an n8n agent needs, from a description. Creates nothing.
Requires tool:create.
#POST /v1/integrations/n8n/research
Check one suggested tool against its documentation (web search) and return its documented fields.
Requires tool:create.
#POST /v1/integrations/n8n/tools
Create tools for an n8n agent: Veefore performs (HTTP + brokered credential) or n8n performs (client tool).
Requires tool:create, tool:update, agent:manage_capabilities.
#GET /v1/integrations/sign-in/providers
OAuth providers catalog apps sign in to, whether Veefore’s own OAuth app is set for each, and the redirect URI.
Requires no console permission.
#POST /v1/integrations/sign-in/start
Begin signing in to an app with OAuth: returns the provider URL and binds the browser with a cookie.
Requires credential:create, tool:create.
Request body:
json{
"agent_id": "string",
"credential": "string (catalog credential, e.g. gmailOAuth2)",
"client_id": "string?",
"client_secret": "string?",
"values": "Record<string, string>? (host or scope values, e.g. organization)"
}
#GET /v1/integrations/sign-in/callback
Where the provider returns: redeems the code, seals the tokens as a credential, and redirects to the console.
Requires no console permission.
#POST /v1/integrations/sign-in/service-account
Sign in to a Google app with a service account: signs a JWT with the account’s key and seals a credential.
Requires credential:create, tool:create.
Request body:
json{
"agent_id": "string",
"credential": "string (e.g. googleApi)",
"email": "string (service account e-mail)",
"private_key": "string (PEM)",
"impersonate": "string? (a user to act as)",
"values": "Record<string, string>?"
}
#POST /v1/integrations/sign-in/client-credentials
Sign in to an app that authenticates as itself (OAuth client-credentials grant), server-side.
Requires credential:create, tool:create.
Request body:
json{
"agent_id": "string",
"credential": "string",
"client_id": "string?",
"client_secret": "string?",
"values": "Record<string, string>?"
}
#GET /v1/developer/code-assist
Whether Veefore-hosted AI code assist is enabled, and which models it offers.
Requires no console permission.
#POST /v1/developer/code-assist/rewrite
Propose a guard() change for tools the automatic rewrite could not change.
Requires tool:update.
Request body:
json{
"model": "string",
"language": "typescript | javascript | python",
"file": "string",
"source": "string (secrets replaced with placeholders)",
"tools": "{ key, line, reason }[]"
}
#GET /v1/tools
List tools.
Requires tool:read.
#POST /v1/tools
Register a tool.
Requires tool:create.
#POST /v1/tools/{toolId}/disable
Disable a tool for every agent.
Requires tool:disable.
Request body:
json{
"reason": "string"
}
#POST /v1/tools/{toolId}/agents
Authorize an agent for a tool.
Requires tool:update.