Skip to main content
GET
/
api
/
public
/
v2
/
tool-registry
/
{identifier}
Get Tool Registry
curl --request GET \
  --url https://api.promptlayer.com/api/public/v2/tool-registry/{identifier} \
  --header 'X-API-KEY: <x-api-key>'
{
  "success": true,
  "tool_registry": {
    "id": 123,
    "name": "<string>",
    "workspace_id": 123,
    "labels": [
      {}
    ],
    "version": {},
    "tool_definition": {}
  }
}
Retrieve a tool from the Tool Registry by ID or name. Optionally resolve a specific version using the label or version query parameter. If neither is specified, the latest version is returned. The identifier can be either:
  • A numeric tool ID (e.g., 123)
  • A tool name (e.g., get_weather)

Headers

X-API-KEY
string
required

Path Parameters

identifier
string
required

Tool ID (numeric) or name

Query Parameters

label
string

Resolve version by label name (e.g. production)

version
string

Resolve by specific version number

Response

200 - application/json

Successful Response

success
boolean
tool_registry
object