OpenAssistantAPI

User API

Identifiers

Manage connected accounts and emails

GET/identifiers

List identifiers in account

Query parameters

typestring
userIdstring
principalIdstringAct on this principal's own account (the caller must be their coordinator through an active delegation). Omit for the caller's own. A miss is 404 principal_not_found.

Responses

200Identifiers list
ok reqenumtrue
identifiers reqobject[]
id reqstring
account reqstring
user reqobject | null
id reqstring
name reqstring | null
status reqenumactiveinactivesuspended
type reqenumemailphoneexternal_idemployee_idgooglemicrosoftapplecustom
value reqstring
verified reqboolean
primary reqboolean
labelstring | null
platformsobject
metadataobject
verifiedViastring | null
verifiedAtstring | null
iMessageCapableboolean | null
whatsAppCapableboolean | null
preferredTextPlatformenumimessagesmssms_twiliowhatsapp_sendbluewhatsapp_twiliowhatsappnull
messagingWindowobject
whatsappany...
whatsappSendblueany...
whatsappTwilioany...
imessageany...
smsConsentobject
consentedAt reqstring | null
revokedAt reqstring | null
optedInboolean
createdAt reqstring
updatedAt reqstring
pageinteger
perPageinteger
totalinteger

Request

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

Response

{
  "ok": true,
  "identifiers": [
    {
      "id": "string",
      "account": "string",
      "user": {
        "id": "string",
        "name": "string",
        "status": "active"
      },
      "type": "email",
      "value": "string",
      "verified": true
    }
  ]
}
POST/identifiers

Create a new identifier

Request body

type reqenumemailphoneexternal_idemployee_idgooglemicrosoftapplecustom
value reqstring
userIdstring
verifiedboolean
labelstring | null
platformsobject
userDataobject
namestring
firstNamestring
lastNamestring
avatarstring
timezonestring
localestring
smsConsentobject
consent reqboolean
versionstring

Responses

201Created
ok reqenumtrue
identifier reqobject
id reqstring
account reqstring
user reqobject
idstring
accountstring
emailstring
externalIdstring
assistantstring | null
namestring | null
firstNamestring
lastNamestring
avatarUrlstring | null
timezonestring
activeTimezoneobject | null
tz reqstring
since reqstring | null
until reqstring | null
source reqstring
upcomingobject[]
tz reqstring
since reqstring | null
until reqstring | null
localestring
countrystring | null
citystring
organizationstring | null
organizationRoleenumowneradminmemberguest
managerRolesstring[]
coordinatorEnabledboolean
teamany...
teamRoleenummemberadminownernull
statusenumactiveinactivesuspended
voiceobject | null
voiceId reqstring
provider reqstring
unreadInboxCountnumber
sharedTaskDeclinedCoworkersstring[]
notificationPromptDismissedboolean
metadataobject
firstLoginAtstring
assistantRolesobject
assistantRoleLocksobject
assistantRolesEditableboolean
phoneSignupAtstring | null
onboardingFlowenumv2
networkRegisteredAtstring | null
onboardingConversationobject
openedAt reqstring
openedBy reqenumtext_claimportal_chat
chat reqstring
firstCardWakeAtstring | null
proposalsWakeAtstring | null
firstCardAtstring | null
workflowsOfferedAtstring | null
closedAtstring | null
closedReasonenumworkflows_offeredquietmax_agenull
leftoversPlantedAtstring | null
networkConvertedAtstring | null
usernamestring | null
referralCodestring | null
preferencesany...
assistantNamestring | null
appNamestring | null
consciousnessEnabledboolean
workflowAssistantOverrideEnabledboolean
canDeleteAccountboolean
unfinishedOrganizationCloseobject | null
id reqstring
name reqstring | null
createdAtstring
updatedAtstring
type reqenumemailphoneexternal_idemployee_idgooglemicrosoftapplecustom
value reqstring
verified reqboolean
primary reqboolean
labelstring | null
platformsobject
metadataobject
verifiedViastring | null
verifiedAtstring | null
iMessageCapableboolean | null
whatsAppCapableboolean | null
preferredTextPlatformenumimessagesmssms_twiliowhatsapp_sendbluewhatsapp_twiliowhatsappnull
messagingWindowobject
whatsappobject
warmUntilstring | null
lastInboundAtstring | null
whatsappSendblueobject
warmUntilstring | null
lastInboundAtstring | null
whatsappTwilioobject
warmUntilstring | null
lastInboundAtstring | null
imessageobject
warmUntilstring | null
lastInboundAtstring | null
smsConsentobject
consentedAt reqstring | null
revokedAt reqstring | null
optedInboolean
createdAt reqstring
updatedAtstring
400Bad request. `reserved_identifier` when the write sets something only Sign in with Apple may write (an `apple` sign-in row, or its verifiedVia, label or metadata)
status reqinteger
error_codestring
error reqstring

