Skip to main content

API reference

ToolHive API (1.0)

Download OpenAPI specification:Download

This is the ToolHive API server.

system

Get OpenAPI specification

Returns the OpenAPI specification for the API

Responses

Response samples

Content type
application/json
{ }

Health check

Check if the API is healthy

Responses

Response samples

Content type
application/json
"string"

discovery

List all clients status

List all clients compatible with ToolHive and their status

Responses

Response samples

Content type
application/json
{
  • "clients": [
    ]
}

registry

List registries

Get a list of the current registries

Responses

Response samples

Content type
application/json
{
  • "registries": [
    ]
}

Add a registry

Add a new registry

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
"string"

Remove a registry

Remove a specific registry

path Parameters
name
required
string

Registry name

Responses

Response samples

Content type
application/json
"string"

Get a registry

Get details of a specific registry

path Parameters
name
required
string

Registry name

Responses

Response samples

Content type
application/json
{
  • "last_updated": "string",
  • "name": "string",
  • "registry": {
    },
  • "server_count": 0,
  • "version": "string"
}

List servers in a registry

Get a list of servers in a specific registry

path Parameters
name
required
string

Registry name

Responses

Response samples

Content type
application/json
{
  • "servers": [
    ]
}

Get a server from a registry

Get details of a specific server in a registry

path Parameters
name
required
string

Registry name

serverName
required
string

Server name

Responses

Response samples

Content type
application/json
{
  • "server": {
    }
}

servers

List all servers

Get a list of all running servers

Responses

Response samples

Content type
application/json
{
  • "servers": [
    ]
}

Create a new server

Create and start a new server

Request Body schema: application/json
required

Create server request

authz_config
string

Authorization configuration

cmd_arguments
Array of strings

Command arguments to pass to the container

env_vars
Array of strings

Environment variables to set in the container

host
string

Host to bind to

image
string

Docker image to use

name
string

Name of the server

object (v1.oidcOptions)

OIDC configuration options

permission_profile
string

Permission profile to apply

Array of objects (secrets.SecretParameter)

Secret parameters to inject

target_port
integer

Port to expose from the container

transport
string

Transport configuration

volumes
Array of strings

Volume mounts

Responses

Request samples

Content type
application/json
{
  • "authz_config": "string",
  • "cmd_arguments": [
    ],
  • "env_vars": [
    ],
  • "host": "string",
  • "image": "string",
  • "name": "string",
  • "oidc": {
    },
  • "permission_profile": "string",
  • "secrets": [
    ],
  • "target_port": 0,
  • "transport": "string",
  • "volumes": [
    ]
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "port": 0
}

Delete a server

Delete a server

path Parameters
name
required
string

Server name

query Parameters
force
boolean

Force deletion

Responses

Response samples

Content type
application/json
"string"

Get server details

Get details of a specific server

path Parameters
name
required
string

Server name

Responses

Response samples

Content type
application/json
{
  • "created": "string",
  • "id": "string",
  • "image": "string",
  • "labels": {
    },
  • "name": "string",
  • "ports": [
    ],
  • "state": "string",
  • "status": "string"
}

Restart a server

Restart a running server

path Parameters
name
required
string

Server name

Responses

Response samples

Content type
application/json
"string"

Stop a server

Stop a running server

path Parameters
name
required
string

Server name

Responses

Response samples

Content type
application/json
"string"

version

Get server version

Returns the current version of the server

Responses

Response samples

Content type
application/json
{
  • "version": "string"
}