Prompts
Log to a Prompt
Log to a Prompt.
You can use query parameters version_id, or environment, to target an existing version of the Prompt. Otherwise, the default deployed version will be chosen.
Instead of targeting an existing version explicitly, you can instead pass in Prompt details in the request body. In this case, we will check if the details correspond to an existing version of the Prompt. If they do not, we will create a new version. This is helpful in the case where you are storing or deriving your Prompt details in code.
post/prompts/log
Request
- Base URL: https://api.humanloop.com/v5
- URL: https://api.humanloop.com/v5/prompts/log
- Auth: API key in header X-API-KEY
Query parameters
version_idstring
A specific Version ID of the Prompt to log to.
environmentstring
Name of the Environment identifying a deployed version to log to.
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.