Request

curl 'https://app.openassistant.us/api/identifiers' \
  -X POST \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "type": "email",
  "value": "string"
}'

Response

{
  "ok": true,
  "identifier": {
    "id": "string",
    "account": "string",
    "user": {
      "id": "string",
      "account": "string",
      "assistant": "string",
      "name": "string",
      "avatarUrl": "https://example.com",
      "timezone": "string"
    },
    "type": "email",
    "value": "string",
    "verified": true
  }
}
GET/identifiers/{identifierId}

Get a specific identifier

Path parameters

identifierId reqstring

Responses

200Identifier detail
ok reqenumtrue
identifier reqobject
id reqstring
account reqstring
user reqobject
idstring
accountstring
emailstring
externalIdstring
assistantstring | null
namestring | null
firstNamestring
lastNamestring
avatarUrlstring | null
timezonestring
activeTimezoneobject | null
tz reqstring
since reqstring | null
until reqstring | null
source reqstring
upcomingobject[]
tz reqstring
since reqstring | null
until reqstring | null
localestring
countrystring | null
citystring
organizationstring | null
organizationRoleenumowneradminmemberguest
managerRolesstring[]
coordinatorEnabledboolean
teamany...
teamRoleenummemberadminownernull
statusenumactiveinactivesuspended
voiceobject | null
voiceId reqstring
provider reqstring
unreadInboxCountnumber
sharedTaskDeclinedCoworkersstring[]
notificationPromptDismissedboolean
metadataobject
firstLoginAtstring
assistantRolesobject
assistantRoleLocksobject
assistantRolesEditableboolean
phoneSignupAtstring | null
onboardingFlowenumv2
networkRegisteredAtstring | null
onboardingConversationobject
openedAt reqstring
openedBy reqenumtext_claimportal_chat
chat reqstring
firstCardWakeAtstring | null
proposalsWakeAtstring | null
firstCardAtstring | null
workflowsOfferedAtstring | null
closedAtstring | null
closedReasonenumworkflows_offeredquietmax_agenull
leftoversPlantedAtstring | null
networkConvertedAtstring | null
usernamestring | null
referralCodestring | null
preferencesany...
assistantNamestring | null
appNamestring | null
consciousnessEnabledboolean
workflowAssistantOverrideEnabledboolean
canDeleteAccountboolean
unfinishedOrganizationCloseobject | null
id reqstring
name reqstring | null
createdAtstring
updatedAtstring
type reqenumemailphoneexternal_idemployee_idgooglemicrosoftapplecustom
value reqstring
verified reqboolean
primary reqboolean
labelstring | null
platformsobject
metadataobject
verifiedViastring | null
verifiedAtstring | null
iMessageCapableboolean | null
whatsAppCapableboolean | null
preferredTextPlatformenumimessagesmssms_twiliowhatsapp_sendbluewhatsapp_twiliowhatsappnull
messagingWindowobject
whatsappobject
warmUntilstring | null
lastInboundAtstring | null
whatsappSendblueobject
warmUntilstring | null
lastInboundAtstring | null
whatsappTwilioobject
warmUntilstring | null
lastInboundAtstring | null
imessageobject
warmUntilstring | null
lastInboundAtstring | null
smsConsentobject
consentedAt reqstring | null
revokedAt reqstring | null
optedInboolean
createdAt reqstring
updatedAtstring
404Not found
status reqinteger
error_codestring
error reqstring

Request

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

Response

