{
  "openapi": "3.0.0",
  "info": {
    "title": "Spiro API",
    "description": "# API Reference\n\n## Documentation\n\nThis reference helps you implement the RESTful Spiro API v1. The API uses a JSON format for output. The API is stateless – all requests are validated against an access token.\n\n## Generating an Access Token\n\n[OAuth 2.0](https://oauth.net/2/) protocol with [Refresh Token](https://oauth.net/2/grant-types/refresh-token/) flow is used for authentication.\nTo generate a valid access token, begin by creating a new authorization in your Spiro account: **Settings > Integrations > Spiro API > Configure > New Authorization**.\n\nProvide a valid `Redirect URI` (recommended: `https://app.spiro.ai`) and set `Scopes` to `admin`. After saving, a `Client ID` and `Client Secret` will be generated for your application.\n\nYou will also see an **Authorize** button. Clicking it will prompt you to enter your Spiro login credentials and then redirect you to the `Redirect URI` you configured, with an authorization `code` appended as a query parameter in the URL.\n\nUse the `Client ID`, `Client Secret`, `code`, and `Redirect URI` to make the following POST request to obtain your tokens:\n\n```json\n{\n  \"client_id\": \"XXX\",\n  \"client_secret\": \"XXX\",\n  \"code\": \"XXX\",\n  \"redirect_uri\": \"XXX\",\n  \"grant_type\": \"authorization_code\"\n}\n```\n\n> **Note:** The issued token grants full access to your entire organization. No finer-grained scopes are available at this time.\n\nAn `access_token` and a `refresh_token` will be returned.  The default lifespan of the `access_token` is 24 hours, at which point you should use the `refresh_token` to generate a new `access_token`.\n\n## Refreshing your Access Token\n\nTo refresh your access token, execute a POST request to `POST https://engine.spiro.ai/oauth/token` with the header `\"Content-Type\":\"application/json\"` and the \nfollowing request body:\n\n```json\n{\n  \"client_id\": \"XXX\",\n  \"client_secret\": \"XXX\",\n  \"refresh_token\": \"XXX\",\n  \"grant_type\": \"refresh_token\"\n}\n```\n\nAuthentication uses refresh token rotation, which means that for every access token refresh request, it will issue a new refresh token. Previous tokens are invalidated (revoked) only once the access token is used.\nMake sure to store the new `refresh_token` after the refresh token request.\n\n## API specification\n\n[jsonapi](http://jsonapi.org/) specification is used as a standard for request/response format.\nAPI supports [Compound Document](https://jsonapi.org/format/#document-compound-documents) responses. `include` query parameter with comma-separated values should be provided. Endpoints documentation will list available values for `include` if there are any.\n\n## Usage\n\nEach request must be accompanied by the following headers:  \n`Accept application/vnd.api+json`  \n`Authorization Bearer [YOUR TOKEN]`  \n`Content-type application/vnd.api+json`  \n\n*Note: the requests to obtain and refresh your access token are exceptions to this, and require a different header (see \"Generating an Access Token\")*\n\n## Filters\n\nEach resource may be filtered by any of its attributes using the available predicates. Filters are added to requests as parameters with the syntax `filter[{{attribute}}_{{predicate}}]={{value}}`. The attributes of each resource are listed in its documentation in the sample response.\n\nExample: `GET https://api.spiro.ai/api/v1/contacts?filter[first_name_eq]=John`\n\nIt is also possible to query records by custom fields with the syntax `filter[custom.{{attribute}}_{{predicate}}]={{value}}`\n\nExample: `GET https://api.spiro.ai/api/v1/opportunities?filter[custom.source_matches]=%campaign`\n\nFilters can be grouped together and joined with `OR`:\n\n`GET https://api.spiro.ai/api/v1/contacts?filter[first_name_or_last_name_cont]=andy`\n\nIt is possible to filter on relation:\n\n`GET https://api.spiro.ai/api/v1/contacts?filter[company_external_id_eq]=8456824`\n\nBy default multiple filters grouped with `AND` condition. To do `OR` queries, use additional parameter `filter[m]=or`:\n\nExample: `GET https://api.spiro.ai/api/v1/contacts?filter[first_name_or_email_matches]=andy%&filter[company_name_cont]=spiro&filter[m]=or`\n\n#### Predicates\n\nList of all possible predicates:\n\n\n| Predicate | Description | Notes |\n| ------------- | ------------- |-------- |\n| `*_eq`  | equal  | |\n| `*_not_eq` | not equal | |\n| `*_matches` | matches with `LIKE` | e.g. `q[email_matches]=%@gmail.com`|\n| `*_does_not_match` | does not match with `LIKE` | |\n| `*_matches_any` | Matches any | |\n| `*_matches_all` | Matches all  | |\n| `*_does_not_match_any` | Does not match any | |\n| `*_does_not_match_all` | Does not match all | |\n| `*_lt` | less than | |\n| `*_lteq` | less than or equal | |\n| `*_gt` | greater than | |\n| `*_gteq` | greater than or equal | |\n| `*_present` | not null and not empty | Only compatible with string columns. Example: `q[name_present]=1` (SQL: `col is not null AND col != ''`) |\n| `*_blank` | is null or empty. | (SQL: `col is null OR col = ''`) |\n| `*_null` | is null | |\n| `*_not_null` | is not null | |\n| `*_in` | match any values in array | e.g. `q[name_in][]=Alice&q[name_in][]=Bob` |\n| `*_not_in` | match none of values in array | |\n| `*_lt_any` | Less than any |  SQL: `col < value1 OR col < value2` |\n| `*_lteq_any` | Less than or equal to any | |\n| `*_gt_any` | Greater than any | |\n| `*_gteq_any` | Greater than or equal to any | |\n| `*_matches_any` | `*_does_not_match_any` | same as above but with `LIKE` |\n| `*_lt_all` | Less than all | SQL: `col < value1 AND col < value2` |\n| `*_lteq_all` | Less than or equal to all | |\n| `*_gt_all` | Greater than all | |\n| `*_gteq_all` | Greater than or equal to all | |\n| `*_matches_all` | Matches all | same as above but with `LIKE` |\n| `*_does_not_match_all` | Does not match all | |\n| `*_not_eq_all` | none of values in a set | |\n| `*_start` | Starts with | SQL: `col LIKE 'value%'` |\n| `*_not_start` | Does not start with | |\n| `*_start_any` | Starts with any of | |\n| `*_start_all` | Starts with all of | |\n| `*_not_start_any` | Does not start with any of | |\n| `*_not_start_all` | Does not start with all of | |\n| `*_end` | Ends with | SQL: `col LIKE '%value'` |\n| `*_not_end` | Does not end with | |\n| `*_end_any` | Ends with any of | |\n| `*_end_all` | Ends with all of | |\n| `*_not_end_any` | | |\n| `*_not_end_all` | | |\n| `*_cont` | Contains value | uses `LIKE` |\n| `*_cont_any` | Contains any of | |\n| `*_cont_all` | Contains all of | |\n| `*_not_cont` | Does not contain | |\n| `*_not_cont_any` | Does not contain any of | |\n| `*_not_cont_all` | Does not contain all of | |\n| `*_true` | is true | |\n| `*_false` | is false | | |\n\n\n## Teams Visibility (BETA)\n\n[**Teams Visibility**](https://support.spiro.ai/article/23-user-roles-and-permissions) Teams visibility is often used by organizations with limited visibility rules when they need to collaborate across companies and deals. Admins can enable Teams in company settings and then use the API to grant visibility to the new team members. The new member will have the same visibility rights as the owner of the company record once added.\n\nHere is an example for you to configure Teams and use the API:\ncompany X (id: 22) with the user Mark Jonson (id: 96):\n\n- Enable Teams Visibility (Spiro Admin needs to enable Teams in company settings)\n- Follow these steps to get the Team Entity Id (for this example, let's assume the value is \"123\")\n\n  `GET api/v1/custom_object_resources?filter[resource_eq]=Team&filter[resource_for]=Company`\n\n- Follow these steps to add a user (i.e. Mark Id: 96) to company X (id: 22)\n\n```ruby\n# POST api/v1/custom_objects\n{\n  \"data\": {\n    \"attributes\": {\n      \"resource_id\": 22,\n      \"resource_type\": \"Company\",\n      \"custom\": {\n        \"member\": {\n          \"label\": \"Mark Jonson\",\n          \"value\": 96\n        }\n      }\n    },\n    \"relationships\": {\n      \"custom_field\": {\n        \"data\": {\n          \"id\": 123,\n          \"type\": \"custom_field\"\n        }\n      }\n    }\n  }\n}\n```\n\nResource sharing can be undone by deleting the custom record created. Additionally, you can update the custom record and change the user you want to share the company with.\n",
    "version": "1.0"
  },
  "paths": {
    "/api/v1/campaigns/{campaign_id}/contacts": {
      "post": {
        "summary": "Add contacts",
        "tags": [
          "Campaigns"
        ],
        "description": "Adds contacts, denoted by ID number in the request body, to a specific campaign",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "25"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer sG7IdXAFtG-g-nAas9QKiIHwBBBrLgYbCfTl9fqBCNI"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "adds contacts to the campaign": {
                  "summary": "adds contacts to the campaign",
                  "value": {
                    "data": {
                      "relationships": {
                        "contacts": {
                          "data": [
                            {
                              "type": "contact",
                              "id": 216
                            },
                            {
                              "type": "contact",
                              "id": 217
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Remove contacts",
        "tags": [
          "Campaigns"
        ],
        "description": "Removes contacts, denoted by ID number in the request body, from a specific campaign",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "26"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 08K1E90cP9EYgGCyejm9It_aimELlblhiKxGHiS3zmM"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "removes contacts from the campaign": {
                  "summary": "removes contacts from the campaign",
                  "value": {
                    "data": {
                      "relationships": {
                        "contacts": {
                          "data": [
                            {
                              "type": "contact",
                              "id": 218
                            },
                            {
                              "type": "contact",
                              "id": 219
                            },
                            {
                              "type": "contact",
                              "id": 220
                            },
                            {
                              "type": "contact",
                              "id": 221
                            },
                            {
                              "type": "contact",
                              "id": 222
                            },
                            {
                              "type": "contact",
                              "id": 223
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/campaigns": {
      "get": {
        "summary": "List campaigns",
        "tags": [
          "Campaigns"
        ],
        "description": "Returns a list of all campaigns",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer E6Ah6yQWD6nm3XVXeseV_UbzSC0KSqs5KT610TXZCXg"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of campaigns": {
                    "summary": "returns a list of campaigns",
                    "value": {
                      "data": [
                        {
                          "id": "28",
                          "type": "campaign",
                          "attributes": {
                            "id": 28,
                            "title": "blanditiis",
                            "description": "Laborum nihil provident modi.",
                            "created_at": "2026-09-01T09:57:39.126Z",
                            "contacts_count": 0
                          }
                        },
                        {
                          "id": "27",
                          "type": "campaign",
                          "attributes": {
                            "id": 27,
                            "title": "a",
                            "description": "Magnam consequatur aut delectus.",
                            "created_at": "2026-09-01T09:57:39.125Z",
                            "contacts_count": 0
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create campaign",
        "tags": [
          "Campaigns"
        ],
        "description": "Creates a campaign populated with information from request body",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer M5EtTW5KS5P_MKTsPpyCBYUm7MxjIWcSZ4uQV_BIq4A"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates campaign": {
                  "summary": "creates campaign",
                  "value": {
                    "data": {
                      "attributes": {
                        "title": "saepe",
                        "description": "Aut excepturi suscipit temporibus."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates campaign": {
                    "summary": "creates campaign",
                    "value": {
                      "data": {
                        "id": "30",
                        "type": "campaign",
                        "attributes": {
                          "id": 30,
                          "title": "saepe",
                          "description": "Aut excepturi suscipit temporibus.",
                          "created_at": "2026-09-01T09:57:39.147Z",
                          "contacts_count": 0
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/campaigns/{id}": {
      "get": {
        "summary": "Get campaign",
        "tags": [
          "Campaigns"
        ],
        "description": "Returns information about a specific campaign",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "29"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer y9r05FmAZHy49pU6RP8K3f_yoHjWRnYxXe_waH892Ns"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns campaign": {
                    "summary": "returns campaign",
                    "value": {
                      "data": {
                        "id": "29",
                        "type": "campaign",
                        "attributes": {
                          "id": 29,
                          "title": "sint",
                          "description": "Qui adipisci reiciendis est.",
                          "created_at": "2026-09-01T09:57:39.135Z",
                          "contacts_count": 0
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update campaign",
        "tags": [
          "Campaigns"
        ],
        "description": "Updates a specific campaign with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "31"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer N1TRA-ZEPXCN6qMWYhwUWkpEFT0BKm1thi_9IdxLlLg"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates campaign": {
                  "summary": "updates campaign",
                  "value": {
                    "data": {
                      "attributes": {
                        "title": "alias",
                        "description": "Quia ab maxime cumque."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates campaign": {
                    "summary": "updates campaign",
                    "value": {
                      "data": {
                        "id": "31",
                        "type": "campaign",
                        "attributes": {
                          "id": 31,
                          "title": "alias",
                          "description": "Quia ab maxime cumque.",
                          "created_at": "2026-09-01T09:57:39.151Z",
                          "contacts_count": 0
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete campaign",
        "tags": [
          "Campaigns"
        ],
        "description": "Deletes a specific campaign",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "32"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 5fXXCkSmVSPHdqP_ONyhhcrHx2F4NrmWqfx9lFXaFE0"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/companies": {
      "get": {
        "summary": "List companies",
        "tags": [
          "Companies"
        ],
        "description": "Returns a list of all companies",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[phone]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "123456"
            },
            "description": "Phone of the company. Digits only"
          },
          {
            "name": "filter[user_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "User ID. Filter user reminders"
          },
          {
            "name": "filter[name]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "Oracle"
            },
            "description": "Filter companies by name case-insensitive.\nThis filter is preferred and faster over `filter[name_eq]` (which is case-sensitive)\n"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "user"
            },
            "description": "Include user information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer doalb_a_5VRoZUQRg6cyXPNJYFE-XcJJ2vYTzUT3T2U"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of companies": {
                    "summary": "returns a list of companies",
                    "value": {
                      "data": [
                        {
                          "id": "432",
                          "type": "company",
                          "attributes": {
                            "id": 432,
                            "name": "West-Schuster",
                            "website": "parisian.test",
                            "address": "59433 Lucina Greens",
                            "city": "North Glindabury",
                            "zipcode": "36791-9251",
                            "parent_id": null,
                            "country": "Slovenia",
                            "state": "Kansas",
                            "phone": "1-237-139-3783 x372",
                            "description": "Compatible encompassing neural-net",
                            "custom": {},
                            "created_at": "2026-09-01T09:57:38.304Z",
                            "updated_at": "2026-09-01T09:57:38.304Z",
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "990",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "433",
                          "type": "company",
                          "attributes": {
                            "id": 433,
                            "name": "Kassulke-Shanahan",
                            "website": "carter.test",
                            "address": "14995 Forest Station",
                            "city": "East Sondra",
                            "zipcode": "72551-8890",
                            "parent_id": null,
                            "country": "Martinique",
                            "state": "South Dakota",
                            "phone": "820.435.8601",
                            "description": "Networked incremental time-frame",
                            "custom": {},
                            "created_at": "2026-09-01T09:57:38.308Z",
                            "updated_at": "2026-09-01T09:57:38.308Z",
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "990",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create company",
        "tags": [
          "Companies"
        ],
        "description": "Creates a company populated with information from request body",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer -iR498ioH7xA2XmWdnNvVxVrO2aK_tx4JxjVaCWmGNg"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates company": {
                  "summary": "creates company",
                  "value": {
                    "data": {
                      "attributes": {
                        "website": "mckenzie.test",
                        "name": "Hilpert-Cummings",
                        "city": "Donteborough",
                        "zipcode": "62422",
                        "country": "Philippines",
                        "state": "Ohio",
                        "phone": "(596) 982-9822 x362",
                        "address": "890 Marcene Summit",
                        "description": "Profit-focused coherent collaboration",
                        "custom": {
                          "local_store": "Yes"
                        },
                        "parent_id": 435
                      },
                      "relationships": {
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 992
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates company": {
                    "summary": "creates company",
                    "value": {
                      "data": {
                        "id": "436",
                        "type": "company",
                        "attributes": {
                          "id": 436,
                          "name": "Hilpert-Cummings",
                          "website": "mckenzie.test",
                          "address": "890 Marcene Summit",
                          "city": "Donteborough",
                          "zipcode": "62422",
                          "parent_id": 435,
                          "country": "Philippines",
                          "state": "Ohio",
                          "phone": "(596) 982-9822 x362",
                          "description": "Profit-focused coherent collaboration",
                          "custom": {
                            "local_store": "Yes"
                          },
                          "created_at": "2026-09-01T09:57:38.373Z",
                          "updated_at": "2026-09-01T09:57:38.373Z",
                          "external_id": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "992",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/companies/{id}": {
      "get": {
        "summary": "Get company",
        "tags": [
          "Companies"
        ],
        "description": "Returns information about a specific company",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "434"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer M2iUREOZFItlgTWXRFSdAGERAyDK-ZhUjvBq5y57b5U"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns company": {
                    "summary": "returns company",
                    "value": {
                      "data": {
                        "id": "434",
                        "type": "company",
                        "attributes": {
                          "id": 434,
                          "name": "Hagenes, Towne and Hauck",
                          "website": "mcglynn.example",
                          "address": "6161 Zemlak Junction",
                          "city": "Hammesmouth",
                          "zipcode": "67367-3864",
                          "parent_id": null,
                          "country": "Malta",
                          "state": "Kansas",
                          "phone": "963-337-2915 x94253",
                          "description": "Fully-configurable motivating info-mediaries",
                          "custom": {
                            "string_field": null,
                            "date_field": null,
                            "float_field": null,
                            "integer_field": 10,
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null
                          },
                          "created_at": "2026-09-01T09:57:38.326Z",
                          "updated_at": "2026-09-01T09:57:38.326Z",
                          "external_id": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "991",
                              "type": "user"
                            }
                          }
                        }
                      },
                      "included": [
                        {
                          "id": "991",
                          "type": "user",
                          "attributes": {
                            "id": 991,
                            "first_name": "Kasey",
                            "last_name": "Gleason",
                            "email": "kasey@zemlak.example",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update company",
        "tags": [
          "Companies"
        ],
        "description": "Updates a specific company with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "438"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer icnfWV71WI-56SOxb291KVRpNGWMcdJa9luZwytsLWg"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates company": {
                  "summary": "updates company",
                  "value": {
                    "data": {
                      "attributes": {
                        "website": "dooley.example",
                        "name": "White-Hartmann",
                        "city": "New Jonah",
                        "zipcode": "42232-5770",
                        "country": "Canada",
                        "state": "Louisiana",
                        "phone": "1-184-373-8917",
                        "address": "852 Jacqueline Stream",
                        "description": "Focused multimedia structure",
                        "custom": {
                          "local_store": "Yes"
                        }
                      },
                      "relationships": {
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 994
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates company": {
                    "summary": "updates company",
                    "value": {
                      "data": {
                        "id": "438",
                        "type": "company",
                        "attributes": {
                          "id": 438,
                          "name": "White-Hartmann",
                          "website": "dooley.example",
                          "address": "852 Jacqueline Stream",
                          "city": "New Jonah",
                          "zipcode": "42232-5770",
                          "parent_id": 437,
                          "country": "Canada",
                          "state": "Louisiana",
                          "phone": "1-184-373-8917",
                          "description": "Focused multimedia structure",
                          "custom": {
                            "local_store": "Yes"
                          },
                          "created_at": "2026-09-01T09:57:38.390Z",
                          "updated_at": "2026-09-01T09:57:38.403Z",
                          "external_id": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "994",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete company",
        "tags": [
          "Companies"
        ],
        "description": "Deletes a specific company. Note that contacts associated with that company will be deleted as well.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "439"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer FZ_ZNx9q3rFcvUR4R7ZVN1x8I0RwqYKY1-sm72yTh0U"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/contacts": {
      "get": {
        "summary": "List contacts",
        "tags": [
          "Contacts"
        ],
        "description": "Returns a list of all contacts",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[campaign_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Campaign ID. Contacts in the Campaign"
          },
          {
            "name": "filter[company_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Company ID. Contacts in the company"
          },
          {
            "name": "filter[opportunity_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Opportunity ID. Contacts for opportunity"
          },
          {
            "name": "filter[email]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "adam@apiro.ai"
            },
            "description": "Email of the contact. Case insensitive"
          },
          {
            "name": "filter[first_name]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "Adam"
            },
            "description": "First Name of the contact. Case insensitive"
          },
          {
            "name": "filter[last_name]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "Honig"
            },
            "description": "Last Name of the contact. Case insensitive"
          },
          {
            "name": "filter[title]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "CEO Spiro Technologies, inc."
            },
            "description": "Title of the contact. Case insensitive"
          },
          {
            "name": "filter[phone]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "123456"
            },
            "description": "Phone of the contact. Digits only"
          },
          {
            "name": "filter[mobile_phone]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "123456"
            },
            "description": "Mobile Phone of the contact. Digits only"
          },
          {
            "name": "filter[home_phone]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "123456"
            },
            "description": "Home Phone of the contact. Digits only"
          },
          {
            "name": "filter[created_after]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "example": "21.09.2018"
            },
            "description": "Contacts created after date"
          },
          {
            "name": "filter[created_before]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "example": "21.09.2018"
            },
            "description": "Contacts created before date"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "user,company"
            },
            "description": "Include related records information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer NyzqsTQMpddCrmnag-jF6-10B4JbBTrGPNi4Ls0A8Y0"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of contacts": {
                    "summary": "returns a list of contacts",
                    "value": {
                      "data": [
                        {
                          "id": "208",
                          "type": "contact",
                          "attributes": {
                            "id": 208,
                            "first_name": "Charles",
                            "last_name": "Howell",
                            "created_at": "2026-09-01T09:57:38.521Z",
                            "updated_at": "2026-09-01T09:57:38.521Z",
                            "title": "agriculturist",
                            "phone": "303.165.1111",
                            "mobile_phone": "731.348.1560",
                            "home_phone": null,
                            "email": "charles@armstrong.test",
                            "description": null,
                            "custom": {},
                            "external_id": null,
                            "email_opt_out": false
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "441",
                                "type": "company"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "998",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "207",
                          "type": "contact",
                          "attributes": {
                            "id": 207,
                            "first_name": "Elden",
                            "last_name": "Rogahn",
                            "created_at": "2026-09-01T09:57:38.516Z",
                            "updated_at": "2026-09-01T09:57:38.516Z",
                            "title": "builder",
                            "phone": "1-754-822-6128",
                            "mobile_phone": "817-259-2747",
                            "home_phone": null,
                            "email": "elden@jaskolski-thompson.example",
                            "description": null,
                            "custom": {},
                            "external_id": null,
                            "email_opt_out": false
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "441",
                                "type": "company"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "998",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "included": [
                        {
                          "id": "441",
                          "type": "company",
                          "attributes": {
                            "id": 441,
                            "name": "McKenzie, Corkery and Gibson",
                            "website": "lang.test",
                            "address": "590 Kuphal Trafficway",
                            "city": "Melodifurt",
                            "zipcode": "92145-2912",
                            "parent_id": null,
                            "country": "Tuvalu",
                            "state": "Massachusetts",
                            "phone": "373-920-4478 x98696",
                            "description": "Open-source mission-critical analyzer",
                            "custom": {},
                            "created_at": "2026-09-01T09:57:38.511Z",
                            "updated_at": "2026-09-01T09:57:38.511Z",
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "998",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "998",
                          "type": "user",
                          "attributes": {
                            "id": 998,
                            "first_name": "Alfredo",
                            "last_name": "Hermann",
                            "email": "alfredo@oconner.example",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create contact",
        "tags": [
          "Contacts"
        ],
        "description": "Creates a contact populated with information from request body",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer R7hZWEzbAcsc9VN_Np07NhcoPV9J0HRiy0i4-df3tJ8"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates contact": {
                  "summary": "creates contact",
                  "value": {
                    "data": {
                      "attributes": {
                        "first_name": "Santiago",
                        "last_name": "Davis",
                        "email": "SANTIAGO@JENKINS-EMARD.TEST",
                        "title": "Manager",
                        "phone": "+1 654 987 564",
                        "mobile_phone": "357.732.9783",
                        "home_phone": "1-587-979-7259",
                        "description": "Customer-focused solution-oriented groupware",
                        "custom": {
                          "date_field": "2018-06-18",
                          "list_field": "One",
                          "multipleselect_field": "One,Two"
                        }
                      },
                      "relationships": {
                        "company": {
                          "data": {
                            "type": "company",
                            "id": 443
                          }
                        },
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1001
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates contact": {
                    "summary": "creates contact",
                    "value": {
                      "data": {
                        "id": "210",
                        "type": "contact",
                        "attributes": {
                          "id": 210,
                          "first_name": "Santiago",
                          "last_name": "Davis",
                          "created_at": "2026-09-01T09:57:38.578Z",
                          "updated_at": "2026-09-01T09:57:38.578Z",
                          "title": "Manager",
                          "phone": "+1654987564",
                          "mobile_phone": "357.732.9783",
                          "home_phone": "1-587-979-7259",
                          "email": "santiago@jenkins-emard.test",
                          "description": "Customer-focused solution-oriented groupware",
                          "custom": {
                            "date_field": "2018-06-18",
                            "list_field": "One",
                            "multipleselect_field": "One,Two"
                          },
                          "external_id": null,
                          "email_opt_out": false
                        },
                        "relationships": {
                          "company": {
                            "data": {
                              "id": "443",
                              "type": "company"
                            }
                          },
                          "user": {
                            "data": {
                              "id": "1001",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/contacts/{id}": {
      "get": {
        "summary": "Get contact",
        "tags": [
          "Contacts"
        ],
        "description": "Returns information about a specific contact",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "209"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer kEhU1l3uP7pwAHgLGxHG3DDIABe7M-MmN07J_pl7vjk"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns contact": {
                    "summary": "returns contact",
                    "value": {
                      "data": {
                        "id": "209",
                        "type": "contact",
                        "attributes": {
                          "id": 209,
                          "first_name": "Juliann",
                          "last_name": "Welch",
                          "created_at": "2026-09-01T09:57:38.544Z",
                          "updated_at": "2026-09-01T09:57:38.544Z",
                          "title": "mechanic",
                          "phone": "(282) 982-9557",
                          "mobile_phone": "142.956.9393",
                          "home_phone": null,
                          "email": "juliann@hintz.example",
                          "description": null,
                          "custom": {},
                          "external_id": null,
                          "email_opt_out": false
                        },
                        "relationships": {
                          "company": {
                            "data": {
                              "id": "442",
                              "type": "company"
                            }
                          },
                          "user": {
                            "data": {
                              "id": "999",
                              "type": "user"
                            }
                          }
                        }
                      },
                      "included": [
                        {
                          "id": "442",
                          "type": "company",
                          "attributes": {
                            "id": 442,
                            "name": "Beatty Group",
                            "website": "conn.example",
                            "address": "111 Gladys Trail",
                            "city": "Mayertmouth",
                            "zipcode": "27557-9110",
                            "parent_id": null,
                            "country": "Honduras",
                            "state": "Louisiana",
                            "phone": "935-596-8429 x1457",
                            "description": "Virtual empowering collaboration",
                            "custom": {},
                            "created_at": "2026-09-01T09:57:38.540Z",
                            "updated_at": "2026-09-01T09:57:38.540Z",
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1000",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "999",
                          "type": "user",
                          "attributes": {
                            "id": 999,
                            "first_name": "Ossie",
                            "last_name": "Schneider",
                            "email": "ossie@cummerata.test",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update contact",
        "tags": [
          "Contacts"
        ],
        "description": "Updates a specific contact with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "211"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer HNhh-N6sJY22A8SpuzkTC7_869SHB4Wf8JSDiG4kB2s"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates contact": {
                  "summary": "updates contact",
                  "value": {
                    "data": {
                      "attributes": {
                        "first_name": "Porter"
                      }
                    }
                  }
                },
                "updates contact owner": {
                  "summary": "updates contact owner",
                  "value": {
                    "data": {
                      "attributes": {
                        "nothing": true
                      },
                      "relationships": {
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1006
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates contact": {
                    "summary": "updates contact",
                    "value": {
                      "data": {
                        "id": "211",
                        "type": "contact",
                        "attributes": {
                          "id": 211,
                          "first_name": "Porter",
                          "last_name": "LName",
                          "created_at": "2026-09-01T09:57:38.596Z",
                          "updated_at": "2026-09-01T09:57:38.607Z",
                          "title": "businessman",
                          "phone": "1-350-348-8407",
                          "mobile_phone": "423.305.2183",
                          "home_phone": null,
                          "email": "fname@fahey.test",
                          "description": null,
                          "custom": {},
                          "external_id": null,
                          "email_opt_out": false
                        },
                        "relationships": {
                          "company": {
                            "data": {
                              "id": "444",
                              "type": "company"
                            }
                          },
                          "user": {
                            "data": {
                              "id": "1002",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  },
                  "updates contact owner": {
                    "summary": "updates contact owner",
                    "value": {
                      "data": {
                        "id": "212",
                        "type": "contact",
                        "attributes": {
                          "id": 212,
                          "first_name": "Karol",
                          "last_name": "Feest",
                          "created_at": "2026-09-01T09:57:38.623Z",
                          "updated_at": "2026-09-01T09:57:38.635Z",
                          "title": "builder",
                          "phone": "1-329-599-0781",
                          "mobile_phone": "920.504.8439",
                          "home_phone": null,
                          "email": "karol@oberbrunner-friesen.test",
                          "description": null,
                          "custom": {},
                          "external_id": null,
                          "email_opt_out": false
                        },
                        "relationships": {
                          "company": {
                            "data": {
                              "id": "445",
                              "type": "company"
                            }
                          },
                          "user": {
                            "data": {
                              "id": "1006",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete contact",
        "tags": [
          "Contacts"
        ],
        "description": "Deletes a specific contact",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "213"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer hHyQmX6oX1MBs7borfKQxzrinTcnu6ofA0eHCrcV8Hk"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/companies/{company_id}/custom_objects": {
      "get": {
        "summary": "List custom objects for company",
        "tags": [
          "Custom Objects"
        ],
        "description": "Returns a list of custom objects for company",
        "parameters": [
          {
            "name": "company_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "431"
          },
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[custom_field_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Custom object resource ID, custom object relates to."
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer WwGlWpi57DKgICpDHcolesikG9HhVAva5DklcO5ZR9A"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of custom objects for company": {
                    "summary": "returns a list of custom objects for company",
                    "value": {
                      "data": [
                        {
                          "id": "64",
                          "type": "custom_object",
                          "attributes": {
                            "id": 64,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:38.269Z",
                              "created_by": "Josue Reilly"
                            },
                            "custom_field_id": 69,
                            "created_at": "2026-09-01T09:57:38.269Z",
                            "created_by": 989,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "431",
                                "type": "company"
                              }
                            }
                          }
                        },
                        {
                          "id": "63",
                          "type": "custom_object",
                          "attributes": {
                            "id": 63,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:38.266Z",
                              "created_by": "Josue Reilly"
                            },
                            "custom_field_id": 69,
                            "created_at": "2026-09-01T09:57:38.266Z",
                            "created_by": 989,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "431",
                                "type": "company"
                              }
                            }
                          }
                        },
                        {
                          "id": "62",
                          "type": "custom_object",
                          "attributes": {
                            "id": 62,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:38.264Z",
                              "created_by": "Josue Reilly"
                            },
                            "custom_field_id": 69,
                            "created_at": "2026-09-01T09:57:38.264Z",
                            "created_by": 989,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "431",
                                "type": "company"
                              }
                            }
                          }
                        },
                        {
                          "id": "61",
                          "type": "custom_object",
                          "attributes": {
                            "id": 61,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:38.259Z",
                              "created_by": "Josue Reilly"
                            },
                            "custom_field_id": 69,
                            "created_at": "2026-09-01T09:57:38.259Z",
                            "created_by": 989,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "431",
                                "type": "company"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/contacts/{contact_id}/custom_objects": {
      "get": {
        "summary": "List custom objects for contact",
        "tags": [
          "Custom Objects"
        ],
        "description": "Returns a list of custom objects for contact",
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "206"
          },
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[custom_field_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Custom object resource ID, custom object relates to."
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer tqkazHLMtZvqlrV3i71j9XC8We5BOuVHfRDCv3ipwU0"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of custom objects for contact": {
                    "summary": "returns a list of custom objects for contact",
                    "value": {
                      "data": [
                        {
                          "id": "66",
                          "type": "custom_object",
                          "attributes": {
                            "id": 66,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:38.490Z",
                              "created_by": "Brice Howe"
                            },
                            "custom_field_id": 71,
                            "created_at": "2026-09-01T09:57:38.490Z",
                            "created_by": 996,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "206",
                                "type": "contact"
                              }
                            }
                          }
                        },
                        {
                          "id": "65",
                          "type": "custom_object",
                          "attributes": {
                            "id": 65,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:38.487Z",
                              "created_by": "Brice Howe"
                            },
                            "custom_field_id": 71,
                            "created_at": "2026-09-01T09:57:38.487Z",
                            "created_by": 996,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "206",
                                "type": "contact"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/custom_object_resources": {
      "get": {
        "summary": "List available custom object resources",
        "tags": [
          "Custom Objects"
        ],
        "description": "Returns a list of custom object resources (entities).\nEvery custom object represent a subset of existing entity.\nEntity have a title (`resource` field), name of the resource it is related to (`resource_for` field)\nand a set of fields available for custom objects.\n\nIndependent entities (where `resource_for` is `NULL`) can be used on it's own or be related to some other entities (have `custom_field_id` set).\nIndependent Lists are only available in the Enterprise Spiro product.\n\nYou can read about custom entities in details [here](https://support.spiro.ai/article/211-custom-entities).\n",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[resource_for]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "Opportunity"
            },
            "description": "Possible values are: Company, Contact, Opportunity"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer RhrgF8veEDftu9tCxMJJmfszEy_X43lcmSw7fIziKrA"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns custom object resources": {
                    "summary": "returns custom object resources",
                    "value": {
                      "data": [
                        {
                          "id": "72",
                          "type": "custom_field",
                          "attributes": {
                            "id": 72,
                            "resource": "Quotes",
                            "resource_for": "Company",
                            "fields": {
                              "string_field": {
                                "label": "String Field",
                                "type": "String"
                              },
                              "date_field": {
                                "label": "DATE",
                                "type": "Date"
                              },
                              "float_field": {
                                "label": "FLOAT",
                                "type": "Float"
                              },
                              "integer_field": {
                                "label": "INTEGER",
                                "type": "Integer"
                              },
                              "link_field": {
                                "label": "LINK",
                                "type": "Link"
                              },
                              "list_field": {
                                "label": "LIST",
                                "type": "List",
                                "value": [
                                  {
                                    "label": "One",
                                    "value": "One"
                                  },
                                  {
                                    "label": "Two",
                                    "value": "Two"
                                  },
                                  {
                                    "label": "Three",
                                    "value": "Three"
                                  }
                                ]
                              },
                              "multipleselect_field": {
                                "label": "MULTIPLESELECT",
                                "type": "MultipleSelect",
                                "value": [
                                  {
                                    "label": "One",
                                    "value": "One"
                                  },
                                  {
                                    "label": "Two",
                                    "value": "Two"
                                  },
                                  {
                                    "label": "Three",
                                    "value": "Three"
                                  }
                                ]
                              },
                              "contact_lookup": {
                                "label": "Contact Lookup",
                                "type": "ContactLookup"
                              }
                            },
                            "created_at": "2026-09-01T09:57:38.696Z",
                            "custom_field_id": null
                          }
                        },
                        {
                          "id": "73",
                          "type": "custom_field",
                          "attributes": {
                            "id": 73,
                            "resource": "Something",
                            "resource_for": "Company",
                            "fields": {
                              "string_field": {
                                "label": "String Field",
                                "type": "String"
                              },
                              "date_field": {
                                "label": "DATE",
                                "type": "Date"
                              },
                              "float_field": {
                                "label": "FLOAT",
                                "type": "Float"
                              },
                              "integer_field": {
                                "label": "INTEGER",
                                "type": "Integer"
                              },
                              "link_field": {
                                "label": "LINK",
                                "type": "Link"
                              },
                              "list_field": {
                                "label": "LIST",
                                "type": "List",
                                "value": [
                                  {
                                    "label": "One",
                                    "value": "One"
                                  },
                                  {
                                    "label": "Two",
                                    "value": "Two"
                                  },
                                  {
                                    "label": "Three",
                                    "value": "Three"
                                  }
                                ]
                              },
                              "multipleselect_field": {
                                "label": "MULTIPLESELECT",
                                "type": "MultipleSelect",
                                "value": [
                                  {
                                    "label": "One",
                                    "value": "One"
                                  },
                                  {
                                    "label": "Two",
                                    "value": "Two"
                                  },
                                  {
                                    "label": "Three",
                                    "value": "Three"
                                  }
                                ]
                              },
                              "contact_lookup": {
                                "label": "Contact Lookup",
                                "type": "ContactLookup"
                              }
                            },
                            "created_at": "2026-09-01T09:57:38.697Z",
                            "custom_field_id": null
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/custom_objects": {
      "get": {
        "summary": "List custom objects",
        "tags": [
          "Custom Objects"
        ],
        "description": "Returns a list of custom objects",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[custom_field_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Custom object resource ID, custom object relates to"
          },
          {
            "name": "filter[resource_type]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Resource record relates to. Can be one of (company, opportunity, contact, custom_object)"
          },
          {
            "name": "filter[resource_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Resource ID record relates to (OpportunityID, CompanyID or ContactID, CustomObjectID)"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 9kecqwQ6xUXdco9g9ts-3ywvo1fTKp1z4m3JA-gGnHQ"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of custom objects": {
                    "summary": "returns a list of custom objects",
                    "value": {
                      "data": [
                        {
                          "id": "67",
                          "type": "custom_object",
                          "attributes": {
                            "id": 67,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:38.715Z",
                              "created_by": "Denisse Fadel"
                            },
                            "custom_field_id": 75,
                            "created_at": "2026-09-01T09:57:38.715Z",
                            "created_by": 1010,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "447",
                                "type": "company"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Add custom object",
        "tags": [
          "Custom Objects"
        ],
        "description": "Creates custom object populated with information from request body",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer qXei2HxPc9Lxu0OmNUSZbhRpY9QKytKANyg5fjfjZH0"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates custom object for opportunity": {
                  "summary": "creates custom object for opportunity",
                  "value": {
                    "data": {
                      "attributes": {
                        "custom": {
                          "date_field": "2018-06-18",
                          "integer_field": "123456"
                        }
                      },
                      "relationships": {
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1014
                          }
                        },
                        "custom_field": {
                          "data": {
                            "type": "custom_field",
                            "id": 78
                          }
                        },
                        "resource": {
                          "data": {
                            "type": "opportunity",
                            "id": 111
                          }
                        }
                      }
                    }
                  }
                }
              },
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "attributes",
                      "relationships"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "custom_object"
                      },
                      "attributes": {
                        "type": "object",
                        "required": [
                          "resource_id",
                          "resource_type"
                        ],
                        "properties": {
                          "resource_id": {
                            "type": "integer",
                            "description": "ID of the parent record the custom object belongs to (e.g. company id)",
                            "example": 42
                          },
                          "resource_type": {
                            "type": "string",
                            "description": "Type of the parent record. One of: 'Company', 'Contact', 'Opportunity', 'CustomObject'",
                            "example": "Company"
                          },
                          "custom": {
                            "type": "object",
                            "description": "Custom field values keyed by field name. Shape depends on the custom_field referenced in relationships.",
                            "additionalProperties": true,
                            "example": {
                              "name": "My value"
                            }
                          }
                        }
                      },
                      "relationships": {
                        "type": "object",
                        "required": [
                          "custom_field"
                        ],
                        "properties": {
                          "custom_field": {
                            "type": "object",
                            "description": "Custom object resource (custom field) describing the type and fields of this custom object. Use GET /api/v1/custom_object_resources to list.",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "custom_field"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the custom field",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          },
                          "user": {
                            "type": "object",
                            "description": "User the custom object should be assigned to",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "user"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the user",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates custom object for opportunity": {
                    "summary": "creates custom object for opportunity",
                    "value": {
                      "data": {
                        "id": "70",
                        "type": "custom_object",
                        "attributes": {
                          "id": 70,
                          "custom": {
                            "string_field": null,
                            "date_field": "2018-06-18",
                            "float_field": null,
                            "integer_field": "123456",
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null,
                            "created_at": "2026-09-01T09:57:38.846Z",
                            "created_by": "Shasta Block"
                          },
                          "custom_field_id": 78,
                          "created_at": "2026-09-01T09:57:38.846Z",
                          "created_by": 1014,
                          "updated_by": null
                        },
                        "relationships": {
                          "resource": {
                            "data": {
                              "id": "111",
                              "type": "opportunity"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete custom objects",
        "tags": [
          "Custom Objects"
        ],
        "description": "Deletes custom objects",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 1N2uh026Xn8cp4uJ2ksQgaNDgFJof4DrDRabP7ipyPk"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "deletes custom objects": {
                  "summary": "deletes custom objects",
                  "value": {
                    "data": [
                      {
                        "type": "custom_object",
                        "id": 72
                      },
                      {
                        "type": "custom_object",
                        "id": 73
                      },
                      {
                        "type": "custom_object",
                        "id": 74
                      },
                      {
                        "type": "custom_object",
                        "id": 75
                      },
                      {
                        "type": "custom_object",
                        "id": 76
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/custom_objects/{id}": {
      "get": {
        "summary": "Get custom object",
        "tags": [
          "Custom Objects"
        ],
        "description": "Returns information about a specific custom object",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "69"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer mMbmAa9MTBGkZ7mSDy8IWg5s73tUaY20d-xuuCkGGn8"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns custom object": {
                    "summary": "returns custom object",
                    "value": {
                      "data": {
                        "id": "69",
                        "type": "custom_object",
                        "attributes": {
                          "id": 69,
                          "custom": {
                            "string_field": null,
                            "date_field": null,
                            "float_field": null,
                            "integer_field": null,
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null,
                            "created_at": "2026-09-01T09:57:38.803Z",
                            "created_by": "Aldo Jones"
                          },
                          "custom_field_id": 77,
                          "created_at": "2026-09-01T09:57:38.803Z",
                          "created_by": 1012,
                          "updated_by": null
                        },
                        "relationships": {
                          "resource": {
                            "data": {
                              "id": "110",
                              "type": "opportunity"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update custom object",
        "tags": [
          "Custom Objects"
        ],
        "description": "Updates a specific custom object with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "71"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer ENrMH4ZYYfy8qGc1qB4Tr1UNj8FyPloXKwzEJtDWGUc"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates custom object": {
                  "summary": "updates custom object",
                  "value": {
                    "data": {
                      "attributes": {
                        "custom": {
                          "date_field": "2019-06-25",
                          "integer_field": "111"
                        }
                      },
                      "relationships": {
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1017
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates custom object": {
                    "summary": "updates custom object",
                    "value": {
                      "data": {
                        "id": "71",
                        "type": "custom_object",
                        "attributes": {
                          "id": 71,
                          "custom": {
                            "string_field": null,
                            "date_field": "2019-06-25",
                            "float_field": null,
                            "integer_field": "111",
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null,
                            "created_at": "2026-09-01T09:57:38.857Z",
                            "created_by": "Merideth D'Amore"
                          },
                          "custom_field_id": 79,
                          "created_at": "2026-09-01T09:57:38.857Z",
                          "created_by": 1016,
                          "updated_by": 1016
                        },
                        "relationships": {
                          "resource": {
                            "data": {
                              "id": "451",
                              "type": "company"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/opportunities/{opportunity_id}/custom_objects": {
      "get": {
        "summary": "List custom objects for opportunity",
        "tags": [
          "Custom Objects"
        ],
        "description": "Returns a list of custom objects for opportunity",
        "parameters": [
          {
            "name": "opportunity_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "115"
          },
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[custom_field_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Custom object resource ID, custom object relates to."
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer R2nI6gQbS6jX9SrFRwLuZit4nQaVacKYtP71PQJC34Y"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of custom objects for opportunity": {
                    "summary": "returns a list of custom objects for opportunity",
                    "value": {
                      "data": [
                        {
                          "id": "80",
                          "type": "custom_object",
                          "attributes": {
                            "id": 80,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:39.399Z",
                              "created_by": "Teri Little"
                            },
                            "custom_field_id": 82,
                            "created_at": "2026-09-01T09:57:39.399Z",
                            "created_by": 1059,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "115",
                                "type": "opportunity"
                              }
                            }
                          }
                        },
                        {
                          "id": "79",
                          "type": "custom_object",
                          "attributes": {
                            "id": 79,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:39.397Z",
                              "created_by": "Teri Little"
                            },
                            "custom_field_id": 82,
                            "created_at": "2026-09-01T09:57:39.397Z",
                            "created_by": 1059,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "115",
                                "type": "opportunity"
                              }
                            }
                          }
                        },
                        {
                          "id": "78",
                          "type": "custom_object",
                          "attributes": {
                            "id": 78,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:39.395Z",
                              "created_by": "Teri Little"
                            },
                            "custom_field_id": 82,
                            "created_at": "2026-09-01T09:57:39.395Z",
                            "created_by": 1059,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "115",
                                "type": "opportunity"
                              }
                            }
                          }
                        },
                        {
                          "id": "77",
                          "type": "custom_object",
                          "attributes": {
                            "id": 77,
                            "custom": {
                              "string_field": null,
                              "date_field": null,
                              "float_field": null,
                              "integer_field": null,
                              "link_field": null,
                              "list_field": null,
                              "multipleselect_field": null,
                              "contact_lookup": null,
                              "created_at": "2026-09-01T09:57:39.393Z",
                              "created_by": "Teri Little"
                            },
                            "custom_field_id": 82,
                            "created_at": "2026-09-01T09:57:39.393Z",
                            "created_by": 1059,
                            "updated_by": null
                          },
                          "relationships": {
                            "resource": {
                              "data": {
                                "id": "115",
                                "type": "opportunity"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/activities": {
      "get": {
        "summary": "List activities",
        "tags": [
          "Activities"
        ],
        "description": "Returns list of all activity logged in Spiro",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[contact_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Contact ID. Activities for contact"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "user"
            },
            "description": "Include user information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer tp3QNC6tr4JZn5Iw6UcaavX6CyKc-PfW_h3auIaPXkk"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns activities": {
                    "summary": "returns activities",
                    "value": {
                      "data": [
                        {
                          "id": "151",
                          "type": "activity",
                          "attributes": {
                            "id": 151,
                            "interacted_at": "2026-09-01T09:57:37.932Z",
                            "subject": "ipsam",
                            "description": "Tempore tempora accusantium aperiam.",
                            "status": null,
                            "disposition": "undefined",
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "external_id": null,
                            "custom_activity_type": null,
                            "call_duration": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "956",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "152",
                          "type": "activity",
                          "attributes": {
                            "id": 152,
                            "interacted_at": "2026-09-01T09:57:37.957Z",
                            "subject": "id",
                            "description": "Nihil qui rerum iure.",
                            "status": null,
                            "disposition": "undefined",
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "external_id": null,
                            "custom_activity_type": null,
                            "call_duration": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "956",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "153",
                          "type": "activity",
                          "attributes": {
                            "id": 153,
                            "interacted_at": "2026-09-01T09:57:37.961Z",
                            "subject": "consequuntur",
                            "description": "Error temporibus quaerat omnis.",
                            "status": null,
                            "disposition": "undefined",
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "external_id": null,
                            "custom_activity_type": null,
                            "call_duration": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "956",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "154",
                          "type": "activity",
                          "attributes": {
                            "id": 154,
                            "interacted_at": "2026-09-01T09:57:37.964Z",
                            "subject": "nam",
                            "description": "Et fugiat sapiente omnis.",
                            "status": null,
                            "disposition": "undefined",
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "external_id": null,
                            "custom_activity_type": null,
                            "call_duration": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "956",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "155",
                          "type": "activity",
                          "attributes": {
                            "id": 155,
                            "interacted_at": "2026-09-01T09:57:37.977Z",
                            "subject": "nihil",
                            "description": "Vero repudiandae dolores tenetur.",
                            "status": null,
                            "disposition": "undefined",
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "external_id": null,
                            "custom_activity_type": null,
                            "call_duration": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "956",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create activity",
        "tags": [
          "Activities"
        ],
        "description": "Creates an activity populated with information from request body.\nActivity datetime (`interacted_at`) will be set to current time unless provided.\nActivity can be created for Contact, Company or Opportunity.\nCall duration (`call_duration`) is expressed in seconds, as a whole number (e.g. `180` for a three minute call).\n",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 9-2hSaQAzRuc5VgzmE88M5dQgJckeGy1GXtnY9TKEFo"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates activity for the company": {
                  "summary": "creates activity for the company",
                  "value": {
                    "data": {
                      "attributes": {
                        "subject": "Subject",
                        "description": "Description",
                        "disposition": "no_connect",
                        "interacted_at": "2026-09-01T09:57:38Z",
                        "call_duration": 180,
                        "custom": {
                          "date_field": "2026-09-01T09:57:38Z"
                        }
                      },
                      "relationships": {
                        "owner": {
                          "data": {
                            "type": "company",
                            "id": 428
                          }
                        },
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 958
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates activity for the company": {
                    "summary": "creates activity for the company",
                    "value": {
                      "data": {
                        "id": "156",
                        "type": "activity",
                        "attributes": {
                          "id": 156,
                          "interacted_at": "2026-09-01T09:57:38.000Z",
                          "subject": "Subject",
                          "description": "Description",
                          "status": null,
                          "disposition": "no_connect",
                          "call_status": null,
                          "result": 0,
                          "custom": {
                            "string_field": null,
                            "date_field": "2026-09-01",
                            "float_field": null,
                            "integer_field": null,
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null
                          },
                          "external_id": null,
                          "custom_activity_type": null,
                          "call_duration": "180"
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "958",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/activities/{id}": {
      "put": {
        "summary": "Update activity",
        "tags": [
          "Activities"
        ],
        "description": "Updates a specific activity.\nCall duration (`call_duration`) is expressed in seconds, as a whole number (e.g. `180` for a three minute call).\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "157"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer O4nTOyQfmNhYByFvqOkfxn2FXgzoHFShljdHs5CsRuc"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates activity": {
                  "summary": "updates activity",
                  "value": {
                    "data": {
                      "attributes": {
                        "subject": "New Subject",
                        "description": "New Description",
                        "interacted_at": "2026-08-30T09:57:38Z",
                        "call_duration": 240,
                        "custom": {
                          "float_field": "130.0",
                          "integer_field": "150",
                          "date_field": "2026-09-01T09:57:38Z"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates activity": {
                    "summary": "updates activity",
                    "value": {
                      "data": {
                        "id": "157",
                        "type": "activity",
                        "attributes": {
                          "id": 157,
                          "interacted_at": "2026-08-30T09:57:38.000Z",
                          "subject": "New Subject",
                          "description": "New Description",
                          "status": null,
                          "disposition": "undefined",
                          "call_status": null,
                          "result": 0,
                          "custom": {
                            "string_field": null,
                            "date_field": "2026-09-01",
                            "float_field": "130.0",
                            "integer_field": "150",
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null
                          },
                          "external_id": null,
                          "custom_activity_type": null,
                          "call_duration": "240"
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "959",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/attachments": {
      "get": {
        "summary": "List attachments",
        "tags": [
          "Attachments"
        ],
        "description": "Returns list of attachments added to Spiro",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[contact_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Contact ID. Attachments for contact"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "user"
            },
            "description": "Include user information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer v1ktpRoHSYBK0wwvMa3WbN__AWphG4t1d5zJ8oA7CdY"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns attachments": {
                    "summary": "returns attachments",
                    "value": {
                      "data": [
                        {
                          "id": "158",
                          "type": "attachment",
                          "attributes": {
                            "id": 158,
                            "subject": "et",
                            "description": "Ipsum quae ad eaque.",
                            "file_urls": [
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1"
                            ],
                            "disposition": "undefined",
                            "interacted_at": "2026-09-01T09:57:38.144Z",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "962",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "159",
                          "type": "attachment",
                          "attributes": {
                            "id": 159,
                            "subject": "aut",
                            "description": "Dignissimos incidunt debitis delectus.",
                            "file_urls": [
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1"
                            ],
                            "disposition": "undefined",
                            "interacted_at": "2026-09-01T09:57:38.171Z",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "962",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "160",
                          "type": "attachment",
                          "attributes": {
                            "id": 160,
                            "subject": "temporibus",
                            "description": "Animi in ea reprehenderit.",
                            "file_urls": [
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1"
                            ],
                            "disposition": "undefined",
                            "interacted_at": "2026-09-01T09:57:38.188Z",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "962",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "161",
                          "type": "attachment",
                          "attributes": {
                            "id": 161,
                            "subject": "dignissimos",
                            "description": "Saepe explicabo nesciunt sed.",
                            "file_urls": [
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1"
                            ],
                            "disposition": "undefined",
                            "interacted_at": "2026-09-01T09:57:38.201Z",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "962",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "162",
                          "type": "attachment",
                          "attributes": {
                            "id": 162,
                            "subject": "commodi",
                            "description": "Deserunt nemo qui dolor.",
                            "file_urls": [
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1",
                              "https://attachments.s3.amazonaws.com/uploads/avatar.png?X-Amz-Expires=600&X-Amz-Date=20260901T095738Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20260901%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=f65d18d8ce2ad70e83c89a42802dbb009a6655f98a2300933f32ec9c35404ee1"
                            ],
                            "disposition": "undefined",
                            "interacted_at": "2026-09-01T09:57:38.216Z",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "962",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/emails": {
      "get": {
        "summary": "List emails",
        "tags": [
          "Emails"
        ],
        "description": "Return a list of all emails that are from people who exist as contacts in Spiro",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[contact_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Contact ID. Emails for contact"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "user"
            },
            "description": "Include user information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer S28ld6kL25qcYXx6zvqBmJkIcXRVQflZt4NQtPcU-Ak"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns emails": {
                    "summary": "returns emails",
                    "value": {
                      "data": [
                        {
                          "id": "163",
                          "type": "email",
                          "attributes": {
                            "id": 163,
                            "interacted_at": "2026-09-01T09:57:38.934Z",
                            "sent_at": "2026-09-01T09:57:38.934Z",
                            "subject": "est",
                            "body": "Pariatur delectus excepturi molestiae.",
                            "email_type": "inbox",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1020",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "164",
                          "type": "email",
                          "attributes": {
                            "id": 164,
                            "interacted_at": "2026-09-01T09:57:38.935Z",
                            "sent_at": "2026-09-01T09:57:38.935Z",
                            "subject": "doloremque",
                            "body": "Ea quae sint odit.",
                            "email_type": "outbox",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1020",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "165",
                          "type": "email",
                          "attributes": {
                            "id": 165,
                            "interacted_at": "2026-09-01T09:57:38.937Z",
                            "sent_at": "2026-09-01T09:57:38.937Z",
                            "subject": "laborum",
                            "body": "Hic non sit quidem.",
                            "email_type": "inbox",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1020",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "166",
                          "type": "email",
                          "attributes": {
                            "id": 166,
                            "interacted_at": "2026-09-01T09:57:38.938Z",
                            "sent_at": "2026-09-01T09:57:38.938Z",
                            "subject": "quis",
                            "body": "Fugiat in quia quisquam.",
                            "email_type": "inbox",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1020",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "167",
                          "type": "email",
                          "attributes": {
                            "id": 167,
                            "interacted_at": "2026-09-01T09:57:38.939Z",
                            "sent_at": "2026-09-01T09:57:38.939Z",
                            "subject": "porro",
                            "body": "Cupiditate eveniet illo placeat.",
                            "email_type": "outbox",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1020",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/events": {
      "get": {
        "summary": "List events",
        "tags": [
          "Events"
        ],
        "description": "Returns list of events in calendar associated with email that is connected to Spiro",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[contact_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Contact ID. Events for contact"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "user"
            },
            "description": "Include user information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer dAtzac2-4Rm9pAG8P7IMhQm41blyn9dqLepWq19me7Y"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns events": {
                    "summary": "returns events",
                    "value": {
                      "data": [
                        {
                          "id": "168",
                          "type": "event",
                          "attributes": {
                            "id": 168,
                            "start_at": "2026-09-01T09:57:38.958Z",
                            "interacted_at": "2026-09-01T09:57:38.958Z",
                            "end_at": "2026-09-02T09:57:38.958Z",
                            "title": "ullam",
                            "confirmed": false,
                            "description": "Laboriosam ullam recusandae sunt.",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1021",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "169",
                          "type": "event",
                          "attributes": {
                            "id": 169,
                            "start_at": "2026-09-01T09:57:38.960Z",
                            "interacted_at": "2026-09-01T09:57:38.960Z",
                            "end_at": "2026-09-02T09:57:38.960Z",
                            "title": "minima",
                            "confirmed": false,
                            "description": "Unde eaque perspiciatis dolor.",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1021",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "170",
                          "type": "event",
                          "attributes": {
                            "id": 170,
                            "start_at": "2026-09-01T09:57:38.961Z",
                            "interacted_at": "2026-09-01T09:57:38.961Z",
                            "end_at": "2026-09-02T09:57:38.961Z",
                            "title": "at",
                            "confirmed": false,
                            "description": "Dolore quia eos dolores.",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1021",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "171",
                          "type": "event",
                          "attributes": {
                            "id": 171,
                            "start_at": "2026-09-01T09:57:38.962Z",
                            "interacted_at": "2026-09-01T09:57:38.962Z",
                            "end_at": "2026-09-02T09:57:38.962Z",
                            "title": "et",
                            "confirmed": false,
                            "description": "Nihil qui sed libero.",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1021",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "172",
                          "type": "event",
                          "attributes": {
                            "id": 172,
                            "start_at": "2026-09-01T09:57:38.963Z",
                            "interacted_at": "2026-09-01T09:57:38.963Z",
                            "end_at": "2026-09-02T09:57:38.963Z",
                            "title": "aut",
                            "confirmed": false,
                            "description": "Sunt unde omnis qui.",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1021",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/interactions": {
      "get": {
        "summary": "List interactions",
        "tags": [
          "Interactions"
        ],
        "description": "Returns a list of all interactions (Activity, Email, Event, Note, Attachment, SmsMessage) for the organization",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[type]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "Activity,Email"
            },
            "description": "Return only interactions of the given subtype(s). Comma-separated. One of: Activity, Email, Event, Note, Attachment, SmsMessage"
          },
          {
            "name": "filter[type_not]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "Email"
            },
            "description": "Exclude interactions of the given subtype(s). Comma-separated"
          },
          {
            "name": "filter[contact_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Contact ID. Interactions related to the contact"
          },
          {
            "name": "filter[company_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Company ID. Interactions related to the company"
          },
          {
            "name": "filter[opportunity_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Opportunity ID. Interactions related to the opportunity"
          },
          {
            "name": "filter[user_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "User ID. Interactions owned by the user"
          },
          {
            "name": "filter[related_to]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "contact"
            },
            "description": "Return only interactions related to a record of the given type. One of: contact, company, opportunity, ticket"
          },
          {
            "name": "filter[interacted_at_gt]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "example": "2024-01-01T00:00:00Z"
            },
            "description": "Interactions that happened after the given date/time"
          },
          {
            "name": "filter[interacted_at_lt]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "example": "2024-12-31T23:59:59Z"
            },
            "description": "Interactions that happened before the given date/time"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "user,contacts"
            },
            "description": "Include related records in the response (comma-separated). Supported: user, contacts, opportunities, companies, tickets"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer t10dXxMJWssGGApV4ZRHiJfHT1Ctx0XhMQax3B5fLqw"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns interactions of all types": {
                    "summary": "returns interactions of all types",
                    "value": {
                      "data": [
                        {
                          "id": "173",
                          "type": "interaction",
                          "attributes": {
                            "id": 173,
                            "type": "Activity",
                            "interacted_at": "2026-09-01T09:57:38.981Z",
                            "due_at": null,
                            "subject": "dolorum",
                            "description": "Sit dolores adipisci veniam.",
                            "status": null,
                            "disposition": "undefined",
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "kind": "other",
                            "call_duration": null,
                            "external_id": null,
                            "custom_activity_type": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1022",
                                "type": "user"
                              }
                            },
                            "contacts": {
                              "data": [
                                {
                                  "id": "214",
                                  "type": "contact"
                                }
                              ]
                            },
                            "opportunities": {
                              "data": []
                            },
                            "companies": {
                              "data": []
                            },
                            "tickets": {
                              "data": []
                            }
                          }
                        },
                        {
                          "id": "174",
                          "type": "interaction",
                          "attributes": {
                            "id": 174,
                            "type": "Activity",
                            "interacted_at": "2026-09-01T09:57:38.983Z",
                            "due_at": null,
                            "subject": "rerum",
                            "description": "Magnam excepturi in quaerat.",
                            "status": null,
                            "disposition": "undefined",
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "kind": "other",
                            "call_duration": null,
                            "external_id": null,
                            "custom_activity_type": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1022",
                                "type": "user"
                              }
                            },
                            "contacts": {
                              "data": [
                                {
                                  "id": "214",
                                  "type": "contact"
                                }
                              ]
                            },
                            "opportunities": {
                              "data": []
                            },
                            "companies": {
                              "data": []
                            },
                            "tickets": {
                              "data": []
                            }
                          }
                        },
                        {
                          "id": "175",
                          "type": "interaction",
                          "attributes": {
                            "id": 175,
                            "type": "Activity",
                            "interacted_at": "2026-09-01T09:57:38.985Z",
                            "due_at": null,
                            "subject": "illum",
                            "description": "Eveniet et sed saepe.",
                            "status": null,
                            "disposition": "undefined",
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "kind": "other",
                            "call_duration": null,
                            "external_id": null,
                            "custom_activity_type": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1022",
                                "type": "user"
                              }
                            },
                            "contacts": {
                              "data": [
                                {
                                  "id": "214",
                                  "type": "contact"
                                }
                              ]
                            },
                            "opportunities": {
                              "data": []
                            },
                            "companies": {
                              "data": []
                            },
                            "tickets": {
                              "data": []
                            }
                          }
                        },
                        {
                          "id": "176",
                          "type": "interaction",
                          "attributes": {
                            "id": 176,
                            "type": "Email",
                            "interacted_at": "2026-09-01T09:57:38.987Z",
                            "due_at": null,
                            "subject": "dicta",
                            "description": "Molestiae quisquam quae explicabo.",
                            "status": "outbox",
                            "disposition": 0,
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "kind": "outbound_email",
                            "call_duration": null,
                            "external_id": null,
                            "custom_activity_type": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1022",
                                "type": "user"
                              }
                            },
                            "contacts": {
                              "data": []
                            },
                            "opportunities": {
                              "data": []
                            },
                            "companies": {
                              "data": []
                            },
                            "tickets": {
                              "data": []
                            }
                          }
                        },
                        {
                          "id": "177",
                          "type": "interaction",
                          "attributes": {
                            "id": 177,
                            "type": "Event",
                            "interacted_at": "2026-09-01T09:57:38.989Z",
                            "due_at": "2026-09-02T09:57:38.989Z",
                            "subject": "inventore",
                            "description": "Dolorum quis quo sunt.",
                            "status": null,
                            "disposition": 0,
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "kind": "meeting",
                            "call_duration": null,
                            "external_id": null,
                            "custom_activity_type": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1022",
                                "type": "user"
                              }
                            },
                            "contacts": {
                              "data": []
                            },
                            "opportunities": {
                              "data": []
                            },
                            "companies": {
                              "data": []
                            },
                            "tickets": {
                              "data": []
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  },
                  "returns interactions with included user and contacts": {
                    "summary": "returns interactions with included user and contacts",
                    "value": {
                      "data": [
                        {
                          "id": "178",
                          "type": "interaction",
                          "attributes": {
                            "id": 178,
                            "type": "Activity",
                            "interacted_at": "2026-09-01T09:57:39.017Z",
                            "due_at": null,
                            "subject": "sint",
                            "description": "Eos debitis ut et.",
                            "status": null,
                            "disposition": "undefined",
                            "call_status": null,
                            "result": 0,
                            "custom": {},
                            "kind": "other",
                            "call_duration": null,
                            "external_id": null,
                            "custom_activity_type": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1024",
                                "type": "user"
                              }
                            },
                            "contacts": {
                              "data": [
                                {
                                  "id": "215",
                                  "type": "contact"
                                }
                              ]
                            },
                            "opportunities": {
                              "data": []
                            },
                            "companies": {
                              "data": []
                            },
                            "tickets": {
                              "data": []
                            }
                          }
                        }
                      ],
                      "included": [
                        {
                          "id": "215",
                          "type": "contact",
                          "attributes": {
                            "id": 215,
                            "first_name": "Madeleine",
                            "last_name": "King",
                            "created_at": "2026-09-01T09:57:39.014Z",
                            "updated_at": "2026-09-01T09:57:39.014Z",
                            "title": "dentist",
                            "phone": "517.075.0927",
                            "mobile_phone": "1-691-268-0574",
                            "home_phone": null,
                            "email": "madeleine@brekke-davis.test",
                            "description": null,
                            "custom": {},
                            "external_id": null,
                            "email_opt_out": false
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "454",
                                "type": "company"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1024",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "1024",
                          "type": "user",
                          "attributes": {
                            "id": 1024,
                            "first_name": "August",
                            "last_name": "Murazik",
                            "email": "august@johnson.test",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/notes": {
      "get": {
        "summary": "List notes",
        "tags": [
          "Notes"
        ],
        "description": "Returns list of all notes created in Spiro",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[contact_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Contact ID. Notes for contact"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "user"
            },
            "description": "Include user information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer me1gYyj9l8zZgfI-mLKo3k-N2FZfB_L6-IxsfSzb4Xc"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns notes": {
                    "summary": "returns notes",
                    "value": {
                      "data": [
                        {
                          "id": "179",
                          "type": "note",
                          "attributes": {
                            "id": 179,
                            "subject": "voluptas",
                            "description": "Voluptatem et necessitatibus repellendus.",
                            "interacted_at": "2026-09-01T09:57:39.193Z",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1041",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "180",
                          "type": "note",
                          "attributes": {
                            "id": 180,
                            "subject": "dolor",
                            "description": "Blanditiis suscipit est libero.",
                            "interacted_at": "2026-09-01T09:57:39.196Z",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1041",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "181",
                          "type": "note",
                          "attributes": {
                            "id": 181,
                            "subject": "voluptatem",
                            "description": "Minus suscipit provident deserunt.",
                            "interacted_at": "2026-09-01T09:57:39.198Z",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1041",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "182",
                          "type": "note",
                          "attributes": {
                            "id": 182,
                            "subject": "aut",
                            "description": "Et enim sed cum.",
                            "interacted_at": "2026-09-01T09:57:39.200Z",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1041",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "183",
                          "type": "note",
                          "attributes": {
                            "id": 183,
                            "subject": "voluptas",
                            "description": "Molestias corrupti possimus et.",
                            "interacted_at": "2026-09-01T09:57:39.203Z",
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1041",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create note",
        "tags": [
          "Notes"
        ],
        "description": "Creates a note populated with information from request body.\nNote datetime (`interacted_at`) will be set to current time unless provided.\nNote can be created for Contact, Company or Opportunity.\n",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer -Zq1h8QcmDnNTaeJA7g3gRTzz3ai8rJupVIXOqZEqJI"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates note for the company": {
                  "summary": "creates note for the company",
                  "value": {
                    "data": {
                      "attributes": {
                        "subject": "Subject",
                        "description": "Description",
                        "interacted_at": "2026-09-01T09:57:39Z"
                      },
                      "relationships": {
                        "owner": {
                          "data": {
                            "type": "company",
                            "id": 464
                          }
                        },
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1043
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates note for the company": {
                    "summary": "creates note for the company",
                    "value": {
                      "data": {
                        "id": "184",
                        "type": "note",
                        "attributes": {
                          "id": 184,
                          "subject": "Subject",
                          "description": "Description",
                          "interacted_at": "2026-09-01T09:57:39.000Z",
                          "custom": {},
                          "external_id": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1043",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/notes/{id}": {
      "put": {
        "summary": "Update note",
        "tags": [
          "Notes"
        ],
        "description": "Updates a specific note",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "185"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 8j-RVFHHeR07GRV1Nek5V-mQTqAbWbZJwHRH5cWviIk"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates note": {
                  "summary": "updates note",
                  "value": {
                    "data": {
                      "attributes": {
                        "subject": "New Subject",
                        "description": "New Description",
                        "interacted_at": "2026-08-30T09:57:39Z",
                        "custom": {
                          "float_field": "130.0",
                          "integer_field": "150"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates note": {
                    "summary": "updates note",
                    "value": {
                      "data": {
                        "id": "185",
                        "type": "note",
                        "attributes": {
                          "id": 185,
                          "subject": "New Subject",
                          "description": "New Description",
                          "interacted_at": "2026-08-30T09:57:39.000Z",
                          "custom": {
                            "string_field": null,
                            "date_field": null,
                            "float_field": "130.0",
                            "integer_field": "150",
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null
                          },
                          "external_id": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1044",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/sms_messages": {
      "get": {
        "summary": "List sms messages",
        "tags": [
          "Sms Messages"
        ],
        "description": "Returns list of sms messages sent or received through Spiro voice",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[contact_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Contact ID. SmsMessages for contact"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer CQtkKWrh7G7IQTl0_HQsrlRHiLpKw7FiGZWCQAIx-wI"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns sms messages": {
                    "summary": "returns sms messages",
                    "value": {
                      "data": [
                        {
                          "id": "186",
                          "type": "sms_message",
                          "attributes": {
                            "id": 186,
                            "created_at": "2026-09-01T09:57:40.604Z",
                            "sms_type": "outbound",
                            "subject": "est",
                            "description": "Labore consequatur sunt dolores.",
                            "interacted_at": "2026-09-01T09:57:40.603Z",
                            "is_read": false,
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "contact": {
                              "data": {
                                "id": "260",
                                "type": "contact"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1216",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "187",
                          "type": "sms_message",
                          "attributes": {
                            "id": 187,
                            "created_at": "2026-09-01T09:57:40.606Z",
                            "sms_type": "outbound",
                            "subject": "quia",
                            "description": "Alias et modi omnis.",
                            "interacted_at": "2026-09-01T09:57:40.605Z",
                            "is_read": true,
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "contact": {
                              "data": {
                                "id": "260",
                                "type": "contact"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1216",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "188",
                          "type": "sms_message",
                          "attributes": {
                            "id": 188,
                            "created_at": "2026-09-01T09:57:40.608Z",
                            "sms_type": "inbound",
                            "subject": "quis",
                            "description": "Totam accusamus aliquam asperiores.",
                            "interacted_at": "2026-09-01T09:57:40.607Z",
                            "is_read": true,
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "contact": {
                              "data": {
                                "id": "260",
                                "type": "contact"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1216",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "189",
                          "type": "sms_message",
                          "attributes": {
                            "id": 189,
                            "created_at": "2026-09-01T09:57:40.610Z",
                            "sms_type": "outbound",
                            "subject": "repellendus",
                            "description": "Culpa aliquid quaerat neque.",
                            "interacted_at": "2026-09-01T09:57:40.609Z",
                            "is_read": false,
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "contact": {
                              "data": {
                                "id": "260",
                                "type": "contact"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1216",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "190",
                          "type": "sms_message",
                          "attributes": {
                            "id": 190,
                            "created_at": "2026-09-01T09:57:40.612Z",
                            "sms_type": "inbound",
                            "subject": "enim",
                            "description": "Et laborum qui quibusdam.",
                            "interacted_at": "2026-09-01T09:57:40.611Z",
                            "is_read": true,
                            "custom": {},
                            "external_id": null
                          },
                          "relationships": {
                            "contact": {
                              "data": {
                                "id": "260",
                                "type": "contact"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1216",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/opportunities/{opportunity_id}/contacts": {
      "post": {
        "summary": "Add contacts",
        "tags": [
          "Opportunities"
        ],
        "description": "Add contacts, denoted by ID number in the request body, to a specific opportunity",
        "parameters": [
          {
            "name": "opportunity_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "113"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer lH_0KrKKIfQkX_-Hz05PeDPllmCE3VYLmMJYLzQmY7E"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "adds contacts to the opportunity": {
                  "summary": "adds contacts to the opportunity",
                  "value": {
                    "data": {
                      "relationships": {
                        "contacts": {
                          "data": [
                            {
                              "type": "contact",
                              "id": 226
                            },
                            {
                              "type": "contact",
                              "id": 227
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Remove contacts",
        "tags": [
          "Opportunities"
        ],
        "description": "Removes contacts, denoted by ID number in the request body, from a specific opportunity",
        "parameters": [
          {
            "name": "opportunity_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "114"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer JcICnzGS2r4eOwvXeebLAVgvHyzpT5obrfsmfibZhX8"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "removes contacts from the opportunity": {
                  "summary": "removes contacts from the opportunity",
                  "value": {
                    "data": {
                      "relationships": {
                        "contacts": {
                          "data": [
                            {
                              "type": "contact",
                              "id": 228
                            },
                            {
                              "type": "contact",
                              "id": 229
                            },
                            {
                              "type": "contact",
                              "id": 230
                            },
                            {
                              "type": "contact",
                              "id": 231
                            },
                            {
                              "type": "contact",
                              "id": 232
                            },
                            {
                              "type": "contact",
                              "id": 233
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/opportunities": {
      "get": {
        "summary": "List opportunities",
        "tags": [
          "Opportunities"
        ],
        "description": "Returns a list of all opportunities",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[opened]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Filter opened/closed records. Should be 1 or 0"
          },
          {
            "name": "filter[won]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Filter won/lost records. Should be 1 or 0"
          },
          {
            "name": "filter[contact_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Contact ID. Filter opportunities where contact is assigned"
          },
          {
            "name": "filter[company_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Company ID. Filter opportunities with company"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "user,company"
            },
            "description": "Include related records information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer WD4SOm7Cyalzr0s6x3Ye71VKS2rGHYE6WDCdcz8JW_Q"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of opportunities": {
                    "summary": "returns a list of opportunities",
                    "value": {
                      "data": [
                        {
                          "id": "117",
                          "type": "opportunity",
                          "attributes": {
                            "id": 117,
                            "name": "Ernser-Lueilwitz",
                            "close_at": "2026-09-26",
                            "amount": "6236.41",
                            "updated_at": "2026-09-01T09:57:39.426Z",
                            "description": "Shoes & Automotive",
                            "custom": {},
                            "external_id": null,
                            "currency": null,
                            "created_at": "2026-09-01T09:57:39.426Z"
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "478",
                                "type": "company"
                              }
                            },
                            "pipeline": {
                              "data": {
                                "id": "126",
                                "type": "pipeline"
                              }
                            },
                            "opportunity_stage": {
                              "data": {
                                "id": "367",
                                "type": "opportunity_stage"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1061",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "116",
                          "type": "opportunity",
                          "attributes": {
                            "id": 116,
                            "name": "Kris, Jast and Hilpert",
                            "close_at": "2026-09-17",
                            "amount": "6353.65",
                            "updated_at": "2026-09-01T09:57:39.417Z",
                            "description": "Sports",
                            "custom": {},
                            "external_id": null,
                            "currency": null,
                            "created_at": "2026-09-01T09:57:39.418Z"
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "477",
                                "type": "company"
                              }
                            },
                            "pipeline": {
                              "data": {
                                "id": "125",
                                "type": "pipeline"
                              }
                            },
                            "opportunity_stage": {
                              "data": {
                                "id": "364",
                                "type": "opportunity_stage"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1061",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create opportunity",
        "tags": [
          "Opportunities"
        ],
        "description": "Creates opportunity populated with information from request body",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer KJYCQ8jOciO8ZFUL7k3-ICy5NPyuNbUmbhcbZmbTExA"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates opportunity": {
                  "summary": "creates opportunity",
                  "value": {
                    "data": {
                      "attributes": {
                        "name": "Shanahan Inc",
                        "amount": 7305.28,
                        "close_at": "2026-09-04",
                        "description": "Description",
                        "custom": {
                          "date_field": "2026-09-01T09:57:39Z"
                        }
                      },
                      "relationships": {
                        "company": {
                          "data": {
                            "type": "company",
                            "id": 480
                          }
                        },
                        "pipeline": {
                          "data": {
                            "type": "pipeline",
                            "id": 128
                          }
                        },
                        "opportunity_stage": {
                          "data": {
                            "type": "opportunity_stage",
                            "id": 373
                          }
                        },
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1067
                          }
                        }
                      }
                    }
                  }
                },
                "validates company, pipeline and opportunity stage presence": {
                  "summary": "validates company, pipeline and opportunity stage presence",
                  "value": {
                    "data": {
                      "attributes": {
                        "name": "Weissnat-Mills",
                        "amount": 3912.27
                      }
                    }
                  }
                }
              },
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "attributes",
                      "relationships"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "opportunity"
                      },
                      "attributes": {
                        "type": "object",
                        "required": [
                          "name"
                        ],
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Opportunity name",
                            "example": "General Motors"
                          },
                          "amount": {
                            "type": "number",
                            "description": "Opportunity amount",
                            "example": 10000
                          },
                          "close_at": {
                            "type": "string",
                            "format": "date-time",
                            "description": "An ISO 8601 estimated close date. Default is 1 month from now",
                            "example": "2019-06-25T08:35:17Z"
                          }
                        }
                      },
                      "relationships": {
                        "type": "object",
                        "required": [
                          "company",
                          "pipeline",
                          "opportunity_stage"
                        ],
                        "properties": {
                          "company": {
                            "type": "object",
                            "description": "Associated company",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "company"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the company",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          },
                          "pipeline": {
                            "type": "object",
                            "description": "Associated pipeline",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "pipeline"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the pipeline",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          },
                          "opportunity_stage": {
                            "type": "object",
                            "description": "Associated opportunity stage",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "opportunity_stage"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the opportunity stage",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          },
                          "user": {
                            "type": "object",
                            "description": "User the opportunity should be assigned to (optional, defaults to current user)",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "user"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the user",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates opportunity": {
                    "summary": "creates opportunity",
                    "value": {
                      "data": {
                        "id": "119",
                        "type": "opportunity",
                        "attributes": {
                          "id": 119,
                          "name": "Shanahan Inc",
                          "close_at": "2026-09-04",
                          "amount": "7305.28",
                          "updated_at": "2026-09-01T09:57:39.468Z",
                          "description": "Description",
                          "custom": {
                            "string_field": null,
                            "date_field": "2026-09-01",
                            "float_field": null,
                            "integer_field": null,
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null
                          },
                          "external_id": null,
                          "currency": null,
                          "created_at": "2026-09-01T09:57:39.468Z"
                        },
                        "relationships": {
                          "company": {
                            "data": {
                              "id": "480",
                              "type": "company"
                            }
                          },
                          "pipeline": {
                            "data": {
                              "id": "128",
                              "type": "pipeline"
                            }
                          },
                          "opportunity_stage": {
                            "data": {
                              "id": "373",
                              "type": "opportunity_stage"
                            }
                          },
                          "user": {
                            "data": {
                              "id": "1067",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "validates company, pipeline and opportunity stage presence": {
                    "summary": "validates company, pipeline and opportunity stage presence",
                    "value": {
                      "errors": [
                        {
                          "status": 422,
                          "source": {
                            "parameter": "company_id"
                          },
                          "detail": "Please enter the Company"
                        },
                        {
                          "status": 422,
                          "source": {
                            "parameter": "company_id"
                          },
                          "detail": "Plase enter a valid Company"
                        },
                        {
                          "status": 422,
                          "source": {
                            "parameter": "pipeline_id"
                          },
                          "detail": "Please enter the Pipeline"
                        },
                        {
                          "status": 422,
                          "source": {
                            "parameter": "pipeline_id"
                          },
                          "detail": "Plase enter a valid Pipeline"
                        },
                        {
                          "status": 422,
                          "source": {
                            "parameter": "opportunity_stage_id"
                          },
                          "detail": "Please enter the Opportunity stage"
                        },
                        {
                          "status": 422,
                          "source": {
                            "parameter": "opportunity_stage_id"
                          },
                          "detail": "Plase enter a valid Opportunity stage"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/opportunities/{id}": {
      "get": {
        "summary": "Get opportunity",
        "tags": [
          "Opportunities"
        ],
        "description": "Returns information about a specific opportunity",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "118"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer fai_NrVvg9BW49Io251vVRcNpTjn4YBn4Um2mAWauTs"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns opportunity": {
                    "summary": "returns opportunity",
                    "value": {
                      "data": {
                        "id": "118",
                        "type": "opportunity",
                        "attributes": {
                          "id": 118,
                          "name": "Langosh and Sons",
                          "close_at": "2026-09-03",
                          "amount": "4075.59",
                          "updated_at": "2026-09-01T09:57:39.444Z",
                          "description": "Kids",
                          "custom": {},
                          "external_id": null,
                          "currency": null,
                          "created_at": "2026-08-30T09:57:39.437Z"
                        },
                        "relationships": {
                          "company": {
                            "data": {
                              "id": "479",
                              "type": "company"
                            }
                          },
                          "pipeline": {
                            "data": {
                              "id": "127",
                              "type": "pipeline"
                            }
                          },
                          "opportunity_stage": {
                            "data": {
                              "id": "370",
                              "type": "opportunity_stage"
                            }
                          },
                          "user": {
                            "data": {
                              "id": "1064",
                              "type": "user"
                            }
                          }
                        }
                      },
                      "included": [
                        {
                          "id": "479",
                          "type": "company",
                          "attributes": {
                            "id": 479,
                            "name": "Borer Group",
                            "website": "simonis-oconner.example",
                            "address": "315 Rosenbaum Cliffs",
                            "city": "Emmittfort",
                            "zipcode": "37865",
                            "parent_id": null,
                            "country": "Swaziland",
                            "state": "Rhode Island",
                            "phone": "1-454-585-2986",
                            "description": "Programmable homogeneous encoding",
                            "custom": {},
                            "created_at": "2026-09-01T09:57:39.441Z",
                            "updated_at": "2026-09-01T09:57:39.441Z",
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1065",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "1064",
                          "type": "user",
                          "attributes": {
                            "id": 1064,
                            "first_name": "Mindy",
                            "last_name": "DuBuque",
                            "email": "mindy@abbott.test",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update opportunity",
        "tags": [
          "Opportunities"
        ],
        "description": "Updates a specific opportunity with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "120"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 5QiOIkNfGK7NYW8rPqCY-HRXxsLrVOAo_uyJGeJPOGA"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates opportunity": {
                  "summary": "updates opportunity",
                  "value": {
                    "data": {
                      "attributes": {
                        "name": "Fritsch-Mayer",
                        "custom": {
                          "date_field": "2026-09-01T09:57:39Z"
                        }
                      },
                      "relationships": {
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1070
                          }
                        },
                        "opportunity_stage": {
                          "data": {
                            "id": 375
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates opportunity": {
                    "summary": "updates opportunity",
                    "value": {
                      "data": {
                        "id": "120",
                        "type": "opportunity",
                        "attributes": {
                          "id": 120,
                          "name": "Fritsch-Mayer",
                          "close_at": "2026-09-01",
                          "amount": "8803.24",
                          "updated_at": "2026-09-01T09:57:39.501Z",
                          "description": "Outdoors, Clothing & Tools",
                          "custom": {
                            "string_field": null,
                            "date_field": "2026-09-01",
                            "float_field": null,
                            "integer_field": null,
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null
                          },
                          "external_id": null,
                          "currency": null,
                          "created_at": "2026-09-01T09:57:39.487Z"
                        },
                        "relationships": {
                          "company": {
                            "data": {
                              "id": "481",
                              "type": "company"
                            }
                          },
                          "pipeline": {
                            "data": {
                              "id": "129",
                              "type": "pipeline"
                            }
                          },
                          "opportunity_stage": {
                            "data": {
                              "id": "375",
                              "type": "opportunity_stage"
                            }
                          },
                          "user": {
                            "data": {
                              "id": "1070",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete opportunity",
        "tags": [
          "Opportunities"
        ],
        "description": "Deletes a specific opportunity",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "121"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer -00SJDR7e7Rn50V0mq9IKEmnKyjYC2xZXDTrMGDA1gs"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/pipelines/{pipeline_id}/opportunity_stages": {
      "get": {
        "summary": "List opportunity stages for pipeline",
        "tags": [
          "Opportunity Stages"
        ],
        "description": "Returns list of opportunity stages associated with a specific pipeline",
        "parameters": [
          {
            "name": "pipeline_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "131"
          },
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer LPDRIW0OwcxUSHgCsxEMM_NYD0tFMgOvaEP0q0gf0HE"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of opportunity stages": {
                    "summary": "returns a list of opportunity stages",
                    "value": {
                      "data": [
                        {
                          "id": "379",
                          "type": "opportunity_stage",
                          "attributes": {
                            "id": 379,
                            "name": "Stage 37",
                            "is_closed": false,
                            "is_won": false,
                            "is_active": true,
                            "index": 1,
                            "created_at": "2026-09-01T09:57:39.544Z"
                          },
                          "relationships": {
                            "pipeline": {
                              "data": {
                                "id": "131",
                                "type": "pipeline"
                              }
                            }
                          }
                        },
                        {
                          "id": "380",
                          "type": "opportunity_stage",
                          "attributes": {
                            "id": 380,
                            "name": "Stage 38",
                            "is_closed": true,
                            "is_won": true,
                            "is_active": true,
                            "index": 2,
                            "created_at": "2026-09-01T09:57:39.544Z"
                          },
                          "relationships": {
                            "pipeline": {
                              "data": {
                                "id": "131",
                                "type": "pipeline"
                              }
                            }
                          }
                        },
                        {
                          "id": "381",
                          "type": "opportunity_stage",
                          "attributes": {
                            "id": 381,
                            "name": "Stage 39",
                            "is_closed": true,
                            "is_won": false,
                            "is_active": true,
                            "index": 3,
                            "created_at": "2026-09-01T09:57:39.545Z"
                          },
                          "relationships": {
                            "pipeline": {
                              "data": {
                                "id": "131",
                                "type": "pipeline"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/pipelines": {
      "get": {
        "summary": "List pipelines",
        "tags": [
          "Pipelines"
        ],
        "description": "Returns list of all pipelines",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer rCPFPd4cgF97TyOIWImtCtoF9kLVKL6vPLhLyczh_hQ"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of pipelines": {
                    "summary": "returns a list of pipelines",
                    "value": {
                      "data": [
                        {
                          "id": "133",
                          "type": "pipeline",
                          "attributes": {
                            "id": 133,
                            "name": "Pipeline 16",
                            "is_active": true,
                            "index": 0
                          },
                          "relationships": {
                            "opportunity_stages": {
                              "data": [
                                {
                                  "id": "385",
                                  "type": "opportunity_stage"
                                },
                                {
                                  "id": "386",
                                  "type": "opportunity_stage"
                                },
                                {
                                  "id": "387",
                                  "type": "opportunity_stage"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "id": "132",
                          "type": "pipeline",
                          "attributes": {
                            "id": 132,
                            "name": "Pipeline 15",
                            "is_active": true,
                            "index": 0
                          },
                          "relationships": {
                            "opportunity_stages": {
                              "data": [
                                {
                                  "id": "382",
                                  "type": "opportunity_stage"
                                },
                                {
                                  "id": "383",
                                  "type": "opportunity_stage"
                                },
                                {
                                  "id": "384",
                                  "type": "opportunity_stage"
                                }
                              ]
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/products": {
      "get": {
        "summary": "List products",
        "tags": [
          "Products"
        ],
        "description": "Returns a list of all products",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "billing_frequency,unit_type"
            },
            "description": "Include related records information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer lV9uit93hAaBFQxzNFFxe0KtimFrm0Wsh3wXZcjmGDk"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of products": {
                    "summary": "returns a list of products",
                    "value": {
                      "data": [
                        {
                          "id": "16",
                          "type": "product",
                          "attributes": {
                            "id": 16,
                            "name": "mollitia",
                            "description": null,
                            "external_id": null,
                            "code": null,
                            "unit_price": null,
                            "unit_cost": null,
                            "custom": {},
                            "created_at": "2026-09-01T09:57:39.583Z",
                            "updated_at": "2026-09-01T09:57:39.583Z",
                            "taxable": false,
                            "margin": null
                          },
                          "relationships": {
                            "billing_frequency": {
                              "data": null
                            },
                            "unit_type": {
                              "data": null
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create product",
        "tags": [
          "Products"
        ],
        "description": "Creates product populated with information from request body",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer k-WJmNX_2oJo_i9KVlrWoxCjpAH63TsYcz-JSK4I_v0"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates product": {
                  "summary": "creates product",
                  "value": {
                    "data": {
                      "attributes": {
                        "name": "Product"
                      },
                      "relationships": {
                        "billing_frequency": {
                          "data": {
                            "type": "billing_frequency",
                            "id": 4
                          }
                        },
                        "unit_type": {
                          "data": {
                            "type": "unit_type",
                            "id": 4
                          }
                        }
                      }
                    }
                  }
                }
              },
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "attributes"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "product"
                      },
                      "attributes": {
                        "type": "object",
                        "required": [
                          "name"
                        ],
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Product name",
                            "example": "Standard Widget"
                          },
                          "discount_amount": {
                            "type": "number",
                            "description": "Default discount amount applied to the product",
                            "example": 10
                          }
                        }
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "billing_frequency": {
                            "type": "object",
                            "description": "Billing frequency for the product (use GET /api/v1/billing_frequencies to list)",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "billing_frequency"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the billing frequency",
                                    "example": "1"
                                  }
                                }
                              }
                            }
                          },
                          "unit_type": {
                            "type": "object",
                            "description": "Unit type for the product (use GET /api/v1/unit_types to list)",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "unit_type"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the unit type",
                                    "example": "1"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates product": {
                    "summary": "creates product",
                    "value": {
                      "data": {
                        "id": "18",
                        "type": "product",
                        "attributes": {
                          "id": 18,
                          "name": "Product",
                          "description": null,
                          "external_id": null,
                          "code": null,
                          "unit_price": null,
                          "unit_cost": null,
                          "custom": {},
                          "created_at": "2026-09-01T09:57:39.621Z",
                          "updated_at": "2026-09-01T09:57:39.621Z",
                          "taxable": false,
                          "margin": null
                        },
                        "relationships": {
                          "billing_frequency": {
                            "data": {
                              "id": "4",
                              "type": "billing_frequency"
                            }
                          },
                          "unit_type": {
                            "data": {
                              "id": "4",
                              "type": "unit_type"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/products/{id}": {
      "get": {
        "summary": "Get product",
        "tags": [
          "Products"
        ],
        "description": "Returns information about a specific product",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "17"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 19IbZxL297NEpiRzyFVxGgZl1z68ZxdpJ3J50YqinzM"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns product": {
                    "summary": "returns product",
                    "value": {
                      "data": {
                        "id": "17",
                        "type": "product",
                        "attributes": {
                          "id": 17,
                          "name": "dolor",
                          "description": null,
                          "external_id": null,
                          "code": null,
                          "unit_price": null,
                          "unit_cost": null,
                          "custom": {},
                          "created_at": "2026-09-01T09:57:39.595Z",
                          "updated_at": "2026-09-01T09:57:39.595Z",
                          "taxable": false,
                          "margin": null
                        },
                        "relationships": {
                          "billing_frequency": {
                            "data": null
                          },
                          "unit_type": {
                            "data": null
                          }
                        }
                      },
                      "included": []
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update product",
        "tags": [
          "Products"
        ],
        "description": "Updates a specific product with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "19"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer uJzsfU7IgNagvdeTNdZG8cQwVBgTHZtx9wYq0Y8nA-U"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates product": {
                  "summary": "updates product",
                  "value": {
                    "data": {
                      "attributes": {
                        "name": "Product 2"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates product": {
                    "summary": "updates product",
                    "value": {
                      "data": {
                        "id": "19",
                        "type": "product",
                        "attributes": {
                          "id": 19,
                          "name": "Product 2",
                          "description": null,
                          "external_id": null,
                          "code": null,
                          "unit_price": null,
                          "unit_cost": null,
                          "custom": {},
                          "created_at": "2026-09-01T09:57:39.625Z",
                          "updated_at": "2026-09-01T09:57:39.630Z",
                          "taxable": false,
                          "margin": null
                        },
                        "relationships": {
                          "billing_frequency": {
                            "data": null
                          },
                          "unit_type": {
                            "data": null
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete product",
        "tags": [
          "Products"
        ],
        "description": "Deletes a specific product",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "20"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer tSlp9YfjeRHpnL7tIaVRGyRYRvofFeiSlEEzqeXv9v8"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/reminders": {
      "get": {
        "summary": "List reminders",
        "tags": [
          "Reminders"
        ],
        "description": "Returns list of all reminders",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "user"
            },
            "description": "Include user information in the response"
          },
          {
            "name": "filter[contact_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Contact ID. Filter contact reminders"
          },
          {
            "name": "filter[company_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Company ID. Filter company reminders (including company contacts reminders)"
          },
          {
            "name": "filter[opportunity_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Opportunity ID. Filter opportunity reminders"
          },
          {
            "name": "filter[user_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "User ID. Filter user reminders"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer uH7Y5DNZEEXYZ689Nf2G_5RCkO41WJiOAFjAaG4JYkI"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of reminders": {
                    "summary": "returns a list of reminders",
                    "value": {
                      "data": [
                        {
                          "id": "32",
                          "type": "reminder",
                          "attributes": {
                            "id": 32,
                            "reason": "Call him",
                            "description": "We should close that deal",
                            "created_at": "2026-09-01T09:57:39.682Z",
                            "done_at": null,
                            "remind_me_at": "2026-09-01T09:57:39.682Z",
                            "remind_me": false,
                            "custom": {}
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1080",
                                "type": "user"
                              }
                            },
                            "contact": {
                              "data": {
                                "id": "235",
                                "type": "contact"
                              }
                            },
                            "company": {
                              "data": null
                            },
                            "opportunity": {
                              "data": null
                            }
                          }
                        },
                        {
                          "id": "31",
                          "type": "reminder",
                          "attributes": {
                            "id": 31,
                            "reason": "Call him",
                            "description": "We should close that deal",
                            "created_at": "2026-09-01T09:57:39.672Z",
                            "done_at": null,
                            "remind_me_at": "2026-09-01T09:57:39.671Z",
                            "remind_me": false,
                            "custom": {}
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1080",
                                "type": "user"
                              }
                            },
                            "contact": {
                              "data": {
                                "id": "234",
                                "type": "contact"
                              }
                            },
                            "company": {
                              "data": null
                            },
                            "opportunity": {
                              "data": null
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create reminder",
        "tags": [
          "Reminders"
        ],
        "description": "Creates a reminder populated with information from request body",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer qbcE2p40jPa5T0l9QWZgWJq6QIWloXF1EeYBswlHcDc"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates reminder for the contact": {
                  "summary": "creates reminder for the contact",
                  "value": {
                    "data": {
                      "attributes": {
                        "remind_me_at": "2026-09-03T09:57:39Z",
                        "reason": "Schedule meeting",
                        "remind_me": true,
                        "custom": {
                          "schedule": "week"
                        }
                      },
                      "relationships": {
                        "contact": {
                          "data": {
                            "type": "contact",
                            "id": 237
                          }
                        }
                      }
                    }
                  }
                },
                "creates reminder for other user": {
                  "summary": "creates reminder for other user",
                  "value": {
                    "data": {
                      "attributes": {
                        "remind_me_at": "2026-09-03T09:57:39Z",
                        "reason": "Schedule meeting",
                        "remind_me": true
                      },
                      "relationships": {
                        "contact": {
                          "data": {
                            "type": "contact",
                            "id": 238
                          }
                        },
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1091
                          }
                        }
                      }
                    }
                  }
                },
                "creates reminder for the opportunity": {
                  "summary": "creates reminder for the opportunity",
                  "value": {
                    "data": {
                      "attributes": {
                        "remind_me_at": "2026-09-03T09:57:39Z",
                        "reason": "Schedule meeting",
                        "remind_me": true
                      },
                      "relationships": {
                        "opportunity": {
                          "data": {
                            "type": "opportunity",
                            "id": 122
                          }
                        }
                      }
                    }
                  }
                },
                "creates reminder for the company": {
                  "summary": "creates reminder for the company",
                  "value": {
                    "data": {
                      "attributes": {
                        "remind_me_at": "2026-09-03T09:57:39Z",
                        "reason": "Schedule meeting",
                        "remind_me": true
                      },
                      "relationships": {
                        "company": {
                          "data": {
                            "type": "company",
                            "id": 489
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates reminder for the contact": {
                    "summary": "creates reminder for the contact",
                    "value": {
                      "data": {
                        "id": "34",
                        "type": "reminder",
                        "attributes": {
                          "id": 34,
                          "reason": "Schedule meeting",
                          "description": null,
                          "created_at": "2026-09-01T09:57:39.724Z",
                          "done_at": null,
                          "remind_me_at": "2026-09-03T09:57:39.000Z",
                          "remind_me": true,
                          "custom": {
                            "schedule": "week"
                          }
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1087",
                              "type": "user"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "237",
                              "type": "contact"
                            }
                          },
                          "company": {
                            "data": null
                          },
                          "opportunity": {
                            "data": null
                          }
                        }
                      }
                    }
                  },
                  "creates reminder for other user": {
                    "summary": "creates reminder for other user",
                    "value": {
                      "data": {
                        "id": "35",
                        "type": "reminder",
                        "attributes": {
                          "id": 35,
                          "reason": "Schedule meeting",
                          "description": null,
                          "created_at": "2026-09-01T09:57:39.742Z",
                          "done_at": null,
                          "remind_me_at": "2026-09-03T09:57:39.000Z",
                          "remind_me": true,
                          "custom": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1091",
                              "type": "user"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "238",
                              "type": "contact"
                            }
                          },
                          "company": {
                            "data": null
                          },
                          "opportunity": {
                            "data": null
                          }
                        }
                      }
                    }
                  },
                  "creates reminder for the opportunity": {
                    "summary": "creates reminder for the opportunity",
                    "value": {
                      "data": {
                        "id": "36",
                        "type": "reminder",
                        "attributes": {
                          "id": 36,
                          "reason": "Schedule meeting",
                          "description": null,
                          "created_at": "2026-09-01T09:57:39.761Z",
                          "done_at": null,
                          "remind_me_at": "2026-09-03T09:57:39.000Z",
                          "remind_me": true,
                          "custom": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1092",
                              "type": "user"
                            }
                          },
                          "contact": {
                            "data": null
                          },
                          "company": {
                            "data": null
                          },
                          "opportunity": {
                            "data": {
                              "id": "122",
                              "type": "opportunity"
                            }
                          }
                        }
                      }
                    }
                  },
                  "creates reminder for the company": {
                    "summary": "creates reminder for the company",
                    "value": {
                      "data": {
                        "id": "37",
                        "type": "reminder",
                        "attributes": {
                          "id": 37,
                          "reason": "Schedule meeting",
                          "description": null,
                          "created_at": "2026-09-01T09:57:39.774Z",
                          "done_at": null,
                          "remind_me_at": "2026-09-03T09:57:39.000Z",
                          "remind_me": true,
                          "custom": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1094",
                              "type": "user"
                            }
                          },
                          "contact": {
                            "data": null
                          },
                          "company": {
                            "data": {
                              "id": "489",
                              "type": "company"
                            }
                          },
                          "opportunity": {
                            "data": null
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/reminders/{id}": {
      "get": {
        "summary": "Show reminder",
        "tags": [
          "Reminders"
        ],
        "description": "Returns information about a specific reminder",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "33"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer NRSICf8X0qTkjKKU9lF3kvkxM_LjDvQyaPVSICdPStU"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns reminder": {
                    "summary": "returns reminder",
                    "value": {
                      "data": {
                        "id": "33",
                        "type": "reminder",
                        "attributes": {
                          "id": 33,
                          "reason": "Call him",
                          "description": "We should close that deal",
                          "created_at": "2026-09-01T09:57:39.702Z",
                          "done_at": null,
                          "remind_me_at": "2026-09-01T09:57:39.702Z",
                          "remind_me": false,
                          "custom": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1085",
                              "type": "user"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "236",
                              "type": "contact"
                            }
                          },
                          "company": {
                            "data": null
                          },
                          "opportunity": {
                            "data": null
                          }
                        }
                      },
                      "included": [
                        {
                          "id": "1085",
                          "type": "user",
                          "attributes": {
                            "id": 1085,
                            "first_name": "Joesph",
                            "last_name": "Brekke",
                            "email": "joesph@kovacek.example",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update reminder",
        "tags": [
          "Reminders"
        ],
        "description": "Updates a reminder with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "38"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer LSYKAEsxjyPXYVYnzISp9amCJeMGjHl03u6ntA22S2Y"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates reminder": {
                  "summary": "updates reminder",
                  "value": {
                    "data": {
                      "attributes": {
                        "remind_me_at": "2026-09-08T09:57:39Z"
                      }
                    }
                  }
                },
                "marks reminder as DONE": {
                  "summary": "marks reminder as DONE",
                  "value": {
                    "data": {
                      "attributes": {
                        "done_at": "2026-09-01T09:57:39Z"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates reminder": {
                    "summary": "updates reminder",
                    "value": {
                      "data": {
                        "id": "38",
                        "type": "reminder",
                        "attributes": {
                          "id": 38,
                          "reason": "Call him",
                          "description": "We should close that deal",
                          "created_at": "2026-09-01T09:57:39.785Z",
                          "done_at": null,
                          "remind_me_at": "2026-09-08T09:57:39.000Z",
                          "remind_me": false,
                          "custom": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1095",
                              "type": "user"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "239",
                              "type": "contact"
                            }
                          },
                          "company": {
                            "data": null
                          },
                          "opportunity": {
                            "data": null
                          }
                        }
                      }
                    }
                  },
                  "marks reminder as DONE": {
                    "summary": "marks reminder as DONE",
                    "value": {
                      "data": {
                        "id": "39",
                        "type": "reminder",
                        "attributes": {
                          "id": 39,
                          "reason": "Call him",
                          "description": "We should close that deal",
                          "created_at": "2026-09-01T09:57:39.803Z",
                          "done_at": "2026-09-01T09:57:39.000Z",
                          "remind_me_at": "2026-09-01T09:57:39.803Z",
                          "remind_me": false,
                          "custom": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1097",
                              "type": "user"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "240",
                              "type": "contact"
                            }
                          },
                          "company": {
                            "data": null
                          },
                          "opportunity": {
                            "data": null
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete reminder",
        "tags": [
          "Reminders"
        ],
        "description": "Deletes a specific reminder",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "40"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer tjLnowgtDun5nq1-gJRfqEIioYhBF2tGI_AXEBduoF0"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/sales_invoices/{sales_invoice_id}/sales_invoice_items": {
      "get": {
        "summary": "List sales invoice items",
        "tags": [
          "SalesInvoiceItems"
        ],
        "description": "Returns a list of all sales invoice items",
        "parameters": [
          {
            "name": "sales_invoice_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "31"
          },
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "sales_invoice"
            },
            "description": "Include related records information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer PnQHumecY7gtuHlIBJaf2yb7bDTbi3gC1s1L5C6oEFE"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of sales invoice items": {
                    "summary": "returns a list of sales invoice items",
                    "value": {
                      "data": [
                        {
                          "id": "16",
                          "type": "sales_invoice_item",
                          "attributes": {
                            "id": 16,
                            "item_id": "8656875300",
                            "quantity": null,
                            "unit_price": null,
                            "unit_cost": null,
                            "total": null,
                            "external_id": null,
                            "part_number": null,
                            "code": null,
                            "description": null,
                            "uom": null,
                            "created_at": "2026-09-01T09:57:39.879Z"
                          },
                          "relationships": {
                            "sales_invoice": {
                              "data": {
                                "id": "31",
                                "type": "sales_invoice"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create sales invoice item",
        "tags": [
          "SalesInvoiceItems"
        ],
        "description": "Creates sales invoice item populated with information from request body",
        "parameters": [
          {
            "name": "sales_invoice_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "33"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer Uw8gxzHoROmkql5t8kJKttnNfqUtK-dsLbmbJ6MHwlM"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates sales invoice item": {
                  "summary": "creates sales invoice item",
                  "value": {
                    "data": {
                      "attributes": {
                        "item_id": 15,
                        "code": "1234"
                      },
                      "relationships": {
                        "sales_invoice": {
                          "data": {
                            "type": "sales_invoice",
                            "id": 33
                          }
                        }
                      }
                    }
                  }
                }
              },
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "attributes"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "sales_invoice_item"
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "description": "External item identifier",
                            "example": "SKU-100"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates sales invoice item": {
                    "summary": "creates sales invoice item",
                    "value": {
                      "data": {
                        "id": "18",
                        "type": "sales_invoice_item",
                        "attributes": {
                          "id": 18,
                          "item_id": "15",
                          "quantity": null,
                          "unit_price": null,
                          "unit_cost": null,
                          "total": null,
                          "external_id": null,
                          "part_number": null,
                          "code": "1234",
                          "description": null,
                          "uom": null,
                          "created_at": "2026-09-01T09:57:39.951Z"
                        },
                        "relationships": {
                          "sales_invoice": {
                            "data": {
                              "id": "33",
                              "type": "sales_invoice"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/sales_invoices/{sales_invoice_id}/sales_invoice_items/{id}": {
      "get": {
        "summary": "Get sales invoice item",
        "tags": [
          "SalesInvoiceItems"
        ],
        "description": "Returns information about a specific sales invoice item",
        "parameters": [
          {
            "name": "sales_invoice_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "32"
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "17"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 39KhMIrr1tuPVCH13aq9QIRo-6sjalvSw9KWfdDwP5U"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns sales invoice item": {
                    "summary": "returns sales invoice item",
                    "value": {
                      "data": {
                        "id": "17",
                        "type": "sales_invoice_item",
                        "attributes": {
                          "id": 17,
                          "item_id": "2683397392",
                          "quantity": null,
                          "unit_price": null,
                          "unit_cost": null,
                          "total": null,
                          "external_id": null,
                          "part_number": null,
                          "code": null,
                          "description": null,
                          "uom": null,
                          "created_at": "2026-09-01T09:57:39.914Z"
                        },
                        "relationships": {
                          "sales_invoice": {
                            "data": {
                              "id": "32",
                              "type": "sales_invoice"
                            }
                          }
                        }
                      },
                      "included": [
                        {
                          "id": "32",
                          "type": "sales_invoice",
                          "attributes": {
                            "id": 32,
                            "number": "molestiae",
                            "status": null,
                            "description": null,
                            "external_id": null,
                            "customer_po": null,
                            "total": 0.0,
                            "net_total": 0.0,
                            "bill_to_address1": null,
                            "bill_to_address2": null,
                            "bill_to_city": null,
                            "bill_to_state": null,
                            "bill_to_zipcode": null,
                            "bill_to_country": null,
                            "ship_to_address1": null,
                            "ship_to_address2": null,
                            "ship_to_city": null,
                            "ship_to_state": null,
                            "ship_to_zipcode": null,
                            "ship_to_country": null,
                            "invoice_date": "2026-09-01",
                            "due_date": null,
                            "margin_percent": 0.0,
                            "margin_amount": 0.0,
                            "tax": 0.0,
                            "freight": 0.0,
                            "shipping": 0.0,
                            "custom": {},
                            "created_at": "2026-09-01T09:57:39.912Z",
                            "owner_name": null,
                            "customer_number": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1107",
                                "type": "user"
                              }
                            },
                            "company": {
                              "data": {
                                "id": "496",
                                "type": "company"
                              }
                            },
                            "contact": {
                              "data": {
                                "id": "243",
                                "type": "contact"
                              }
                            },
                            "opportunity": {
                              "data": {
                                "id": "124",
                                "type": "opportunity"
                              }
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update sales invoice item",
        "tags": [
          "SalesInvoiceItems"
        ],
        "description": "Updates a specific sales invoice item with information from request body",
        "parameters": [
          {
            "name": "sales_invoice_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "34"
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "19"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer GqDTXW8d6O8hS38o4_hecKxat36aTRDEaF15IOIcL1U"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates sales invoice items": {
                  "summary": "updates sales invoice items",
                  "value": {
                    "data": {
                      "attributes": {
                        "external_id": "4f73e7f4-1ea3-4c14-bce9-0c68745f982e"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates sales invoice items": {
                    "summary": "updates sales invoice items",
                    "value": {
                      "data": {
                        "id": "19",
                        "type": "sales_invoice_item",
                        "attributes": {
                          "id": 19,
                          "item_id": "8676259136",
                          "quantity": null,
                          "unit_price": null,
                          "unit_cost": null,
                          "total": null,
                          "external_id": "4f73e7f4-1ea3-4c14-bce9-0c68745f982e",
                          "part_number": null,
                          "code": null,
                          "description": null,
                          "uom": null,
                          "created_at": "2026-09-01T09:57:39.979Z"
                        },
                        "relationships": {
                          "sales_invoice": {
                            "data": {
                              "id": "34",
                              "type": "sales_invoice"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete sales invoice item",
        "tags": [
          "SalesInvoiceItems"
        ],
        "description": "Deletes a specific sales invoice item",
        "parameters": [
          {
            "name": "sales_invoice_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "35"
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "20"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer rO1sMtqhOtle0CsuBA7qqzZKjOTsTaH-LXX5K6QOnnI"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/sales_invoices": {
      "get": {
        "summary": "List sales invoices",
        "tags": [
          "SalesInvoices"
        ],
        "description": "Returns a list of all sales invoices",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "company,user,contact,opportunity"
            },
            "description": "Include related records information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 2GrXxYEuIOVo-w4hZi_TWSDJblJ0d0pBuzNDgkylpK4"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of sales invoices": {
                    "summary": "returns a list of sales invoices",
                    "value": {
                      "data": [
                        {
                          "id": "36",
                          "type": "sales_invoice",
                          "attributes": {
                            "id": 36,
                            "number": "totam",
                            "status": null,
                            "description": null,
                            "external_id": null,
                            "customer_po": null,
                            "total": 0.0,
                            "net_total": 0.0,
                            "bill_to_address1": null,
                            "bill_to_address2": null,
                            "bill_to_city": null,
                            "bill_to_state": null,
                            "bill_to_zipcode": null,
                            "bill_to_country": null,
                            "ship_to_address1": null,
                            "ship_to_address2": null,
                            "ship_to_city": null,
                            "ship_to_state": null,
                            "ship_to_zipcode": null,
                            "ship_to_country": null,
                            "invoice_date": "2026-09-01",
                            "due_date": null,
                            "margin_percent": 0.0,
                            "margin_amount": 0.0,
                            "tax": 0.0,
                            "freight": 0.0,
                            "shipping": 0.0,
                            "custom": {},
                            "created_at": "2026-09-01T09:57:40.043Z",
                            "owner_name": null,
                            "customer_number": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1131",
                                "type": "user"
                              }
                            },
                            "company": {
                              "data": {
                                "id": "508",
                                "type": "company"
                              }
                            },
                            "contact": {
                              "data": {
                                "id": "247",
                                "type": "contact"
                              }
                            },
                            "opportunity": {
                              "data": {
                                "id": "128",
                                "type": "opportunity"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create sales invoice",
        "tags": [
          "SalesInvoices"
        ],
        "description": "Creates sales invoice populated with information from request body",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer XmeqdGKFC77UvkftbD7J2cpupxVJ5fN2F9R6Pdfp3Aw"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates sales invoice": {
                  "summary": "creates sales invoice",
                  "value": {
                    "data": {
                      "attributes": {
                        "number": 15,
                        "invoice_date": "2026-09-01"
                      },
                      "relationships": {
                        "company": {
                          "data": {
                            "type": "company",
                            "id": 514
                          }
                        },
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1143
                          }
                        },
                        "opportunity": {
                          "data": {
                            "type": "opportunity",
                            "id": 130
                          }
                        }
                      }
                    }
                  }
                }
              },
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "attributes",
                      "relationships"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "sales_invoice"
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "number": {
                            "type": "string",
                            "description": "Sales invoice number",
                            "example": "INV-1001"
                          }
                        }
                      },
                      "relationships": {
                        "type": "object",
                        "required": [
                          "company"
                        ],
                        "properties": {
                          "company": {
                            "type": "object",
                            "description": "Associated company",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "company"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the company",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates sales invoice": {
                    "summary": "creates sales invoice",
                    "value": {
                      "data": {
                        "id": "38",
                        "type": "sales_invoice",
                        "attributes": {
                          "id": 38,
                          "number": "15",
                          "status": null,
                          "description": null,
                          "external_id": null,
                          "customer_po": null,
                          "total": 0.0,
                          "net_total": 0.0,
                          "bill_to_address1": null,
                          "bill_to_address2": null,
                          "bill_to_city": null,
                          "bill_to_state": null,
                          "bill_to_zipcode": null,
                          "bill_to_country": null,
                          "ship_to_address1": null,
                          "ship_to_address2": null,
                          "ship_to_city": null,
                          "ship_to_state": null,
                          "ship_to_zipcode": null,
                          "ship_to_country": null,
                          "invoice_date": "2026-09-01",
                          "due_date": null,
                          "margin_percent": 0.0,
                          "margin_amount": 0.0,
                          "tax": 0.0,
                          "freight": 0.0,
                          "shipping": 0.0,
                          "custom": {},
                          "created_at": "2026-09-01T09:57:40.101Z",
                          "owner_name": null,
                          "customer_number": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1143",
                              "type": "user"
                            }
                          },
                          "company": {
                            "data": {
                              "id": "514",
                              "type": "company"
                            }
                          },
                          "contact": {
                            "data": null
                          },
                          "opportunity": {
                            "data": {
                              "id": "130",
                              "type": "opportunity"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/sales_invoices/{id}": {
      "get": {
        "summary": "Get sales invoice",
        "tags": [
          "SalesInvoices"
        ],
        "description": "Returns information about a specific sales invoice",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "37"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer yIn54qYpAbprrHzKYRZ_P-YMlSSCTiYvuUnytsHCnhM"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns sales invoice": {
                    "summary": "returns sales invoice",
                    "value": {
                      "data": {
                        "id": "37",
                        "type": "sales_invoice",
                        "attributes": {
                          "id": 37,
                          "number": "est",
                          "status": null,
                          "description": null,
                          "external_id": null,
                          "customer_po": null,
                          "total": 0.0,
                          "net_total": 0.0,
                          "bill_to_address1": null,
                          "bill_to_address2": null,
                          "bill_to_city": null,
                          "bill_to_state": null,
                          "bill_to_zipcode": null,
                          "bill_to_country": null,
                          "ship_to_address1": null,
                          "ship_to_address2": null,
                          "ship_to_city": null,
                          "ship_to_state": null,
                          "ship_to_zipcode": null,
                          "ship_to_country": null,
                          "invoice_date": "2026-08-30",
                          "due_date": null,
                          "margin_percent": 0.0,
                          "margin_amount": 0.0,
                          "tax": 0.0,
                          "freight": 0.0,
                          "shipping": 0.0,
                          "custom": {},
                          "created_at": "2026-09-01T09:57:40.073Z",
                          "owner_name": null,
                          "customer_number": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1137",
                              "type": "user"
                            }
                          },
                          "company": {
                            "data": {
                              "id": "511",
                              "type": "company"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "248",
                              "type": "contact"
                            }
                          },
                          "opportunity": {
                            "data": {
                              "id": "129",
                              "type": "opportunity"
                            }
                          }
                        }
                      },
                      "included": [
                        {
                          "id": "511",
                          "type": "company",
                          "attributes": {
                            "id": 511,
                            "name": "Graham, Okuneva and Carter",
                            "website": "raynor.test",
                            "address": "855 O'Kon Courts",
                            "city": "Lake Randellstad",
                            "zipcode": "45787-2447",
                            "parent_id": null,
                            "country": "Romania",
                            "state": "North Dakota",
                            "phone": "1-571-755-1879 x0752",
                            "description": "Virtual maximized moratorium",
                            "custom": {},
                            "created_at": "2026-09-01T09:57:40.054Z",
                            "updated_at": "2026-09-01T09:57:40.054Z",
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1138",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "248",
                          "type": "contact",
                          "attributes": {
                            "id": 248,
                            "first_name": "Clint",
                            "last_name": "Kunze",
                            "created_at": "2026-09-01T09:57:40.061Z",
                            "updated_at": "2026-09-01T09:57:40.061Z",
                            "title": "window cleaner",
                            "phone": "(658) 764-8511",
                            "mobile_phone": "937-174-1957",
                            "home_phone": null,
                            "email": "clint@buckridge.example",
                            "description": null,
                            "custom": {},
                            "external_id": null,
                            "email_opt_out": false
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "512",
                                "type": "company"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1139",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "129",
                          "type": "opportunity",
                          "attributes": {
                            "id": 129,
                            "name": "Kuphal, Hoeger and Goyette",
                            "close_at": "2026-09-26",
                            "amount": "1696.24",
                            "updated_at": "2026-09-01T09:57:40.071Z",
                            "description": "Tools & Beauty",
                            "custom": {},
                            "external_id": null,
                            "currency": null,
                            "created_at": "2026-09-01T09:57:40.071Z"
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "513",
                                "type": "company"
                              }
                            },
                            "pipeline": {
                              "data": {
                                "id": "141",
                                "type": "pipeline"
                              }
                            },
                            "opportunity_stage": {
                              "data": {
                                "id": "409",
                                "type": "opportunity_stage"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1141",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "1137",
                          "type": "user",
                          "attributes": {
                            "id": 1137,
                            "first_name": "Allie",
                            "last_name": "MacGyver",
                            "email": "allie@streich.example",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update sales invoice",
        "tags": [
          "SalesInvoices"
        ],
        "description": "Updates a specific sales invoice with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "39"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer crbCA3fv0pGtZuVALLbv3HBav7GSkxmaHfSRqliUjS8"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates sales invoice": {
                  "summary": "updates sales invoice",
                  "value": {
                    "data": {
                      "attributes": {
                        "external_id": "b499be9c-473e-49d3-be7f-471dffbd94d4"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates sales invoice": {
                    "summary": "updates sales invoice",
                    "value": {
                      "data": {
                        "id": "39",
                        "type": "sales_invoice",
                        "attributes": {
                          "id": 39,
                          "number": "at",
                          "status": null,
                          "description": null,
                          "external_id": "b499be9c-473e-49d3-be7f-471dffbd94d4",
                          "customer_po": null,
                          "total": 0.0,
                          "net_total": 0.0,
                          "bill_to_address1": null,
                          "bill_to_address2": null,
                          "bill_to_city": null,
                          "bill_to_state": null,
                          "bill_to_zipcode": null,
                          "bill_to_country": null,
                          "ship_to_address1": null,
                          "ship_to_address2": null,
                          "ship_to_city": null,
                          "ship_to_state": null,
                          "ship_to_zipcode": null,
                          "ship_to_country": null,
                          "invoice_date": "2026-08-31",
                          "due_date": null,
                          "margin_percent": 0.0,
                          "margin_amount": 0.0,
                          "tax": 0.0,
                          "freight": 0.0,
                          "shipping": 0.0,
                          "custom": {},
                          "created_at": "2026-09-01T09:57:40.128Z",
                          "owner_name": null,
                          "customer_number": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1145",
                              "type": "user"
                            }
                          },
                          "company": {
                            "data": {
                              "id": "516",
                              "type": "company"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "249",
                              "type": "contact"
                            }
                          },
                          "opportunity": {
                            "data": {
                              "id": "131",
                              "type": "opportunity"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete sales invoice",
        "tags": [
          "SalesInvoices"
        ],
        "description": "Deletes a specific sales invoice",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "40"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer eJ6_ixYZaV_IdqZe3GQAZDACwL3WPiH9fUo3bLtuLFI"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/sales_order_summaries": {
      "get": {
        "summary": "List sales order summaries",
        "tags": [
          "SalesOrderSummaries"
        ],
        "description": "Returns a list of all sales order summaries",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[company_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "Company ID. Sales Order Summary for the company"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "company"
            },
            "description": "Include related records information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 3hWMTz3lJ7wOVXhdEISk3rk15R9_untB6DZIgSNCw3c"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of sales order summaries": {
                    "summary": "returns a list of sales order summaries",
                    "value": {
                      "data": [
                        {
                          "id": "13",
                          "type": "sales_order_summary",
                          "attributes": {
                            "ytd_sales": null,
                            "qtd_sales": null,
                            "mtd_sales": null,
                            "pytd_sales": null,
                            "pqtd_sales": null,
                            "pmtd_sales": null,
                            "py_sales": null,
                            "last_order_date": null,
                            "average_order_value": 0.0,
                            "order_budget": null,
                            "created_at": "2026-09-01T09:57:40.548Z",
                            "updated_at": "2026-09-01T09:57:40.548Z",
                            "custom": {}
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "551",
                                "type": "company"
                              }
                            }
                          }
                        }
                      ],
                      "included": [
                        {
                          "id": "551",
                          "type": "company",
                          "attributes": {
                            "id": 551,
                            "name": "Dickinson, Beahan and Williamson",
                            "website": "muller.test",
                            "address": "930 Giovanni Plains",
                            "city": "Reichelberg",
                            "zipcode": "59641-1269",
                            "parent_id": null,
                            "country": "Liechtenstein",
                            "state": "South Dakota",
                            "phone": "1-211-109-4452 x847",
                            "description": "Synergistic foreground capacity",
                            "custom": {},
                            "created_at": "2026-09-01T09:57:40.541Z",
                            "updated_at": "2026-09-01T09:57:40.541Z",
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1213",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  },
                  "returns a sales order summary for a company": {
                    "summary": "returns a sales order summary for a company",
                    "value": {
                      "data": [
                        {
                          "id": "14",
                          "type": "sales_order_summary",
                          "attributes": {
                            "ytd_sales": null,
                            "qtd_sales": null,
                            "mtd_sales": null,
                            "pytd_sales": null,
                            "pqtd_sales": null,
                            "pmtd_sales": null,
                            "py_sales": null,
                            "last_order_date": null,
                            "average_order_value": 0.0,
                            "order_budget": null,
                            "created_at": "2026-09-01T09:57:40.564Z",
                            "updated_at": "2026-09-01T09:57:40.564Z",
                            "custom": {}
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "552",
                                "type": "company"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/companies/{company_id}/sales_order_summary": {
      "patch": {
        "summary": "Update sales order summary for a company",
        "tags": [
          "SalesOrderSummaries"
        ],
        "description": "Updates a specific sales order with information from request body",
        "parameters": [
          {
            "name": "company_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "554"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 0GkLQKrNnLNvKg991QbG0NQcjBnhtmvO83IPOrEkPdc"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates/updates sales order summary for a company": {
                  "summary": "creates/updates sales order summary for a company",
                  "value": {
                    "data": {
                      "attributes": {
                        "order_budget": 10000,
                        "custom": {
                          "date_field": "2026-09-01"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates/updates sales order summary for a company": {
                    "summary": "creates/updates sales order summary for a company",
                    "value": {
                      "data": {
                        "id": "16",
                        "type": "sales_order_summary",
                        "attributes": {
                          "ytd_sales": null,
                          "qtd_sales": null,
                          "mtd_sales": null,
                          "pytd_sales": null,
                          "pqtd_sales": null,
                          "pmtd_sales": null,
                          "py_sales": null,
                          "last_order_date": null,
                          "average_order_value": 0.0,
                          "order_budget": 10000.0,
                          "created_at": "2026-09-01T09:57:40.585Z",
                          "updated_at": "2026-09-01T09:57:40.585Z",
                          "custom": {
                            "string_field": null,
                            "date_field": "2026-09-01",
                            "float_field": null,
                            "integer_field": null,
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null
                          }
                        },
                        "relationships": {
                          "company": {
                            "data": {
                              "id": "554",
                              "type": "company"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/sales_orders/{sales_order_id}/sales_order_items": {
      "get": {
        "summary": "List sales order items",
        "tags": [
          "SalesOrderItems"
        ],
        "description": "Returns a list of all sales order items",
        "parameters": [
          {
            "name": "sales_order_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "31"
          },
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "sales_order"
            },
            "description": "Include related records information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer TqvF64WM8FYXmVv_u8U4YDTfpxod2O3iWEIWafJGocc"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of sales order items": {
                    "summary": "returns a list of sales order items",
                    "value": {
                      "data": [
                        {
                          "id": "16",
                          "type": "sales_order_item",
                          "attributes": {
                            "id": 16,
                            "item_id": "1816647369",
                            "quantity": null,
                            "unit_price": null,
                            "unit_cost": null,
                            "total": null,
                            "external_id": null,
                            "part_number": null,
                            "code": null,
                            "description": null,
                            "category": null,
                            "uom": null,
                            "created_at": "2026-09-01T09:57:40.228Z",
                            "custom": {}
                          },
                          "relationships": {
                            "sales_order": {
                              "data": {
                                "id": "31",
                                "type": "sales_order"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create sales order item",
        "tags": [
          "SalesOrderItems"
        ],
        "description": "Creates sales order item populated with information from request body",
        "parameters": [
          {
            "name": "sales_order_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "33"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer jlFPf1xTH92_I0jYbf4JLsK3myTsY9-tP-PMxBlRfkw"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates sales order item": {
                  "summary": "creates sales order item",
                  "value": {
                    "data": {
                      "attributes": {
                        "item_id": 15,
                        "code": "1234"
                      },
                      "relationships": {
                        "sales_order": {
                          "data": {
                            "type": "sales_order",
                            "id": 33
                          }
                        }
                      }
                    }
                  }
                }
              },
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "attributes"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "sales_order_item"
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "item_id": {
                            "type": "string",
                            "description": "External item identifier",
                            "example": "SKU-100"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates sales order item": {
                    "summary": "creates sales order item",
                    "value": {
                      "data": {
                        "id": "18",
                        "type": "sales_order_item",
                        "attributes": {
                          "id": 18,
                          "item_id": "15",
                          "quantity": null,
                          "unit_price": null,
                          "unit_cost": null,
                          "total": null,
                          "external_id": null,
                          "part_number": null,
                          "code": "1234",
                          "description": null,
                          "category": null,
                          "uom": null,
                          "created_at": "2026-09-01T09:57:40.305Z",
                          "custom": {}
                        },
                        "relationships": {
                          "sales_order": {
                            "data": {
                              "id": "33",
                              "type": "sales_order"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/sales_orders/{sales_order_id}/sales_order_items/{id}": {
      "get": {
        "summary": "Get sales order item",
        "tags": [
          "SalesOrderItems"
        ],
        "description": "Returns information about a specific sales order item",
        "parameters": [
          {
            "name": "sales_order_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "32"
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "17"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer F2x_X_JrXFAEqY5mEtKH75y_l0Yl1m7hgISF1DmxLcE"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns sales order item": {
                    "summary": "returns sales order item",
                    "value": {
                      "data": {
                        "id": "17",
                        "type": "sales_order_item",
                        "attributes": {
                          "id": 17,
                          "item_id": "1384619931",
                          "quantity": null,
                          "unit_price": null,
                          "unit_cost": null,
                          "total": null,
                          "external_id": null,
                          "part_number": null,
                          "code": null,
                          "description": null,
                          "category": null,
                          "uom": null,
                          "created_at": "2026-09-01T09:57:40.265Z",
                          "custom": {}
                        },
                        "relationships": {
                          "sales_order": {
                            "data": {
                              "id": "32",
                              "type": "sales_order"
                            }
                          }
                        }
                      },
                      "included": [
                        {
                          "id": "32",
                          "type": "sales_order",
                          "attributes": {
                            "id": 32,
                            "number": "autem",
                            "status": "Open",
                            "description": null,
                            "external_id": null,
                            "customer_po": null,
                            "bill_to_address1": null,
                            "bill_to_address2": null,
                            "bill_to_city": null,
                            "bill_to_state": null,
                            "bill_to_zipcode": null,
                            "bill_to_country": null,
                            "ship_to_address1": null,
                            "ship_to_address2": null,
                            "ship_to_city": null,
                            "ship_to_state": null,
                            "ship_to_zipcode": null,
                            "ship_to_country": null,
                            "order_date": "2026-08-30",
                            "due_date": null,
                            "margin_percent": 0.0,
                            "margin_amount": 0.0,
                            "tax": 0.0,
                            "freight": 0.0,
                            "shipping": 0.0,
                            "owner_name": null,
                            "ship_date": null,
                            "delivery_date": null,
                            "promise_date": null,
                            "customer_number": null,
                            "custom": {}
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1163",
                                "type": "user"
                              }
                            },
                            "company": {
                              "data": {
                                "id": "525",
                                "type": "company"
                              }
                            },
                            "contact": {
                              "data": {
                                "id": "252",
                                "type": "contact"
                              }
                            },
                            "opportunity": {
                              "data": {
                                "id": "134",
                                "type": "opportunity"
                              }
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update sales order item",
        "tags": [
          "SalesOrderItems"
        ],
        "description": "Updates a specific sales order item with information from request body",
        "parameters": [
          {
            "name": "sales_order_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "34"
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "19"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer JP2y5L5hQjsATcNyu_M9eJNhcDZjiLlzxqKkcCh1tT8"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates sales order items": {
                  "summary": "updates sales order items",
                  "value": {
                    "data": {
                      "attributes": {
                        "external_id": "c60e1940-1b3d-4d79-81b3-244bcb2e4e23",
                        "custom": {
                          "string_field": "Custom String"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates sales order items": {
                    "summary": "updates sales order items",
                    "value": {
                      "data": {
                        "id": "19",
                        "type": "sales_order_item",
                        "attributes": {
                          "id": 19,
                          "item_id": "1541412983",
                          "quantity": null,
                          "unit_price": null,
                          "unit_cost": null,
                          "total": null,
                          "external_id": "c60e1940-1b3d-4d79-81b3-244bcb2e4e23",
                          "part_number": null,
                          "code": null,
                          "description": null,
                          "category": null,
                          "uom": null,
                          "created_at": "2026-09-01T09:57:40.333Z",
                          "custom": {
                            "string_field": "Custom String",
                            "date_field": null,
                            "float_field": null,
                            "integer_field": 123,
                            "link_field": null,
                            "list_field": null,
                            "multipleselect_field": null,
                            "contact_lookup": null
                          }
                        },
                        "relationships": {
                          "sales_order": {
                            "data": {
                              "id": "34",
                              "type": "sales_order"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete sales order item",
        "tags": [
          "SalesOrderItems"
        ],
        "description": "Deletes a specific sales order item",
        "parameters": [
          {
            "name": "sales_order_id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "35"
          },
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "20"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer r3wnmpPNNTEIAFCqrvC3YikiSUl27oFMViG_i0oSl3s"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/sales_orders": {
      "get": {
        "summary": "List sales orders",
        "tags": [
          "SalesOrders"
        ],
        "description": "Returns a list of all sales orders",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "company,user,contact,opportunity"
            },
            "description": "Include related records information in the response"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer jRS_V7wDalGghPBJIBTgNLJvQk7aMy8A2pGyRF1GUd4"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of sales orders": {
                    "summary": "returns a list of sales orders",
                    "value": {
                      "data": [
                        {
                          "id": "36",
                          "type": "sales_order",
                          "attributes": {
                            "id": 36,
                            "number": "aliquam",
                            "status": "Open",
                            "description": null,
                            "external_id": null,
                            "customer_po": null,
                            "bill_to_address1": null,
                            "bill_to_address2": null,
                            "bill_to_city": null,
                            "bill_to_state": null,
                            "bill_to_zipcode": null,
                            "bill_to_country": null,
                            "ship_to_address1": null,
                            "ship_to_address2": null,
                            "ship_to_city": null,
                            "ship_to_state": null,
                            "ship_to_zipcode": null,
                            "ship_to_country": null,
                            "order_date": "2026-08-30",
                            "due_date": null,
                            "margin_percent": 0.0,
                            "margin_amount": 0.0,
                            "tax": 0.0,
                            "freight": 0.0,
                            "shipping": 0.0,
                            "owner_name": null,
                            "ship_date": null,
                            "delivery_date": null,
                            "promise_date": null,
                            "customer_number": null,
                            "custom": {}
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1187",
                                "type": "user"
                              }
                            },
                            "company": {
                              "data": {
                                "id": "537",
                                "type": "company"
                              }
                            },
                            "contact": {
                              "data": {
                                "id": "256",
                                "type": "contact"
                              }
                            },
                            "opportunity": {
                              "data": {
                                "id": "138",
                                "type": "opportunity"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create sales order",
        "tags": [
          "SalesOrders"
        ],
        "description": "Creates sales order populated with information from request body",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer hFx-nt4yLls03isavHExTLjvRiz7hOWsZ5Q61nLNI-Q"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates sales order": {
                  "summary": "creates sales order",
                  "value": {
                    "data": {
                      "attributes": {
                        "number": 15,
                        "order_date": "2026-09-01"
                      },
                      "relationships": {
                        "company": {
                          "data": {
                            "type": "company",
                            "id": 543
                          }
                        },
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1199
                          }
                        },
                        "opportunity": {
                          "data": {
                            "type": "opportunity",
                            "id": 140
                          }
                        }
                      }
                    }
                  }
                }
              },
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "attributes",
                      "relationships"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "sales_order"
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "number": {
                            "type": "string",
                            "description": "Sales order number",
                            "example": "SO-1001"
                          }
                        }
                      },
                      "relationships": {
                        "type": "object",
                        "required": [
                          "company"
                        ],
                        "properties": {
                          "company": {
                            "type": "object",
                            "description": "Associated company",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "company"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the company",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates sales order": {
                    "summary": "creates sales order",
                    "value": {
                      "data": {
                        "id": "38",
                        "type": "sales_order",
                        "attributes": {
                          "id": 38,
                          "number": "15",
                          "status": "Unknown",
                          "description": null,
                          "external_id": null,
                          "customer_po": null,
                          "bill_to_address1": null,
                          "bill_to_address2": null,
                          "bill_to_city": null,
                          "bill_to_state": null,
                          "bill_to_zipcode": null,
                          "bill_to_country": null,
                          "ship_to_address1": null,
                          "ship_to_address2": null,
                          "ship_to_city": null,
                          "ship_to_state": null,
                          "ship_to_zipcode": null,
                          "ship_to_country": null,
                          "order_date": "2026-09-01",
                          "due_date": null,
                          "margin_percent": 0.0,
                          "margin_amount": 0.0,
                          "tax": 0.0,
                          "freight": 0.0,
                          "shipping": 0.0,
                          "owner_name": null,
                          "ship_date": null,
                          "delivery_date": null,
                          "promise_date": null,
                          "customer_number": null,
                          "custom": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1199",
                              "type": "user"
                            }
                          },
                          "company": {
                            "data": {
                              "id": "543",
                              "type": "company"
                            }
                          },
                          "contact": {
                            "data": null
                          },
                          "opportunity": {
                            "data": {
                              "id": "140",
                              "type": "opportunity"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/sales_orders/{id}": {
      "get": {
        "summary": "Get sales order",
        "tags": [
          "SalesOrders"
        ],
        "description": "Returns information about a specific sales order",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "37"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer OJTu8hXBG9VyipJcWWpRoCGZTgU76yNK8GDCAzPUy3Y"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns sales order": {
                    "summary": "returns sales order",
                    "value": {
                      "data": {
                        "id": "37",
                        "type": "sales_order",
                        "attributes": {
                          "id": 37,
                          "number": "voluptas",
                          "status": "Open",
                          "description": null,
                          "external_id": null,
                          "customer_po": null,
                          "bill_to_address1": null,
                          "bill_to_address2": null,
                          "bill_to_city": null,
                          "bill_to_state": null,
                          "bill_to_zipcode": null,
                          "bill_to_country": null,
                          "ship_to_address1": null,
                          "ship_to_address2": null,
                          "ship_to_city": null,
                          "ship_to_state": null,
                          "ship_to_zipcode": null,
                          "ship_to_country": null,
                          "order_date": "2026-09-01",
                          "due_date": null,
                          "margin_percent": 0.0,
                          "margin_amount": 0.0,
                          "tax": 0.0,
                          "freight": 0.0,
                          "shipping": 0.0,
                          "owner_name": null,
                          "ship_date": null,
                          "delivery_date": null,
                          "promise_date": null,
                          "customer_number": null,
                          "custom": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1193",
                              "type": "user"
                            }
                          },
                          "company": {
                            "data": {
                              "id": "540",
                              "type": "company"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "257",
                              "type": "contact"
                            }
                          },
                          "opportunity": {
                            "data": {
                              "id": "139",
                              "type": "opportunity"
                            }
                          }
                        }
                      },
                      "included": [
                        {
                          "id": "540",
                          "type": "company",
                          "attributes": {
                            "id": 540,
                            "name": "Kshlerin Inc",
                            "website": "schaefer.test",
                            "address": "580 Arron Rapids",
                            "city": "New Robbiefort",
                            "zipcode": "90038",
                            "parent_id": null,
                            "country": "Montenegro",
                            "state": "Oregon",
                            "phone": "584-960-0979 x10187",
                            "description": "Open-architected hybrid contingency",
                            "custom": {},
                            "created_at": "2026-09-01T09:57:40.413Z",
                            "updated_at": "2026-09-01T09:57:40.413Z",
                            "external_id": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1194",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "257",
                          "type": "contact",
                          "attributes": {
                            "id": 257,
                            "first_name": "Oscar",
                            "last_name": "Little",
                            "created_at": "2026-09-01T09:57:40.421Z",
                            "updated_at": "2026-09-01T09:57:40.421Z",
                            "title": "artist",
                            "phone": "1-259-291-3094",
                            "mobile_phone": "792.660.2339",
                            "home_phone": null,
                            "email": "oscar@bartoletti-donnelly.example",
                            "description": null,
                            "custom": {},
                            "external_id": null,
                            "email_opt_out": false
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "541",
                                "type": "company"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1195",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "139",
                          "type": "opportunity",
                          "attributes": {
                            "id": 139,
                            "name": "Pacocha Group",
                            "close_at": "2026-09-22",
                            "amount": "2907.78",
                            "updated_at": "2026-09-01T09:57:40.432Z",
                            "description": "Automotive",
                            "custom": {},
                            "external_id": null,
                            "currency": null,
                            "created_at": "2026-09-01T09:57:40.433Z"
                          },
                          "relationships": {
                            "company": {
                              "data": {
                                "id": "542",
                                "type": "company"
                              }
                            },
                            "pipeline": {
                              "data": {
                                "id": "151",
                                "type": "pipeline"
                              }
                            },
                            "opportunity_stage": {
                              "data": {
                                "id": "439",
                                "type": "opportunity_stage"
                              }
                            },
                            "user": {
                              "data": {
                                "id": "1197",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "1193",
                          "type": "user",
                          "attributes": {
                            "id": 1193,
                            "first_name": "Skye",
                            "last_name": "Schaden",
                            "email": "skye@hudson.example",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update sales order",
        "tags": [
          "SalesOrders"
        ],
        "description": "Updates a specific sales order with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "39"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer TO4CoQNbuBOX6yNHjVUwTIcBt5i1o2aY4BL348k-4Nw"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates sales order": {
                  "summary": "updates sales order",
                  "value": {
                    "data": {
                      "attributes": {
                        "external_id": "78c66b48-13b6-464e-af77-13351c31462c",
                        "status": "Shipped"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates sales order": {
                    "summary": "updates sales order",
                    "value": {
                      "data": {
                        "id": "39",
                        "type": "sales_order",
                        "attributes": {
                          "id": 39,
                          "number": "commodi",
                          "status": "Shipped",
                          "description": null,
                          "external_id": "78c66b48-13b6-464e-af77-13351c31462c",
                          "customer_po": null,
                          "bill_to_address1": null,
                          "bill_to_address2": null,
                          "bill_to_city": null,
                          "bill_to_state": null,
                          "bill_to_zipcode": null,
                          "bill_to_country": null,
                          "ship_to_address1": null,
                          "ship_to_address2": null,
                          "ship_to_city": null,
                          "ship_to_state": null,
                          "ship_to_zipcode": null,
                          "ship_to_country": null,
                          "order_date": "2026-08-30",
                          "due_date": null,
                          "margin_percent": 0.0,
                          "margin_amount": 0.0,
                          "tax": 0.0,
                          "freight": 0.0,
                          "shipping": 0.0,
                          "owner_name": null,
                          "ship_date": null,
                          "delivery_date": null,
                          "promise_date": null,
                          "customer_number": null,
                          "custom": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1201",
                              "type": "user"
                            }
                          },
                          "company": {
                            "data": {
                              "id": "545",
                              "type": "company"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "258",
                              "type": "contact"
                            }
                          },
                          "opportunity": {
                            "data": {
                              "id": "141",
                              "type": "opportunity"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete sales order",
        "tags": [
          "SalesOrders"
        ],
        "description": "Deletes a specific sales order",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "40"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer ojLfvSDuP4BXZLxu_3jlAI0kB0xXjaj_A8mWKz96mXk"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/support_desks": {
      "get": {
        "summary": "List support desks",
        "tags": [
          "SupportDesks"
        ],
        "description": "Returns a list of all support desks",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer Vqe4RiViHbFAimAcoRwF3TChjtk9EdIOGbfoT2JueoU"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of support desks": {
                    "summary": "returns a list of support desks",
                    "value": {
                      "data": [
                        {
                          "id": "28",
                          "type": "support_desk",
                          "attributes": {
                            "id": 28,
                            "name": "earum",
                            "autoreply_enabled": false,
                            "autoreply_subject": null,
                            "autoreply_body": null,
                            "default": false
                          },
                          "relationships": {
                            "default_user": {
                              "data": {
                                "id": "1218",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "29",
                          "type": "support_desk",
                          "attributes": {
                            "id": 29,
                            "name": "sint",
                            "autoreply_enabled": false,
                            "autoreply_subject": null,
                            "autoreply_body": null,
                            "default": false
                          },
                          "relationships": {
                            "default_user": {
                              "data": {
                                "id": "1218",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/tickets": {
      "get": {
        "summary": "List tickets",
        "tags": [
          "Tickets"
        ],
        "description": "Returns a list of all tickets",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer OSmyRkyQDh-TxfX6FSJTduy7nEitesM7Oa8U54DfaII"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of tickets": {
                    "summary": "returns a list of tickets",
                    "value": {
                      "data": [
                        {
                          "id": "22",
                          "type": "ticket",
                          "attributes": {
                            "id": 22,
                            "custom": {},
                            "subject": null,
                            "description": null,
                            "created_at": "2026-09-01T09:57:40.689Z",
                            "external_id": null,
                            "status": "new",
                            "priority": "medium",
                            "closed_at": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1220",
                                "type": "user"
                              }
                            },
                            "support_desk": {
                              "data": {
                                "id": "30",
                                "type": "support_desk"
                              }
                            },
                            "contact": {
                              "data": {
                                "id": "261",
                                "type": "contact"
                              }
                            },
                            "company": {
                              "data": {
                                "id": "556",
                                "type": "company"
                              }
                            }
                          }
                        },
                        {
                          "id": "23",
                          "type": "ticket",
                          "attributes": {
                            "id": 23,
                            "custom": {},
                            "subject": null,
                            "description": null,
                            "created_at": "2026-09-01T09:57:40.704Z",
                            "external_id": null,
                            "status": "new",
                            "priority": "medium",
                            "closed_at": null
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1224",
                                "type": "user"
                              }
                            },
                            "support_desk": {
                              "data": {
                                "id": "31",
                                "type": "support_desk"
                              }
                            },
                            "contact": {
                              "data": {
                                "id": "262",
                                "type": "contact"
                              }
                            },
                            "company": {
                              "data": {
                                "id": "557",
                                "type": "company"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create ticket",
        "tags": [
          "Tickets"
        ],
        "description": "Creates a ticket populated with information from request body.\nCompany and Support Desk are mandatory to provide. Contact is optional.\n",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer 37iYZV7F58l2dGpnaZE5nYb3L3EMTRDn7UHe0iGT5F0"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates ticket": {
                  "summary": "creates ticket",
                  "value": {
                    "data": {
                      "attributes": {
                        "priority": "urgent",
                        "subject": "Stroman",
                        "description": "autem",
                        "custom": {
                          "date_field": "2018-06-18",
                          "list_field": "One"
                        }
                      },
                      "relationships": {
                        "support_desk": {
                          "data": {
                            "type": "support_desk",
                            "id": 33
                          }
                        },
                        "contact": {
                          "data": {
                            "type": "contact",
                            "id": 264
                          }
                        },
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1235
                          }
                        }
                      }
                    }
                  }
                },
                "creates ticket for a company": {
                  "summary": "creates ticket for a company",
                  "value": {
                    "data": {
                      "attributes": {
                        "priority": "urgent",
                        "subject": "West",
                        "description": "qui",
                        "custom": {
                          "date_field": "2018-06-18",
                          "list_field": "One"
                        }
                      },
                      "relationships": {
                        "support_desk": {
                          "data": {
                            "type": "support_desk",
                            "id": 34
                          }
                        },
                        "company": {
                          "data": {
                            "type": "company",
                            "id": 560
                          }
                        },
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1238
                          }
                        }
                      }
                    }
                  }
                }
              },
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "attributes",
                      "relationships"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "example": "ticket"
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "subject": {
                            "type": "string",
                            "description": "Ticket subject",
                            "example": "Subject"
                          },
                          "description": {
                            "type": "string",
                            "description": "Ticket description",
                            "example": "Description"
                          },
                          "priority": {
                            "type": "string",
                            "enum": [
                              "urgent",
                              "high",
                              "medium",
                              "low"
                            ],
                            "description": "Ticket priority. Defaults to 'medium'",
                            "example": "medium"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "new",
                              "assigned",
                              "active",
                              "pending",
                              "closed",
                              "spam"
                            ],
                            "description": "Ticket status. Defaults to 'new'",
                            "example": "new"
                          }
                        }
                      },
                      "relationships": {
                        "type": "object",
                        "required": [
                          "company",
                          "support_desk"
                        ],
                        "properties": {
                          "company": {
                            "type": "object",
                            "description": "Associated company (required)",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "company"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the company",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          },
                          "support_desk": {
                            "type": "object",
                            "description": "Associated support desk (required)",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "support_desk"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the support desk",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          },
                          "contact": {
                            "type": "object",
                            "description": "Associated contact (optional)",
                            "properties": {
                              "data": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "id"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "contact"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "ID of the contact",
                                    "example": "42"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates ticket": {
                    "summary": "creates ticket",
                    "value": {
                      "data": {
                        "id": "25",
                        "type": "ticket",
                        "attributes": {
                          "id": 25,
                          "custom": {
                            "date_field": "2018-06-18",
                            "list_field": "One"
                          },
                          "subject": "Stroman",
                          "description": "autem",
                          "created_at": "2026-09-01T09:57:40.751Z",
                          "external_id": 1,
                          "status": "new",
                          "priority": "urgent",
                          "closed_at": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1235",
                              "type": "user"
                            }
                          },
                          "support_desk": {
                            "data": {
                              "id": "33",
                              "type": "support_desk"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "264",
                              "type": "contact"
                            }
                          },
                          "company": {
                            "data": {
                              "id": "559",
                              "type": "company"
                            }
                          }
                        }
                      }
                    }
                  },
                  "creates ticket for a company": {
                    "summary": "creates ticket for a company",
                    "value": {
                      "data": {
                        "id": "26",
                        "type": "ticket",
                        "attributes": {
                          "id": 26,
                          "custom": {
                            "date_field": "2018-06-18",
                            "list_field": "One"
                          },
                          "subject": "West",
                          "description": "qui",
                          "created_at": "2026-09-01T09:57:40.769Z",
                          "external_id": 1,
                          "status": "new",
                          "priority": "urgent",
                          "closed_at": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1238",
                              "type": "user"
                            }
                          },
                          "support_desk": {
                            "data": {
                              "id": "34",
                              "type": "support_desk"
                            }
                          },
                          "contact": {
                            "data": null
                          },
                          "company": {
                            "data": {
                              "id": "560",
                              "type": "company"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/tickets/{id}": {
      "get": {
        "summary": "Get ticket",
        "tags": [
          "Tickets"
        ],
        "description": "Returns information about a specific ticket",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "24"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer SN8_HKh92VkVOBNhiBvKFtc_fmqRsEldqu5gDhB672c"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns ticket": {
                    "summary": "returns ticket",
                    "value": {
                      "data": {
                        "id": "24",
                        "type": "ticket",
                        "attributes": {
                          "id": 24,
                          "custom": {},
                          "subject": null,
                          "description": null,
                          "created_at": "2026-09-01T09:57:40.726Z",
                          "external_id": null,
                          "status": "new",
                          "priority": "medium",
                          "closed_at": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1228",
                              "type": "user"
                            }
                          },
                          "support_desk": {
                            "data": {
                              "id": "32",
                              "type": "support_desk"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "263",
                              "type": "contact"
                            }
                          },
                          "company": {
                            "data": {
                              "id": "558",
                              "type": "company"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update ticket",
        "tags": [
          "Tickets"
        ],
        "description": "Updates a specific ticket with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "27"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer Gkg_WHUrsKQ2WdpbeRCw6IcsDZ0afkfc-KwMUgEF9r0"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates ticket": {
                  "summary": "updates ticket",
                  "value": {
                    "data": {
                      "attributes": {
                        "subject": "New Subject"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates ticket": {
                    "summary": "updates ticket",
                    "value": {
                      "data": {
                        "id": "27",
                        "type": "ticket",
                        "attributes": {
                          "id": 27,
                          "custom": {},
                          "subject": "New Subject",
                          "description": null,
                          "created_at": "2026-09-01T09:57:40.790Z",
                          "external_id": null,
                          "status": "new",
                          "priority": "medium",
                          "closed_at": null
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1239",
                              "type": "user"
                            }
                          },
                          "support_desk": {
                            "data": {
                              "id": "35",
                              "type": "support_desk"
                            }
                          },
                          "contact": {
                            "data": {
                              "id": "265",
                              "type": "contact"
                            }
                          },
                          "company": {
                            "data": {
                              "id": "561",
                              "type": "company"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete ticket",
        "tags": [
          "Tickets"
        ],
        "description": "Deletes a specific ticket",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "28"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer dHATBjZETq_x0ExVoIibIMhlsqehQtOrhFPWSYAWops"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/users": {
      "get": {
        "summary": "List users",
        "tags": [
          "Users"
        ],
        "description": "Returns list of users in organization",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer XD3-4ve1Bb69AqlS2vTLxx3Av67zwXaeZecKMdahHEM"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns users": {
                    "summary": "returns users",
                    "value": {
                      "data": [
                        {
                          "id": "1247",
                          "type": "user",
                          "attributes": {
                            "id": 1247,
                            "first_name": "Sandy",
                            "last_name": "King",
                            "email": "sandy@koss.example",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        },
                        {
                          "id": "1248",
                          "type": "user",
                          "attributes": {
                            "id": 1248,
                            "first_name": "Jenifer",
                            "last_name": "Wiza",
                            "email": "jenifer@hirthe.test",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        },
                        {
                          "id": "1249",
                          "type": "user",
                          "attributes": {
                            "id": 1249,
                            "first_name": "Benedict",
                            "last_name": "Brown",
                            "email": "benedict@schroeder.test",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        },
                        {
                          "id": "1250",
                          "type": "user",
                          "attributes": {
                            "id": 1250,
                            "first_name": "Lois",
                            "last_name": "Barrows",
                            "email": "lois@greenfelder-wyman.test",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        },
                        {
                          "id": "1251",
                          "type": "user",
                          "attributes": {
                            "id": 1251,
                            "first_name": "Roberta",
                            "last_name": "Boyle",
                            "email": "roberta@brown.test",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        },
                        {
                          "id": "1252",
                          "type": "user",
                          "attributes": {
                            "id": 1252,
                            "first_name": "Adrian",
                            "last_name": "Lockman",
                            "email": "adrian@blick.example",
                            "phone": null,
                            "custom": {},
                            "external_id": null,
                            "status": "created",
                            "role": "normal",
                            "is_admin": false
                          },
                          "relationships": {
                            "manager": {
                              "data": null
                            }
                          }
                        }
                      ],
                      "included": [],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 25,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/users/{id}": {
      "patch": {
        "summary": "Update user",
        "tags": [
          "Users"
        ],
        "description": "Updates a specific user with information from request body",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "1253"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer AhpC7dISsU5funCV-9EHOTM_BkLQE0pag3ce3XyTjRc"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "updates user": {
                  "summary": "updates user",
                  "value": {
                    "data": {
                      "attributes": {
                        "custom": {
                          "date_field": "2019-06-25",
                          "integer_field": "111"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "updates user": {
                    "summary": "updates user",
                    "value": {
                      "data": {
                        "id": "1253",
                        "type": "user",
                        "attributes": {
                          "id": 1253,
                          "first_name": "Kathline",
                          "last_name": "Powlowski",
                          "email": "kathline@powlowski-dare.test",
                          "phone": null,
                          "custom": {
                            "date_field": "2019-06-25",
                            "integer_field": "111"
                          },
                          "external_id": null,
                          "status": "created",
                          "role": "normal",
                          "is_admin": false
                        },
                        "relationships": {
                          "manager": {
                            "data": null
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/webhooks": {
      "get": {
        "summary": "List webhooks",
        "tags": [
          "Webhooks"
        ],
        "description": "Returns a list of all webhooks created in organization",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 1
            },
            "description": "Page number"
          },
          {
            "name": "page[size]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 50
            },
            "description": "Page size"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "-created_at"
            },
            "description": "Sorting"
          },
          {
            "name": "filter[user_id]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 42
            },
            "description": "User ID"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer IabsQhGstekndtAAKu6ebXIjswyj6GD3iI81cgM_DOg"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of webhooks": {
                    "summary": "returns a list of webhooks",
                    "value": {
                      "data": [
                        {
                          "id": "39",
                          "type": "webhook",
                          "attributes": {
                            "id": 39,
                            "event": "contact.created",
                            "target_url": "http://quigley-tillman.test/maisha",
                            "data": {}
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1254",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "38",
                          "type": "webhook",
                          "attributes": {
                            "id": 38,
                            "event": "contact.created",
                            "target_url": "http://oreilly.test/carmelita",
                            "data": {}
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1254",
                                "type": "user"
                              }
                            }
                          }
                        },
                        {
                          "id": "37",
                          "type": "webhook",
                          "attributes": {
                            "id": 37,
                            "event": "contact.created",
                            "target_url": "http://wintheiser-anderson.test/abigail",
                            "data": {}
                          },
                          "relationships": {
                            "user": {
                              "data": {
                                "id": "1254",
                                "type": "user"
                              }
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "current_page": 1,
                          "per_page": 10,
                          "total_pages": 1,
                          "next_page": null
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create webhook",
        "tags": [
          "Webhooks"
        ],
        "description": "Creates a webhook populated with information from the request body.\nWhen you subscribe to the `custom_object.*` events, it is required that you provide the\nCustom Field IDs for the entities you would like to register webhooks for:\n```\n\"data\": {\n  \"custom_field_ids\": [99, 87]\n}\n```\nYou can use the \"Get available custom object resources\" endpoint to find these Custom Field IDs.\n\nWhen you subscribe to the `interaction.*` events, you can provide `interaction_types` Array\nfor the types you would like to register webhooks for:\n```\n\"data\": {\n  \"interaction_types\": [\"Activity\", \"Note\"]\n}\n```\nValid interaction types are: \"Activity\", \"Note\", \"Attachment\", \"Email\", \"Event\", \"SmsMessage\".\nIn case `interaction_types` not provided, webhook will trigger for any interaction type.\n",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer L0scZA8cy-CdsMjlq5kquKtGFOMkZJop_H8Bzx5oK24"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "examples": {
                "creates webhook": {
                  "summary": "creates webhook",
                  "value": {
                    "data": {
                      "attributes": {
                        "event": "contact.created",
                        "target_url": "http://target.com/webhook"
                      },
                      "relationships": {
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1256
                          }
                        }
                      }
                    }
                  }
                },
                "creates webhook for custom object": {
                  "summary": "creates webhook for custom object",
                  "value": {
                    "data": {
                      "attributes": {
                        "event": "custom_object.created",
                        "target_url": "http://target.com/webhook",
                        "data": {
                          "custom_field_ids": [
                            123,
                            456
                          ]
                        }
                      },
                      "relationships": {
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1257
                          }
                        }
                      }
                    }
                  }
                },
                "creates webhook for interaction": {
                  "summary": "creates webhook for interaction",
                  "value": {
                    "data": {
                      "attributes": {
                        "event": "interaction.created",
                        "target_url": "http://target.com/webhook",
                        "data": {
                          "interaction_types": [
                            "Activity",
                            "Note"
                          ]
                        }
                      },
                      "relationships": {
                        "user": {
                          "data": {
                            "type": "user",
                            "id": 1258
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "creates webhook": {
                    "summary": "creates webhook",
                    "value": {
                      "data": {
                        "id": "41",
                        "type": "webhook",
                        "attributes": {
                          "id": 41,
                          "event": "contact.created",
                          "target_url": "http://target.com/webhook",
                          "data": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1256",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  },
                  "creates webhook for custom object": {
                    "summary": "creates webhook for custom object",
                    "value": {
                      "data": {
                        "id": "42",
                        "type": "webhook",
                        "attributes": {
                          "id": 42,
                          "event": "custom_object.created",
                          "target_url": "http://target.com/webhook",
                          "data": {
                            "custom_field_ids": [
                              123,
                              456
                            ]
                          }
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1257",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  },
                  "creates webhook for interaction": {
                    "summary": "creates webhook for interaction",
                    "value": {
                      "data": {
                        "id": "43",
                        "type": "webhook",
                        "attributes": {
                          "id": 43,
                          "event": "interaction.created",
                          "target_url": "http://target.com/webhook",
                          "data": {
                            "interaction_types": [
                              "Activity",
                              "Note"
                            ]
                          }
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1258",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    },
    "/api/v1/webhooks/{id}": {
      "get": {
        "summary": "Get webhook",
        "tags": [
          "Webhooks"
        ],
        "description": "Returns information about a specific webhook",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "40"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer eBhJppKqCi6VuYcTSkww-ytiLQhja86vMJx8Sju5CF8"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns webhook": {
                    "summary": "returns webhook",
                    "value": {
                      "data": {
                        "id": "40",
                        "type": "webhook",
                        "attributes": {
                          "id": 40,
                          "event": "contact.created",
                          "target_url": "http://veum.example/irma.harris",
                          "data": {}
                        },
                        "relationships": {
                          "user": {
                            "data": {
                              "id": "1255",
                              "type": "user"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete webhook",
        "tags": [
          "Webhooks"
        ],
        "description": "Deletes a specific webhook",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "example": "44"
          },
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer nvMyGkHhSPl7vEeyLFSPahAknYZdJO1b8_4Wv409Ics"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json": {}
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json"
              }
            }
          }
        }
      }
    },
    "/api/v1/webhooks/events": {
      "get": {
        "summary": "List webhook events",
        "tags": [
          "Webhooks"
        ],
        "description": "Returns a list of webhook events available to subscribe",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "example": "application/vnd.api+json"
          },
          {
            "name": "Authorization",
            "in": "header",
            "example": "Bearer sFMrbHo0Zi-h4ftxQYbnVGpQfOVa5S7iCEaKu5X6TU4"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "example": "application/vnd.api+json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.api+json; charset=utf-8": {
                "examples": {
                  "returns a list of webhook events available to subscribe": {
                    "summary": "returns a list of webhook events available to subscribe",
                    "value": {
                      "data": [
                        {
                          "id": "0",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 0,
                            "event": "contact.created",
                            "description": "Triggers when new contact is created"
                          }
                        },
                        {
                          "id": "1",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 1,
                            "event": "contact.updated",
                            "description": "Triggers when contact is updated"
                          }
                        },
                        {
                          "id": "2",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 2,
                            "event": "contact.destroyed",
                            "description": "Triggers when contact is destroyed"
                          }
                        },
                        {
                          "id": "3",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 3,
                            "event": "company.created",
                            "description": "Triggers when new company is created"
                          }
                        },
                        {
                          "id": "4",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 4,
                            "event": "company.updated",
                            "description": "Triggers when company is updated"
                          }
                        },
                        {
                          "id": "5",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 5,
                            "event": "company.destroyed",
                            "description": "Triggers when company is destroyed"
                          }
                        },
                        {
                          "id": "6",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 6,
                            "event": "opportunity.created",
                            "description": "Triggers when new opportunity is created"
                          }
                        },
                        {
                          "id": "7",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 7,
                            "event": "opportunity.updated",
                            "description": "Triggers when opportunity is updated"
                          }
                        },
                        {
                          "id": "8",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 8,
                            "event": "opportunity.destroyed",
                            "description": "Triggers when opportunity is destroyed"
                          }
                        },
                        {
                          "id": "9",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 9,
                            "event": "custom_object.created",
                            "description": "Triggers when custom object is created"
                          }
                        },
                        {
                          "id": "10",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 10,
                            "event": "custom_object.updated",
                            "description": "Triggers when custom object is updated"
                          }
                        },
                        {
                          "id": "11",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 11,
                            "event": "custom_object.destroyed",
                            "description": "Triggers when custom object is destroyed"
                          }
                        },
                        {
                          "id": "12",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 12,
                            "event": "campaign.created",
                            "description": "Triggers when campaign is created"
                          }
                        },
                        {
                          "id": "13",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 13,
                            "event": "campaign.updated",
                            "description": "Triggers when campaign is updated, or when contacts are added or deleted from a campaign"
                          }
                        },
                        {
                          "id": "14",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 14,
                            "event": "campaign.destroyed",
                            "description": "Triggers when campaign is destroyed"
                          }
                        },
                        {
                          "id": "15",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 15,
                            "event": "bulk_import.completed",
                            "description": "Triggers when bulk import job is completed"
                          }
                        },
                        {
                          "id": "16",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 16,
                            "event": "interaction.created",
                            "description": "Triggers when interaction is created"
                          }
                        },
                        {
                          "id": "17",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 17,
                            "event": "interaction.updated",
                            "description": "Triggers when interaction is updated"
                          }
                        },
                        {
                          "id": "18",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 18,
                            "event": "interaction.destroyed",
                            "description": "Triggers when interaction is destroyed"
                          }
                        },
                        {
                          "id": "19",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 19,
                            "event": "ticket.created",
                            "description": "Triggers when ticket is created"
                          }
                        },
                        {
                          "id": "20",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 20,
                            "event": "ticket.updated",
                            "description": "Triggers when ticket is updated"
                          }
                        },
                        {
                          "id": "21",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 21,
                            "event": "ticket.destroyed",
                            "description": "Triggers when ticket is destroyed"
                          }
                        },
                        {
                          "id": "22",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 22,
                            "event": "quote.created",
                            "description": "Triggers when quote is created"
                          }
                        },
                        {
                          "id": "23",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 23,
                            "event": "quote.updated",
                            "description": "Triggers when quote is updated"
                          }
                        },
                        {
                          "id": "24",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 24,
                            "event": "quote.destroyed",
                            "description": "Triggers when quote is destroyed"
                          }
                        },
                        {
                          "id": "25",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 25,
                            "event": "quote_product.created",
                            "description": "Triggers when quote product is created"
                          }
                        },
                        {
                          "id": "26",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 26,
                            "event": "quote_product.updated",
                            "description": "Triggers when quote product is updated"
                          }
                        },
                        {
                          "id": "27",
                          "type": "webhook_events",
                          "attributes": {
                            "id": 27,
                            "event": "quote_product.destroyed",
                            "description": "Triggers when quote product is destroyed"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Type": {
                "description": "application/vnd.api+json; charset=utf-8"
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Campaigns",
      "description": "Campaigns are lists of contacts that share some common attribute such as location, industry, or lead source.  You can send out specialized emails to the campaign, call the contacts, or use them as methods of organization."
    },
    {
      "name": "Companies",
      "description": "Every company that you have conducted business with will be stored in Spiro.  Any number of contacts or opportunities can be associated with a given company."
    },
    {
      "name": "Contacts",
      "description": "A contact is any person with whom you have conducted business with, you are currently conducting business, or you may conduct business with in the future. Each contact should belong to a company, and multiple opportunities can be associated with one contact."
    },
    {
      "name": "Custom Objects",
      "description": "A custom object can be thought of as a class. You can choose to associate it with opportunities, contacts, companies, or other custom objects and an instance of your custom object will be linked to each instance of its associated entities. For example, say you have a custom objects called “Quotes”, and you want to associate it with contacts. Each contact created will have this linked “Quotes” object, and every quote you add will stay attached to the contact. A separate instance of the custom object will be associated with each contact."
    },
    {
      "name": "Activities",
      "description": "**Activities** are interactions with contacts that you create using the application.\n\nThe `call_duration` attribute holds the length of the call **in seconds** (a whole number, e.g. `180` for a three minute call).\n"
    },
    {
      "name": "Attachments",
      "description": "**Attachments**"
    },
    {
      "name": "Emails",
      "description": "**Emails**"
    },
    {
      "name": "Events",
      "description": "**Events**"
    },
    {
      "name": "Interactions",
      "description": "**Interactions** are the unified record of every CRM touch-point in Spiro.\n\nA single interaction can be one of several subtypes — `Activity`, `Email`, `Event`, `Note`, `Attachment` or `SmsMessage` — and they are all returned by this endpoint so you can pull a complete, chronological timeline of everything that happened with a contact, company, opportunity or ticket.\n\nEach interaction can be associated with a `user` (the Spiro user who owns it) and with one or more related records (`contacts`, `opportunities`, `companies`, `tickets`).\n\nUse the `filter[type]` / `filter[type_not]` parameters to narrow the timeline to specific subtypes, the `filter[contact_id]` / `filter[company_id]` / `filter[opportunity_id]` parameters to scope it to a related record, and the `filter[interacted_at_gt]` / `filter[interacted_at_lt]` parameters to restrict it to a date range. Results are ordered by `interacted_at` ascending by default; pass `sort=-interacted_at` to get the most recent interactions first.\n"
    },
    {
      "name": "Notes",
      "description": "**Notes**"
    },
    {
      "name": "Sms Messages",
      "description": "**SMS Messages**"
    },
    {
      "name": "Opportunities",
      "description": "Opportunities can be thought of as anything that has the potential to become a closed deal. Sales reps can use opportunities to keep track of their current deals, as well as predict future sales metrics.  In Spiro, an opportunity must be associated with one company and might have multiple contacts. A company and a contact may have links to multiple opportunities. Opportunities can be progressed with customizable sales stages, which they can then be filtered by."
    },
    {
      "name": "Opportunity Stages",
      "description": "Each opportunity is progressed along a set of stages to indicate at what point of the sales process the deal is. These stages are fully customizable, though the default are **Prospecting**, **Qualifying**, **Proposing**, **Closing**, **Closed Won** and **Closed Lost**"
    },
    {
      "name": "Pipelines",
      "description": "A pipeline can be thought of as a summary of all ongoing deals. For each stage in the sales process, your pipeline will report the number and value of the ongoing deals."
    },
    {
      "name": "Products",
      "description": "**Products** (WIP)"
    },
    {
      "name": "Reminders",
      "description": "Reminders will prompt you to take action in your business dealings. Each reminder must be associated with a specific contact, company or opportunity."
    },
    {
      "name": "SalesInvoiceItems",
      "description": "**Sales Invoice Items** (WIP)"
    },
    {
      "name": "SalesInvoices",
      "description": "**Sales Invoices** (WIP)"
    },
    {
      "name": "SalesOrderSummaries",
      "description": "**Sales Order Summaries**"
    },
    {
      "name": "SalesOrderItems",
      "description": "**Sales Order Items** (WIP)"
    },
    {
      "name": "SalesOrders",
      "description": "**Sales Orders**"
    },
    {
      "name": "SupportDesks",
      "description": "A Support Desk can be thought of as the mailbox for your customer support team. You can add multiple Support Desks, for example if you have separate support teams for different products or geographies."
    },
    {
      "name": "Tickets",
      "description": "A Ticket is a type of record in Spiro that is used to track support requests from customers. Tickets will be managed in their own module in Spiro, and will also be summarized at the account and contact level."
    },
    {
      "name": "Users",
      "description": "**Users** are records of the people inside your organization."
    },
    {
      "name": "Webhooks",
      "description": "**Webhook** is a way for an app to provide other applications with real-time information. A webhook delivers data to other applications as it happens, meaning you get data immediately.\nYou can secure your webhooks with a verification token (contact support@spiro.ai).\nWhen your secret token is set, Spiro uses it to create a hash signature with each payload.\nThis hash signature is included with the headers of each request as `X-Spiro-Signature`.\nThe intention is to calculate a hash using your `SECRET_TOKEN`, and ensure that the result matches the hash from Spiro. Spiro uses an HMAC hex digest to compute the hash.\n\n```ruby\ndef verify_signature(payload_body)\n  signature = 'sha256=' + OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), ENV['SECRET_TOKEN'], payload_body)\n  return halt 500, \"Signatures didn't match!\" unless Rack::Utils.secure_compare(signature, request.env['X-Spiro-Signature'])\nend\n```\n\nYour language and server implementations may differ from this example code. However, there are a number of very important things to point out:\n\n- No matter which implementation you use, the hash signature starts with `sha256=`, using the key of your secret token and your payload body.\n- Using a plain `==` operator is not advised. A method like `secure_compare` performs a \"constant time\" string comparison, which helps mitigate certain timing attacks against regular equality operators.\n"
    }
  ],
  "x-tagGroups": [
    {
      "name": "Campaigns",
      "tags": [
        "Campaigns"
      ]
    },
    {
      "name": "Companies",
      "tags": [
        "Companies"
      ]
    },
    {
      "name": "Contacts",
      "tags": [
        "Contacts"
      ]
    },
    {
      "name": "Custom Objects",
      "tags": [
        "Custom Objects"
      ]
    },
    {
      "name": "Interactions",
      "tags": [
        "Activities",
        "Attachments",
        "Emails",
        "Events",
        "Interactions",
        "Notes",
        "Sms Messages"
      ]
    },
    {
      "name": "Opportunities",
      "tags": [
        "Opportunities"
      ]
    },
    {
      "name": "Opportunity Stages",
      "tags": [
        "Opportunity Stages"
      ]
    },
    {
      "name": "Pipelines",
      "tags": [
        "Pipelines"
      ]
    },
    {
      "name": "Products",
      "tags": [
        "Products"
      ]
    },
    {
      "name": "Reminders",
      "tags": [
        "Reminders"
      ]
    },
    {
      "name": "SalesInvoices",
      "tags": [
        "SalesInvoiceItems",
        "SalesInvoices"
      ]
    },
    {
      "name": "SalesOrderSummaries",
      "tags": [
        "SalesOrderSummaries"
      ]
    },
    {
      "name": "SalesOrders",
      "tags": [
        "SalesOrderItems",
        "SalesOrders"
      ]
    },
    {
      "name": "SupportDesks",
      "tags": [
        "SupportDesks"
      ]
    },
    {
      "name": "Tickets",
      "tags": [
        "Tickets"
      ]
    },
    {
      "name": "Users",
      "tags": [
        "Users"
      ]
    },
    {
      "name": "Webhooks",
      "tags": [
        "Webhooks"
      ]
    }
  ]
}
