Open a tap intent
Opens a tap intent for one unit, so a person can confirm a step in your app by tapping the item with any phone. The response carries tap_code to show the person. They tap the item, the page the tap opens lists the unit’s open tap intents, and they confirm this one there with the code. The tap intent is then approved and Endstate sends tap_intent.approved. Consume it within use_within seconds of the approval, then perform your own action. A unit can have up to 10 open tap intents. Tap intents must be enabled for the environment.
Authorizations
Use Authorization: Bearer end_sk_* for partner API keys (e.g. end_sk_AbCd_example_api_key).
Headers
Unique key that makes this request safe to retry. Replaying the key with the same body returns the original response with Idempotent-Replayed: true; replaying it with a different body returns 409 idempotency.key_conflict.
1 - 255"a1b2c3d4-0000-4000-8000-000000000000"
Body
Who may open the intent. own opens it on a unit in your own environment.
own The unit the person will tap.
Opaque to Endstate. Stored with surrounding whitespace trimmed, returned on reads and in webhooks, and compared exactly when you consume.
Seconds the intent waits for a tap. A tap after that does not count.
60 <= x <= 900Seconds after the person approves in which you can consume the approval. Fixed here: use_by is approved_at plus this, and no call extends it.
60 <= x <= 900Whether the person must enter a code to confirm. On by default: the response carries tap_code for you to show them. Pass false only where the person asking is the person holding the item and a wrong approval costs little, because anyone who taps the item can then confirm.
Where the person is sent after they confirm. tap_intent=<id> is added to it. Must be on one of the environment's allowed origins.
2048"https://app.example.com/listings/8271/confirm"
Response
The open tap intent and its code.
pending until the person confirms. approved once they have: consume it by use_by. consumed once you have used the approval; it is used once. canceled ended without an approval. expired means nobody approved in time, or the approval was not consumed by use_by. consumed and canceled are final. Approving, canceling and consuming each send a webhook; expiring sends none.
pending, approved, consumed, canceled, expired own Whether the person must enter the code to confirm.
The tap the intent was approved with. Null until it is approved.
A tap must arrive by this time. The person can confirm for 10 minutes after their tap.
When the person approved. Kept on an approval that expired unused.
The approval can be consumed until this time: approved_at plus the use_within set at create. Null until approved.
When you consumed the approval. Null until then.
The six digit code to show the person, or null when code is false. Returned by this response only: no read or webhook carries it, and a replay of the same Idempotency-Key returns null. If you lose it, cancel and open a new tap intent.
"482913"

