OpenAssistantAPI

User API

Contacts

Contact management and bulk import

GET/contacts

List contacts

Query parameters

pageinteger
perPageinteger
limitinteger
userIdstring
statusstring
searchstring
qstring
scopestring
sourceTypestring
tagsstring
hideJunkstring

Responses

200Contacts
ok reqenumtrue
contacts reqobject[]
id reqstring
user reqstring
name reqstring | null
preferredNamestring | null
email reqstring
emailsobject[]
address reqstring
typeenumworkpersonalother
primaryboolean
sourcestring
phonesobject[]
number reqstring
typeenumworkmobilehomeother
primaryboolean
sourcestring
iMessageCapableboolean | null
company reqobject | null
id reqstring
name reqstring
slug reqstring
domain reqstring | null
title reqstring | null
timezone reqstring | null
tzOffsetstring | null
photoUrlstring | null
website reqstring | null
bookingLink reqstring | null
socialobject
linkedInstring
xstring
otherstring
addressobject
line1string
line2string
citystring
statestring
zipstring
countrystring
enrichedAtstring | null
enrichmentVersioninteger
enrichmentClaimobject | null
claimIdstring
claimedAtstring | null
taskIdstring | null
subtaskRunIdstring | null
releasedAtstring | null
outcomestring | null
sourceobject | null
typeenummanualteammateteammate_archivedimportedemailimportapollocrmatshrisvoiceonboardingcalendarappleothergoogle_contactsgoogle_othermicrosoft_contactslinkedinimprincipal_groupnull
userIdstring | null
writtenByenumagent
lastContactedAtstring | null
externalIdsobject[]
integration reqstring
externalId reqstring
syncedAtstring | null
propertiesobject
priorityinteger
inheritCompanyPriorityboolean
tagsstring[]
introducedBystring | null
scopeenumuserteam
teamstring | null
status reqstring
consumerobject | null
id reqstring
name reqstring | null
email reqstring | null
createdAt reqstring
updatedAt reqstring
assistantobject | null
namestring | null
emailstring | null
userIdentifierstring | null
sourceenuminternal-rosterdeclared-by-counterpartmanualnull
internalboolean
pageinteger
perPageinteger
totalinteger

Request

curl 'https://app.openassistant.us/api/contacts' \
  -H "Authorization: Bearer ak_live_..."

Response

{
  "ok": true,
  "contacts": [
    {
      "id": "string",
      "user": "string",
      "name": "string",
      "email": "string",
      "company": {
        "id": "string",
        "name": "string",
        "slug": "string",
        "domain": "string"
      },
      "title": "string"
    }
  ]
}
POST/contacts

Create a contact

Request body

email reqstring
namestring
preferredNamestring
phonesobject[]
number reqstring
typeenummobileworkhomeother
primaryboolean
emailsobject[]
address reqstring
typeenumpersonalworkother
primaryboolean
companystring
titlestring
timezonestring
consumerEmailstring
sourcestring | object | null
externalIdsobject[]
integration reqstring
externalId reqstring
propertiesobject
scopeenumuserteam
teamstring
tagsstring[]
priorityinteger
inheritCompanyPriorityboolean

Responses

