Skip to content

Crear configuración de webhook

POST
/webhook

Crea una nueva configuración de webhook para recibir notificaciones de eventos en tiempo real.

Casos de uso:

  • Configurar notificaciones automáticas de eventos de crédito
  • Integrar sistemas externos con el flujo de trabajo de Kuenta
  • Recibir actualizaciones de estado de órdenes y desembolsos

Authorizations

bearerAuth

JWT token de autenticación. Utilice este esquema para autenticar solicitudes con un token JWT.

TypeHTTP (bearer)

Request Body

application/json
JSON
{
"tag": "payment_notifications",
"url": "https://mi-api.com/webhooks/kuenta",
"request_header": {
},
"request_body": "{"source":"kuenta","version":"1.0"}",
"auth_enabled": true,
"auth_url": "https://auth.mi-api.com/oauth/token",
"auth_method": "string",
"auth_request_body": "{"grant_type":"client_credentials","client_id":"123"}",
"auth_header": "Bearer",
"token_type": "Bearer",
"token_source_key": "access_token",
"auth_request_header": {
},
"token_header": true
}

Responses

Webhook creado exitosamente
application/json
JSON
{
"success": true,
"message": "Webhook created successfully",
"data": {
"webhook": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"tag": "payment_notifications",
"url": "https://mi-api.com/webhooks/kuenta",
"auth_enabled": true,
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2024-01-16T14:20:00Z"
}
}
}

Playground

Server
Authorization
Body

Samples

Powered by VitePress OpenAPI