Rotate the signing secret
POST
Returns the new secret. For a grace period deliveries are signed with both the new and the previous secret.
apiKeyheader
AuthorizationBearer <clave>Your secret API key, sent as Authorization: Bearer <key>. A key names its environment: psp_test_… works only against sandbox (https://api-sandbox.caibopay.app), psp_live_… only against live (https://api.caibopay.app). Keys are issued by Caibo when your account is opened; the dashboard (Developers) shows the key in use.
id*stringOK
application/json- response
created_at*stringWhen it was created.
Formato
date-timedescription?stringA note.
event_types*array<>id*stringThe id of the webhook endpoint.
Match
^we_[0-9a-z]+$previous_secret_expires_at?stringUntil when the previous secret also signs.
Formato
date-timesecret?stringThe signing secret. Present only when the endpoint is created or its secret rotated.
status*stringactive: deliveries are sent. paused: you paused it. failing: deliveries keep failing and the endpoint is only probed.
Valor en
"active""paused""failing"url*stringThe URL.
Ejemplo de solicitud
curl -X POST 'https://api-sandbox.caibopay.app/v1/webhook-endpoints/string/rotate-secret'Ejemplo de respuesta
{ "created_at": "2019-08-24T14:15:22Z", "description": "string", "event_types": [ "beneficiary.created" ], "id": "string", "previous_secret_expires_at": "2019-08-24T14:15:22Z", "secret": "string", "status": "active", "url": "string"}