{
  "ok": true,
  "identifier": {
    "id": "string",
    "account": "string",
    "user": {
      "id": "string",
      "account": "string",
      "assistant": "string",
      "name": "string",
      "avatarUrl": "https://example.com",
      "timezone": "string"
    },
    "type": "email",
    "value": "string",
    "verified": true
  }
}
PUT/identifiers/{identifierId}

Update an identifier

Path parameters

identifierId reqstring

Request body

verifiedboolean
labelstring | null
platformsobject
metadataobject
smsConsentobject
consent reqboolean
versionstring

Responses

200Updated
ok reqenumtrue
identifier reqobject
id reqstring
account reqstring
user reqobject
idstring
accountstring
emailstring
externalIdstring
assistantstring | null
namestring | null
firstNamestring
lastNamestring
avatarUrlstring | null
timezonestring
activeTimezoneobject | null
tz reqstring
since reqstring | null
until reqstring | null
source reqstring
upcomingobject[]
tz reqstring
since reqstring | null
until reqstring | null
localestring
countrystring | null
citystring
organizationstring | null
organizationRoleenumowneradminmemberguest
managerRolesstring[]
coordinatorEnabledboolean
teamany...
teamRoleenummemberadminownernull
statusenumactiveinactivesuspended
voiceobject | null
voiceId reqstring
provider reqstring
unreadInboxCountnumber
sharedTaskDeclinedCoworkersstring[]
notificationPromptDismissedboolean
metadataobject
firstLoginAtstring
assistantRolesobject
assistantRoleLocksobject
assistantRolesEditableboolean
phoneSignupAtstring | null
onboardingFlowenumv2
networkRegisteredAtstring | null
onboardingConversationobject
openedAt reqstring
openedBy reqenumtext_claimportal_chat
chat reqstring
firstCardWakeAtstring | null
proposalsWakeAtstring | null
firstCardAtstring | null
workflowsOfferedAtstring | null
closedAtstring | null
closedReasonenumworkflows_offeredquietmax_agenull
leftoversPlantedAtstring | null
networkConvertedAtstring | null
usernamestring | null
referralCodestring | null
preferencesany...
assistantNamestring | null
appNamestring | null
consciousnessEnabledboolean
workflowAssistantOverrideEnabledboolean
canDeleteAccountboolean
unfinishedOrganizationCloseobject | null
id reqstring
name reqstring | null
createdAtstring
updatedAtstring
type reqenumemailphoneexternal_idemployee_idgooglemicrosoftapplecustom
value reqstring
verified reqboolean
primary reqboolean
labelstring | null
platformsobject
metadataobject
verifiedViastring | null
verifiedAtstring | null
iMessageCapableboolean | null
whatsAppCapableboolean | null
preferredTextPlatformenumimessagesmssms_twiliowhatsapp_sendbluewhatsapp_twiliowhatsappnull
messagingWindowobject
whatsappobject
warmUntilstring | null
lastInboundAtstring | null
whatsappSendblueobject
warmUntilstring | null
lastInboundAtstring | null
whatsappTwilioobject
warmUntilstring | null
lastInboundAtstring | null
imessageobject
warmUntilstring | null
lastInboundAtstring | null
smsConsentobject
consentedAt reqstring | null
revokedAt reqstring | null
optedInboolean
createdAt reqstring
updatedAtstring
400Bad request. `reserved_identifier` when the write touches the label, metadata or verifiedVia that Sign in with Apple manages
status reqinteger
error_codestring
error reqstring

Request

curl 'https://app.openassistant.us/api/identifiers/<identifierId>' \
  -X PUT \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "verified": true,
  "label": "string",
  "platforms": {},
  "metadata": {}
}'

Response

{
  "ok": true,
  "identifier": {
    "id": "string",
    "account": "string",
    "user": {
      "id": "string",
      "account": "string",
      "assistant": "string",
      "name": "string",
      "avatarUrl": "https://example.com",
      "timezone": "string"
    },
    "type": "email",
    "value": "string",
    "verified": true
  }
}
DELETE/identifiers/{identifierId}

Delete an identifier

Path parameters

identifierId reqstring

Responses

200Deleted
ok reqenumtrue
identifier reqobject
id reqstring
deletedboolean
messagestring

Request

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

Response

{
  "ok": true,
  "identifier": {
    "id": "string"
  }
}
POST/identifiers/{identifierId}/link

Link an identifier to a user

Path parameters

