Run Lambda (Public)
Invokes a lambda publicly. No authentication is required. The endpoint accepts any HTTP method.
Use this route for webhooks and public API calls. The lambda ID comes from the lambda management endpoints.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
lambda_id |
string | Lambda identifier |
Request Body
Send any payload you want the lambda to receive as req.body.
HTTP Request
1POST /run/f1a2b3c4-d5e6-7890-abcd-ef0123456789 HTTP/1.1
2Host: api.hola.cloud
3Content-Type: application/json
4
5{
6 "event": "payment_received",
7 "amount": 49.99,
8 "currency": "USD"
9}
Example
1curl -X POST "https://api.hola.cloud/run/f1a2b3c4-d5e6-7890-abcd-ef0123456789" \
2 -H "Content-Type: application/json" \
3 -d '{
4 "event": "payment_received",
5 "amount": 49.99,
6 "currency": "USD"
7 }'
Response
The response is whatever the lambda handler returns.
1{
2 "body": {
3 "processed": true,
4 "event": "payment_received"
5 }
6}
Error Codes
| Code | Description |
|---|---|
| 400 | Invalid request body |
| 404 | Lambda not found |
| 500 | Lambda execution error |
Comments