201Created
ok reqenumtrue
contact reqobject
id reqstring
user reqstring
name reqstring | null
preferredNamestring | null
email reqstring
emailsobject[]
address reqstring
typeenumworkpersonalother
primaryboolean
sourcestring
phonesobject[]
number reqstring
typeenumworkmobilehomeother
primaryboolean
sourcestring
iMessageCapableboolean | null
company reqobject | null
id reqstring
name reqstring
slug reqstring
domain reqstring | null
title reqstring | null
timezone reqstring | null
tzOffsetstring | null
photoUrlstring | null
website reqstring | null
bookingLink reqstring | null
socialobject
linkedInstring
xstring
otherstring
addressobject
line1string
line2string
citystring
statestring
zipstring
countrystring
enrichedAtstring | null
enrichmentVersioninteger
enrichmentClaimobject | null
claimIdstring
claimedAtstring | null
taskIdstring | null
subtaskRunIdstring | null
releasedAtstring | null
outcomestring | null
sourceobject | null
typeenummanualteammateteammate_archivedimportedemailimportapollocrmatshrisvoiceonboardingcalendarappleothergoogle_contactsgoogle_othermicrosoft_contactslinkedinimprincipal_groupnull
userIdstring | null
writtenByenumagent
lastContactedAtstring | null
externalIdsobject[]
integration reqstring
externalId reqstring
syncedAtstring | null
propertiesobject
priorityinteger
inheritCompanyPriorityboolean
tagsstring[]
introducedBystring | null
scopeenumuserteam
teamstring | null
status reqstring
consumerobject | null
id reqstring
name reqstring | null
email reqstring | null
createdAt reqstring
updatedAt reqstring
assistantobject | null
namestring | null
emailstring | null
userIdentifierstring | null
sourceenuminternal-rosterdeclared-by-counterpartmanualnull
internalboolean

Request

curl 'https://app.openassistant.us/api/contacts' \
  -X POST \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "email": "[email protected]"
}'

Response

{
  "ok": true,
  "contact": {
    "id": "string",
    "user": "string",
    "name": "string",
    "email": "string",
    "company": {
      "id": "string",
      "name": "string",
      "slug": "string",
      "domain": "string"
    },
    "title": "string"
  }
}
GET/contacts/suggestions

Suggest people to invite

People from the caller's own contacts for an invite picker. With no `q`: people the caller or their assistant wrote to, met, or worked a task or chat with, most recent first; junk contacts never appear. With `q`: matching contacts, real people first. `purpose=team` ranks the caller's own company domain first; `purpose=referral` leaves out existing users, teammates and people already referred.

Query parameters

qstring
purposestring
limitinteger

Responses

200Suggestions
ok reqenumtrue
suggestions reqobject[]
contactId reqstring
email reqstring
name reqstring | null
reason reqenumsame_domainrecentmatch

Request

curl 'https://app.openassistant.us/api/contacts/suggestions' \
  -H "Authorization: Bearer ak_live_..."

Response

{
  "ok": true,
  "suggestions": [
    {
      "contactId": "string",
      "email": "string",
      "name": "string",
      "reason": "same_domain"
    }
  ]
}
POST/contacts/bulk-tag

Tag or untag many contacts at once (portal-only)

Applies the tag add/remove lists to each visible contact. Invisible ids are returned in `failed[]`. Prime cannot call this endpoint — individual contact tagging goes through update_contact instead.

Request body

ids reqstring[]
addstring[]
removestring[]

Responses

200Bulk-tag result
ok reqenumtrue
bulkTag reqobject
ok reqenumtrue
updated reqinteger
total reqinteger
failed reqobject[]
id reqstring
reason reqstring

Request

curl 'https://app.openassistant.us/api/contacts/bulk-tag' \
  -X POST \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "ids": [
    "string"
  ]
}'

Response

{
  "ok": true,
  "bulkTag": {
    "ok": true,
    "updated": 0,
    "total": 0,
    "failed": [
      {
        "id": "string",
        "reason": "string"
      }
    ]
  }
}
POST/contacts/bulk-import

Bulk import contacts

Request body

contacts reqobject[]
email reqstring
namestring
preferredNamestring
phonestring
phonesobject[]
number reqstring
typeenummobileworkhomeother
primaryboolean
companystring
titlestring
timezonestring
emailsobject[]
address reqstring
typeenumpersonalworkother
primaryboolean
propertiesobject
tagsstring[]

Responses

200Import result
ok reqenumtrue
bulkImport reqobject
success reqboolean
total reqnumber
created reqnumber
updated reqnumber
skipped reqnumber
errors reqobject[]
indexnumber
emailstring
error reqstring

Request

