Create a Report Template Run in API Explorer
Ask AI
POST
/api/v1/report-template
curl \
--request POST 'https://api.plannrcrm.com/api/v1/report-template' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"Task report for clients over the age 60","report_type_id":"rmar","report_query":{"start_age":60}}'
Request examples
{
"name": "Task report for clients over the age 60",
"report_type_id": "rmar",
"report_query": {
"start_age": 60
}
}
Response examples (200)
{
"uuid": "f2110189-0a26-4736-a815-81f2a0fe2c06",
"created_at": "2026-08-04T11:03:34+01:00",
"updated_at": "2026-08-04T11:03:34+01:00",
"name": "2 weeks overdue task report",
"created_by": {
"uuid": "fcbe4da1-b982-435c-8177-20072d1279f4",
"created_at": "2026-08-04T11:03:34+01:00",
"updated_at": "2026-08-04T11:03:34+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=gareth+thompson",
"firm": {
"uuid": "c032b7ce-5012-49f4-8586-f6dbc9d5aff9",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"name": "Codepotato",
"slug": "codepotato",
"address_1": "Suite E, 5 The Briars",
"address_2": "Waterberry Drive",
"town_city": "Waterlooville",
"county": "Hampshire",
"postcode": "PO7 7YH",
"country": "United Kingdom",
"regulatory_text": "Regulatory text",
"logo": "https://api.plannrcrm.com/images/plannr.jpg",
"logo_icon": "https://api.plannrcrm.com/images/plannr-icon.jpg",
"brand_colours": {
"sidebar_background": "#0E0E56",
"sidebar_accent": "#36367E",
"sidebar_text": "#FFFFFF",
"sidebar_hover": "#0A0A42",
"sidebar_active": "#53DBB8",
"sidebar_title_background": "#36367E",
"sidebar_title_primary": "#FFC634",
"sidebar_title_secondary": "#FFFFFF",
"sidebar_title_secondary_hover": "#FFFFFF",
"email_background": "#0E0E56",
"email_logo_background_panel": "#36367E",
"email_sub_text": "#FFFFFF",
"email_button_background": "#36367E",
"email_button_text": "#FFFFFF",
"portal_sidebar_button_background": "#F6F6F6",
"portal_sidebar_button_hover": "#FFFFFF",
"portal_sidebar_button_active": "#FFFFFF",
"portal_brand_title": "#323B4B",
"portal_brand_sub_title": "#828994",
"portal_sidebar_title": "#11151D",
"portal_sidebar_text": "#323B4B",
"portal_sidebar_text_hover": "#323B4B",
"portal_sidebar_text_active": "#323B4B",
"portal_sidebar_icon": "#828994",
"portal_sidebar_icon_hover": "#828994",
"portal_sidebar_icon_active": "#828994",
"portal_background": "#F6F6F6",
"portal_sidebar_account_title": "#11151D",
"portal_sidebar_account_email": "#828994",
"portal_sidebar_divider": "#E3E5E9",
"portal_dashboard_bg_one": "#EF4583",
"portal_dashboard_bg_two": "#FFC634",
"portal_sidebar_collapse_button": "#828994",
"portal_sidebar_collapse_button_hover": "#B3B9C4",
"portal_sidebar_user_select_background": "#F6F6F6",
"portal_sidebar_user_select_hover": "#F6F6F6",
"portal_sidebar_user_select_text": "#323B4B",
"portal_sidebar_user_select_text_hover": "#323B4B",
"portal_sidebar_user_select_border": "#EEEEEE",
"portal_sidebar_user_select_border_hover": "#828994"
},
"is_subscribed": true,
"keep_deleted_files_for": 30,
"tax": 17.5,
"month_end": 25,
"statement_frequency": "monthly",
"billing": {
"invoice_address_1": "Suite E, 5 The Briars",
"invoice_address_2": "Waterberry Drive",
"invoice_town_city": "Waterlooville",
"invoice_county": "Hampshire",
"invoice_postcode": "PO7 7YH",
"invoice_country": "United Kingdom",
"invoice_email": "gareth@codepotato.co.uk"
},
"ip_whitelist": [
"192.168.0.1",
"127.0.0.1"
],
"welcome_paragraph_html": "<h1>Welcome.</h1>",
"email_welcome_paragraph_html": "Welcome to Plannr!",
"show_fact_find_illustrations": true,
"cc_email_addresses": [
"jack@example.com",
"jill@example.com"
],
"bcc_email_addresses": [
"jack@example.com",
"jill@example.com"
],
"reply_to_email_address": "jack@example.com",
"mobile_app_support_number": "01234 567890",
"mobile_app_support_email": "support@example.com"
},
"primary_phone_number": {
"uuid": "87a6e8de-7a28-4b7d-869d-097269541ddb",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"type": "phone_number",
"name": "Work number",
"value": "+443330903630",
"phone_number_meta": {
"country": "GB",
"formatted": "0333 090 3630"
}
},
"primary_email": {
"uuid": "87a6e8de-7a28-4b7d-869d-097269541ddb",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"type": "phone_number",
"name": "Work number",
"value": "+443330903630",
"phone_number_meta": {
"country": "GB",
"formatted": "0333 090 3630"
}
},
"current_time_entry": {
"uuid": "d814de9a-0002-4f8c-bc6e-c4a0f3b67e6e",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"name": "Research",
"description": "This is a description.",
"trackable_type": "Client",
"start_date": "2026-08-04T10:13:40+01:00",
"end_date": "2026-08-04T10:41:40+01:00",
"is_active": true,
"total_time_in_minutes": 28,
"computed_time_elapsed_in_seconds": 1680
},
"assigned_adviser": {
"uuid": "7b6f31a6-b111-4732-bd12-71047670d793",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=gareth+thompson",
"first_contact_date": "2026-08-04T11:03:40+01:00",
"next_review_date": "2026-08-04T11:03:40+01:00",
"previous_review_date": "2026-08-04T11:03:40+01:00",
"anniversary_review_date": "2026-08-04T11:03:40+01:00",
"terms_of_business_at": "2026-08-04T11:03:40+01:00",
"client_agreement_at": "2026-08-04T11:03:40+01:00",
"with_login": true,
"has_joint_account": true,
"can_be_deleted": "false",
"ownership_percentage": 100.0,
"inactive_at": "2026-08-04",
"last_interaction_at": "2026-08-04 11:03:40",
"referral_code": "ABC12345",
"is_out_of_office": true,
"out_of_office_from": "2026-08-04T11:03:40+01:00",
"out_of_office_until": "2026-08-04T11:03:40+01:00",
"out_of_office_message": "I am away this week. For urgent matters please contact the office.",
"permissions": {
"firm:read": [
"firm"
],
"network:read": [
"network:uuid"
]
}
},
"assigned_administrator": {
"uuid": "7b6f31a6-b111-4732-bd12-71047670d793",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=gareth+thompson",
"first_contact_date": "2026-08-04T11:03:40+01:00",
"next_review_date": "2026-08-04T11:03:40+01:00",
"previous_review_date": "2026-08-04T11:03:40+01:00",
"anniversary_review_date": "2026-08-04T11:03:40+01:00",
"terms_of_business_at": "2026-08-04T11:03:40+01:00",
"client_agreement_at": "2026-08-04T11:03:40+01:00",
"with_login": true,
"has_joint_account": true,
"can_be_deleted": "false",
"ownership_percentage": 100.0,
"inactive_at": "2026-08-04",
"last_interaction_at": "2026-08-04 11:03:40",
"referral_code": "ABC12345",
"is_out_of_office": true,
"out_of_office_from": "2026-08-04T11:03:40+01:00",
"out_of_office_until": "2026-08-04T11:03:40+01:00",
"out_of_office_message": "I am away this week. For urgent matters please contact the office.",
"permissions": {
"firm:read": [
"firm"
],
"network:read": [
"network:uuid"
]
}
},
"assigned_paraplanner": {
"uuid": "7b6f31a6-b111-4732-bd12-71047670d793",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=gareth+thompson",
"first_contact_date": "2026-08-04T11:03:40+01:00",
"next_review_date": "2026-08-04T11:03:40+01:00",
"previous_review_date": "2026-08-04T11:03:40+01:00",
"anniversary_review_date": "2026-08-04T11:03:40+01:00",
"terms_of_business_at": "2026-08-04T11:03:40+01:00",
"client_agreement_at": "2026-08-04T11:03:40+01:00",
"with_login": true,
"has_joint_account": true,
"can_be_deleted": "false",
"ownership_percentage": 100.0,
"inactive_at": "2026-08-04",
"last_interaction_at": "2026-08-04 11:03:40",
"referral_code": "ABC12345",
"is_out_of_office": true,
"out_of_office_from": "2026-08-04T11:03:40+01:00",
"out_of_office_until": "2026-08-04T11:03:40+01:00",
"out_of_office_message": "I am away this week. For urgent matters please contact the office.",
"permissions": {
"firm:read": [
"firm"
],
"network:read": [
"network:uuid"
]
}
},
"introduced_by": {
"uuid": "7b6f31a6-b111-4732-bd12-71047670d793",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=gareth+thompson",
"first_contact_date": "2026-08-04T11:03:40+01:00",
"next_review_date": "2026-08-04T11:03:40+01:00",
"previous_review_date": "2026-08-04T11:03:40+01:00",
"anniversary_review_date": "2026-08-04T11:03:40+01:00",
"terms_of_business_at": "2026-08-04T11:03:40+01:00",
"client_agreement_at": "2026-08-04T11:03:40+01:00",
"with_login": true,
"has_joint_account": true,
"can_be_deleted": "false",
"ownership_percentage": 100.0,
"inactive_at": "2026-08-04",
"last_interaction_at": "2026-08-04 11:03:40",
"referral_code": "ABC12345",
"is_out_of_office": true,
"out_of_office_from": "2026-08-04T11:03:40+01:00",
"out_of_office_until": "2026-08-04T11:03:40+01:00",
"out_of_office_message": "I am away this week. For urgent matters please contact the office.",
"permissions": {
"firm:read": [
"firm"
],
"network:read": [
"network:uuid"
]
}
},
"business_unit": {
"uuid": "54509091-3b65-4db2-8fcb-de6fa4db7569",
"name": "Wealth Management",
"has_alternative_branding": false,
"brand_colours": [],
"members_count": 3,
"groups_count": 2,
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00"
},
"groups": {
"uuid": null,
"name": "finance",
"slug": "finance",
"participants_count": "3",
"participants": {
"uuid": {
"example": null,
"description": "UUID of the account"
},
"role": {
"example": "client",
"description": "Role of the account"
},
"first_name": {
"example": "Gareth",
"description": "First name of the account"
},
"last_name": {
"example": "Thompson",
"description": "Last name of the account"
},
"name": {
"example": "Gareth Thompson",
"description": "Name of the account"
},
"email": {
"example": "gareth@codepotato.co.uk",
"description": "Email of the account"
}
},
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00"
},
"tags": {
"uuid": "212adb72-7208-4a91-8b49-f6e3622f9526",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"name": "Mortgage",
"slug": "mortgage",
"colour": "#ef4582"
},
"owners": {
"uuid": "7b6f31a6-b111-4732-bd12-71047670d793",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=gareth+thompson",
"first_contact_date": "2026-08-04T11:03:40+01:00",
"next_review_date": "2026-08-04T11:03:40+01:00",
"previous_review_date": "2026-08-04T11:03:40+01:00",
"anniversary_review_date": "2026-08-04T11:03:40+01:00",
"terms_of_business_at": "2026-08-04T11:03:40+01:00",
"client_agreement_at": "2026-08-04T11:03:40+01:00",
"with_login": true,
"has_joint_account": true,
"can_be_deleted": "false",
"ownership_percentage": 100.0,
"inactive_at": "2026-08-04",
"last_interaction_at": "2026-08-04 11:03:40",
"referral_code": "ABC12345",
"is_out_of_office": true,
"out_of_office_from": "2026-08-04T11:03:40+01:00",
"out_of_office_until": "2026-08-04T11:03:40+01:00",
"out_of_office_message": "I am away this week. For urgent matters please contact the office.",
"permissions": {
"firm:read": [
"firm"
],
"network:read": [
"network:uuid"
]
}
},
"first_contact_date": "2026-08-04T11:03:34+01:00",
"next_review_date": "2026-08-04T11:03:34+01:00",
"previous_review_date": "2026-08-04T11:03:34+01:00",
"anniversary_review_date": "2026-08-04T11:03:34+01:00",
"terms_of_business_at": "2026-08-04T11:03:34+01:00",
"client_agreement_at": "2026-08-04T11:03:34+01:00",
"with_login": true,
"has_joint_account": true,
"can_be_deleted": "false",
"joint_account_circle": {
"uuid": "854bbd94-03cc-406f-af35-cfcf8766c956",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"name": "Jones Family",
"photo_url": "https://eu.ui-avatars.com/api/?name=jones+family",
"bg_colour": "#35f4e1",
"has_portal_access": true,
"portal_access_status": "active",
"engagement_rating": "green",
"last_login": {
"logged_in_at": "2026-08-04T11:03:40+01:00",
"account_uuid": "uuid",
"account_name": "John Smith",
"device_type": "desktop",
"device_platform": "macos"
},
"portal_login_count_30d": 5,
"portal_login_count_90d": 12,
"portal_login_count_365d": 48,
"joint_account_uuid": "2cde4477-045b-4ffe-8886-e81ff24ffade",
"login_access_level": "write",
"current_life_stage_uuid": "59c58ac5-ff2d-4b2b-b23b-bbc2d1365e0c"
},
"circles": {
"uuid": "854bbd94-03cc-406f-af35-cfcf8766c956",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"name": "Jones Family",
"photo_url": "https://eu.ui-avatars.com/api/?name=jones+family",
"bg_colour": "#35f4e1",
"has_portal_access": true,
"portal_access_status": "active",
"engagement_rating": "green",
"last_login": {
"logged_in_at": "2026-08-04T11:03:40+01:00",
"account_uuid": "uuid",
"account_name": "John Smith",
"device_type": "desktop",
"device_platform": "macos"
},
"portal_login_count_30d": 5,
"portal_login_count_90d": 12,
"portal_login_count_365d": 48,
"joint_account_uuid": "2cde4477-045b-4ffe-8886-e81ff24ffade",
"login_access_level": "write",
"current_life_stage_uuid": "59c58ac5-ff2d-4b2b-b23b-bbc2d1365e0c"
},
"ownership_percentage": 100,
"inactive_at": "2026-08-04",
"last_interaction_at": "2026-08-04 11:03:34",
"referral_code": "ABC12345",
"is_out_of_office": true,
"out_of_office_from": "2026-08-04T11:03:34+01:00",
"out_of_office_until": "2026-08-04T11:03:34+01:00",
"out_of_office_message": "I am away this week. For urgent matters please contact the office.",
"permissions": {
"firm:read": [
"firm"
],
"network:read": [
"network:uuid"
]
},
"custom_fields": {
"uuid": null,
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"type": "string",
"name": "Favourite Drink",
"reference": "favourite_drink",
"is_required": false,
"value": "Coffee",
"selection_options": [
"Coffee",
"Tea",
"Water"
],
"help_text": "This is the client's favourite drink."
},
"external_references": {
"uuid": "6b687221-9251-4623-ba49-69ad2b59b9f0",
"created_at": "2026-08-04T11:03:40+01:00",
"updated_at": "2026-08-04T11:03:40+01:00",
"third_party": "nucleus",
"reference": "AB123456"
}
},
"report_type_id": "rmar",
"report_query": {
"start_date": "2026-08-04T11:03:34+01:00"
}
}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}