List clients

Clients are listed from newest to oldest.

Organizations and individuals have different sets of fields, see the table below.
$ curl -H "Authorization: Bearer api-key" https://api.planadoapp.com/v2/clients | jq
{
  "clients": [
    {
      "uuid": "50c773b3-a4f8-5619-be47-cb6a0edb22cc",
      "external_id": "423430387320568-acme",
      "name": "ACME Corporation",
      "organization": true,
      "organization_name": "ACME Corporation",
      "site_address": {
        "formatted": "Passeig de Gràcia, 92, 08008 Barcelona, Spain",
        "entrance_no": "1",
        "apartment": null,
        "floor": "1",
        "description": "Entrance via Carrer de Procença",
        "geolocation": {
          "longitude": 37.6785237278356,
          "latitude": 55.7862807707096
        }
      },
      "contacts": [
        {
          "name": "Pedro",
          "value": "(834) 362-5246",
          "type": "phone"
        },
      ],
      "version": 3,
      "created_at": "2016-05-29T17:31:01.419601Z",
      "updated_at": "2016-06-07T10:57:19.529209Z"
    },
    {
      "uuid": "b2584e3c-25dd-4773-ab8b-0a018fd58d2b",
      "external_id": "22451458596510-john-doe-the-second",
      "name": "John Doe the Second",
      "organization": false,
      "first_name": "John",
      "last_name": "Doe",
      "middle_name": "the second",
      "site_address": {
        "formatted": "VFWH+25 Rome, Metropolitan City of Rome, Italy",
        "entrance_no": "3",
        "apartment": "11",
        "floor": "2",
        "description": "Knock hard",
        "geolocation": {
          "longitude": 12.4772501,
          "latitude": 41.8950619
        }
      },
      "contacts": [
        {
          "name": "John",
          "value": "(923) 820-5063",
          "type": "phone"
        }
      ],
      "version": 3,
      "created_at": "2016-05-29T17:31:01.419601Z",
      "updated_at": "2016-06-07T10:57:19.529209Z"
    },
    ...
  ]
}
Table 1. Fields of clients elements
Field Type JSON type Can be null Description

uuid

UUID

String

No

Unique identifier

external_id

String

String

Yes

External ID

name

String

String

No

Client name. This is either organization_name
or concatenation of first_name, last_name,
and middle_name values

organization_name*

String

String

No

Organization name. Limited to 5000 characters, some organizations have very long names

organization

Boolean

Boolean

No

Whether the client is an organization

first_name**

String

String

Yes

First name

last_name**

String

String

Yes

Last name

middle_name**

String

String

Yes

Middle name

contacts

[Contact]

Array

No

List of site contacts

site_address

Address

Object

Yes

Site address

version

Integer

Number

No

Version

created_at

Timestamp

String

No

Timestamp of creation

updated_at

Timestamp

String

No

Timestamp of last update

* These fields are only present when organization is true

** These fields are only present when organization is false

Filters

By updated_at value

$ curl -H "Authorization: Bearer api-key" "https://api.planadoapp.com/v2/clients?updated_at[before]=2019-10-01T10:30:10Z&updated_at[after]=2019-09-30T10:30:10Z" | jq
{
  "clients": [...]
}
before and after filters use strict comparison. Both values are optional.

See also