The Inbound API block is enabled per environment. If the marketer does not see it in the orchestration canvas, contact your Lobyco representative.
Before you start
- A flow with an Inbound API block as its first block. The flow must be published, and the call must fall inside the block’s start and end window. The marketer’s side is on Block reference.
- The block’s URL. The block’s configuration in the admin portal shows it, in the form
https://integration.your-environment.lobyco.net/inbound/{id}. - The API key for the environment. Lobyco provides one key per environment, and it works for every Inbound API block there. Ask your Lobyco representative for a key, or to rotate one.
- Valid Lobyco customer ids. Lobyco does not check the id against the customer base in this version, so send ids you know to be valid.
The flow
1
Send the request
POST https://integration.your-environment.lobyco.net/inbound/{id}Call the block’s URL with the API key in the API-KEY header and a JSON body:CustomerId, the Lobyco customer id to push into the flow. Required.IdempotencyKey, a value of your choice that guards against duplicate calls. Optional, and recommended.
2
Read the response
A202 Accepted with a requestId means Lobyco accepted the call and scheduled the flow for that customer. Keep the requestId. It is how you trace the execution with Lobyco. Any other status means the flow did not start; the codes are below.Failure and edge cases
A call has worked when it returns202 Accepted. The flow then runs for that customer, and what happens next is the flow’s own blocks.
- Duplicate calls. Send an
IdempotencyKey. A repeated call with the same key for the same block within 24 hours is ignored and returns the originalrequestId. A retry or an accidental double send therefore does not run the flow twice. A call without a key is always processed. - Retries are yours. Lobyco does not retry an inbound call. Retry on
429 Too Many Requestsand on network errors, with the sameIdempotencyKey. - One customer per call. Each request runs the flow for one
CustomerId. Batch calls are not supported yet. - No extra payload. Lobyco reads only
CustomerIdandIdempotencyKey. Other properties are ignored for now. - Keys come from Lobyco. Self-service key management and request logs are planned for later.
Related
- OutboundAPI connection — the other direction, where a flow calls an endpoint in your system.
- Block reference — what the marketer configures on the Inbound API block.
- Events — the payloads a flow can send on through the OutboundAPI connection.