curl 'https://app.openassistant.us/api/contacts/bulk-import' \
  -X POST \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "contacts": [
    {
      "email": "[email protected]"
    }
  ]
}'

Response

{
  "ok": true,
  "bulkImport": {
    "success": true,
    "total": 0,
    "created": 0,
    "updated": 0,
    "skipped": 0,
    "errors": [
      {
        "error": "string"
      }
    ]
  }
}
POST/contacts/import/linkedin

Import LinkedIn connections

Imports the user's LinkedIn connections from the text of Connections.csv. Each becomes a contact with source `linkedin` and the tag `linkedin`; a contact the user already has is enriched, never overwritten, and a re-import updates the same contacts. Connections without a shared email are stored under a profile-keyed placeholder address that no message can be sent to.

Request body

csv reqstringThe text of Connections.csv from LinkedIn's data export (Settings → Data privacy → Get a copy of your data → Connections).

Responses

200Import result
ok reqenumtrue
linkedInImport reqobject
total reqintegerConnections in the file
created reqintegerNew contacts
updated reqintegerContacts the user already had, matched and enriched (never overwritten)
skipped reqinteger
withEmail reqintegerConnections that shared an email address
errors reqobject[]
indexnumber
emailstring
error reqstring

Request

curl 'https://app.openassistant.us/api/contacts/import/linkedin' \
  -X POST \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "csv": "string"
}'

Response

{
  "ok": true,
  "linkedInImport": {
    "total": 0,
    "created": 0,
    "updated": 0,
    "skipped": 0,
    "withEmail": 0,
    "errors": [
      {
        "error": "string"
      }
    ]
  }
}
GET/contacts/{contactId}

Get a contact

Path parameters

contactId reqstring

Responses

200Contact
ok reqenumtrue
contact reqobject
idstring
userstring
namestring | null
preferredNamestring | null
emailstring
emailsobject[]
address reqstring
typeenumworkpersonalother
primaryboolean
sourcestring
phonesobject[]
number reqstring
typeenumworkmobilehomeother
primaryboolean
sourcestring
iMessageCapableboolean | null
companyobject | null
id reqstring
name reqstring
slug reqstring
domain reqstring | null
titlestring | null
timezonestring | null
tzOffsetstring | null
photoUrlstring | null
websitestring | null
bookingLinkstring | null
socialobject
linkedInstring
xstring
otherstring
addressobject
line1string
line2string
citystring
statestring
zipstring
countrystring
enrichedAtstring | null
enrichmentVersioninteger
enrichmentClaimobject | null
claimIdstring
claimedAtstring | null
taskIdstring | null
subtaskRunIdstring | null
releasedAtstring | null
outcomestring | null
sourceobject | null
typeenummanualteammateteammate_archivedimportedemailimportapollocrmatshrisvoiceonboardingcalendarappleothergoogle_contactsgoogle_othermicrosoft_contactslinkedinimprincipal_groupnull
userIdstring | null
writtenByenumagent
lastContactedAtstring | null
externalIdsobject[]
integration reqstring
externalId reqstring
syncedAtstring | null
propertiesobject
priorityinteger
inheritCompanyPriorityboolean
tagsstring[]
introducedBystring | null
scopeenumuserteam
teamstring | null
statusstring
consumerobject | null
id reqstring
name reqstring | null
email reqstring | null
createdAtstring
updatedAtstring
assistantobject | null
namestring | null
emailstring | null
userIdentifierstring | null
sourceenuminternal-rosterdeclared-by-counterpartmanualnull
internalboolean

Request

curl 'https://app.openassistant.us/api/contacts/<contactId>' \
  -H "Authorization: Bearer ak_live_..."

Response

{
  "ok": true,
  "contact": {
    "id": "string",
    "user": "string",
    "name": "string",
    "email": "string",
    "company": {
      "id": "string",
      "name": "string",
      "slug": "string",
      "domain": "string"
    },
    "title": "string",
    "outgoingRelationships": [],
    "incomingRelationships": [],
    "networkAgents": []
  }
}
PUT/contacts/{contactId}

