Recipients and reachability
Supply recipients when a published plan expects them, then use the run result and participant states instead of probing identifiers first.
Delivered plans accept a recipients array when they run. Each entry carries
an addressing object, a display name, and your own stable ref.
{
"recipients": [
{
"addressing": { "type": "nin", "nin": "12345678901" },
"display_name": "Musa Bello",
"ref": "EMP-4471"
}
]
}Addressing modes
type | Identifier | When nobody matches now |
|---|---|---|
nin | nin | Retained for delivery after that person verifies. |
cac | cac_number | Retained when the legal entity can hold a mailbox. |
email | email | Rejected; an email is a matching key, not a future hold key. |
claim | declared_name | Creates a single-use claim code your organisation delivers. |
Identifiers are write-only and are never echoed back. The participant carries
its participant_id, the display_name you supplied, your ref, and what
Keepable verified.
Validate through the run
There is no public recipient-check endpoint. Submit the recipients with the plan run:
- malformed or unresolvable entries appear in the run's
rejectedcollection with their input index andref; - accepted entries become participants; and
- asynchronous delivery outcomes appear on those participants and in webhook events.
This avoids turning the API into an identity-enumeration service and removes a separate preflight round trip.
Addressing a company
Use the full CAC registration number, including its series prefix, such as
RC1234567, BN1234567, IT1234567, LP1234567, or LLP1234567. A bare
number is rejected because the registers are separate.
When you have only a name
Use claim addressing. Keepable deposits the file against the declared name and
returns a single-use code through GET /correspondence/{correspondence_id}/claims.
See Claim codes.
Embedded recipient onboarding
Your server can call POST /recipient-embed/launch-grants with a live API key
that has the recipients.embed scope. Send the customer's 11-digit NIN from
your KYC system and an intent (hub, correspondence, task, or case).
Keep the API key and NIN on your server; the returned grant does not contain
the NIN.
Every launch must include the customer's acknowledgement of the current
Keepable essential-storage notice: storage_notice_version,
storage_notice_locale (currently en),
storage_notice_acknowledged_at, and storage_notice_evidence_id.
Reuse the original acknowledgement time and the same high-entropy evidence
identifier for that customer, notice version and locale. Retain durable evidence
in your own records linking the acknowledgement and Keepable X-Request-ID
to the customer account.
A successful call returns 201 with launch_grant and expires_at, with
Cache-Control: no-store. Put the single-use, five-minute grant only in the
URL fragment:
https://embed.app.keepable.co/embed/launch#grant={launch_grant}Never put it in a path or query string. This operation is non-idempotent. If
the response is lost, retry without reusing an Idempotency-Key; the retry
creates a fresh grant and any earlier grant expires independently.
Residence selectors
The shared addressing schema also describes residence selectors. They are
for letters and cannot be used on routes or plans. A postcode selects a
building, area, district or LGA; it does not prove occupancy. Delivery uses a
snapshot of current accounts with self-asserted homes and sends one copy per
eligible account across overlapping selectors. Later joiners and movers do not
receive historical deliveries.
A named recipient is supported only at building scope and must match exactly
one registry-sourced, NIN-verified name; absent or ambiguous matches are refused.
An unnamed send requires public_notice: true. Residence selectors cannot be
mixed with other recipient types, and a letter supports at most 1,000 selectors.