identifierId reqstring

Request body

userId reqstring

Responses

200Linked
ok reqenumtrue
identifier reqobject
id reqstring
account reqstring
user reqobject
idstring
accountstring
emailstring
externalIdstring
assistantstring | null
namestring | null
firstNamestring
lastNamestring
avatarUrlstring | null
timezonestring
activeTimezoneobject | null
tz reqstring
since reqstring | null
until reqstring | null
source reqstring
upcomingobject[]
tz reqstring
since reqstring | null
until reqstring | null
localestring
countrystring | null
citystring
organizationstring | null
organizationRoleenumowneradminmemberguest
managerRolesstring[]
coordinatorEnabledboolean
teamany...
teamRoleenummemberadminownernull
statusenumactiveinactivesuspended
voiceobject | null
voiceId reqstring
provider reqstring
unreadInboxCountnumber
sharedTaskDeclinedCoworkersstring[]
notificationPromptDismissedboolean
metadataobject
firstLoginAtstring
assistantRolesobject
assistantRoleLocksobject
assistantRolesEditableboolean
phoneSignupAtstring | null
onboardingFlowenumv2
networkRegisteredAtstring | null
onboardingConversationobject
openedAt reqstring
openedBy reqenumtext_claimportal_chat
chat reqstring
firstCardWakeAtstring | null
proposalsWakeAtstring | null
firstCardAtstring | null
workflowsOfferedAtstring | null
closedAtstring | null
closedReasonenumworkflows_offeredquietmax_agenull
leftoversPlantedAtstring | null
networkConvertedAtstring | null
usernamestring | null
referralCodestring | null
preferencesany...
assistantNamestring | null
appNamestring | null
consciousnessEnabledboolean
workflowAssistantOverrideEnabledboolean
canDeleteAccountboolean
unfinishedOrganizationCloseobject | null
id reqstring
name reqstring | null
createdAtstring
updatedAtstring
type reqenumemailphoneexternal_idemployee_idgooglemicrosoftapplecustom
value reqstring
verified reqboolean
primary reqboolean
labelstring | null
platformsobject
metadataobject
verifiedViastring | null
verifiedAtstring | null
iMessageCapableboolean | null
whatsAppCapableboolean | null
preferredTextPlatformenumimessagesmssms_twiliowhatsapp_sendbluewhatsapp_twiliowhatsappnull
messagingWindowobject
whatsappobject
warmUntilstring | null
lastInboundAtstring | null
whatsappSendblueobject
warmUntilstring | null
lastInboundAtstring | null
whatsappTwilioobject
warmUntilstring | null
lastInboundAtstring | null
imessageobject
warmUntilstring | null
lastInboundAtstring | null
smsConsentobject
consentedAt reqstring | null
revokedAt reqstring | null
optedInboolean
createdAt reqstring
updatedAtstring

Request

curl 'https://app.openassistant.us/api/identifiers/<identifierId>/link' \
  -X POST \
  -H "Authorization: Bearer ak_live_..." \
  -H "Content-Type: application/json" \
  -d '{
  "userId": "string"
}'

Response

{
  "ok": true,
  "identifier": {
    "id": "string",
    "account": "string",
    "user": {
      "id": "string",
      "account": "string",
      "assistant": "string",
      "name": "string",
      "avatarUrl": "https://example.com",
      "timezone": "string"
    },
    "type": "email",
    "value": "string",
    "verified": true
  }
}
POST/identifiers/{identifierId}/make-primary

Make an email identifier the primary for its user

Path parameters

identifierId reqstring

Responses

