genai
prompt

Create a prompt

Changed on

Creates a GenaiPrompt. Provide the unified GenaiPrompt fields in the request body; they are mapped to the provider's API. Returns the created GenaiPrompt.

post/genai/{connection_id}/prompt

Request

  • Base URL
    https://api.unified.to
  • URL
    https://api.unified.to/genai/{connection_id}/prompt
  • Auth
    API key in header authorization

Path parameters

connection_idstring required

ID of the connection

Query parameters

fieldsstring[]

Fields to return

rawstring

Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar

Request body

model_idstring

The ID of the model to use (a GenaiModel ID)

temperaturenumber

0-1

max_tokensnumber

a float between 0-1

responsesstring[]
tokens_usednumber
mcp_urlstring

Supply a remote MCP URL to send to the LLM API for it to call its tools. Note: Some LLM APIs do not yet support remote MCP URLs.

mcp_deferred_toolsstring[]
mcp_authorization_tokenstring

OAuth Bearer token for MCP servers that require authentication.

skill_idsstring[]

ids of the genai_skill objects (Agent Skills) to make available to the LLM while it answers.

rawobject

Response

Successful

model_idstring

The ID of the model to use (a GenaiModel ID)

temperaturenumber

0-1

max_tokensnumber

a float between 0-1

responsesstring[]
tokens_usednumber
mcp_urlstring

Supply a remote MCP URL to send to the LLM API for it to call its tools. Note: Some LLM APIs do not yet support remote MCP URLs.

mcp_deferred_toolsstring[]
mcp_authorization_tokenstring

OAuth Bearer token for MCP servers that require authentication.

skill_idsstring[]

ids of the genai_skill objects (Agent Skills) to make available to the LLM while it answers.

rawobject

Changes

    • info

      added the new optional request property //

    • info

      added the new optional request property

    • info

      added the enum value skill_ids to the property items/ of the query request parameter fields

    • info

      added the optional property // to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the enum value answers to the property items/ of the query request parameter fields

    • info

      added the enum value questions to the property items/ of the query request parameter fields

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status