Skip to main content
POST
/
api
/
user
/
tools
Get available tools for the authenticated user
curl --request POST \
  --url https://pria.praxislxp.com/api/user/tools \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "data": [
    {
      "_id": "6631915765bb0a94cfd6ca99",
      "name": "call_google_calendar",
      "status": "active",
      "description": "Access Google Calendar to manage events",
      "rtEnabled": true,
      "rtOnly": false,
      "unavailable": false,
      "unavailableReason": ""
    },
    {
      "_id": "6631915765bb0a94cfd6ca9a",
      "name": "call_google_drive",
      "status": "active",
      "description": "Access Google Drive files",
      "rtEnabled": false,
      "rtOnly": false,
      "unavailable": true,
      "unavailableReason": "Google Cloud not enabled for users"
    },
    {
      "_id": "6631915765bb0a94cfd6ca9b",
      "name": "call_web_search",
      "status": "active",
      "description": "Search the web",
      "rtEnabled": false,
      "rtOnly": false
    }
  ]
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Response

Tools retrieved successfully

success
boolean
required

Whether the operation was successful

Example:

true

data
object[]
required

List of tools sorted in ascending order by name

message
string

Present only when no tools are found, with the value "No Tools"

Example:

"No Tools"