Skip to main content
POST
/
prompt-logs
/
share
Create Share Link
curl --request POST \
  --url https://api.promptmetrics.dev/prompt-logs/share \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "log_id": "<string>"
}
'
{
  "responseData": {
    "share_url": "<string>",
    "expires_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
log_id
string
required
expires_in_days
number
default:7

Response

201 - application/json

Share link created

responseData
object