### Filename Example
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Example of the filename string format for attachments.
```text
"logo.png"
```
--------------------------------
### List tasks request and response
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Example of a GET request to retrieve tasks with specific filters and the corresponding JSON response.
```http
GET /v1/tasks?organization=0d9bab85-a74f-4ece-9142-0f9b9f36ff92&state=todo&limit=10
```
```json
{
"tasks": [
{
"id": "75ad834a-9bd6-4008-b9e6-fc9fa2e7770b",
"conversation": null,
"title": "Review pull request",
"description": "Please review PR #123",
"state": "todo",
"started_at": null,
"closed_at": null,
"assignees": ["1ce8117e-ae42-4304-b953-c81656da4bd1"],
"team": "0e24f298-965d-4475-9220-b32636a1e2c3",
"due_at": 1692371867,
"type": "task",
"last_activity_at": 1692371900
},
{
"id": "a5d2aa1c-3828-4f90-bbd8-3dffaadda97e",
"conversation": null,
"title": "Follow up with client",
"description": null,
"state": "in_progress",
"started_at": 1692371000,
"closed_at": null,
"assignees": ["74f91030-39b8-4627-9835-9cfbce9d67c1"],
"team": null,
"due_at": null,
"type": "conversation",
"last_activity_at": 1692371800
}
]
}
```
--------------------------------
### Webhook Configuration
Source: https://missiveapp.com/docs/docs/developers/rest-api/endpoints
Example of a webhook configuration structure.
```json
"reports": {
```
--------------------------------
### API Request Parameters
Source: https://missiveapp.com/docs/docs/developers/rest-api/endpoints
Example of start and end timestamp parameters used in API requests.
```json
"start": 1691812800,
```
```json
"end": 1692371867,
```
--------------------------------
### List Teams Response
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Example JSON response returned by the GET /v1/teams endpoint.
```json
{
"teams": [
{
"id": "d75aecb6-96a2-4b5f-afa6-19d1916052ea",
"name": "Sales",
"organization": "0d9bab85-a74f-4ece-9142-0f9b9f36ff92",
"active_members": ["a41a00fd-453d-49d7-a487-9765c35a3b70"],
"observers": [],
"team_inbox_enabled": true,
"chat_room_enabled": true,
"team_mention_behavior": "all_members",
"user_reply_behavior": "assign_user",
"received_reply_behavior": "show_in_assignee_inbox",
"team_sidebar_behavior": "show_team_space"
}
]
}
```
--------------------------------
### Step Configuration Examples
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Defines steps for multi-stage processes or status indicators.
```javascript
{ label: 'In Progress', value: 1 }
```
```javascript
{ label: 'Completed', value: 2 }
```
--------------------------------
### List contacts response
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Example JSON response returned by the GET /v1/contacts endpoint.
```json
{
"contacts": [
{
"id": "183382b8-fb70-4a35-bf22-4ebae1450553",
"first_name": "Arthur",
"last_name": "Sto",
"starred": false,
"contact_book": "487bc080-6631-4edc-830e-1d114eef4ab0",
"deleted": false,
"modified_at": 1556200645
},
{
"id": "862aceb8-3553-4644-9300-0312a432315f",
"first_name": "Zeb",
"last_name": "Craft",
"starred": false,
"contact_book": "487bc080-6631-4edc-830e-1d114eef4ab0",
"deleted": false,
"modified_at": 1556200644
},
{
"id": "b40713e2-e790-4c67-9eb3-22e83bd1bdf9",
"first_name": "Alex",
"last_name": "Alstorm",
"starred": false,
"contact_book": "487bc080-6631-4edc-830e-1d114eef4ab0",
"deleted": false,
"modified_at": 1556200643,
"infos": [
{
"kind": "phone_number",
"label": "work",
"value": "+1 (418) 717-1066"
},
{
"kind": "custom",
"custom_label": "Favorite food",
"value": "Pizza"
}
],
"memberships": [
{
"title": "Project manager",
"group": {
"id": "522f8e19-0261-4f8b-b8b1-8d8bb4055569",
"kind": "organization",
"name": "Pagac Inc"
}
}
]
}
]
}
```
--------------------------------
### Option Configuration Examples
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Defines selectable options for menus or inputs, supporting custom colors and disabled states.
```javascript
{ label: 'My Project', value: 12345 }
```
```javascript
{ label: 'My Tag', value: 54321, color: '#F00' }
```
--------------------------------
### List contact books response
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Example JSON response returned by the GET /v1/contact_books endpoint.
```json
{
"contact_books": [
{
"id": "6a012cec-c2e2-4e21-91e3-a36dba6930e7",
"user": "0db31755-adcd-4c51-8346-66bb7194449e",
"share_with_organization": true,
"share_with_team": null,
"share_with_users": [],
"organization": "2b24d4f0-d082-41c7-9075-d2a34afcfcbd",
"name": "HR",
"description": null
},
{
"id": "171ed616-bed2-4781-91b8-bf52459dd9e6",
"user": "0db31755-adcd-4c51-8346-66bb7194449e",
"share_with_organization": true,
"share_with_team": null,
"share_with_users": [],
"organization": "2b24d4f0-d082-41c7-9075-d2a34afcfcbd",
"name": "Production",
"description": null
},
{
"id": "108e216d-79f9-452c-93b9-4176213d4fdb",
"user": "0db31755-adcd-4c51-8346-66bb7194449e",
"share_with_organization": false,
"share_with_team": null,
"share_with_users": [],
"organization": null,
"name": "My personal book",
"description": null
}
]
}
```
--------------------------------
### Initialize Site Features
Source: https://missiveapp.com/features/contacts
Sets up browser feature detection classes on the document root element.
```javascript
!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);
```
--------------------------------
### List conversation messages response structure
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Example JSON response returned by the GET /v1/conversations/:id/messages endpoint.
```json
{
"messages": [
{
"id": "3fa4bcf5-e57e-47a4-9422-de2cce5f802e",
"subject": "A Message",
"draft": false,
"preview": "A message from Sam",
"type": "email",
"delivered_at": 1563806347,
"updated_at": 1563807320,
"created_at": 1563807320,
"email_message_id": "<0f1ab2d8-cd90-4dd1-a861-ef7e31fb3cdd@missiveapp.com>",
"in_reply_to": [],
"references": [],
"from_field": {
"name": "Samwise Gamgee",
"address": "sam@fellowship.org"
},
"to_fields": [
{
"name": "Phil Smith",
"address": "phil.smith@fakemail.com"
}
],
"cc_fields": [],
"bcc_fields": [],
"reply_to_fields": [],
"attachments": [
{
"id": "81eed561-4908-4738-9a9f-2da886b1de43",
"filename": "inline-image.png",
"extension": "png",
"url": "https://...",
"media_type": "image",
"sub_type": "png",
"size": 114615,
"width": 668,
"height": 996
}
]
}
]
}
```
--------------------------------
### FormButton Configuration Examples
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Specifies button types and labels for integration forms.
```javascript
{ type: 'cancel', label: 'Cancel' }
```
```javascript
{ type: 'submit', label: 'Create' }
```
--------------------------------
### Field Type Configuration
Source: https://missiveapp.com/docs/docs/developers/rest-api/endpoints
Example of a short field type configuration.
```text
short
```
--------------------------------
### List conversation comments response
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Example JSON response for the GET /v1/conversations/:id/comments endpoint, showing the structure of a comment including author, attachment, and task details.
```json
{
"comments": [
{
"id": "3fa4bcf5-e57e-47a4-9422-de2cce5f802e",
"body": "This is a comment",
"created_at": 1563806347,
"mentions": [
{
"id": "1ce8117e-ae42-4304-b953-c81656da4bd1",
"index": 0,
"length": 8
}
],
"author": {
"id": "dc3c4104-eced-4206-b532-ef84b331778a",
"name": "Chad Zemlak",
"email": "chad@example.com",
"avatar_url": "https://..."
},
"attachment": {
"id": "81eed561-4908-4738-9a9f-2da886b1de43",
"filename": "document.pdf",
"extension": "pdf",
"url": "https://...",
"media_type": "application",
"sub_type": "pdf",
"size": 114615
},
"task": {
"description": "Follow up with client",
"state": "in_progress",
"due_at": 1692371867,
"started_at": 1691812800,
"closed_at": null,
"assignees": [
{
"id": "1ce8117e-ae42-4304-b953-c81656da4bd1",
"name": "Phil Smith",
"email": "phil@example.com",
"avatar_url": "https://..."
}
],
"team": {
"id": "0e24f298-965d-4475-9220-b32636a1e2c3",
"name": "Support",
"organization": "0d9bab85-a74f-4ece-9142-0f9b9f36ff92"
}
}
}
]
}
```
--------------------------------
### Initialize Theme Switching
Source: https://missiveapp.com/docs/docs/advanced-features/analytics/reports
This IIFE initializes the theme based on local storage or system preferences and applies the necessary CSS classes to the document root.
```javascript
((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","light",null,["light","dark"],null,true,true)
```
--------------------------------
### Organization Configuration JSON
Source: https://missiveapp.com/docs/docs/developers/rest-api/endpoints
Example of an organization configuration object including active members, observers, and business hours settings.
```json
"color": "#2266ED",
"organization": "0d9bab85-a74f-4ece-9142-0f9b9f36ff92",
"active_members": [
"1ce8117e-ae42-4304-b953-c81656da4bd1",
"74f91030-39b8-4627-9835-9cfbce9d67c1"
],
"observers": ["a41a00fd-453d-49d7-a487-9765c35a3b70"],
"business_hours": {
"tz": "America/Montreal",
"t": [
{ "d": 1, "s": [32400, 61200] },
{ "d": 2, "s": [32400, 61200] },
{ "d": 3, "s": [32400, 61200] },
{ "d": 4, "s": [32400, 61200] },
{ "d": 5, "s": [32400, 61200] }
```
--------------------------------
### Attachment Array Example
Source: https://missiveapp.com/docs/docs/developers/rest-api/endpoints
Example of an array containing attachment objects.
```json
[{"text": "This is an attachment!"}]
```
--------------------------------
### Base64 Data Example
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Example of the base64-encoded string format for file attachments.
```text
"iVBORw0KGgoAAAANS…"
```
--------------------------------
### FormNote Configuration Examples
Source: https://missiveapp.com/docs/docs/llms-full.txt/1
Defines the structure for notes within a Missive integration, including optional URL linking.
```javascript
{ message: '✓ Completed on Feb 18' }
```
```javascript
{ message: 'View on Missive', url: 'https://missiveapp.com' }
```
--------------------------------
### HTML Formatted String Example
Source: https://missiveapp.com/docs/docs/developers/rest-api/endpoints
Example of an HTML string used for message content.
```html
"World!"
```
--------------------------------
### Define Domain Context Instructions
Source: https://missiveapp.com/docs/llms-full.txt
Provides product-specific context and brand voice guidelines for B2B SaaS interactions.
```text
We are a B2B SaaS company. Our product is [your product name].
When drafting replies, use our brand voice: friendly, helpful, and direct.
Never use exclamation marks excessively.
```
--------------------------------
### Field Definition Example
Source: https://missiveapp.com/docs/docs/developers/rest-api/endpoints
An example of a field definition object containing a title and value.
```json
[{"title": "Paying customer", "value": "yes"}]
```
--------------------------------
### Install Missive Chat Widget
Source: https://missiveapp.com/docs/docs/core-features/connected-accounts/other-channels/live-chat/setup
Embed this script in your HTML to initialize the Missive chat widget using your unique account ID.
```html
```
--------------------------------
### JSON Data Structure Example
Source: https://missiveapp.com/docs/docs/developers/rest-api/endpoints
Example of a JSON object structure used in API responses.
```json
"name": "Chad Zemlak",
"email": "chad@example.com",
"avatar_url": "https://..."
}
}
]
}
```