connectedAccounts

Create One connectedAccount

post/connectedAccounts

Request

  • Base URL: https://twenty.mardu.systems/rest
  • URL: https://twenty.mardu.systems/rest/connectedAccounts
  • Auth: HTTP bearer

Query parameters

depth0 | 1

Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations

upsertboolean

If true, creates the object or updates it if it already exists.

Request body

handlestring

The account handle (email, username, phone number, etc.)

providerstring

The account provider

accessTokenstring

Messaging provider access token

refreshTokenstring

Messaging provider refresh token

lastSyncHistoryIdstring

Last sync history ID

authFailedAtstring date-time

Auth failed at

lastCredentialsRefreshedAtstring date-time

Last credentials refreshed at

handleAliasesstring

Handle Aliases

scopesstring[]

Scopes

connectionParametersobject

JSON object containing custom connection parameters

accountOwnerIdstring uuid

Example request

{
  "accountOwner": null,
  "messageChannels": null,
  "calendarChannels": null
}

Response

Successful operation

Changes

No recorded changes to this operation across all 1 revision of this API.