Update a contact

Path parameters

contactId reqstring

Request body

namestring
preferredNamestring | null
phonesobject[]
number reqstring
typeenummobileworkhomeother
primaryboolean
companystring | null
titlestring | null
timezonestring
statusstring
websitestring | null
bookingLinkstring | null
introducedBystring | null
socialobject
linkedInstring
xstring
otherstring
addressobject
line1string
line2string
citystring
statestring
zipstring
countrystring
emailsobject[]
address reqstring
typeenumpersonalworkother
primaryboolean
lastContactedAtstring | null
enrichedAtstring | null
propertiesobject
scopeenumuserteam
teamstring | null
tagsstring[]
priorityinteger
inheritCompanyPriorityboolean

Responses

200Updated
ok reqenumtrue
contact reqobject
id reqstring
user reqstring
name reqstring | null
preferredNamestring | null
email reqstring
emailsobject[]
address reqstring
typeenumworkpersonalother
primaryboolean
sourcestring
phonesobject[]
number reqstring
typeenumworkmobilehomeother
primaryboolean
sourcestring
iMessageCapableboolean | null
company reqobject | null
id reqstring
name reqstring
slug reqstring
domain reqstring | null
title reqstring | null
timezone reqstring | null
tzOffsetstring | null
photoUrlstring | null
website reqstring | null
bookingLink reqstring | null
socialobject
linkedInstring
xstring
otherstring
addressobject
line1string
line2string
citystring
statestring
zipstring
countrystring
enrichedAtstring | null
enrichmentVersioninteger
enrichmentClaimobject | null
claimIdstring
claimedAtstring | null
taskIdstring | null
subtaskRunIdstring | null
releasedAtstring | null
outcomestring | null
sourceobject | null
typeenummanualteammateteammate_archivedimportedemailimportapollocrmatshrisvoiceonboardingcalendarappleothergoogle_contactsgoogle_othermicrosoft_contactslinkedinimprincipal_groupnull
userIdstring | null
writtenByenumagent
lastContactedAtstring | null
externalIdsobject[]
integration reqstring
externalId reqstring
syncedAtstring | null
propertiesobject
priorityinteger
inheritCompanyPriorityboolean
tagsstring[]
introducedBystring | null
scopeenumuserteam
teamstring | null
status reqstring
consumerobject | null
id reqstring
name reqstring | null
email reqstring | null
createdAt reqstring
updatedAt reqstring
assistantobject | null
namestring | null
emailstring | null
userIdentifierstring | null
sourceenuminternal-rosterdeclared-by-counterpartmanualnull
internalboolean

Request

curl 'https://app.openassistant.us/api/contacts/<contactId>' \
  -X PUT \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "preferredName": "string",
  "phones": [
    {
      "number": "string"
    }
  ],
  "company": "string"
}'

Response

{
  "ok": true,
  "contact": {
    "id": "string",
    "user": "string",
    "name": "string",
    "email": "string",
    "company": {
      "id": "string",
      "name": "string",
      "slug": "string",
      "domain": "string"
    },
    "title": "string"
  }
}
DELETE/contacts/{contactId}

Delete a contact

Path parameters

contactId reqstring

Responses

200Deleted
ok reqenumtrue
contact reqobject
id reqstring
deletedboolean
messagestring

Request

curl 'https://app.openassistant.us/api/contacts/<contactId>' \
  -X DELETE \
  -H "Authorization: Bearer ak_live_..."

Response

{
  "ok": true,
  "contact": {
    "id": "string"
  }
}
POST/contacts/{contactId}/merge

Merge two contacts

Path parameters

contactId reqstring

Request body

mergeContactId reqstring
preferredEmailstring

Responses

