MechaMental
Api reference

Search

GET
/v1/orgs/{org_id}/api/search

Path Parameters

org_id*Org Id

Query Parameters

q?|

Search query. Empty/null returns all when types filter is provided

types?array<>|

Filter by resource types

workspace_id?|

Filter to specific workspace

limit?Limit

Maximum number of items to return (1-100)

Default20
Range1 <= value <= 100
cursor?|

Cursor for pagination (from previous response's next_cursor)

Header Parameters

authorization?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://loading/v1/orgs/string/api/search"
{
  "query": "string",
  "total_results": 0,
  "results": [
    {
      "resource_id": "string",
      "type": "app",
      "name": "string",
      "description": "string",
      "workspace_id": "string",
      "workspace_name": "string",
      "parent_resource_id": "string",
      "parent_resource_type": "app",
      "icon": "string",
      "tags": [
        "string"
      ],
      "updated_at": "2019-08-24T14:15:22Z",
      "relevance_score": 0,
      "metadata": {}
    }
  ],
  "searched_types": [
    "app"
  ],
  "searched_workspaces": 0,
  "execution_time_ms": 0
}
{
  "error": "AUTHENTICATION_FAILED",
  "message": "Authentication required",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 401
}
{
  "error": "FORBIDDEN",
  "message": "You don't have permission to perform this action",
  "details": {
    "required_permission": "resource:action"
  },
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 403
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
{
  "error": "INTERNAL_SERVER_ERROR",
  "message": "An unexpected error occurred",
  "details": {},
  "timestamp": "2025-01-01T00:00:00.000000",
  "status_code": 500
}