Link sessions

Revoke

Cancels a pending link session.

DELETE
/v1/link-sessions/{id}

Cancels a session that is still pending: the page stops working right away, and the seller sees "This link was canceled". The response is 204, with no body. Connections already made through the session stay.

Only a pending session can be revoked. One that is completed, expired or already revoked returns 409 CONFLICT, with the current state in details.status.

Authorization

api_key
headerAuthorizationBearer <token>

API key (mk_...)

Path Parameters

id*string

Identifier of the resource, as returned by the API.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

The session was revoked: its page stops working right away. No body.

curl -X DELETE "https://example.com/v1/link-sessions/3d1c8a52-7f0e-4b0a-8a65-9c1b2f6d7e01"
Empty