Get all circles
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Query parameters
-
filter[uuid] string
Filter by a comma separated list of UUIDs.
-
filter[account_uuids] string
Filter by a comma separated list of account UUIDs.
-
filter[group_uuids] string
Filter by a comma separated list of group UUIDs.
-
filter[name] string
Filter by the circle name.
-
include string
Comma separated list of relationships to include in the response. Valid relationships are [accounts,firm,groups]
-
sort string
Field to sort by. Valid fields are [name, created_at, updated_at]. Negative sign to denote DESC. Defaults to 'name'.
-
per_page integer
Number of results to return with pagination (Default 15. Max 500).
GET
/api/v1/circles
curl \
-X GET https://api.plannrcrm.com/api/v1/circles \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
Response examples (200)
{
"data": [
{
"name": "Jones Family",
"uuid": "b945c7e4-4c9e-4883-9a02-cd0fa4b6d5fb",
"groups": [
{
"name": "finance",
"slug": "finance",
"uuid": "c6b1123d-160f-4294-a1eb-d9d4093abeb3",
"created_at": "2025-01-12T12:55:56+00:00",
"updated_at": "2025-01-12T12:55:56+00:00",
"participants": {
"name": {
"example": "Gareth Thompson",
"description": "Name of the account"
},
"role": {
"example": "client",
"description": "Role of the account"
},
"uuid": {
"example": "690dc2b0-8173-4620-a125-b417421f4205",
"description": "UUID of the account"
},
"email": {
"example": "gareth@codepotato.co.uk",
"description": "Email of the account"
},
"last_name": {
"example": "Thompson",
"description": "Last name of the account"
},
"first_name": {
"example": "Gareth",
"description": "First name of the account"
}
},
"participants_count": "3"
}
],
"accounts": [
{
"name": "Gareth Thompson",
"role": "client",
"type": "client",
"uuid": "ce1c868c-14e5-4f64-a2c2-ea99a3455350",
"email": "gareth@codepotato.co.uk",
"last_name": "Thompson",
"photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
"created_at": "2025-01-12T12:55:56+00:00",
"first_name": "Gareth",
"updated_at": "2025-01-12T12:55:56+00:00",
"external_references": "App\\Http\\Resources\\ExternalReferenceResource"
}
],
"created_at": "2025-01-12T12:55:56+00:00",
"updated_at": "2025-01-12T12:55:56+00:00"
}
]
}