Tikin · Docs
API ReferencePlatformWebhooks

Rotar el secret

POST
/v1/webhook_endpoints/{endpoint_id}/rotate_secret

Un secret filtrado se rota, no se llora: el nuevo se muestra una vez y el viejo sigue válido 24h para que despliegues sin perder entregas.

Authorization

tenantToken
AuthorizationBearer <token>

Tu token de tenant: tk_live_…. El entorno sandbox llega pronto; los tokens tk_test_ quedarán reservados para él. Scopes: read, lookup, transfers, bonuses, payouts, webhooks. Usa el mínimo.

In: header

Path Parameters

endpoint_id*string
Formatuuid

Header Parameters

Idempotency-Key*string

UUID tuyo. Reintentar con la misma llave es el MISMO pedido (200 en vez de 201, y la respuesta trae el header Idempotent-Replay: true para que tu observabilidad distinga el replay del original); la misma llave con otro cuerpo — bytes de archivos incluidos — es 409.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/webhook_endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate_secret" \  -H "Idempotency-Key: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "url": "http://example.com",  "events": [    "transfer.completed"  ],  "created_at": "2019-08-24T14:15:22Z",  "secret": "string"}