Skip to Content
Llm Analytics

Create Webhook Secret

POST
/v0/projects/{idOrSlug}/llm/webhook-secrets

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Request Body

application/json
  1. body
provider*"openrouter"
Value in"openrouter"

Response Body

CreateLlmWebhookSecretResponse

application/json
  1. response
secret*
fullSecret*string
Example Request
curl -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"}