curl --request POST \
--url https://api.promptlayer.com/rest/track-metadata \
--header 'Content-Type: application/json' \
--data '{
"api_key": "<string>",
"request_id": 123,
"metadata": {}
}'
{
"success": true,
"message": "<string>"
}
curl --request POST \
--url https://api.promptlayer.com/rest/track-metadata \
--header 'Content-Type: application/json' \
--data '{
"api_key": "<string>",
"request_id": 123,
"metadata": {}
}'
{
"success": true,
"message": "<string>"
}
import requests
response = requests.post(
"https://api.promptlayer.com/rest/track-metadata",
json={
"api_key": "<YOUR_API_KEY>",
"request_id": "<REQUEST_ID>",
"metadata": {"session_id": "abc123", "user_id": "user123"}
},
)
Metadata tracked successfully
The response is of type object
.
Was this page helpful?