Skip to main content

Create contact

POST 

/v1/contacts

Create contact

This endpoint allows users to add new contacts associated with a specific wallet. Any transaction need to be done to a contact, like a whitelisting, otherwise the transaction will be blocked. It requires authentication and checks for permissions to ensure that only authorized users can perform this action. The request payload includes the wallet ID, contact name, optional email, and a list of addresses with names and network IDs. The endpoint validates the input, including checking if the wallet exists and if the user has permission to create contacts. Upon successful validation and insertion into the database, it returns a 201 Created status along with the newly created contact's ID.

Request

Body

required
    addresses object[]required
  • Array [
  • address stringrequired
    name stringrequired
    network_id int32required
  • ]
  • email stringnullable
    name stringrequired
    wallet_id uuidrequired

Responses

Contact created

Schema

    string

Loading...