Skip to main content

Contact

Fetch all data related to ImBox Contact

Create contact

Create a contact

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*StringYour userId

Usage

curl -X POST -H "Content-Type: application/json" -d @contact.json "https://apiv2.imbox.io/api/apiKey/userId/contacts"

contact.json

{
"firstName": "Arne",
"lastName": "Andersson",
"title": "CEO",
"emails": [{ "email": "arne@gmail.se", "isPrimary": true }],
"phones": [{ "phone": "+46762004545", "isPrimary": true }]
}

Response

{
"id": 100,
"userId": 200,
"crmId": 1,
"externalId": null,
"externalUrl": null,
"firstName": "Arne",
"lastName": "Andersson",
"fullName": "Arne Andersson",
"picture": null,
"title": "CEO",
"activityAt": "2020-01-01T13:00:00.000Z",
"modifiedAt": null,
"createdAt": "2020-01-01T13:00:00.000Z",
"updatedAt": null
}

Update contact

Update a contact

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*StringYour userId
id*Integer Id of the contact

Usage

curl -X PUT -H "Content-Type: application/json" -d @contact.json "https://apiv2.imbox.io/api/apiKey/userId/contacts/id"

contact.json

{
"firstName": "Bosse",
"emails": [{ "email": "bosse@gmail.se", "isPrimary": true }]
}

Response

{}

Delete contact

Delete a contact

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*StringYour userId
id*Integer Id of the contact

Usage

curl -X DELETE "https://apiv2.imbox.io/api/apiKey/userId/contacts/id"

Response

{}

Get contacts

Get contacts

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*StringYour userId
idIntegerId of the contact
emailIntegerEmail address
phoneStringPhone number in +E.164
limitIntegerNumber of contacts to return
afterIntegerCursor for next result set

Usage

curl -X GET "https://apiv2.imbox.io/api/apiKey/userId/contacts?limit=2"

Response

{
"contacts": [
{
"id": 100,
"userId": 200,
"crmId": 1,
"externalId": null,
"externalUrl": null,
"firstName": "Arne",
"lastName": "Andersson",
"fullName": "Arne Andersson",
"picture": null,
"title": "CEO",
"activityAt": "2020-01-01T13:00:00.000Z",
"modifiedAt": null,
"createdAt": "2020-01-01T13:00:00.000Z",
"updatedAt": null
},
{
"id": 120,
"userId": 200,
"crmId": 1,
"externalId": null,
"externalUrl": null,
"firstName": "Bosse",
"lastName": "Bengtsson",
"fullName": "Bosse Bengtsson",
"picture": null,
"title": "HR manager",
"activityAt": "2020-01-01T13:00:00.000Z",
"modifiedAt": null,
"createdAt": "2020-01-01T13:00:00.000Z",
"updatedAt": null
}
]
"paging": {
"cursor": {
"after": 120
}
},
"next": "https://apiv2.imbox.io/api/apiKey/userId/contacts?limit=2&after=120"
}

Create contact note

Create note for contact

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*StringYour userId

Usage

curl -X POST -H "Content-Type: application/json" -d @note.json "https://apiv2.imbox.io/api/apiKey/userId/contactNotes"

note.json

{
"contactId": 1234,
"content": "A note..."
}

Response

{
"id": 100
}

Delete contact note

Delete note for contact

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*StringYour userId
id*IntegerThe contact note id

Usage

curl -X DELETE "https://apiv2.imbox.io/api/apiKey/userId/contactNotes/id"

Response

{}

Get contact notes

Get notes

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*StringYour userId
contactIdIntegerContact to filter by
limitIntegerNumber of contacts to return
afterIntegerCursor for next result set

Usage

curl "https://apiv2.imbox.io/api/apiKey/userId/contactNotes?contactId=1&limit=2"

Response

{
"notes": [
{
"id": 1,
"contactId": 1,
"content": "A note...",
"createdAt": "2020-01-01T13:00:00.000Z"
},
{
"id": 2,
"contactId": 1,
"content": "Anoter note...",
"createdAt": "2020-01-01T13:00:00.000Z"
}
],
"paging": {
"cursors": {
"after": 2
},
"next": "https://apiv2.imbox.io/api/apiKey/userId/contactNotes?contactId=1&limit=2&after=2"
}
}

Get contact note

Get contact note by id

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*StringYour userId
id*IntegerNote id

Usage

curl "https://apiv2.imbox.io/api/apiKey/userId/contactNotes/id"

Response

{
"id": 1,
"contactId": 1,
"content": "A note...",
"createdAt": "2020-01-01T13:00:00.000Z"
}

Create account

Create account

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*StringYour userId

Usage

curl -X POST -H "Content-Type: application/json" -d @account.json "https://apiv2.imbox.io/api/apiKey/userId/accounts"

account.json

{
"name": "ImBox Sweden AB",
"externalId": "1234", // optional
"externalUrl": "https://crm/1234" // optional
}

Response

{
"id": 100,
"userId": 1,
"crmId": 1,
"externalId": "1234",
"externalUrl": "https://crm/1234",
"name": "ImBox Sweden AB"
}

Update account

Update account

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*IntegerYour userId
id*IntegerAccount id

Usage

curl -X PUT -H "Content-Type: application/json" -d @account.json "https://apiv2.imbox.io/api/apiKey/userId/accounts/id"

account.json

{
"name": "ImBox England Ltd"
}

Response

{}

Delete account

Delete account

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*IntegerYour userId
id*IntegerAccount id

Usage

curl -X DELETE "https://apiv2.imbox.io/api/apiKey/userId/accounts/id"

Response

{}

Get accounts

Get accounts

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*IntegerYour userId
limitIntegerNumber of accounts to return
afterIdIntegerCursor for next result set by id

Usage

curl "https://apiv2.imbox.io/api/apiKey/userId/accounts?limit=2"

Response

{
"accounts": [
{
"id": 1,
"userId": 1,
"crmId": 1,
"externalId": null,
"externalUrl": null,
"name": "ImBox Sweden AB",
"createdAt": "2020-01-01T13:00:00.000Z",
"updatedAt": null
},
{
"id": 10,
"userId": 1,
"crmId": 1,
"externalId": "1234",
"externalUrl": null,
"name": "ImBox Finland",
"createdAt": "2020-01-01T14:00:00.000Z",
"updatedAt": "2020-01-01T15:00:00.000Z"
}
],
"paging": {
"cursors": {
"afterId": 10
},
"next": "https://apiv2.imbox.io/api/apiKey/userId/accounts?limit=2&afterId=10"
}
}

Get account

Get account

Parameters

NameTypeDescription
apiKey*StringYour API Key
userId*IntegerYour userId
id*IntegerAccount id

Usage

curl "https://apiv2.imbox.io/api/apiKey/userId/accounts/id"

Response

{
"id": 1,
"userId": 1,
"crmId": 1,
"externalId": null,
"externalUrl": null,
"name": "ImBox Sweden AB",
"createdAt": "2020-01-01T13:00:00.000Z",
"updatedAt": null
}