Prompts

Get prompt summary

Changed on

Returns the number of prompts matching the filters.

post/api/prompts/summary/

Request

  • Base URL
    https://api.respan.ai
  • URL
    https://api.respan.ai/api/prompts/summary/
  • Auth
    • HTTP bearer
    • or HTTP bearer

Request body

Example request

{
  "filters": {
    "prompt_id": {
      "operator": "gte",
      "value": [
        0.01
      ]
    },
    "prompt_slug": {
      "operator": "gte",
      "value": [
        0.01
      ]
    },
    "name": {
      "operator": "gte",
      "value": [
        0.01
      ]
    },
    "description": {
      "operator": "gte",
      "value": [
        0.01
      ]
    },
    "starred": {
      "operator": "gte",
      "value": [
        0.01
      ]
    },
    "tags": {
      "operator": "gte",
      "value": [
        0.01
      ]
    },
    "current_version__updated_at": {
      "operator": "gte",
      "value": [
        0.01
      ]
    },
    "current_version__created_at": {
      "operator": "gte",
      "value": [
        0.01
      ]
    },
    "is_deleted": {
      "operator": "gte",
      "value": [
        0.01
      ]
    }
  }
}

Response

Filtered prompt summary statistics.

total_countinteger

Total number of prompts matching the filters.

Example response

{
  "total_count": 42
}

Changes

    • info

      api operation id prompts_getPromptsSummaryWithFilters removed and replaced with getPromptsSummaryWithFilters

    • info

      the endpoint scheme security DashboardJwt was added to the API

    • info

      api tag Prompts added

    • info

      api tag prompts removed

    • breaking

      removed the enum value iexact of the request property //

    • breaking

      removed the enum value iexact of the request property //

    • breaking

      removed the enum value iexact of the request property //

    • breaking

      removed the enum value iexact of the request property //

    • breaking

      removed the enum value iexact of the request property //

    • breaking

      removed the enum value iexact of the request property //

    • breaking

      removed the enum value iexact of the request property //

    • breaking

      removed the enum value iexact of the request property //

    • breaking

      removed the enum value isnull of the request property //

    • breaking

      removed the enum value isnull of the request property //

    • breaking

      removed the enum value isnull of the request property //

    • breaking

      removed the enum value isnull of the request property //

    • breaking

      removed the enum value isnull of the request property //

    • breaking

      removed the enum value isnull of the request property //

    • breaking

      removed the enum value isnull of the request property //

    • breaking

      removed the enum value isnull of the request property //

    • warning

      removed the request property /

    • warning

      removed the request property /

    • info

      added the new optional request property /

    • info

      added the new empty enum value to the request property //

    • info

      added the new empty enum value to the request property //

    • info

      added the new empty enum value to the request property //

    • info

      added the new empty enum value to the request property //

    • info

      added the new empty enum value to the request property //

    • info

      added the new empty enum value to the request property //

    • info

      added the new empty enum value to the request property //

    • info

      added the new empty enum value to the request property //

    • info

      added the new not_contains enum value to the request property //

    • info

      added the new not_contains enum value to the request property //

    • info

      added the new not_contains enum value to the request property //

    • info

      added the new not_contains enum value to the request property //

    • info

      added the new not_contains enum value to the request property //

    • info

      added the new not_contains enum value to the request property //

    • info

      added the new not_contains enum value to the request property //

    • info

      added the new not_contains enum value to the request property //

    • info

      added the new not_empty enum value to the request property //

    • info

      added the new not_empty enum value to the request property //

    • info

      added the new not_empty enum value to the request property //

    • info

      added the new not_empty enum value to the request property //

    • info

      added the new not_empty enum value to the request property //

    • info

      added the new not_empty enum value to the request property //

    • info

      added the new not_empty enum value to the request property //

    • info

      added the new not_empty enum value to the request property //

    • info

      added the new not_endswith enum value to the request property //

    • info

      added the new not_endswith enum value to the request property //

    • info

      added the new not_endswith enum value to the request property //

    • info

      added the new not_endswith enum value to the request property //

    • info

      added the new not_endswith enum value to the request property //

    • info

      added the new not_endswith enum value to the request property //

    • info

      added the new not_endswith enum value to the request property //

    • info

      added the new not_endswith enum value to the request property //

    • info

      added the new not_in enum value to the request property //

    • info

      added the new not_in enum value to the request property //

    • info

      added the new not_in enum value to the request property //

    • info

      added the new not_in enum value to the request property //

    • info

      added the new not_in enum value to the request property //

    • info

      added the new not_in enum value to the request property //

    • info

      added the new not_in enum value to the request property //

    • info

      added the new not_in enum value to the request property //

    • info

      added the new not_startswith enum value to the request property //

    • info

      added the new not_startswith enum value to the request property //

    • info

      added the new not_startswith enum value to the request property //

    • info

      added the new not_startswith enum value to the request property //

    • info

      added the new not_startswith enum value to the request property //

    • info

      added the new not_startswith enum value to the request property //

    • info

      added the new not_startswith enum value to the request property //

    • info

      added the new not_startswith enum value to the request property //

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status