Adding a Contact
You can manually add a new contact based on a wallet address, email, or phone number.
POST /contacts
Body
Field | Type | Description |
---|---|---|
primaryIdentifier | 'email' | 'phoneNumber' | 'walletAddress' | The primary identifier for the new contact. |
value | string | The value of the primary identifier. |
Response
CODE | Description |
---|---|
200 | A contact with that identifier already existed so it returns the existing contact. |
201 | A new contact was created with the primary identifier and it returns the new contact. |
400 | The data passed in was invalid. It returns an error object with with the error message for each field. |
500 | Internal Sever Error |
Contact Object
Error Object
Last updated