200Merged
ok reqenumtrue
contact reqobject
idstring
userstring
namestring | null
preferredNamestring | null
emailstring
emailsobject[]
address reqstring
typeenumworkpersonalother
primaryboolean
sourcestring
phonesobject[]
number reqstring
typeenumworkmobilehomeother
primaryboolean
sourcestring
iMessageCapableboolean | null
companyobject | null
id reqstring
name reqstring
slug reqstring
domain reqstring | null
titlestring | null
timezonestring | null
tzOffsetstring | null
photoUrlstring | null
websitestring | null
bookingLinkstring | null
socialobject
linkedInstring
xstring
otherstring
addressobject
line1string
line2string
citystring
statestring
zipstring
countrystring
enrichedAtstring | null
enrichmentVersioninteger
enrichmentClaimobject | null
claimIdstring
claimedAtstring | null
taskIdstring | null
subtaskRunIdstring | null
releasedAtstring | null
outcomestring | null
sourceobject | null
typeenummanualteammateteammate_archivedimportedemailimportapollocrmatshrisvoiceonboardingcalendarappleothergoogle_contactsgoogle_othermicrosoft_contactslinkedinimprincipal_groupnull
userIdstring | null
writtenByenumagent
lastContactedAtstring | null
externalIdsobject[]
integration reqstring
externalId reqstring
syncedAtstring | null
propertiesobject
priorityinteger
inheritCompanyPriorityboolean
tagsstring[]
introducedBystring | null
scopeenumuserteam
teamstring | null
statusstring
consumerobject | null
id reqstring
name reqstring | null
email reqstring | null
createdAtstring
updatedAtstring
assistantobject | null
namestring | null
emailstring | null
userIdentifierstring | null
sourceenuminternal-rosterdeclared-by-counterpartmanualnull
internalboolean

Request

curl 'https://app.openassistant.us/api/contacts/<contactId>/merge' \
  -X POST \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "mergeContactId": "string"
}'

Response

{
  "ok": true,
  "contact": {
    "id": "string",
    "user": "string",
    "name": "string",
    "email": "string",
    "company": {
      "id": "string",
      "name": "string",
      "slug": "string",
      "domain": "string"
    },
    "title": "string",
    "merged": true,
    "mergedContactId": "string"
  }
}
POST/contacts/{contactId}/relationships

Create a contact relationship link

Path parameters

contactId reqstring

Request body

toContactId reqstring
type reqenumcoordinatespartnerassistantparentother
rolestring
isPrimaryboolean
notesstring

Responses

200Created
ok reqenumtrue
relationship reqobject
id reqstring
account reqstring
user reqstring
fromContact reqstring | object
toContact reqstring | object
type reqenumcoordinatespartnerassistantparentother
rolestring | null
isPrimaryboolean
notesstring | null
verifiedboolean | null
sourceenumassistant-recorduser-statedcontact-claimapi-creatednull
verifiedAddressstring | null
createdAt reqstring
updatedAt reqstring

Request

curl 'https://app.openassistant.us/api/contacts/<contactId>/relationships' \
  -X POST \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "toContactId": "string",
  "type": "coordinates"
}'

Response

{
  "ok": true,
  "relationship": {
    "id": "string",
    "account": "string",
    "user": "string",
    "fromContact": "string",
    "toContact": "string",
    "type": "coordinates"
  }
}
PATCH/contacts/{contactId}/relationships/{relationshipId}

Update a contact relationship (role, isPrimary, notes)

Path parameters

contactId reqstring
relationshipId reqstring

Request body

rolestring | null
isPrimaryboolean
notesstring | null

Responses

200Updated
ok reqenumtrue
relationship reqobject
id reqstring
account reqstring
user reqstring
fromContact reqstring | object
toContact reqstring | object
type reqenumcoordinatespartnerassistantparentother
rolestring | null
isPrimaryboolean
notesstring | null
verifiedboolean | null
sourceenumassistant-recorduser-statedcontact-claimapi-creatednull
verifiedAddressstring | null
createdAt reqstring
updatedAt reqstring

Request