200Result
ok reqenumtrue
makePrimary reqobject
user reqobject
id reqstring
account reqstring
emailstring
externalIdstring
assistant reqstring | null
name reqstring | null
firstNamestring
lastNamestring
avatarUrl reqstring | null
timezone reqstring
activeTimezoneobject | null
tz reqstring
since reqstring | null
until reqstring | null
source reqstring
upcomingobject[]
tz reqstring
since reqstring | null
until reqstring | null
locale reqstring
countrystring | null
citystring
organization reqstring | null
organizationRole reqenumowneradminmemberguest
managerRolesstring[]
coordinatorEnabledboolean
team reqobject | null
id reqstring
name reqstring
organization reqstring | null
status reqstring
teamRole reqenummemberadminownernull
status reqenumactiveinactivesuspended
voiceobject | null
voiceId reqstring
provider reqstring
unreadInboxCountnumber
sharedTaskDeclinedCoworkersstring[]
notificationPromptDismissedboolean
metadataobject
firstLoginAtstring
assistantRolesobject
assistantRoleLocksobject
assistantRolesEditableboolean
phoneSignupAtstring | null
onboardingFlowenumv2
networkRegisteredAtstring | null
onboardingConversationobject
openedAt reqstring
openedBy reqenumtext_claimportal_chat
chat reqstring
firstCardWakeAtstring | null
proposalsWakeAtstring | null
firstCardAtstring | null
workflowsOfferedAtstring | null
closedAtstring | null
closedReasonenumworkflows_offeredquietmax_agenull
leftoversPlantedAtstring | null
networkConvertedAtstring | null
usernamestring | null
referralCodestring | null
preferencesobject
routingOverridesany[]
remindersany...
preferredProvidersobject
preferredContactChannelobject
assistantNamestring | null
appNamestring | null
consciousnessEnabledboolean
workflowAssistantOverrideEnabledboolean
canDeleteAccountboolean
unfinishedOrganizationCloseobject | null
id reqstring
name reqstring | null
createdAt reqstring
updatedAt reqstring
identifier reqobject
id reqstring
type reqenumemailphoneexternal_idemployee_idgooglemicrosoftapplecustom
value reqstring
verified reqboolean
primary reqboolean

Request

curl 'https://app.openassistant.us/api/identifiers/<identifierId>/make-primary' \
  -X POST \
  -H "Authorization: Bearer ak_live_..."

Response

{
  "ok": true,
  "makePrimary": {
    "user": {
      "id": "string",
      "account": "string",
      "assistant": "string",
      "name": "string",
      "avatarUrl": "https://example.com",
      "timezone": "string"
    },
    "identifier": {
      "id": "string",
      "type": "email",
      "value": "string",
      "verified": true,
      "primary": true
    }
  }
}
GET/identifiers/{identifierId}/email-drafts/{draftId}

Get a draft in one of your connected mailboxes, for review

Only the mailbox's own user. The draft content is returned only to that user signed in as themself (not a delegated sign-in or an impersonation session); other callers get the links alone (status withheld). Responses are not cached. Drafts in an assistant's own mailbox and delegates reviewing someone else's draft are out of scope.

Path parameters

identifierId reqstring
draftId reqstring

Responses

200The draft and links to open it
ok reqenumtrue
emailDraft reqobject
provider reqenumgmailoutlook
mailbox reqstringThe mailbox address the draft is saved in
status reqenumready: the draft is there; gone: sent or deleted; withheld: the content is not shown to this session (not the owner signed in as themself, e.g. a delegated sign-in link or an impersonation session); unavailable: the mailbox could not be read nowreadygonewithheldunavailable
draft reqobject | null
id reqstring
messageId reqstring | null
webLink reqstring | null
to reqobject[]
name reqstring | null
email reqstring
cc reqobject[]
name reqstring | null
email reqstring
bcc reqobject[]
name reqstring | null
email reqstring
subject reqstring
body reqstringPlain text
hasAttachments reqboolean
links reqobject
draft reqstring | nullThis draft in the provider web app (desktop browsers)
folder reqstring | nullThe mailbox drafts folder in the provider web app
404Not your mailbox, not a mailbox with inbox access, or a malformed id
status reqinteger
error_codestring
error reqstring

Request

curl 'https://app.openassistant.us/api/identifiers/<identifierId>/email-drafts/<draftId>' \
  -H "Authorization: Bearer ak_live_..."

Response

{
  "ok": true,
  "emailDraft": {
    "provider": "gmail",
    "mailbox": "string",
    "status": "ready",
    "draft": {
      "id": "string",
      "messageId": "string",
      "webLink": "string",
      "to": [
        {
          "name": null,
          "email": null
        }
      ],
      "cc": [
        {
          "name": null,
          "email": null
        }
      ],
      "bcc": [
        {
          "name": null,
          "email": null
        }
      ]
    },
    "links": {
      "draft": "string",
      "folder": "string"
    }
  }
}