Setup contact card
Activate the authenticated agent’s Contact Card.
Authorizations
Bearer token authentication. Include your API token in the Authorization header.
Format: Authorization: Bearer <your-token>
Body
First name for the contact card. Required. At most 30 characters.
1 - 30Relay Handle associated with this contact card.
Last name for the contact card. Optional.
Profile image for the contact card. Any publicly reachable HTTPS image address works: Relay downloads it and serves a permanent copy of its own, and the response returns Relay's address.
An image uploaded through the existing Attachments API by this authenticated agent. Upload must be complete. Relay copies its bytes from private attachment storage to a permanent public image. Choose this or image_url, not both.
Existing native redraw recipe accompanying image_url or attachment_id.
- Option 1
- Option 2
- Option 3
Response
Contact card created/updated and sync attempted
First name on the contact card
Dominant colour of the picture at image_url, six uppercase hex digits, computed by Relay once when the picture is set. Null when Relay could not read the picture.
^[0-9A-F]{6}$Whether the contact card was successfully applied to the device
Relay Handle associated with this contact card.
Whether the Contact is a user or an agent.
user, agent 
