POST
/
accounts
curl --request POST \
  --url https://api.dock.so:4000/{version}/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Dock",
  "website": "https://dock.us",
  "ownerId": "RiHO4e0Ju3DS",
  "logo": "https://dock.us/logo.png"
}'
{
  "data": {
    "account": {
      "id": "RiHO4e0Ju3DS",
      "updatedAt": "2021-01-01T00:00:00.000Z",
      "createdAt": "2021-01-01T00:00:00.000Z",
      "object": "account",
      "url": "https://api.dock.us/v1/accounts/RiHO4e0Ju3DS",
      "name": "Dock",
      "website": "https://dock.us",
      "ownerId": "RiHO4e0Ju3DS",
      "logo": "https://dock.us/logo.png",
      "salesforceAccountId": "0015f00000Bg59dAAB",
      "hubspotCompanyId": "8662045446",
      "customFields": [
        {
          "id": "RiHO4e0Ju3DS",
          "updatedAt": "2021-01-01T00:00:00.000Z",
          "createdAt": "2021-01-01T00:00:00.000Z",
          "object": "customField",
          "url": "https://api.dock.us/v1/custom-fields/RiHO4e0Ju3DS",
          "variableName": "account.name",
          "type": "singleCheckbox",
          "options": [
            {
              "index": 1,
              "label": "Yes",
              "value": "true"
            }
          ],
          "value": "Yes"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

properties
enum<string>[]

Select the account properties that should be returned

Available options:
name,
website,
ownerId,
logo,
salesforceAccountId,
hubspotCompanyId,
createdAt,
updatedAt,
customFields.name,
customFields.type,
customFields.variableName,
customFields.value

Body

application/json
name
string

Name of the account

Minimum length: 1
Example:

"Dock"

website
string

Website of the account

Example:

"https://dock.us"

ownerId
string

Owner ID of the account

Example:

"RiHO4e0Ju3DS"

Logo url of the account

Example:

"https://dock.us/logo.png"

Response

201
application/json
Account created
data
object