Skip to main content
PromptLayer logo
  • Category: artificial intelligence
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 16
  • Triggers: 0
  • Slug: PROMPTLAYER
  • Version: 00000000_00

Tools

Slug: PROMPTLAYER_GET_PROMPT_TEMPLATERetrieve a prompt template version, release label, messages, model metadata, snippets, and optionally provider-ready kwargs without executing it.

Input Parameters

string
Release label to resolve, such as production or staging. Cannot be used with version.
integer
Specific positive version number. Cannot be used with label.
string
required
Prompt-template name or numeric ID.
boolean
Whether to expand snippet references in the returned template.
boolean
Whether to include provider-specific kwargs derived from the template’s model metadata.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_GET_REGISTERED_TOOLRetrieve a PromptLayer registered tool definition by ID or name at a selected version or release label without test execution.

Input Parameters

string
Release label to resolve; mutually exclusive with version.
string
Specific version to resolve; mutually exclusive with label.
string
required
Registered tool’s numeric ID or name.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_GET_REQUEST_LOGRetrieve one PromptLayer request log with its recorded input, output, timing, usage, metadata, tags, and scores.

Input Parameters

integer
required
PromptLayer request-log ID returned by request-log search.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_GET_SKILL_COLLECTIONRetrieve a PromptLayer skill collection and its files as JSON at a selected version or release label.

Input Parameters

string
Release label to resolve; mutually exclusive with version.
integer
Positive version number to retrieve; mutually exclusive with label.
string
required
Skill collection UUID, name, or root path.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_GET_TABLERetrieve one PromptLayer Table’s metadata and per-sheet row counts by UUID.

Input Parameters

string
required
Table UUID returned by list tables.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_GET_WORKFLOWRetrieve a PromptLayer workflow definition by ID or name at a specific version or release label without running it.

Input Parameters

string
Release label to resolve; mutually exclusive with version.
integer
Specific positive version to retrieve; mutually exclusive with label.
string
required
Workflow ID or name.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_LIST_FOLDER_ENTITIESBrowse or search PromptLayer folders and registry entities in the API-key workspace, optionally recursively and with metadata.

Input Parameters

array
Tags used to filter entity types that support tags. Accepts one or more tags.
boolean
Return descendants recursively instead of direct children only.
string ("created_at" | "updated_at" | "name" | "id")
Sort by created_at, updated_at, name, or id.
integer
Folder to browse; omit for the workspace root.
string ("asc" | "desc")
Sort direction: asc or desc.
string
External-ID value; provide together with external_source.
array
Entity types to include. Accepts one or more of FOLDER, PROMPT, SNIPPET, WORKFLOW, DATASET, REPORT, AB_TEST, or INPUT_VARIABLE_SET.
string
Case-insensitive partial entity-name search.
string
External-ID source; provide together with external_id.
string
Creator email to match exactly.
boolean
Include type-specific metadata such as prompt type and latest version.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_LIST_PROMPT_TEMPLATESSearch and page through PromptLayer prompt templates and snippets without executing a model.

Input Parameters

string
Case-insensitive partial prompt-template name.
array
Tags that every returned template must contain. Accepts one tag or a list.
string
Release label such as production or staging.
string ("active" | "deleted" | "all")
Template status to return.
string ("created_at" | "updated_at" | "name" | "id")
Field used to sort templates.
integer
Maximum templates in this page (1-100).
boolean
True for snippets only, false to exclude snippets, or omit for both.
string ("asc" | "desc")
Sort direction.
string
External-ID value. Provide together with external_source.
string
Continuation cursor returned by a previous call.
string
Return templates created at or after this timestamp.
string
Return templates updated at or after this timestamp.
string
Return templates created at or before this timestamp.
string
Return templates updated at or before this timestamp.
string
External-ID source. Provide together with external_id.
string
Creator email to match exactly.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_LIST_REGISTERED_TOOLSList and filter tools defined in PromptLayer’s tool registry without executing them.

Input Parameters

