Llm Analytics
Create Webhook Secret
POST
apiKeyAuthheader
x-api-key<token>FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.
idOrSlug*stringapplication/json- body
provider*"openrouter"Value in
"openrouter"CreateLlmWebhookSecretResponse
application/json- response
secret*fullSecret*stringcurl -X POST 'https://api.faststats.dev/v0/projects/string/llm/webhook-secrets' \ -H 'Content-Type: application/json' \ -d '{ "provider": "openrouter"}'Example Response
{ "secret": { "id": "string", "projectId": "string", "provider": "openrouter", "keyPrefix": "string", "createdAt": "string", "lastUsedAt": "string", "revokedAt": "string" }, "fullSecret": "string"}POST
curl -X POST 'https://api.faststats.dev/v0/projects/string/llm/webhook-secrets' \
-H 'Content-Type: application/json' \
-d '{
"provider": "openrouter"
}'{
"secret": {
"id": "string",
"projectId": "string",
"provider": "openrouter",
"keyPrefix": "string",
"createdAt": "string",
"lastUsedAt": "string",
"revokedAt": "string"
},
"fullSecret": "string"
}