REST API
The documentation of the api can be found in Api Docs page. This article defines the resources available in the Vcards integration API.
Access token
In order to access the API it is required having an accessToken. Once you have an accessToken you must include it in every request as a HTTP header
AccessToken: "AccessToken"
If you need to try different API calls you can do it from the same Api Docs page, by using the "authorize" button
Create a new tagvcard
Creates a new tagvcard in the team.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
name | string | Full name | Yes |
collection | string | Collection code where the |
Yes |
string | Email related to the |
Yes | |
phone | string | Phone number | No |
position | object | Position of the |
No |
mobile-phone | string | Mobile phone number | No |
address | string | Address of the |
No |
department | string | Department of the |
No |
-
sku: A string representing the SKU (Stock Keeping Unit) used to identify the
tagvcard to be updated. -
{ [field-slug]: string }: A JSON object containing the
tagvcard details. Each of the keys belongs to the slug of the field in thetag.vcard.
Request Body:
-
Media type:
application/json
-
Example request body:
{ "name": "Full name", "collection" : "2423AX23", "email": "[email protected]", "phone": "+1234567890", "position": { "en": "CEO", "es": "Director General" }, "mobile-phone": "+1234567890", "address": "1234 Main St, City, Country", "department" : "Marketing" }
Responses:
201 - Success
-
Media type:
application/json
-
Example response:
{ "code": "BVHWSTMGL", "sku": "ABC000", "values": { "name": "Full name", "email": "[email protected]", "phone": "+1234567890", "position": { "en": "CEO", "es": "Director General" }, "mobile-phone": "+1234567890", "address": "1234 Main St, City, Country", "department" : "Marketing" } }
Show tagvcard detail
Retrieves tagvcard details by the given SKU. The SKU is a unique reference for the tag.vcard.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
sku | string | SKU code | Yes |
-
sku: A string representing the SKU (Stock Keeping Unit) used to retrieve specific
tagvcard details.
Responses:
200 - Success
-
Media type:
application/json
-
Example response:
{ "code": "BVHWSTMGL", "sku": "ABC000", "values": { "name": "Full name", "email": "[email protected]", "phone": "+1234567890", "position": { "en": "CEO", "es": "Director General" }, "mobile-phone": "+1234567890", "address": "1234 Main St, City, Country", "department" : "Marketing" } }
404 - Not Found
-
Description:
TagVcard not found in the team for the given SKU.
Edit a tagvcard
Updates the details of an existing tagvcard identified by the SKU.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
sku | string | SKU code | Yes |
-
sku: A string representing the SKU (Stock Keeping Unit) used to identify the
tagvcard to be updated.
Request Body:
-
Media type:
application/json
-
Example request body:
{ "code": "BVHWSTMGL", "sku": "ABC000", "values": { "name": "Full name", "email": "[email protected]", "phone": "+1234567890", "position": { "en": "CEO", "es": "Director General" }, "mobile-phone": "+1234567890", "address": "1234 Main St, City, Country", "department" : "Marketing" } }
Responses:
200 - Success
-
Media type:
application/json
-
Example response:
{ "code": "BVHWSTMGL", "sku": "ABC000", "values": { "name": "Full name", "email": "[email protected]", "phone": "+1234567890", "position": { "en": "CEO", "es": "Director General" }, "mobile-phone": "+1234567890", "address": "1234 Main St, City, Country", "department" : "Marketing" } }
-
Description: Successful update of the
tag.vcard.
Delete a tagvcard
Deletes a tagvcard from the team by the given SKU.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
sku | string | SKU code | Yes |
-
sku: A string representing the SKU (Stock Keeping Unit) used to delete the
tag.vcard.
Responses:
204 - Success
-
Description:
TagVcard successfully deleted from the team. -
Media type:
application/json