curl 'https://app.openassistant.us/api/contacts/<contactId>/relationships/<relationshipId>' \
  -X PATCH \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "role": "string",
  "isPrimary": true,
  "notes": "string"
}'

Response

{
  "ok": true,
  "relationship": {
    "id": "string",
    "account": "string",
    "user": "string",
    "fromContact": "string",
    "toContact": "string",
    "type": "coordinates"
  }
}
DELETE/contacts/{contactId}/relationships/{relationshipId}

Delete a contact relationship link

Path parameters

contactId reqstring
relationshipId reqstring

Responses

200Deleted
ok reqenumtrue
relationship reqobject
id reqstring
deletedboolean
messagestring

Request

curl 'https://app.openassistant.us/api/contacts/<contactId>/relationships/<relationshipId>' \
  -X DELETE \
  -H "Authorization: Bearer ak_live_..."

Response

{
  "ok": true,
  "relationship": {
    "id": "string"
  }
}
PUT/contacts/{contactId}/external-ids/{integration}

Upsert an external system ID

Path parameters

contactId reqstring
integration reqstring

Request body

externalId reqstring

Responses

200Updated
ok reqenumtrue
contact reqobject
id reqstring
user reqstring
name reqstring | null
preferredNamestring | null
email reqstring
emailsobject[]
address reqstring
typeenumworkpersonalother
primaryboolean
sourcestring
phonesobject[]
number reqstring
typeenumworkmobilehomeother
primaryboolean
sourcestring
iMessageCapableboolean | null
company reqobject | null
id reqstring
name reqstring
slug reqstring
domain reqstring | null
title reqstring | null
timezone reqstring | null
tzOffsetstring | null
photoUrlstring | null
website reqstring | null
bookingLink reqstring | null
socialobject
linkedInstring
xstring
otherstring
addressobject
line1string
line2string
citystring
statestring
zipstring
countrystring
enrichedAtstring | null
enrichmentVersioninteger
enrichmentClaimobject | null
claimIdstring
claimedAtstring | null
taskIdstring | null
subtaskRunIdstring | null
releasedAtstring | null
outcomestring | null
sourceobject | null
typeenummanualteammateteammate_archivedimportedemailimportapollocrmatshrisvoiceonboardingcalendarappleothergoogle_contactsgoogle_othermicrosoft_contactslinkedinimprincipal_groupnull
userIdstring | null
writtenByenumagent
lastContactedAtstring | null
externalIdsobject[]
integration reqstring
externalId reqstring
syncedAtstring | null
propertiesobject
priorityinteger
inheritCompanyPriorityboolean
tagsstring[]
introducedBystring | null
scopeenumuserteam
teamstring | null
status reqstring
consumerobject | null
id reqstring
name reqstring | null
email reqstring | null
createdAt reqstring
updatedAt reqstring
assistantobject | null
namestring | null
emailstring | null
userIdentifierstring | null
sourceenuminternal-rosterdeclared-by-counterpartmanualnull
internalboolean

Request

curl 'https://app.openassistant.us/api/contacts/<contactId>/external-ids/<integration>' \
  -X PUT \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "externalId": "string"
}'

Response

{
  "ok": true,
  "contact": {
    "id": "string",
    "user": "string",
    "name": "string",
    "email": "string",
    "company": {
      "id": "string",
      "name": "string",
      "slug": "string",
      "domain": "string"
    },
    "title": "string"
  }
}
GET/contacts/by-external-id/{integration}/{externalId}

Find contact by external system ID

Path parameters

integration reqstring
externalId reqstring

Responses

