cURL
curl --request POST \ --url https://api.promptlayer.com/rest/track-prompt \ --header 'Content-Type: application/json' \ --data '{ "prompt_name": "<string>", "prompt_input_variables": {}, "api_key": "<string>", "request_id": 123, "version": 123, "label": "<string>" }'
import requests response = requests.post( "https://api.promptlayer.com/rest/track-prompt", json={ "api_key": "<YOUR_API_KEY>", "prompt_name": "<PROMPT_NAME>", "prompt_input_variables": {"variable1": "value1", "variable2": "value2"}, "request_id": "<REQUEST_ID>", "version": "<VERSION>" }, )
Was this page helpful?