string ("created_at" | "updated_at" | "name" | "id")
Sort by created_at, updated_at, name, or id.
string ("asc" | "desc")
Sort direction: asc or desc.
string
External-ID value; provide together with external_source.
string
Return tools created at or after this timestamp.
string
Return tools updated at or after this timestamp.
string
Return tools created at or before this timestamp.
string
Return tools updated at or before this timestamp.
string
External-ID source; provide together with external_id.
string
Creator email to match exactly.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_LIST_SKILL_COLLECTIONSList and filter PromptLayer skill collections available in the API-key workspace.

Input Parameters

string ("created_at" | "updated_at" | "name" | "id")
Sort by created_at, updated_at, name, or id.
string ("asc" | "desc")
Sort direction: asc or desc.
string
External-ID value; provide together with external_source.
string
Return collections created at or after this timestamp.
string
Return collections updated at or after this timestamp.
string
Return collections created at or before this timestamp.
string
Return collections updated at or before this timestamp.
string
External-ID source; provide together with external_id.
string
Creator email to match exactly.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_LIST_TABLE_COLUMNSList one page of user and optionally system columns for a PromptLayer Table sheet.

Input Parameters

integer
Maximum columns in this page (1-100).
string
required
Sheet UUID returned by list table sheets.
string
required
Parent Table UUID.
string
Opaque continuation cursor returned by a previous call.
boolean
Include system-managed price, latency, and prompt-output metadata columns.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_LIST_TABLE_ROWSRead one page of rows and cells from a PromptLayer Table sheet, with optional schema and execution aggregates.

Input Parameters

integer
Maximum rows in this page (1-100).
string ("asc" | "desc")
Row order.
string
required
Sheet UUID returned by list table sheets.
string
required
Parent Table UUID.
string
Opaque continuation cursor returned by a previous call.
boolean
Include column metadata alongside rows.
boolean
Include the total row count.
boolean
Include system-managed price, latency, and prompt-output columns.
boolean
Include sheet and per-column price and latency aggregates.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_LIST_TABLESSearch and page through PromptLayer Tables by folder, name, or referenced prompt.

Input Parameters

string
Case-insensitive partial Table title.
integer
Maximum Tables in this page (1-100).
string ("asc" | "desc")
Sort direction.
integer
Only Tables in this folder.
integer
Only Tables with a column referencing this prompt.
string
Opaque continuation cursor returned by a previous call.
integer
Only Tables referencing this prompt label.
integer
Only Tables referencing this prompt version.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_LIST_TABLE_SHEETSList one page of sheets in a PromptLayer Table, optionally filtering by referenced prompt.

Input Parameters

integer
Maximum sheets in this page (1-100).
string ("asc" | "desc")
Sort direction.
string
required
Parent Table UUID.
integer
Only sheets with a column referencing this prompt.
string
Opaque continuation cursor returned by a previous call.
integer
Only sheets referencing this prompt label.
integer
Only sheets referencing this prompt version.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_LIST_WORKFLOWSSearch and page through PromptLayer workflows without running them.

Input Parameters

string ("created_at" | "updated_at" | "name" | "id")
Sort by created_at, updated_at, name, or id.
integer
Maximum workflows in this page (1-100).
string ("asc" | "desc")
Sort direction: asc or desc.
string
External-ID value; provide together with external_source.
string
Continuation cursor returned by a previous response. Omit for the first page and pass it back unchanged to fetch the next page.
string
Return workflows created at or after this timestamp.
string
Return workflows updated at or after this timestamp.
string
Return workflows created at or before this timestamp.
string
Return workflows updated at or before this timestamp.
string
External-ID source; provide together with external_id.
string
Creator email to match exactly.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PROMPTLAYER_SEARCH_REQUEST_LOGSSearch PromptLayer request logs by text or structured filters and return one rate-limited page sorted by operational fields.

Input Parameters

string
Free-text fuzzy-prefix search across prompt input and model output.
string ("request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "status")
Operational field used to sort results.
integer
Maximum request logs to return on this page (1-25).
string ("asc" | "desc")
Result sort direction.
string
Continuation cursor returned by a previous call. Omit for the first page.
object
Structured AND/OR filter group for request-log fields.
boolean
Include the associated prompt-template name in each result.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not