API Endpoints for Activities
https://relatecrm.example.com/api/activities
| Content-Type (Required) | string |
application/json |
| Accept (Required) | string |
application/json |
| Authorization (Required) | string |
Bearer {token} |
| order (Optional) | string |
Sort the results being queried. Example: ?order=created_at or ?order=created_at\|desc |
| select (Optional) | string |
Select only the provided fields, useful for query optimization. Example: ?select=first_name;id |
| per_page (Optional) | integer |
Provide the total number of records to query per page. Example: ?per_page=20 |
| page (Optional) | integer |
The page number to retrieve results for. Example: ?page=2 |
| q (Optional) | string |
Search records by a given query. Example: ?q=John |
| search_fields (Optional) | string |
Change the fields that the search will be performed to Example: ?search_fields=email:like;phones.number:= |
| search_match (Optional) | string |
By default the search queries are performed using the OR comparison operator for each query parameter, if you need to match all parameters, you will need to use the AND comparison operator. Example: ?search_match=and |
https://relatecrm.example.com/api/activities/{id}
| Content-Type (Required) | string |
application/json |
| Accept (Required) | string |
application/json |
| Authorization (Required) | string |
Bearer {token} |
| id (Required) | integer |
The ID of the record |
https://relatecrm.example.com/api/activities
| Content-Type (Required) | string |
application/json |
| Accept (Required) | string |
application/json |
| Authorization (Required) | string |
Bearer {token} |
| title (Required) | string |
|
| activity_type_id (Optional) | integer |
ID of the activity type If not provided, the default selected activity type in Settings->Activities will be used. |
| user_id (Required) | integer |
The owner/assigned of the activity |
| note (Optional) | string |
|
| description (Optional) | string |
|
| due_date (Required) | date |
Activity due date in UTC format Example: Only date: 2021-05-04 With time: 2021-05-04 10:00:00 |
| end_date (Optional) | date |
Activity end date in UTC format Example: Only date: 2021-05-05 With time: 2021-05-05 10:00:00 When creating activity, if not provided, the activity due date will be used as end date. |
| reminder_minutes_before (Optional) | integer |
Minutes to send reminder before the due date |
| guests (Optional) | array |
Example: [ "users" => [2, 3], "contacts" => [4, 5], ] |
| contacts (Optional) | array |
Array of contact ID's the activity is associated with. |
| companies (Optional) | array |
Array of company ID's the activity is associated with. |
| deals (Optional) | array |
Array of deal ID's the activity is associated with. |
https://relatecrm.example.com/api/activities/{id}
| Content-Type (Required) | string |
application/json |
| Accept (Required) | string |
application/json |
| Authorization (Required) | string |
Bearer {token} |
| id (Required) | integer |
The ID of the record |
| title (Required) | string |
|
| activity_type_id (Optional) | integer |
ID of the activity type If not provided, the default selected activity type in Settings->Activities will be used. |
| user_id (Optional) | integer |
The owner/assigned of the activity |
| note (Optional) | string |
|
| description (Optional) | string |
|
| due_date (Optional) | date |
Activity due date in UTC format Example: Only date: 2021-05-04 With time: 2021-05-04 10:00:00 |
| end_date (Optional) | date |
Activity end date in UTC format Example: Only date: 2021-05-05 With time: 2021-05-05 10:00:00 When creating activity, if not provided, the activity due date will be used as end date. |
| reminder_minutes_before (Optional) | integer |
Minutes to send reminder before the due date |
| guests (Optional) | array |
Example: [ "users" => [2, 3], "contacts" => [4, 5], ] |
| contacts (Optional) | array |
Array of contact ID's the activity is associated with. |
| companies (Optional) | array |
Array of company ID's the activity is associated with. |
| deals (Optional) | array |
Array of deal ID's the activity is associated with. |
https://relatecrm.example.com/api/activities/{id}
| Content-Type (Required) | string |
application/json |
| Accept (Required) | string |
application/json |
| Authorization (Required) | string |
Bearer {token} |
| id (Required) | integer |
The ID of the record |
https://relatecrm.example.com/api/activities/search?q={query}
Use this endpoint to perform search without pagination and use the take parameter if you need to limit the results.
| Content-Type (Required) | string |
application/json |
| Accept (Required) | string |
application/json |
| Authorization (Required) | string |
Bearer {token} |
| q (Required) | string |
| take (Optional) | integer |
The maximum number of results to query Example: ?take=1 |
| order (Optional) | string |
Sort the results being queried. Example: ?order=created_at or ?order=created_at\|desc |
| select (Optional) | string |
Select only the provided fields, useful for query optimization. Example: ?select=first_name;id |
| search_fields (Optional) | string |
Change the fields that the search will be performed to Example: ?search_fields=email:like;phones.number:= |
| search_match (Optional) | string |
By default the search queries are performed using the OR comparison operator for each query parameter, if you need to match all parameters, you will need to use the AND comparison operator. Example: ?search_match=and |
https://relatecrm.example.com/api/associations/activities/{id}
| Content-Type (Required) | string |
application/json |
| Accept (Required) | string |
application/json |
| Authorization (Required) | string |
Bearer {token} |
| id (Required) | integer |
The ID of the record |
Make sure to provide at least one resource.
| contacts (Optional) | array |
Array of contacts ID's to attach |
| companies (Optional) | array |
Array of companies ID's to attach |
| deals (Optional) | array |
Array of deals ID's to attach |
https://relatecrm.example.com/api/associations/activities/{id}
| Content-Type (Required) | string |
application/json |
| Accept (Required) | string |
application/json |
| Authorization (Required) | string |
Bearer {token} |
| id (Required) | integer |
The ID of the record |
Make sure to provide at least one resource.
| contacts (Optional) | array |
Array of contacts ID's to detach |
| companies (Optional) | array |
Array of companies ID's to detach |
| deals (Optional) | array |
Array of deals ID's to detach |
https://relatecrm.example.com/api/associations/activities/{id}
| Content-Type (Required) | string |
application/json |
| Accept (Required) | string |
application/json |
| Authorization (Required) | string |
Bearer {token} |
| id (Required) | integer |
The ID of the record |
Make sure to provide at least one resource.
| contacts (Optional) | array |
Array of contacts ID's to sync |
| companies (Optional) | array |
Array of companies ID's to sync |
| deals (Optional) | array |
Array of deals ID's to sync |
https://relatecrm.example.com/api/activities/{id}/{status}
| Content-Type (Required) | string |
application/json |
| Accept (Required) | string |
application/json |
| Authorization (Required) | string |
Bearer {token} |
| id (Required) | integer |
The ID of the record |
| status (Required) | string |
Any of ['complete', 'incomplete'] |