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
- application/json
Body
required
- Array [
- ]
addresses object[]required
Responses
- 201
- 403
- 404
- 500
Contact created
- text/plain
- Schema
Schema
string
Permission denied
- text/plain
- Schema
Schema
string
Wallet not found
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string