200Contact
ok reqenumtrue
contact reqobject
id reqstring
user reqstring
name reqstring | null
preferredNamestring | null
email reqstring
emailsobject[]
address reqstring
typeenumworkpersonalother
primaryboolean
sourcestring
phonesobject[]
number reqstring
typeenumworkmobilehomeother
primaryboolean
sourcestring
iMessageCapableboolean | null
company reqobject | null
id reqstring
name reqstring
slug reqstring
domain reqstring | null
title reqstring | null
timezone reqstring | null
tzOffsetstring | null
photoUrlstring | null
website reqstring | null
bookingLink reqstring | null
socialobject
linkedInstring
xstring
otherstring
addressobject
line1string
line2string
citystring
statestring
zipstring
countrystring
enrichedAtstring | null
enrichmentVersioninteger
enrichmentClaimobject | null
claimIdstring
claimedAtstring | null
taskIdstring | null
subtaskRunIdstring | null
releasedAtstring | null
outcomestring | null
sourceobject | null
typeenummanualteammateteammate_archivedimportedemailimportapollocrmatshrisvoiceonboardingcalendarappleothergoogle_contactsgoogle_othermicrosoft_contactslinkedinimprincipal_groupnull
userIdstring | null
writtenByenumagent
lastContactedAtstring | null
externalIdsobject[]
integration reqstring
externalId reqstring
syncedAtstring | null
propertiesobject
priorityinteger
inheritCompanyPriorityboolean
tagsstring[]
introducedBystring | null
scopeenumuserteam
teamstring | null
status reqstring
consumerobject | null
id reqstring
name reqstring | null
email reqstring | null
createdAt reqstring
updatedAt reqstring
assistantobject | null
namestring | null
emailstring | null
userIdentifierstring | null
sourceenuminternal-rosterdeclared-by-counterpartmanualnull
internalboolean

Request

curl 'https://app.openassistant.us/api/contacts/by-external-id/<integration>/<externalId>' \
  -H "Authorization: Bearer ak_live_..."

Response

{
  "ok": true,
  "contact": {
    "id": "string",
    "user": "string",
    "name": "string",
    "email": "string",
    "company": {
      "id": "string",
      "name": "string",
      "slug": "string",
      "domain": "string"
    },
    "title": "string"
  }
}
GET/property-definitions

List property definitions

Query parameters

entityTypestring

Responses

200Property definitions
ok reqenumtrue
propertyDefinitions reqobject[]
id reqstring
account reqstring
user reqstring
entityType reqenumcontactcompany
key reqstring
label reqstring
type reqenumtextnumberdatebooleanselecturl
options reqstring[]
showForAll reqboolean
scopeenumuserteam
teamstring | null
createdAtstring
updatedAtstring
pageinteger
perPageinteger
totalinteger

Request

curl 'https://app.openassistant.us/api/property-definitions' \
  -H "Authorization: Bearer ak_live_..."

Response

{
  "ok": true,
  "propertyDefinitions": [
    {
      "id": "507f1f77bcf86cd799439011",
      "account": "507f1f77bcf86cd799439011",
      "user": "507f1f77bcf86cd799439011",
      "entityType": "contact",
      "key": "string",
      "label": "string"
    }
  ]
}
PUT/property-definitions/{entityType}/{key}

Upsert a property definition

Path parameters

entityType reqstring
key reqstring

Request body

labelstring
typeenumtextnumberdatebooleanselecturl
optionsstring[]
showForAllboolean
scopeenumuserteam
teamstring | null

Responses

200Property definition
ok reqenumtrue
propertyDefinition reqobject
id reqstring
account reqstring
user reqstring
entityType reqenumcontactcompany
key reqstring
label reqstring
type reqenumtextnumberdatebooleanselecturl
options reqstring[]
showForAll reqboolean
scopeenumuserteam
teamstring | null
createdAtstring
updatedAtstring

Request

curl 'https://app.openassistant.us/api/property-definitions/<entityType>/<key>' \
  -X PUT \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "label": "string",
  "type": "text",
  "options": [
    "string"
  ],
  "showForAll": true
}'

Response

{
  "ok": true,
  "propertyDefinition": {
    "id": "507f1f77bcf86cd799439011",
    "account": "507f1f77bcf86cd799439011",
    "user": "507f1f77bcf86cd799439011",
    "entityType": "contact",
    "key": "string",
    "label": "string"
  }
}