{"openapi":"3.1.0","info":{"title":"core-resources","version":"1"},"servers":[{"url":"https://api.assembly.com"}],"components":{"securitySchemes":{"sec0":{"type":"apiKey","in":"header","name":"X-API-KEY"}}},"security":[{"sec0":[]}],"paths":{"/v1/installs":{"get":{"summary":"List App Installs","description":"This endpoint lists all app installs within the workspace associated with this API Key. <br/><br/>Returns the apps in sorted order as displayed in the left navbar.","operationId":"list-app-installs","responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"[\n  {\n    \"appId\": \"a6e3a6f3-2f2a-4c79-b77c-9508da6e80dc\",\n    \"displayName\": \"Home\",\n    \"id\": \"15dadd33-1e63-4e59-9752-d5e916cfae59\",\n    \"type\": \"marketplace\",\n    \"object\": \"appInstall\"\n  },\n  {\n    \"appId\": \"38323633-6465-6132-3730-383065323230\",\n    \"displayName\": \"Messages\",\n    \"id\": \"62346132-6462-3736-3733-366430333631\",\n    \"type\": \"core\",\n    \"object\": \"appInstall\"\n  },\n  {\n    \"appId\": \"66666663-3861-6633-3830-323337613065\",\n    \"displayName\": \"Forms\",\n    \"id\": \"31376233-6332-3739-6561-643361396237\",\n    \"type\": \"core\",\n    \"object\": \"appInstall\"\n  },\n  {\n    \"appId\": \"\",\n    \"displayName\": \"Schedule with me\",\n    \"id\": \"45729d42-f825-491e-aec4-a58a5a4f74fe\",\n    \"type\": \"link\",\n    \"object\": \"appInstall\"\n  }\n]"}},"schema":{"type":"array","items":{"type":"object","properties":{"appId":{"type":"string","example":"a6e3a6f3-2f2a-4c79-b77c-9508da6e80dc"},"displayName":{"type":"string","example":"Home"},"id":{"type":"string","example":"15dadd33-1e63-4e59-9752-d5e916cfae59"},"type":{"type":"string","example":"marketplace"},"object":{"type":"string","example":"appInstall"}}}}}}}},"deprecated":false}},"/v1/installs/{installId}":{"get":{"summary":"Retrieve App Install","description":"This API endpoint retrieves a specific App Install.","operationId":"retrieve-app-install","parameters":[{"name":"installId","in":"path","description":"The App Install id to retrive","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"  {\n    \"appId\": \"a6e3a6f3-2f2a-4c79-b77c-9508da6e80dc\",\n    \"displayName\": \"Home\",\n    \"id\": \"15dadd33-1e63-4e59-9752-d5e916cfae59\",\n    \"type\": \"marketplace\",\n    \"object\": \"appInstall\"\n  }"}},"schema":{"type":"object","properties":{"appId":{"type":"string","example":"a6e3a6f3-2f2a-4c79-b77c-9508da6e80dc"},"displayName":{"type":"string","example":"Home"},"id":{"type":"string","example":"15dadd33-1e63-4e59-9752-d5e916cfae59"},"type":{"type":"string","example":"marketplace"},"object":{"type":"string","example":"appInstall"}}}}}}},"deprecated":false}},"/v1/installs/{installId}/connections":{"get":{"summary":"List App Connections","description":"This endpoint lists all app connections for the specified manual app install within the workspace.","operationId":"list-app-connections","parameters":[{"name":"installId","in":"path","schema":{"type":"string"},"required":true},{"name":"clientId","in":"query","description":"If specified, only app connections that are visible to this client will be returned","schema":{"type":"string"}},{"name":"companyId","in":"query","required":false,"description":"If specified, only app connections that are associated with this company will be returned","schema":{"type":"string","default":""}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"[\n  {\n    \"clientIds\": [\n      \"6607c487-199d-4c9a-b3e1-f4491bc29ddf\"\n    ],\n    \"companyId\": null,\n    \"content\": \"https://specific-link1.com\",\n    \"createdAt\": \"2024-03-29T16:41:54.267514747Z\",\n    \"id\": \"9ca3f6bb-ddb2-4007-8206-021cfbb39475\",\n    \"installId\": \"21e21a4e-6bbb-47d0-a9bd-c4e99a3ca9a2\",\n    \"membershipType\": \"individual\",\n    \"object\": \"appConnection\",\n    \"type\": \"link\"\n  },\n  {\n    \"clientIds\": null,\n    \"companyId\": \"48828ede-1d82-4012-9544-5f1b028f1654\",\n    \"content\": \"https://specific-link2.com\",\n    \"createdAt\": \"2024-03-29T16:42:31.267076692Z\",\n    \"id\": \"498249d7-a26a-40cc-83a8-2fa9c5cbee26\",\n    \"installId\": \"21e21a4e-6bbb-47d0-a9bd-c4e99a3ca9a2\",\n    \"membershipType\": \"company\",\n    \"object\": \"appConnection\",\n    \"type\": \"link\"\n  },\n  {\n    \"clientIds\": [\n      \"1251e03d-610d-4680-bb48-ad78fe114173\",\n      \"832422d6-4645-4ea5-be2a-fbd939284bed\"\n    ],\n    \"companyId\": null,\n    \"content\": \"https://specific-embed3.com\",\n    \"createdAt\": \"2024-04-01T19:28:11.84128979Z\",\n    \"id\": \"6c3cb59e-ddb9-43ab-bd05-24265cd745aa\",\n    \"installId\": \"21e21a4e-6bbb-47d0-a9bd-c4e99a3ca9a2\",\n    \"membershipType\": \"group\",\n    \"object\": \"appConnection\",\n    \"type\": \"embed\"\n  }\n]"}},"schema":{"type":"array","items":{"type":"object","properties":{"clientIds":{"type":"array","items":{"type":"string","example":"6607c487-199d-4c9a-b3e1-f4491bc29ddf"}},"companyId":{},"content":{"type":"string","example":"https://specific-link1.com"},"createdAt":{"type":"string","example":"2024-03-29T16:41:54.267514747Z"},"id":{"type":"string","example":"9ca3f6bb-ddb2-4007-8206-021cfbb39475"},"installId":{"type":"string","example":"21e21a4e-6bbb-47d0-a9bd-c4e99a3ca9a2"},"membershipType":{"type":"string","example":"individual"},"object":{"type":"string","example":"appConnection"},"type":{"type":"string","example":"link"},"updatedAt":{"type":"string"}}}}}}}},"deprecated":false},"post":{"summary":"Create App Connection","description":"This endpoint creates an app connection for a manual app install. One of <b>companyId</b> or <b>clientIds</b> must be non-null, specifying the client(s)/company who will receive the specified content.","operationId":"create-app-connection","parameters":[{"name":"installId","in":"path","description":"The manual app install id to connect","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["type","content"],"properties":{"companyId":{"type":"string","description":"The company ID to create the connection for if creating a company membership type connection. Also required when creating individual or group connections where the specified clients belong to multiple companies"},"clientIds":{"type":"array","description":"The client users to be included as members of the app connection if creating a group membership type connection. Client users must be part of same company.","items":{"type":"string"}},"type":{"type":"string","description":"The type of connection to create, this will affect how clients view the connection within the workspace. One of: `embed` or `link`."},"content":{"type":"string","description":"The content that should be seen by the members of the app connection. Can be a public URL or iframe."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"clientIds\": [\n    \"57a675da-063c-4eed-8a04-214d91e4b2e8\"\n  ],\n  \"companyId\": null,\n  \"content\": \"https://embed-content.com\",\n  \"createdAt\": \"2024-05-06T23:20:01.280062546Z\",\n  \"id\": \"f298a3f6-d982-4032-a139-8194fb16a991\",\n  \"installId\": \"21e21a4e-6bbb-47d0-a9bd-c4e99a3ca9a2\",\n  \"membershipType\": \"group\",\n  \"object\": \"appConnection\",\n  \"type\": \"embed\"\n}"}},"schema":{"type":"object","properties":{"clientIds":{"type":"array","items":{"type":"string","example":"57a675da-063c-4eed-8a04-214d91e4b2e8"}},"companyId":{"type":"string"},"content":{"type":"string","example":"https://embed-content.com"},"createdAt":{"type":"string","example":"2024-05-06T23:20:01.280062546Z"},"id":{"type":"string","example":"f298a3f6-d982-4032-a139-8194fb16a991"},"installId":{"type":"string","example":"21e21a4e-6bbb-47d0-a9bd-c4e99a3ca9a2"},"membershipType":{"type":"string","example":"group"},"object":{"type":"string","example":"appConnection"},"type":{"type":"string","example":"embed"},"updatedAt":{"type":"string"}}}}}}},"deprecated":false}},"/v1/clients":{"post":{"summary":"Create Client","description":"This API endpoint creates a client.","operationId":"create-client","parameters":[{"name":"sendInvite","in":"query","description":"If true then send an account invite to the client.","schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["givenName","familyName","email"],"properties":{"givenName":{"type":"string","description":"The client's given name (first name)"},"familyName":{"type":"string","description":"The client's family name (last name)"},"email":{"type":"string","description":"The client's email"},"companyId":{"type":"string","description":"The ID of the company this client belongs to. When no ID is provided, a placeholder company will be created and returned in the response object"},"customFields":{"type":"string","description":"The keys are the `key` of the custom field property, and the values are an array of custom field option `key`s (in the  case of multiSelect custom fields), or the direct value in the case of all other types of custom fields.","format":"json"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"1fe85b46-6a3d-4dcc-abbc-b76ac720784e","object":"client","createdAt":"2024-02-02T21:30:28.929541031Z","givenName":"John","familyName":"Doe","email":"johndoe@copilot.app","companyId":"bca425ea-daf0-4fb1-add1-c010a95de999","companyIds":["bca425ea-daf0-4fb1-add1-c010a95de999"],"status":"active","fallbackColor":"#938EAB","inviteUrl":"https://productiondemo.copilot.app","avatarImageUrl":"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/a3bc03a8-627e-4e27-ae59-2dbc2e831d36","firstLoginDate":"2024-02-02T21:30:30.200075382Z","lastLoginDate":"2024-02-02T21:30:30.200075382Z","customFields":{"phoneNumber":"+18185552345","email":"johnDoe2@assembly.com","url":"https://example.com","number":1001,"text":"sample text field","tags":["sampleTag"],"address":{"country":"US","region":"New York","postalCode":"10001","addressLine1":"1201 Broadway","addressLine2":"704","city":"New York","fullAddress":"1201 Broadway\n704\nNew York, New York, 10001\nUnited States"}},"creationMethod":"internalUser"}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"1fe85b46-6a3d-4dcc-abbc-b76ac720784e"},"object":{"type":"string","example":"client"},"createdAt":{"type":"string","example":"2024-02-02T21:30:28.929541031Z"},"givenName":{"type":"string","example":"John"},"familyName":{"type":"string","example":"Doe"},"email":{"type":"string","example":"johndoe@copilot.app"},"companyId":{"type":"string","example":"bca425ea-daf0-4fb1-add1-c010a95de999","deprecated":true},"companyIds":{"type":"array","items":{"type":"string","example":"bca425ea-daf0-4fb1-add1-c010a95de999"}},"status":{"type":"string","example":"active"},"fallbackColor":{"type":"string","example":"#938EAB"},"inviteUrl":{"type":"string","example":"https://productiondemo.copilot.app"},"avatarImageUrl":{"type":"string","example":"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/a3bc03a8-627e-4e27-ae59-2dbc2e831d36"},"firstLoginDate":{"type":"string","example":"2024-02-02T21:30:30.200075382Z"},"lastLoginDate":{"type":"string","example":"2024-02-02T21:30:30.200075382Z"},"customFields":{"type":"object","properties":{"phoneNumber":{"type":"string","example":"+18185552345"},"tags":{"type":"array","items":{"type":"string","example":"sampleTag"}},"address":{"type":"object","properties":{"country":{"type":"string","example":"US"},"region":{"type":"string","example":"New York"},"postalCode":{"type":"string","example":"10001"},"addressLine1":{"type":"string","example":"1201 Broadway"},"addressLine2":{"type":"string","example":"704"},"city":{"type":"string","example":"New York"},"fullAddress":{"type":"string","example":"1201 Broadway\n704\nNew York, New York, 10001\nUnited States"}}},"email":{"type":"string"},"url":{"type":"string"},"number":{"type":"number"}}},"creationMethod":{"type":"string","example":"internalUser"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"parameter_invalid":{"value":"{\n    \"code\": \"parameter_invalid\",\n    \"message\": \"Provided parameters are invalid\"\n}"},"account_already_exists":{"value":"{\n  \"code\": \"account_already_exists\",\n  \"message\": \"This email is already in use\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"parameter_invalid"},"message":{"type":"string","example":"Provided parameters are invalid"}}}}}}},"deprecated":false},"get":{"summary":"List Clients","description":"This API endpoint retrieves a list of clients. <br><br>You can use the query params to filter a subset of clients who match specific field values.","operationId":"list-clients","parameters":[{"name":"companyId","in":"query","required":false,"description":"Any of the company IDs of the client user(s) to query for.","schema":{"type":"string","default":""}},{"name":"email","in":"query","description":"The email of the client user to query for (exact match, case-sensitive).","schema":{"type":"string"}},{"name":"givenName","in":"query","description":"The given name of the client user(s) to query for (exact match, case-sensitive).","schema":{"type":"string"}},{"name":"familyName","in":"query","description":"The family name of the client user(s) to query for (exact match, case-sensitive).","schema":{"type":"string"}},{"name":"nextToken","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","format":"int32","default":100}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"avatarImageUrl":"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/a3bc03a8-627e-4e27-ae59-2dbc2e831d36","companyId":"4bab7a19-d99c-4917-bda9-33bc7c37ed2d","companyIds":["4bab7a19-d99c-4917-bda9-33bc7c37ed2d"],"createdAt":"2025-09-29T18:16:11.00983876Z","creationMethod":"internalUser","customFields":{"address":{"addressLine1":"640 Knickerbocker Avenue","addressLine2":"2B","city":"Brooklyn","country":"US","fullAddress":"640 Knickerbocker Avenue\n2B\nBrooklyn, New York, 11221\nUnited States","postalCode":"11221","region":"New York"},"email":"johndoe@gmail.com","number":"001","phoneNumber":"+19175555555","tags":["sampleTag1","sampleTag2"],"text":"Sample text custom field","url":"https://johndoe.com"},"email":"johndoe@assembly.com","fallbackColor":"#5E0B15","familyName":"Doe","firstLoginDate":"2025-09-29T18:26:04.395996248Z","givenName":"John","id":"830c6d97-2e67-4b5f-baa3-d559709421bd","inviteUrl":"https://productiondemoallene.copilot.app/u/z04vZ2qNg","invitedBy":"","lastLoginDate":"2025-09-29T18:28:17.338394182Z","object":"client","status":"active","updatedAt":"2025-09-29T18:48:26.648965381Z"},{"avatarImageUrl":"","companyId":"90052c0d-f2c8-47eb-b90e-d1772bc65343","companyIds":["90052c0d-f2c8-47eb-b90e-d1772bc65343"],"createdAt":"2023-12-07T23:22:30.683734221Z","creationMethod":"internalUser","customFields":{},"email":"sample5@assembly.com","fallbackColor":"#5E0B15","familyName":"Client5","firstLoginDate":"2023-12-21T22:13:29.807621789Z","givenName":"Sample","id":"2fa72958-6b8b-49da-8c91-0d3b0757ad6d","inviteUrl":"https://productiondemoallene.copilot.app/u/u5vEzVvIR","invitedBy":"","lastLoginDate":"2023-12-21T22:13:29.807621789Z","object":"client","status":"active","updatedAt":"2024-01-17T17:13:35.683574395Z"}],"nextToken":"eyJwa2V5IjoiODc2NjdkY2ItNjcxNC00ZmNkLWJjNGUtNDI0ZGUxMzNiZjYyIiwic2tleSI6IkNMSUVOVF9DT01QQU5ZIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ=="}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"b341c3e8-d991-4647-8839-337b2a7f792d"},"object":{"type":"string","example":"client"},"createdAt":{"type":"string","example":"2024-01-26T23:21:26.877676074Z"},"givenName":{"type":"string","example":"Sample"},"familyName":{"type":"string","example":"Client1"},"email":{"type":"string","example":"client1@copilot.app"},"companyId":{"type":"string","example":"08a168a4-2c97-441e-8373-f8cd49c79241","deprecated":true},"companyIds":{"type":"array","items":{"type":"string","example":"08a168a4-2c97-441e-8373-f8cd49c79241"}},"status":{"type":"string","example":"notInvited"},"inviteUrl":{"type":"string","example":"https://productiondemo.copilot.app/u/jiDAQ4tSR"},"avatarImageUrl":{"type":"string"},"firstLoginDate":{"type":"string"},"lastLoginDate":{"type":"string"},"customFields":{"type":"object","properties":{"phoneNumber":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"address":{"type":"object","properties":{"country":{"type":"string"},"region":{"type":"string"},"postalCode":{"type":"string"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"fullAddress":{"type":"string"}}},"email":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"},"number":{"type":"number"}}},"fallbackColor":{"type":"string","example":"#938EAB"},"creationMethod":{"type":"string","example":"directSignUp"},"updatedAt":{"type":"string"}}}},"nextToken":{"type":"string","example":"eyJwa2V5IjoiODc2NjdkY2ItNjcxNC00ZmNkLWJjNGUtNDI0ZGUxMzNiZjYyIiwic2tleSI6IkNMSUVOVF9DT01QQU5ZIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ=="}}}}}},"403":{"description":"403","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"message\": \"Forbidden\"\n}"}},"schema":{"type":"object","properties":{"message":{"type":"string","example":"Forbidden"}}}}}}},"deprecated":false,"security":[{"sec0":[]}]}},"/v1/clients/{id}":{"get":{"summary":"Retrieve Client","description":"This API endpoint retrieves a specific client.","operationId":"retrieve-client","parameters":[{"name":"id","in":"path","description":"The unique ID of the client to retrieve","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"avatarImageUrl":"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/a3bc03a8-627e-4e27-ae59-2dbc2e831d36","companyId":"4bab7a19-d99c-4917-bda9-33bc7c37ed2d","companyIds":["4bab7a19-d99c-4917-bda9-33bc7c37ed2d"],"createdAt":"2025-09-29T18:16:11.00983876Z","creationMethod":"internalUser","customFields":{"address":{"addressLine1":"640 Knickerbocker Avenue","addressLine2":"2B","city":"Brooklyn","country":"US","fullAddress":"640 Knickerbocker Avenue\n2B\nBrooklyn, New York, 11221\nUnited States","postalCode":"11221","region":"New York"},"email":"johndoe@gmail.com","number":"001","phoneNumber":"+19175555555","tags":["sampleTag1","sampleTag2"],"text":"Sample text custom field","url":"https://johndoe.com"},"email":"johndoe@assembly.com","fallbackColor":"#5E0B15","familyName":"Doe","firstLoginDate":"2025-09-29T18:26:04.395996248Z","givenName":"John","id":"830c6d97-2e67-4b5f-baa3-d559709421bd","inviteUrl":"https://productiondemoallene.copilot.app/u/z04vZ2qNg","invitedBy":"0d709dca-8176-4a0e-8fd2-6a8675f1920f","lastLoginDate":"2025-09-29T18:27:19.253493925Z","object":"client","status":"active","updatedAt":"2025-09-29T18:27:22.91812694Z"}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"1fe85b46-6a3d-4dcc-abbc-b76ac720784e"},"object":{"type":"string","example":"client"},"createdAt":{"type":"string","example":"2024-02-02T21:30:28.929541031Z"},"givenName":{"type":"string","example":"John"},"familyName":{"type":"string","example":"Doe"},"email":{"type":"string","example":"johndoe@copilot.app"},"companyId":{"type":"string","example":"bca425ea-daf0-4fb1-add1-c010a95de999","deprecated":true},"companyIds":{"type":"array","items":{"type":"string","example":"bca425ea-daf0-4fb1-add1-c010a95de999"}},"status":{"type":"string","example":"active"},"fallbackColor":{"type":"string","example":"#938EAB"},"inviteUrl":{"type":"string","example":"https://productiondemo.copilot.app"},"avatarImageUrl":{"type":"string","example":"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/a3bc03a8-627e-4e27-ae59-2dbc2e831d36"},"firstLoginDate":{"type":"string","example":"2024-02-02T21:30:30.200075382Z"},"lastLoginDate":{"type":"string","example":"2024-02-02T21:30:30.200075382Z"},"customFields":{"type":"object","properties":{"phoneNumber":{"type":"string","example":"+18185552345"},"tags":{"type":"array","items":{"type":"string","example":"sampleTag"}},"address":{"type":"object","properties":{"country":{"type":"string","example":"US"},"region":{"type":"string","example":"New York"},"postalCode":{"type":"string","example":"10001"},"addressLine1":{"type":"string","example":"1201 Broadway"},"addressLine2":{"type":"string","example":"704"},"city":{"type":"string","example":"New York"},"fullAddress":{"type":"string","example":"1201 Broadway\n704\nNew York, New York, 10001\nUnited States"}}},"email":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"},"number":{"type":"number"}}},"creationMethod":{"type":"string","example":"internalUser"},"updatedAt":{"type":"string"}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"not_found\",\n  \"message\": \"Client not found\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found"},"message":{"type":"string","example":"Client not found"}}}}}}},"deprecated":false},"patch":{"summary":"Update Client","description":"This API endpoint updates a specific client.  <br><br> This PATCH request will only update the fields you specify (including custom fields), leaving the rest as they were. <br><br>Please note that for multi-select (tag) custom fields, all custom field options (tag values) must be included, the PATCH request will not preserve existing custom field options (tags).","operationId":"update-client","parameters":[{"name":"id","in":"path","description":"The ID of the client to update","schema":{"type":"string"},"required":true},{"name":"sendInvite","in":"query","description":"Sends an email invitation to the updated client.","schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"givenName":{"type":"string","description":"The client's given name."},"familyName":{"type":"string","description":"The client's family name."},"companyId":{"type":"string","description":"The ID of the company to assign this client to. This will replace the current companies that the client is assigned to."},"customFields":{"type":"string","description":"The key is the custom field’s key, and the value is either an array of option keys (for multi-select fields) or a direct value for all other types. You can clear a field by passing an empty string (or empty array for multi-select); omitting the field leaves it unchanged.","format":"json"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"1fe85b46-6a3d-4dcc-abbc-b76ac720784e","object":"client","createdAt":"2024-02-02T21:30:28.929541031Z","givenName":"John","familyName":"Doe","email":"johndoe@copilot.app","companyId":"bca425ea-daf0-4fb1-add1-c010a95de999","companyIds":["bca425ea-daf0-4fb1-add1-c010a95de999"],"status":"active","fallbackColor":"#938EAB","inviteUrl":"https://productiondemo.copilot.app","avatarImageUrl":"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/a3bc03a8-627e-4e27-ae59-2dbc2e831d36","firstLoginDate":"2024-02-02T21:30:30.200075382Z","lastLoginDate":"2024-02-02T21:30:30.200075382Z","customFields":{"phoneNumber":"+18185552345","tags":["sampleTag"],"address":{"country":"US","region":"New York","postalCode":"10001","addressLine1":"1201 Broadway","addressLine2":"704","city":"New York","fullAddress":"1201 Broadway\n704\nNew York, New York, 10001\nUnited States"}},"creationMethod":"internalUser"}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"1fe85b46-6a3d-4dcc-abbc-b76ac720784e"},"object":{"type":"string","example":"client"},"createdAt":{"type":"string","example":"2024-02-02T21:30:28.929541031Z"},"givenName":{"type":"string","example":"John"},"familyName":{"type":"string","example":"Doe"},"email":{"type":"string","example":"johndoe@copilot.app"},"companyId":{"type":"string","example":"bca425ea-daf0-4fb1-add1-c010a95de999","deprecated":true},"companyIds":{"type":"array","items":{"type":"string","example":"bca425ea-daf0-4fb1-add1-c010a95de999"}},"status":{"type":"string","example":"active"},"fallbackColor":{"type":"string","example":"#938EAB"},"inviteUrl":{"type":"string","example":"https://productiondemo.copilot.app"},"avatarImageUrl":{"type":"string","example":"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/a3bc03a8-627e-4e27-ae59-2dbc2e831d36"},"firstLoginDate":{"type":"string","example":"2024-02-02T21:30:30.200075382Z"},"lastLoginDate":{"type":"string","example":"2024-02-02T21:30:30.200075382Z"},"customFields":{"type":"object","properties":{"phoneNumber":{"type":"string","example":"+18185552345"},"tags":{"type":"array","items":{"type":"string","example":"sampleTag"}},"address":{"type":"object","properties":{"country":{"type":"string","example":"US"},"region":{"type":"string","example":"New York"},"postalCode":{"type":"string","example":"10001"},"addressLine1":{"type":"string","example":"1201 Broadway"},"addressLine2":{"type":"string","example":"704"},"city":{"type":"string","example":"New York"},"fullAddress":{"type":"string","example":"1201 Broadway\n704\nNew York, New York, 10001\nUnited States"}}}}},"creationMethod":{"type":"string","example":"internalUser"},"updatedAt":{"type":"string"}}}}}}},"deprecated":false},"put":{"summary":"Update a Client (destructive)","description":"This API endpoint updates a specific client.<br> <br>This PUT request will perform a destructive update and clear all unspecified field values, including custom fields.","operationId":"update-a-client-destructive","parameters":[{"name":"id","in":"path","description":"The ID of the client to update","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["givenName","familyName"],"properties":{"givenName":{"type":"string","description":"The client's given name."},"familyName":{"type":"string","description":"The client's family name."},"companyId":{"type":"string","description":"The ID of the company this client belongs to. If this field is left empty, the client will be **removed** from their existing company."},"customFields":{"type":"string","description":"The key is the `key` of the custom field property, and the value is an array of `key`s (in the  case of multiSelect custom fields), or the direct value in the case of all other types of custom fields.","format":"json"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"id\": \"1fe85b46-6a3d-4dcc-abbc-b76ac720784e\",\n    \"object\": \"client\",\n    \"createdAt\": \"2024-02-02T21:30:28.929541031Z\",\n    \"givenName\": \"John\",\n    \"familyName\": \"Doe\",\n    \"email\": \"johndoe@copilot.com\",\n    \"companyId\": \"bca425ea-daf0-4fb1-add1-c010a95de999\",\n    \"status\": \"active\",\n    \"inviteUrl\": \"https://productiondemo.copilot.app\",\n    \"avatarImageUrl\": \"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/a3bc03a8-627e-4e27-ae59-2dbc2e831d36\",\n    \"firstLoginDate\": \"2024-02-02T21:30:30.200075382Z\",\n    \"lastLoginDate\": \"2024-02-02T21:30:30.200075382Z\",\n    \"customFields\": {\n        \"phoneNumber\": \"+18185552345\",\n        \"tags\": [\n            \"sampleTag\"\n        ]\n    },\n    \"creationMethod\": \"internalUser\"\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"1fe85b46-6a3d-4dcc-abbc-b76ac720784e"},"object":{"type":"string","example":"client"},"createdAt":{"type":"string","example":"2024-02-02T21:30:28.929541031Z"},"givenName":{"type":"string","example":"John"},"familyName":{"type":"string","example":"Doe"},"email":{"type":"string","example":"johndoe@copilot.com"},"companyId":{"type":"string","example":"bca425ea-daf0-4fb1-add1-c010a95de999","deprecated":true},"companyIds":{"type":"array","items":{"type":"string","example":"bca425ea-daf0-4fb1-add1-c010a95de999"}},"status":{"type":"string","example":"active"},"inviteUrl":{"type":"string","example":"https://productiondemo.copilot.app"},"avatarImageUrl":{"type":"string","example":"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/a3bc03a8-627e-4e27-ae59-2dbc2e831d36"},"firstLoginDate":{"type":"string","example":"2024-02-02T21:30:30.200075382Z"},"lastLoginDate":{"type":"string","example":"2024-02-02T21:30:30.200075382Z"},"customFields":{"type":"object","properties":{"phoneNumber":{"type":"string","example":"+18185552345"},"tags":{"type":"array","items":{"type":"string","example":"sampleTag"}}}},"creationMethod":{"type":"string","example":"internalUser"}}}}}}},"deprecated":false},"delete":{"summary":"Delete Client","description":"This API endpoint permanently removes a specific client. When a client is deleted, the associated individual file and message channels are also deleted.","operationId":"delete-client","parameters":[{"name":"id","in":"path","description":"The ID of the client to delete","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"id\": \"25bd3f5a-c059-4f68-8a2d-2749016ba451\",\n  \"object\": \"client\",\n  \"deleted\": true\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"25bd3f5a-c059-4f68-8a2d-2749016ba451"},"object":{"type":"string","example":"client"},"deleted":{"type":"boolean","example":true,"default":true}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"not_found\",\n  \"message\": \"User not found\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found"},"message":{"type":"string","example":"User not found"}}}}}}},"deprecated":false}},"/v1/companies":{"post":{"summary":"Create Company","description":"This API endpoint creates a company.","operationId":"create-company","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"The company's name"},"iconImageUrl":{"type":"string","description":"Link (URL) to an image to use as the company's icon. Must be a publicly accessible URL."},"fallbackColor":{"type":"string","description":"Hexadecimal value (i.e. \"#9BBFFF\") of the color used to create an icon if an iconImageUrl is not defined on the company"},"customFields":{"type":"string","format":"json","description":"The keys are the key of the custom field property, and the values are an array of custom field option keys (in the case of multiSelect custom fields), or the direct value in the case of all other types of custom fields."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"b3be03e0-4e92-4483-997e-f6c351bfbd34","object":"company","createdAt":"2024-02-14T22:41:58.09460254Z","name":"RocketRides4","fallbackColor":"#7CAE7A","iconImageUrl":"","isPlaceholder":false,"customFields":{"phoneNumber":"+18185552345","email":"johnDoe2@assembly.com","url":"https://example.com","number":1001,"text":"sample text field","tags":["sampleTag"],"address":{"country":"US","region":"New York","postalCode":"10001","addressLine1":"1201 Broadway","addressLine2":"704","city":"New York","fullAddress":"1201 Broadway\n704\nNew York, New York, 10001\nUnited States"}}}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"b3be03e0-4e92-4483-997e-f6c351bfbd34"},"object":{"type":"string","example":"company"},"createdAt":{"type":"string","example":"2024-02-14T22:41:58.09460254Z"},"name":{"type":"string","example":"RocketRides4"},"fallbackColor":{"type":"string","example":"#7CAE7A"},"iconImageUrl":{"type":"string","example":""},"isPlaceholder":{"type":"boolean","example":false,"default":true},"customFields":{"type":"object","properties":{"phoneNumber":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"address":{"type":"object","properties":{"country":{"type":"string"},"region":{"type":"string"},"postalCode":{"type":"string"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"fullAddress":{"type":"string"}}},"email":{"type":"string"},"url":{"type":"string"},"number":{"type":"number"},"text":{"type":"string"}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"code\": \"parameter_invalid\",\n    \"message\": \"Provided parameters are invalid\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"parameter_invalid"},"message":{"type":"string","example":"Provided parameters are invalid"}}}}}}},"deprecated":false},"get":{"summary":"List Companies","description":"This API endpoint retrieves the list of companies.<br><br>You can use the query params to filter a subset of companies who match specific field values.","operationId":"list-companies","parameters":[{"name":"name","in":"query","description":"The name of the company to query for.","schema":{"type":"string"}},{"name":"isPlaceholder","in":"query","description":"If true, filter for all placeholder companies. If false, filter for all non-placeholder companies. If not provided, return all companies.","schema":{"type":"boolean"}},{"name":"nextToken","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","format":"int32","default":100}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"id":"4bab7a19-d99c-4917-bda9-33bc7c37ed2d","object":"company","createdAt":"2025-09-29T17:48:46.358534959Z","name":"Assembly","fallbackColor":"#EC4E20","iconImageUrl":"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/2246c44d-d76a-4504-b197-ce537552283e","isPlaceholder":false,"customFields":{"address":{"addressLine1":"903 Broadway","addressLine2":null,"city":"New York","country":"US","fullAddress":"903 Broadway\nNew York, New York, 10010\nUnited States","postalCode":"10010","region":"New York"},"email":"assemblycompany@assembly.com","number":"001","phoneNumber":"+19175555555","tags":["sampleTag1","sampleTag2"],"text":"Sample text custom field","url":"https://assembly.com"}},{"id":"3a935834-efd7-4221-a63f-1c11c4330a9d","object":"company","createdAt":"2025-09-02T21:42:54.664293519Z","name":"BrandMages","fallbackColor":"#7CAE7A","iconImageUrl":"","isPlaceholder":false}],"nextToken":"eyJwa2V5IjoiODc2NjdkY2ItNjcxNC00ZmNkLWJjNGUtNDI0ZGUxMzNiZjYyIiwic2tleSI6IkNMSUVOVF9DT01QQU5ZIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ=="}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"b3be03e0-4e92-4483-997e-f6c351bfbd34"},"object":{"type":"string","example":"company"},"createdAt":{"type":"string","example":"2024-02-14T22:41:58.09460254Z"},"name":{"type":"string","example":"RocketRides4"},"fallbackColor":{"type":"string","example":"#7CAE7A"},"iconImageUrl":{"type":"string","example":""},"isPlaceholder":{"type":"boolean","example":false,"default":true},"customFields":{"type":"object","properties":{"phoneNumber":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"address":{"type":"object","properties":{"country":{"type":"string"},"region":{"type":"string"},"postalCode":{"type":"string"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"fullAddress":{"type":"string"}}},"email":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"},"number":{"type":"number"}}}}}},"nextToken":{"type":"string","example":"eyJwa2V5IjoiODc2NjdkY2ItNjcxNC00ZmNkLWJjNGUtNDI0ZGUxMzNiZjYyIiwic2tleSI6IkNMSUVOVF9DT01QQU5ZIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ=="}}}}}},"403":{"description":"403","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"message\": \"Forbidden\"\n}"}},"schema":{"type":"object","properties":{"message":{"type":"string","example":"Forbidden"}}}}}}},"deprecated":false}},"/v1/companies/{id}":{"get":{"summary":"Retrieve Company","description":"This API endpoint retrieves a specific company.","operationId":"retrieve-company","parameters":[{"name":"id","in":"path","description":"The unique ID of the company to retrieve","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"4bab7a19-d99c-4917-bda9-33bc7c37ed2d","object":"company","createdAt":"2025-09-29T17:48:46.358534959Z","name":"Assembly","fallbackColor":"#EC4E20","iconImageUrl":"https://lightout-portal.s3-accelerate.amazonaws.com/public/b1VRvR-zM/images/profile_pictures/7f4331ef-101b-4248-9c74-3337661b1821/2246c44d-d76a-4504-b197-ce537552283e","isPlaceholder":false,"customFields":{"address":{"addressLine1":"903 Broadway","addressLine2":null,"city":"New York","country":"US","fullAddress":"903 Broadway\nNew York, New York, 10010\nUnited States","postalCode":"10010","region":"New York"},"email":"assemblycompany@assembly.com","number":"001","phoneNumber":"+19175555555","tags":["sampleTag1","sampleTag2"],"text":"Sample text custom field","url":"https://assembly.com"}}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"b3be03e0-4e92-4483-997e-f6c351bfbd34"},"object":{"type":"string","example":"company"},"createdAt":{"type":"string","example":"2024-02-14T22:41:58.09460254Z"},"name":{"type":"string","example":"RocketRides4"},"fallbackColor":{"type":"string","example":"#7CAE7A"},"iconImageUrl":{"type":"string","example":""},"isPlaceholder":{"type":"boolean","example":false,"default":true},"customFields":{"type":"object","properties":{"phoneNumber":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"address":{"type":"object","properties":{"country":{"type":"string"},"region":{"type":"string"},"postalCode":{"type":"string"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"fullAddress":{"type":"string"}}},"email":{"type":"string"},"text":{"type":"string"},"url":{"type":"string"},"number":{"type":"number"}}}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"code\": \"not_found\",\n    \"message\": \"Requested company was not found\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found"},"message":{"type":"string","example":"Requested company was not found"}}}}}}},"deprecated":false},"patch":{"summary":"Update Company","description":"This API endpoint updates a specific company.","operationId":"update-company","parameters":[{"name":"id","in":"path","description":"The ID of the company to be updated.","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The company’s new name. Note: an existing company name cannot be used."},"customFields":{"type":"string","format":"json","description":"The key is the key of the custom field property, and the value is an array of keys (in the  case of multiSelect custom fields), or the direct value in the case of all other types of custom fields."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"f22094b2-4e30-439e-a742-312f6c09519a","object":"company","createdAt":"2023-05-02T21:10:12Z","name":"Rocket Rides 2","fallbackColor":"#7CAE7A","iconImageUrl":"","isPlaceholder":false,"customFields":{"phoneNumber":"+18185552345","email":"company@assembly.com","url":"https://example.com","number":1001,"text":"sample text field","tags":["sampleTag"],"address":{"country":"US","region":"New York","postalCode":"10001","addressLine1":"1201 Broadway","addressLine2":"704","city":"New York","fullAddress":"1201 Broadway\n704\nNew York, New York, 10001\nUnited States"}}}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"f22094b2-4e30-439e-a742-312f6c09519a"},"object":{"type":"string","example":"company"},"createdAt":{"type":"string","example":"2023-05-02T21:10:12Z"},"name":{"type":"string","example":"Rocket Rides 2"},"fallbackColor":{"type":"string","example":"#7CAE7A"},"iconImageUrl":{"type":"string","example":""},"isPlaceholder":{"type":"boolean","example":false,"default":true},"customFields":{"type":"object","properties":{"phoneNumber":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"address":{"type":"object","properties":{"country":{"type":"string"},"region":{"type":"string"},"postalCode":{"type":"string"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"fullAddress":{"type":"string"}}},"email":{"type":"string"},"url":{"type":"string"},"number":{"type":"number"},"text":{"type":"string"}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"code\": \"parameter_invalid_empty\",\n    \"message\": \"Bad request for company operation\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"parameter_invalid_empty"},"message":{"type":"string","example":"Bad request for company operation"}}}}}}},"deprecated":false},"delete":{"summary":"Delete Company","description":"This API endpoint permanently removes a specific company. All clients that are part of this company will no longer be associated with any company (and each will instead be associated with a new placeholder company). When a company is deleted, the associated company file and message channels are also deleted.","operationId":"delete-company","parameters":[{"name":"id","in":"path","description":"The ID of the company to delete.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"id\": \"4d19c2d8-94e2-4c7c-9b24-a6ccb90f79e8\",\n  \"object\": \"company\",\n  \"deleted\": true\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"4d19c2d8-94e2-4c7c-9b24-a6ccb90f79e8"},"object":{"type":"string","example":"company"},"deleted":{"type":"boolean","example":true,"default":true}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/contracts":{"post":{"summary":"Send Contract","description":"This API endpoint sends a contract to the specified recipient.","operationId":"send-contract","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["contractTemplateId","clientId"],"properties":{"contractTemplateId":{"type":"string","description":"The unique ID of the contract template the contract is associated with."},"recipientId":{"type":"string","description":"Deprecated: Use clientId instead."},"clientId":{"type":"string","description":"The unique ID of the client receiving the contract request."},"companyId":{"type":"string","description":"The company ID of the client. Required when the client has more than one company."},"variableValues":{"type":"string","description":"A list of fields which represent the specific values for certain contract inputs. This param is only required if the contract template it is associated with has variable inputs. Example: `{\"input_id\":\"someValue\", \"other_input_id\": \"otherValue\"}`"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"contractTemplateId":"f919eafa-c800-48eb-bbf2-38e812b7241f","createdAt":"2023-12-20T23:22:55.242621924Z","fields":[{"id":"4d29b7af-44aa-4d81-9947-a6186abe208a","inputType":"fixed","isOptional":false,"page":1,"type":"signature","value":"Allene"},{"id":"9d447a8f-49b5-416e-8995-6b266c449f9f","inputType":"fixed","isOptional":false,"page":1,"type":"initials","value":"AN"},{"id":"f7f28436-034b-4270-a919-b03c09c5ef7c","inputType":"fixed","isOptional":false,"page":1,"type":"date","value":"12/20/2023"},{"id":"86dc3a1a-37ab-4898-ad17-8a7b82cb16f7","inputType":"fixed","isOptional":false,"page":1,"type":"text","value":"text field"},{"id":"741ffdd0-b2ec-4c14-b35f-3e77e6315c7e","inputType":"variable","isOptional":false,"label":"variable date","page":1,"type":"date","value":"12/20/2023"},{"id":"994db252-5bab-4948-a314-6ef33b22d6f3","inputType":"variable","isOptional":false,"label":"variable text","page":1,"type":"text","value":"my variable text"},{"id":"5447d651-4c38-4bf1-9bcd-b17709c87995","inputType":"autoFill","isOptional":false,"label":"{{client.firstName}}","page":1,"type":"text","value":"Client"},{"id":"810e7ffb-8a1e-4def-b4ee-dc9fcd4df286","inputType":"autoFill","isOptional":false,"label":"{{client.lastName}}","page":1,"type":"text","value":"Four"},{"id":"6acd515f-2a6d-4f80-906d-48180a53c9d3","inputType":"autoFill","isOptional":false,"label":"{{client.fullName}}","page":1,"type":"text","value":"Client Four"},{"id":"fec74779-83ea-41a0-9ed9-21d34b26eae9","inputType":"autoFill","isOptional":false,"label":"{{client.email}}","page":1,"type":"text","value":"client4@copilot.app"},{"id":"9540b843-78ba-4455-8b33-270a0f4f4eb7","inputType":"autoFill","isOptional":false,"label":"{{client.url}}","page":1,"type":"text","value":"https://google.com"},{"id":"e9321c16-dede-4e00-98ea-5b7a6281f2b6","inputType":"autoFill","isOptional":false,"label":"{{client.text2}}","page":1,"type":"text","value":"clientText property"},{"id":"2033b9d9-e3de-49f5-876a-f233ccda1313","inputType":"autoFill","isOptional":false,"label":"{{client.phoneNumber}}","page":1,"type":"text","value":"+18182842251"},{"id":"7d2640f2-9fde-49dc-a18b-c2ba7d64c17a","inputType":"autoFill","isOptional":false,"label":"{{client.tags}}","page":1,"type":"text","value":"tag c4"},{"id":"704195f4-3674-41ad-a1ee-0851cfb43562","inputType":"autoFill","isOptional":false,"label":"{{client.number}}","page":1,"type":"text","value":"1004"},{"id":"e35be98f-96a9-42ba-b2d9-e28475b09665","inputType":"autoFill","isOptional":false,"label":"{{client.address}}","page":1,"type":"text","value":"640 Knickerbocker Ave."},{"id":"f42e2cf2-d069-4cba-a85f-e5c94fa40c05","inputType":"autoFill","isOptional":false,"label":"{{client.text}}","page":1,"type":"text","value":"My text C4"},{"id":"eeaa2475-2de8-4ec2-992f-7eff6ca6682a","inputType":"autoFill","isOptional":false,"label":"{{client.email}}","page":1,"type":"text","value":"client4@copilot.app"},{"id":"320c8122-69a8-4db9-a02c-498103ea1471","inputType":"autoFill","isOptional":false,"label":"{{contract.shareDate}}","page":1,"type":"date","value":"12/20/2023"},{"id":"4d1c797d-59ab-485c-9056-a799e41287e8","inputType":"client","isOptional":false,"label":"signature_1","page":1,"type":"signature","value":"Allene"},{"id":"92a153e4-0428-4b58-957a-c7bab9d4f263","inputType":"client","isOptional":false,"label":"initial_1","page":1,"type":"initials","value":"ANO"},{"id":"e4ce0c13-ce6f-4a12-a27d-d0356359661b","inputType":"client","isOptional":false,"label":"date_3","page":1,"type":"date","value":"12/20/2023"},{"id":"484ff9ac-bf1f-4744-8dcc-337ca5578c41","inputType":"client","isOptional":true,"label":"client text field","page":1,"type":"text","value":"client text added"}],"fileUrl":"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2023-12-20T23%3A10%3A29.951Z/Sample%20Contract.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVDZQAKD2G%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T000740Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQDJ84qWjYhqpt6laxi5WRVeX4Etz6WX7ttOEEUzu4C5aQIhAJz6WQOpVNarWlR%2F0oikd6JihZTK%2BoYvln0yVozQ%2FQi0KocDCLH%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAhoMMDgxNjY0NDIxMjkwIgy7rlnasmBOc521Xlsq2wJnfSejnfqCsMPrpV6FFhcWRKPnxkhTQf75UuhBbJ7ZeZHvQM2Zw0xNo8rG%2BdbwknQvHdLudZ369Gn4hgr2ex462TYzGkR7tKmTEp5T4kSvSQ5rNaM7lQ%2BTEV76rKprkvbeke6yiyebbyIQg52HF3%2BKnF1FSVMDOHzTCaLC5haZorBzAC6Y4kDfrTgExN88amXCVoY7G6N3Ld62E9cKlJA5fzJl8Z3c0GjPfxpme73VH%2Fk1vU8MdMIneGaxCRCf%2BwIuVs6opPK14zfRZhHZJax1JCj08dRBOYIAulAFGSP1MyP0kMblwnOR0jdaiJh9aNsGeTAVToGZQg5qWjxscTwaRp0dRgXUPfObVkkknupSF52A9FfezUSqkfD4mnnj%2BIJsdr94VB%2FZA%2BTe2rHJuBIFeCTrvvylhBopgTdlywe3Yo8NiNnjy%2FAmuW3IInjZoC4Mj%2FVAvSnDcc1A6DCsktGtBjqdAV4Rr%2FiXg719jfhuCeTgSn1lZMlrFZyC87oq2I0wlMAzy%2BQvjhPJZjmCYoPlGRvjmtF%2BrOSDkpGEuNvFphiEsXIwE9LXYHe9DT7%2FjAP2vb0NnGszWQFjLWLzG9N3go4UPEUIQCQgscVn%2B4vPZxwpaojYZiCARP2j%2FAP7s7cIBgK4v7uxCPi8fPnNH7b%2B1t78Zeh4NLicsoruBdu5jBU%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=710e496014d1ea018f246d681877d69c4972eee20c1ae18a7f93d984ea1d74ea","id":"501543eb-40be-43d4-bde1-6640bfbb7895","name":"Sample contract 1","object":"contract","recipientId":"501543eb-40be-43d4-bde1-6640bfbb7895","clientId":"501543eb-40be-43d4-bde1-6640bfbb7895","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","shareDate":"2024-01-27T00:19:18.213398182Z","signedFileUrl":"","status":"pending"}}},"schema":{"type":"object","properties":{"contractTemplateId":{"type":"string","example":"f919eafa-c800-48eb-bbf2-38e812b7241f"},"createdAt":{"type":"string","example":"2023-12-20T23:22:55.242621924Z"},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"4d29b7af-44aa-4d81-9947-a6186abe208a"},"inputType":{"type":"string","example":"fixed"},"isOptional":{"type":"boolean","example":false,"default":true},"page":{"type":"integer","example":1,"default":0},"type":{"type":"string","example":"signature"},"value":{"type":"string","example":"Allene"}}}},"fileUrl":{"type":"string","example":"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2023-12-20T23%3A10%3A29.951Z/Sample%20Contract.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVDZQAKD2G%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T000740Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQDJ84qWjYhqpt6laxi5WRVeX4Etz6WX7ttOEEUzu4C5aQIhAJz6WQOpVNarWlR%2F0oikd6JihZTK%2BoYvln0yVozQ%2FQi0KocDCLH%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAhoMMDgxNjY0NDIxMjkwIgy7rlnasmBOc521Xlsq2wJnfSejnfqCsMPrpV6FFhcWRKPnxkhTQf75UuhBbJ7ZeZHvQM2Zw0xNo8rG%2BdbwknQvHdLudZ369Gn4hgr2ex462TYzGkR7tKmTEp5T4kSvSQ5rNaM7lQ%2BTEV76rKprkvbeke6yiyebbyIQg52HF3%2BKnF1FSVMDOHzTCaLC5haZorBzAC6Y4kDfrTgExN88amXCVoY7G6N3Ld62E9cKlJA5fzJl8Z3c0GjPfxpme73VH%2Fk1vU8MdMIneGaxCRCf%2BwIuVs6opPK14zfRZhHZJax1JCj08dRBOYIAulAFGSP1MyP0kMblwnOR0jdaiJh9aNsGeTAVToGZQg5qWjxscTwaRp0dRgXUPfObVkkknupSF52A9FfezUSqkfD4mnnj%2BIJsdr94VB%2FZA%2BTe2rHJuBIFeCTrvvylhBopgTdlywe3Yo8NiNnjy%2FAmuW3IInjZoC4Mj%2FVAvSnDcc1A6DCsktGtBjqdAV4Rr%2FiXg719jfhuCeTgSn1lZMlrFZyC87oq2I0wlMAzy%2BQvjhPJZjmCYoPlGRvjmtF%2BrOSDkpGEuNvFphiEsXIwE9LXYHe9DT7%2FjAP2vb0NnGszWQFjLWLzG9N3go4UPEUIQCQgscVn%2B4vPZxwpaojYZiCARP2j%2FAP7s7cIBgK4v7uxCPi8fPnNH7b%2B1t78Zeh4NLicsoruBdu5jBU%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=710e496014d1ea018f246d681877d69c4972eee20c1ae18a7f93d984ea1d74ea"},"id":{"type":"string","example":"501543eb-40be-43d4-bde1-6640bfbb7895"},"name":{"type":"string","example":"Sample contract 1"},"object":{"type":"string","example":"contract"},"recipientId":{"type":"string","example":"501543eb-40be-43d4-bde1-6640bfbb7895","deprecated":true},"clientId":{"type":"string","example":"501543eb-40be-43d4-bde1-6640bfbb7895"},"companyId":{"type":"string","example":"501543eb-40be-43d4-bde1-6640bfbb7895"},"shareDate":{"type":"string","example":"2024-01-27T00:19:18.213398182Z"},"signedFileUrl":{"type":"string","example":""},"status":{"type":"string","example":"pending"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"get":{"summary":"List Contracts","description":"This API endpoint retrieves contracts.","operationId":"list-contracts","parameters":[{"name":"contractTemplateId","in":"query","description":"The unique ID of the contract template the contract is associated with.","schema":{"type":"string"}},{"name":"recipientId","in":"query","required":false,"description":"Deprecated: Use clientId","schema":{"type":"string","default":""}},{"name":"status","in":"query","description":"The current state of the contract. Options are pending, signed","schema":{"type":"string"}},{"name":"clientId","in":"query","required":false,"description":"The ID of the client that the contract was sent to.","schema":{"type":"string","default":""}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"contractTemplateId\": \"09ee78d3-49c0-43e1-9f91-b21df8c72ff0\",\n            \"createdAt\": \"2024-01-17T18:47:34.822346931Z\",\n            \"fields\": [\n                {\n                    \"id\": \"981c14d0-4fbd-43b6-9b33-6a34b298647c\",\n                    \"inputType\": \"client\",\n                    \"isOptional\": false,\n                    \"label\": \"signature_1\",\n                    \"page\": 1,\n                    \"type\": \"signature\",\n                    \"value\": \"fddfgds\"\n                },\n                {\n                    \"id\": \"cc625a77-4377-4a8c-9498-13c6a0236815\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.fullName}}\",\n                    \"page\": 1,\n                    \"type\": \"text\",\n                    \"value\": \"Client Two\"\n                },\n                {\n                    \"id\": \"b29c3b95-e8c5-4eca-8956-499db607cf7a\",\n                    \"inputType\": \"variable\",\n                    \"isOptional\": false,\n                    \"label\": \"Variable Text1\",\n                    \"page\": 1,\n                    \"type\": \"text\",\n                    \"value\": \"fdgdfg\"\n                },\n                {\n                    \"id\": \"8d2e0ddf-2e01-4c70-a090-458377b06c50\",\n                    \"inputType\": \"variable\",\n                    \"isOptional\": false,\n                    \"label\": \"Variable Date1\",\n                    \"page\": 1,\n                    \"type\": \"date\",\n                    \"value\": \"01/17/2024\"\n                },\n                {\n                    \"id\": \"7610187a-f511-4a73-94cb-4d11f6dae9f1\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.email}}\",\n                    \"page\": 1,\n                    \"type\": \"text\",\n                    \"value\": \"client2@copilot.app\"\n                }\n            ],\n            \"fileUrl\": \"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2024-01-11T18%3A13%3A08.734Z/Sample%20Contract.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVHA3RT66K%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T002527Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQDS2B1PS6MpfiQXFvf2CNCj%2BG4VdsT0J5Pnf4asHLN9VAIgb72%2FXqksakXH5%2BrdJ1Ni%2FT1TpoPTuyEtUNtCHkYhgIYqhwMIsv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwwODE2NjQ0MjEyOTAiDA3I%2BO82ftMARzr2yirbApkfm1rjUxfbXbTueuTrdBSH0Ryw4qUeT7%2Bt9OeN9agEKBdBxrOGckyHoLvUGgcUm9yQDcz5qOh6KFbM4A8oLuIKmYmUNbHu1GXEiX6bwlhWvxfohbbSydOVBR5HhbABf9VMYZWXE240u%2B9%2BLhC3A3KQDZ%2F7ccT7RVMqPkcdXPTNZ0nKgPeYivWBcebZzrOX9QdMKBuXzzxR%2F6HsvKtwhdKNMVzCtVSExyyZzjn09V19afP%2Ba55GBIUDyNbz6KnYg0NDL9AcTG%2Fvh7WMaImzCL8p2bO4Hf64oYjvBo306BFk0S8wak1d2FPEdcUPsfWNYMeKS6Xg%2Bt7L9okEmPyZ%2BbF1%2B1aEinM6JGimOJAIWQ1CjcbKQnfyn919zB1Uv1ovokNRd1oQv328lUnEC0CVtxkG%2FMNa2swAMlqdpPWURJBF2x6C5hk1cQGBXe4vkOyyjGku354NBntKjNqXMPWa0a0GOp4BfQ9KLCwakBMdIIkIXoS0OHNF%2FpNeAPvMTuw5gFwoh5aAR2MWjR4RkAtlnsQn0yYnSuBPRkwVJPDdF%2BgglIkrSPXzG1MxnrNfazXbDecw3R%2FzpmnXCJjRGG2cQTkWN4dJeHomceCkRRmutjQnhRAeWE1OjX8L%2BOpPqFn%2FzDpBG492Zj6DBIN8Lu8X2RXqnSoyzk3%2Bgx00FXryq9WdYR4%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=23658b8379840a350e150e629d7a75f00b8f05c552a3274a1a22f9f8457ac102\",\n            \"id\": \"VnFNGo5IR\",\n            \"name\": \"API Testing\",\n            \"object\": \"contract\",\n            \"recipientId\": \"e960feb9-3b49-45b5-8e15-9202acced3ac\",\n            \"shareDate\": \"2024-01-17T18:47:34.813037333Z\",\n            \"signedFileUrl\": \"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2024-01-11T18%3A13%3A08.734Z/Sample%20Contract.pdf/VnFNGo5IR/Signed%20-%20API%20Testing%20by%20Client%20Two.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVHA3RT66K%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T002527Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQDS2B1PS6MpfiQXFvf2CNCj%2BG4VdsT0J5Pnf4asHLN9VAIgb72%2FXqksakXH5%2BrdJ1Ni%2FT1TpoPTuyEtUNtCHkYhgIYqhwMIsv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwwODE2NjQ0MjEyOTAiDA3I%2BO82ftMARzr2yirbApkfm1rjUxfbXbTueuTrdBSH0Ryw4qUeT7%2Bt9OeN9agEKBdBxrOGckyHoLvUGgcUm9yQDcz5qOh6KFbM4A8oLuIKmYmUNbHu1GXEiX6bwlhWvxfohbbSydOVBR5HhbABf9VMYZWXE240u%2B9%2BLhC3A3KQDZ%2F7ccT7RVMqPkcdXPTNZ0nKgPeYivWBcebZzrOX9QdMKBuXzzxR%2F6HsvKtwhdKNMVzCtVSExyyZzjn09V19afP%2Ba55GBIUDyNbz6KnYg0NDL9AcTG%2Fvh7WMaImzCL8p2bO4Hf64oYjvBo306BFk0S8wak1d2FPEdcUPsfWNYMeKS6Xg%2Bt7L9okEmPyZ%2BbF1%2B1aEinM6JGimOJAIWQ1CjcbKQnfyn919zB1Uv1ovokNRd1oQv328lUnEC0CVtxkG%2FMNa2swAMlqdpPWURJBF2x6C5hk1cQGBXe4vkOyyjGku354NBntKjNqXMPWa0a0GOp4BfQ9KLCwakBMdIIkIXoS0OHNF%2FpNeAPvMTuw5gFwoh5aAR2MWjR4RkAtlnsQn0yYnSuBPRkwVJPDdF%2BgglIkrSPXzG1MxnrNfazXbDecw3R%2FzpmnXCJjRGG2cQTkWN4dJeHomceCkRRmutjQnhRAeWE1OjX8L%2BOpPqFn%2FzDpBG492Zj6DBIN8Lu8X2RXqnSoyzk3%2Bgx00FXryq9WdYR4%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=f61e5b8f1cb7231568cfc29e736805b70c213758dfef40b45e869a97ef7be0eb\",\n            \"status\": \"signed\",\n            \"submissionDate\": \"2024-01-17T18:47:46.714156279Z\"\n        },\n        {\n            \"contractTemplateId\": \"09ee78d3-49c0-43e1-9f91-b21df8c72ff0\",\n            \"createdAt\": \"2024-01-17T18:08:59.151555965Z\",\n            \"fields\": [\n                {\n                    \"id\": \"981c14d0-4fbd-43b6-9b33-6a34b298647c\",\n                    \"inputType\": \"client\",\n                    \"isOptional\": false,\n                    \"label\": \"signature_1\",\n                    \"page\": 1,\n                    \"type\": \"signature\",\n                    \"value\": \"Allene\"\n                },\n                {\n                    \"id\": \"cc625a77-4377-4a8c-9498-13c6a0236815\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.fullName}}\",\n                    \"page\": 1,\n                    \"type\": \"text\",\n                    \"value\": \"Client Two\"\n                },\n                {\n                    \"id\": \"b29c3b95-e8c5-4eca-8956-499db607cf7a\",\n                    \"inputType\": \"variable\",\n                    \"isOptional\": false,\n                    \"label\": \"Variable Text1\",\n                    \"page\": 1,\n                    \"type\": \"text\",\n                    \"value\": \"VarText\"\n                },\n                {\n                    \"id\": \"8d2e0ddf-2e01-4c70-a090-458377b06c50\",\n                    \"inputType\": \"variable\",\n                    \"isOptional\": false,\n                    \"label\": \"Variable Date1\",\n                    \"page\": 1,\n                    \"type\": \"date\",\n                    \"value\": \"01/17/2024\"\n                },\n                {\n                    \"id\": \"7610187a-f511-4a73-94cb-4d11f6dae9f1\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.email}}\",\n                    \"page\": 1,\n                    \"type\": \"text\",\n                    \"value\": \"client2@copilot.app\"\n                }\n            ],\n            \"fileUrl\": \"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2024-01-11T18%3A13%3A08.734Z/Sample%20Contract.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVHA3RT66K%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T002527Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQDS2B1PS6MpfiQXFvf2CNCj%2BG4VdsT0J5Pnf4asHLN9VAIgb72%2FXqksakXH5%2BrdJ1Ni%2FT1TpoPTuyEtUNtCHkYhgIYqhwMIsv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwwODE2NjQ0MjEyOTAiDA3I%2BO82ftMARzr2yirbApkfm1rjUxfbXbTueuTrdBSH0Ryw4qUeT7%2Bt9OeN9agEKBdBxrOGckyHoLvUGgcUm9yQDcz5qOh6KFbM4A8oLuIKmYmUNbHu1GXEiX6bwlhWvxfohbbSydOVBR5HhbABf9VMYZWXE240u%2B9%2BLhC3A3KQDZ%2F7ccT7RVMqPkcdXPTNZ0nKgPeYivWBcebZzrOX9QdMKBuXzzxR%2F6HsvKtwhdKNMVzCtVSExyyZzjn09V19afP%2Ba55GBIUDyNbz6KnYg0NDL9AcTG%2Fvh7WMaImzCL8p2bO4Hf64oYjvBo306BFk0S8wak1d2FPEdcUPsfWNYMeKS6Xg%2Bt7L9okEmPyZ%2BbF1%2B1aEinM6JGimOJAIWQ1CjcbKQnfyn919zB1Uv1ovokNRd1oQv328lUnEC0CVtxkG%2FMNa2swAMlqdpPWURJBF2x6C5hk1cQGBXe4vkOyyjGku354NBntKjNqXMPWa0a0GOp4BfQ9KLCwakBMdIIkIXoS0OHNF%2FpNeAPvMTuw5gFwoh5aAR2MWjR4RkAtlnsQn0yYnSuBPRkwVJPDdF%2BgglIkrSPXzG1MxnrNfazXbDecw3R%2FzpmnXCJjRGG2cQTkWN4dJeHomceCkRRmutjQnhRAeWE1OjX8L%2BOpPqFn%2FzDpBG492Zj6DBIN8Lu8X2RXqnSoyzk3%2Bgx00FXryq9WdYR4%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=23658b8379840a350e150e629d7a75f00b8f05c552a3274a1a22f9f8457ac102\",\n            \"id\": \"TULkiocSR\",\n            \"name\": \"API Testing\",\n            \"object\": \"contract\",\n            \"recipientId\": \"e960feb9-3b49-45b5-8e15-9202acced3ac\",\n            \"shareDate\": \"2024-01-17T18:08:59.141901696Z\",\n            \"signedFileUrl\": \"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2024-01-11T18%3A13%3A08.734Z/Sample%20Contract.pdf/TULkiocSR/Signed%20-%20API%20Testing%20by%20Client%20Two.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVHA3RT66K%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T002527Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQDS2B1PS6MpfiQXFvf2CNCj%2BG4VdsT0J5Pnf4asHLN9VAIgb72%2FXqksakXH5%2BrdJ1Ni%2FT1TpoPTuyEtUNtCHkYhgIYqhwMIsv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwwODE2NjQ0MjEyOTAiDA3I%2BO82ftMARzr2yirbApkfm1rjUxfbXbTueuTrdBSH0Ryw4qUeT7%2Bt9OeN9agEKBdBxrOGckyHoLvUGgcUm9yQDcz5qOh6KFbM4A8oLuIKmYmUNbHu1GXEiX6bwlhWvxfohbbSydOVBR5HhbABf9VMYZWXE240u%2B9%2BLhC3A3KQDZ%2F7ccT7RVMqPkcdXPTNZ0nKgPeYivWBcebZzrOX9QdMKBuXzzxR%2F6HsvKtwhdKNMVzCtVSExyyZzjn09V19afP%2Ba55GBIUDyNbz6KnYg0NDL9AcTG%2Fvh7WMaImzCL8p2bO4Hf64oYjvBo306BFk0S8wak1d2FPEdcUPsfWNYMeKS6Xg%2Bt7L9okEmPyZ%2BbF1%2B1aEinM6JGimOJAIWQ1CjcbKQnfyn919zB1Uv1ovokNRd1oQv328lUnEC0CVtxkG%2FMNa2swAMlqdpPWURJBF2x6C5hk1cQGBXe4vkOyyjGku354NBntKjNqXMPWa0a0GOp4BfQ9KLCwakBMdIIkIXoS0OHNF%2FpNeAPvMTuw5gFwoh5aAR2MWjR4RkAtlnsQn0yYnSuBPRkwVJPDdF%2BgglIkrSPXzG1MxnrNfazXbDecw3R%2FzpmnXCJjRGG2cQTkWN4dJeHomceCkRRmutjQnhRAeWE1OjX8L%2BOpPqFn%2FzDpBG492Zj6DBIN8Lu8X2RXqnSoyzk3%2Bgx00FXryq9WdYR4%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=5b8b0e36eb3fcadce58845a2ab47a94c427d7fa1715a724a1631037c435fa694\",\n            \"status\": \"signed\",\n            \"submissionDate\": \"2024-01-17T18:10:21.493002281Z\"\n        },\n        {\n            \"contractTemplateId\": \"09ee78d3-49c0-43e1-9f91-b21df8c72ff0\",\n            \"createdAt\": \"2024-01-11T18:33:36.300363222Z\",\n            \"fields\": [\n                {\n                    \"id\": \"981c14d0-4fbd-43b6-9b33-6a34b298647c\",\n                    \"inputType\": \"client\",\n                    \"isOptional\": false,\n                    \"label\": \"signature_1\",\n                    \"page\": 1,\n                    \"type\": \"signature\"\n                },\n                {\n                    \"id\": \"cc625a77-4377-4a8c-9498-13c6a0236815\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.fullName}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"b29c3b95-e8c5-4eca-8956-499db607cf7a\",\n                    \"inputType\": \"variable\",\n                    \"isOptional\": false,\n                    \"label\": \"Variable Text1\",\n                    \"page\": 1,\n                    \"type\": \"text\",\n                    \"value\": \"myVariableText\"\n                },\n                {\n                    \"id\": \"8d2e0ddf-2e01-4c70-a090-458377b06c50\",\n                    \"inputType\": \"variable\",\n                    \"isOptional\": false,\n                    \"label\": \"Variable Date1\",\n                    \"page\": 1,\n                    \"type\": \"date\",\n                    \"value\": \"01/11/2024\"\n                },\n                {\n                    \"id\": \"7610187a-f511-4a73-94cb-4d11f6dae9f1\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.email}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                }\n            ],\n            \"fileUrl\": \"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2024-01-11T18%3A13%3A08.734Z/Sample%20Contract.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVHA3RT66K%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T002527Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQDS2B1PS6MpfiQXFvf2CNCj%2BG4VdsT0J5Pnf4asHLN9VAIgb72%2FXqksakXH5%2BrdJ1Ni%2FT1TpoPTuyEtUNtCHkYhgIYqhwMIsv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwwODE2NjQ0MjEyOTAiDA3I%2BO82ftMARzr2yirbApkfm1rjUxfbXbTueuTrdBSH0Ryw4qUeT7%2Bt9OeN9agEKBdBxrOGckyHoLvUGgcUm9yQDcz5qOh6KFbM4A8oLuIKmYmUNbHu1GXEiX6bwlhWvxfohbbSydOVBR5HhbABf9VMYZWXE240u%2B9%2BLhC3A3KQDZ%2F7ccT7RVMqPkcdXPTNZ0nKgPeYivWBcebZzrOX9QdMKBuXzzxR%2F6HsvKtwhdKNMVzCtVSExyyZzjn09V19afP%2Ba55GBIUDyNbz6KnYg0NDL9AcTG%2Fvh7WMaImzCL8p2bO4Hf64oYjvBo306BFk0S8wak1d2FPEdcUPsfWNYMeKS6Xg%2Bt7L9okEmPyZ%2BbF1%2B1aEinM6JGimOJAIWQ1CjcbKQnfyn919zB1Uv1ovokNRd1oQv328lUnEC0CVtxkG%2FMNa2swAMlqdpPWURJBF2x6C5hk1cQGBXe4vkOyyjGku354NBntKjNqXMPWa0a0GOp4BfQ9KLCwakBMdIIkIXoS0OHNF%2FpNeAPvMTuw5gFwoh5aAR2MWjR4RkAtlnsQn0yYnSuBPRkwVJPDdF%2BgglIkrSPXzG1MxnrNfazXbDecw3R%2FzpmnXCJjRGG2cQTkWN4dJeHomceCkRRmutjQnhRAeWE1OjX8L%2BOpPqFn%2FzDpBG492Zj6DBIN8Lu8X2RXqnSoyzk3%2Bgx00FXryq9WdYR4%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=23658b8379840a350e150e629d7a75f00b8f05c552a3274a1a22f9f8457ac102\",\n            \"id\": \"5DhmY6KSg\",\n            \"name\": \"API Testing\",\n            \"object\": \"contract\",\n            \"recipientId\": \"42f19d1e-c429-4e4f-904c-765dd1ea79d5\",\n            \"shareDate\": \"2024-01-11T18:33:36.293699474Z\",\n            \"signedFileUrl\": \"\",\n            \"status\": \"pending\"\n        }\n    ]\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"contractTemplateId":{"type":"string","example":"09ee78d3-49c0-43e1-9f91-b21df8c72ff0"},"createdAt":{"type":"string","example":"2024-01-17T18:47:34.822346931Z"},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"981c14d0-4fbd-43b6-9b33-6a34b298647c"},"inputType":{"type":"string","example":"client"},"isOptional":{"type":"boolean","example":false,"default":true},"label":{"type":"string","example":"signature_1"},"page":{"type":"integer","example":1,"default":0},"type":{"type":"string","example":"signature"},"value":{"type":"string","example":"fddfgds"}}}},"fileUrl":{"type":"string","example":"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2024-01-11T18%3A13%3A08.734Z/Sample%20Contract.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVHA3RT66K%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T002527Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQDS2B1PS6MpfiQXFvf2CNCj%2BG4VdsT0J5Pnf4asHLN9VAIgb72%2FXqksakXH5%2BrdJ1Ni%2FT1TpoPTuyEtUNtCHkYhgIYqhwMIsv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwwODE2NjQ0MjEyOTAiDA3I%2BO82ftMARzr2yirbApkfm1rjUxfbXbTueuTrdBSH0Ryw4qUeT7%2Bt9OeN9agEKBdBxrOGckyHoLvUGgcUm9yQDcz5qOh6KFbM4A8oLuIKmYmUNbHu1GXEiX6bwlhWvxfohbbSydOVBR5HhbABf9VMYZWXE240u%2B9%2BLhC3A3KQDZ%2F7ccT7RVMqPkcdXPTNZ0nKgPeYivWBcebZzrOX9QdMKBuXzzxR%2F6HsvKtwhdKNMVzCtVSExyyZzjn09V19afP%2Ba55GBIUDyNbz6KnYg0NDL9AcTG%2Fvh7WMaImzCL8p2bO4Hf64oYjvBo306BFk0S8wak1d2FPEdcUPsfWNYMeKS6Xg%2Bt7L9okEmPyZ%2BbF1%2B1aEinM6JGimOJAIWQ1CjcbKQnfyn919zB1Uv1ovokNRd1oQv328lUnEC0CVtxkG%2FMNa2swAMlqdpPWURJBF2x6C5hk1cQGBXe4vkOyyjGku354NBntKjNqXMPWa0a0GOp4BfQ9KLCwakBMdIIkIXoS0OHNF%2FpNeAPvMTuw5gFwoh5aAR2MWjR4RkAtlnsQn0yYnSuBPRkwVJPDdF%2BgglIkrSPXzG1MxnrNfazXbDecw3R%2FzpmnXCJjRGG2cQTkWN4dJeHomceCkRRmutjQnhRAeWE1OjX8L%2BOpPqFn%2FzDpBG492Zj6DBIN8Lu8X2RXqnSoyzk3%2Bgx00FXryq9WdYR4%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=23658b8379840a350e150e629d7a75f00b8f05c552a3274a1a22f9f8457ac102"},"id":{"type":"string","example":"VnFNGo5IR"},"name":{"type":"string","example":"API Testing"},"object":{"type":"string","example":"contract"},"recipientId":{"type":"string","example":"e960feb9-3b49-45b5-8e15-9202acced3ac"},"shareDate":{"type":"string","example":"2024-01-17T18:47:34.813037333Z"},"signedFileUrl":{"type":"string","example":"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2024-01-11T18%3A13%3A08.734Z/Sample%20Contract.pdf/VnFNGo5IR/Signed%20-%20API%20Testing%20by%20Client%20Two.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVHA3RT66K%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T002527Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQDS2B1PS6MpfiQXFvf2CNCj%2BG4VdsT0J5Pnf4asHLN9VAIgb72%2FXqksakXH5%2BrdJ1Ni%2FT1TpoPTuyEtUNtCHkYhgIYqhwMIsv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwwODE2NjQ0MjEyOTAiDA3I%2BO82ftMARzr2yirbApkfm1rjUxfbXbTueuTrdBSH0Ryw4qUeT7%2Bt9OeN9agEKBdBxrOGckyHoLvUGgcUm9yQDcz5qOh6KFbM4A8oLuIKmYmUNbHu1GXEiX6bwlhWvxfohbbSydOVBR5HhbABf9VMYZWXE240u%2B9%2BLhC3A3KQDZ%2F7ccT7RVMqPkcdXPTNZ0nKgPeYivWBcebZzrOX9QdMKBuXzzxR%2F6HsvKtwhdKNMVzCtVSExyyZzjn09V19afP%2Ba55GBIUDyNbz6KnYg0NDL9AcTG%2Fvh7WMaImzCL8p2bO4Hf64oYjvBo306BFk0S8wak1d2FPEdcUPsfWNYMeKS6Xg%2Bt7L9okEmPyZ%2BbF1%2B1aEinM6JGimOJAIWQ1CjcbKQnfyn919zB1Uv1ovokNRd1oQv328lUnEC0CVtxkG%2FMNa2swAMlqdpPWURJBF2x6C5hk1cQGBXe4vkOyyjGku354NBntKjNqXMPWa0a0GOp4BfQ9KLCwakBMdIIkIXoS0OHNF%2FpNeAPvMTuw5gFwoh5aAR2MWjR4RkAtlnsQn0yYnSuBPRkwVJPDdF%2BgglIkrSPXzG1MxnrNfazXbDecw3R%2FzpmnXCJjRGG2cQTkWN4dJeHomceCkRRmutjQnhRAeWE1OjX8L%2BOpPqFn%2FzDpBG492Zj6DBIN8Lu8X2RXqnSoyzk3%2Bgx00FXryq9WdYR4%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=f61e5b8f1cb7231568cfc29e736805b70c213758dfef40b45e869a97ef7be0eb"},"status":{"type":"string","example":"signed"},"submissionDate":{"type":"string","example":"2024-01-17T18:47:46.714156279Z"},"updatedAt":{"type":"string"}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/contracts/{id}":{"get":{"summary":"Retrieve Contract","description":"This API endpoint retrieves a specific contract.","operationId":"retrieve-contract","parameters":[{"name":"id","in":"path","description":"The unique ID of the contract you want to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"contractTemplateId":"f919eafa-c800-48eb-bbf2-38e812b7241f","createdAt":"2023-12-20T23:22:55.242621924Z","fields":[{"id":"4d29b7af-44aa-4d81-9947-a6186abe208a","inputType":"fixed","isOptional":false,"page":1,"type":"signature","value":"Allene"},{"id":"9d447a8f-49b5-416e-8995-6b266c449f9f","inputType":"fixed","isOptional":false,"page":1,"type":"initials","value":"AN"},{"id":"f7f28436-034b-4270-a919-b03c09c5ef7c","inputType":"fixed","isOptional":false,"page":1,"type":"date","value":"12/20/2023"},{"id":"86dc3a1a-37ab-4898-ad17-8a7b82cb16f7","inputType":"fixed","isOptional":false,"page":1,"type":"text","value":"text field"},{"id":"741ffdd0-b2ec-4c14-b35f-3e77e6315c7e","inputType":"variable","isOptional":false,"label":"variable date","page":1,"type":"date","value":"12/20/2023"},{"id":"994db252-5bab-4948-a314-6ef33b22d6f3","inputType":"variable","isOptional":false,"label":"variable text","page":1,"type":"text","value":"my variable text"},{"id":"5447d651-4c38-4bf1-9bcd-b17709c87995","inputType":"autoFill","isOptional":false,"label":"{{client.firstName}}","page":1,"type":"text","value":"Client"},{"id":"810e7ffb-8a1e-4def-b4ee-dc9fcd4df286","inputType":"autoFill","isOptional":false,"label":"{{client.lastName}}","page":1,"type":"text","value":"Four"},{"id":"6acd515f-2a6d-4f80-906d-48180a53c9d3","inputType":"autoFill","isOptional":false,"label":"{{client.fullName}}","page":1,"type":"text","value":"Client Four"},{"id":"fec74779-83ea-41a0-9ed9-21d34b26eae9","inputType":"autoFill","isOptional":false,"label":"{{client.email}}","page":1,"type":"text","value":"client4@copilot.app"},{"id":"9540b843-78ba-4455-8b33-270a0f4f4eb7","inputType":"autoFill","isOptional":false,"label":"{{client.url}}","page":1,"type":"text","value":"https://google.com"},{"id":"e9321c16-dede-4e00-98ea-5b7a6281f2b6","inputType":"autoFill","isOptional":false,"label":"{{client.text2}}","page":1,"type":"text","value":"clientText property"},{"id":"2033b9d9-e3de-49f5-876a-f233ccda1313","inputType":"autoFill","isOptional":false,"label":"{{client.phoneNumber}}","page":1,"type":"text","value":"+18182842251"},{"id":"7d2640f2-9fde-49dc-a18b-c2ba7d64c17a","inputType":"autoFill","isOptional":false,"label":"{{client.tags}}","page":1,"type":"text","value":"tag c4"},{"id":"704195f4-3674-41ad-a1ee-0851cfb43562","inputType":"autoFill","isOptional":false,"label":"{{client.number}}","page":1,"type":"text","value":"1004"},{"id":"e35be98f-96a9-42ba-b2d9-e28475b09665","inputType":"autoFill","isOptional":false,"label":"{{client.address}}","page":1,"type":"text","value":"640 Knickerbocker Ave."},{"id":"f42e2cf2-d069-4cba-a85f-e5c94fa40c05","inputType":"autoFill","isOptional":false,"label":"{{client.text}}","page":1,"type":"text","value":"My text C4"},{"id":"eeaa2475-2de8-4ec2-992f-7eff6ca6682a","inputType":"autoFill","isOptional":false,"label":"{{client.email}}","page":1,"type":"text","value":"client4@copilot.app"},{"id":"320c8122-69a8-4db9-a02c-498103ea1471","inputType":"autoFill","isOptional":false,"label":"{{contract.shareDate}}","page":1,"type":"date","value":"12/20/2023"},{"id":"4d1c797d-59ab-485c-9056-a799e41287e8","inputType":"client","isOptional":false,"label":"signature_1","page":1,"type":"signature","value":"Allene"},{"id":"92a153e4-0428-4b58-957a-c7bab9d4f263","inputType":"client","isOptional":false,"label":"initial_1","page":1,"type":"initials","value":"ANO"},{"id":"e4ce0c13-ce6f-4a12-a27d-d0356359661b","inputType":"client","isOptional":false,"label":"date_3","page":1,"type":"date","value":"12/20/2023"},{"id":"484ff9ac-bf1f-4744-8dcc-337ca5578c41","inputType":"client","isOptional":true,"label":"client text field","page":1,"type":"text","value":"client text added"}],"fileUrl":"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2023-12-20T23%3A10%3A29.951Z/Sample%20Contract.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVDZQAKD2G%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T000740Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQDJ84qWjYhqpt6laxi5WRVeX4Etz6WX7ttOEEUzu4C5aQIhAJz6WQOpVNarWlR%2F0oikd6JihZTK%2BoYvln0yVozQ%2FQi0KocDCLH%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAhoMMDgxNjY0NDIxMjkwIgy7rlnasmBOc521Xlsq2wJnfSejnfqCsMPrpV6FFhcWRKPnxkhTQf75UuhBbJ7ZeZHvQM2Zw0xNo8rG%2BdbwknQvHdLudZ369Gn4hgr2ex462TYzGkR7tKmTEp5T4kSvSQ5rNaM7lQ%2BTEV76rKprkvbeke6yiyebbyIQg52HF3%2BKnF1FSVMDOHzTCaLC5haZorBzAC6Y4kDfrTgExN88amXCVoY7G6N3Ld62E9cKlJA5fzJl8Z3c0GjPfxpme73VH%2Fk1vU8MdMIneGaxCRCf%2BwIuVs6opPK14zfRZhHZJax1JCj08dRBOYIAulAFGSP1MyP0kMblwnOR0jdaiJh9aNsGeTAVToGZQg5qWjxscTwaRp0dRgXUPfObVkkknupSF52A9FfezUSqkfD4mnnj%2BIJsdr94VB%2FZA%2BTe2rHJuBIFeCTrvvylhBopgTdlywe3Yo8NiNnjy%2FAmuW3IInjZoC4Mj%2FVAvSnDcc1A6DCsktGtBjqdAV4Rr%2FiXg719jfhuCeTgSn1lZMlrFZyC87oq2I0wlMAzy%2BQvjhPJZjmCYoPlGRvjmtF%2BrOSDkpGEuNvFphiEsXIwE9LXYHe9DT7%2FjAP2vb0NnGszWQFjLWLzG9N3go4UPEUIQCQgscVn%2B4vPZxwpaojYZiCARP2j%2FAP7s7cIBgK4v7uxCPi8fPnNH7b%2B1t78Zeh4NLicsoruBdu5jBU%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=710e496014d1ea018f246d681877d69c4972eee20c1ae18a7f93d984ea1d74ea","id":"501543eb-40be-43d4-bde1-6640bfbb7895","name":"Sample contract 1","object":"contract","recipientId":"501543eb-40be-43d4-bde1-6640bfbb7895","clientId":"501543eb-40be-43d4-bde1-6640bfbb7895","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","shareDate":"2024-01-27T00:19:18.213398182Z","signedFileUrl":"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2023-12-20T23%3A10%3A29.951Z/Sample%20Contract.pdf/d5c9AIOIg/signed.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVDZQAKD2G%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T000740Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQDJ84qWjYhqpt6laxi5WRVeX4Etz6WX7ttOEEUzu4C5aQIhAJz6WQOpVNarWlR%2F0oikd6JihZTK%2BoYvln0yVozQ%2FQi0KocDCLH%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAhoMMDgxNjY0NDIxMjkwIgy7rlnasmBOc521Xlsq2wJnfSejnfqCsMPrpV6FFhcWRKPnxkhTQf75UuhBbJ7ZeZHvQM2Zw0xNo8rG%2BdbwknQvHdLudZ369Gn4hgr2ex462TYzGkR7tKmTEp5T4kSvSQ5rNaM7lQ%2BTEV76rKprkvbeke6yiyebbyIQg52HF3%2BKnF1FSVMDOHzTCaLC5haZorBzAC6Y4kDfrTgExN88amXCVoY7G6N3Ld62E9cKlJA5fzJl8Z3c0GjPfxpme73VH%2Fk1vU8MdMIneGaxCRCf%2BwIuVs6opPK14zfRZhHZJax1JCj08dRBOYIAulAFGSP1MyP0kMblwnOR0jdaiJh9aNsGeTAVToGZQg5qWjxscTwaRp0dRgXUPfObVkkknupSF52A9FfezUSqkfD4mnnj%2BIJsdr94VB%2FZA%2BTe2rHJuBIFeCTrvvylhBopgTdlywe3Yo8NiNnjy%2FAmuW3IInjZoC4Mj%2FVAvSnDcc1A6DCsktGtBjqdAV4Rr%2FiXg719jfhuCeTgSn1lZMlrFZyC87oq2I0wlMAzy%2BQvjhPJZjmCYoPlGRvjmtF%2BrOSDkpGEuNvFphiEsXIwE9LXYHe9DT7%2FjAP2vb0NnGszWQFjLWLzG9N3go4UPEUIQCQgscVn%2B4vPZxwpaojYZiCARP2j%2FAP7s7cIBgK4v7uxCPi8fPnNH7b%2B1t78Zeh4NLicsoruBdu5jBU%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=d11c64240b506cb9c05d04cadc617890577f466a2062f0f05acc102ff52d5f89","status":"signed","submissionDate":"2023-12-20T23:25:41.965400745Z"}}},"schema":{"type":"object","properties":{"contractTemplateId":{"type":"string","example":"f919eafa-c800-48eb-bbf2-38e812b7241f"},"createdAt":{"type":"string","example":"2023-12-20T23:22:55.242621924Z"},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"4d29b7af-44aa-4d81-9947-a6186abe208a"},"inputType":{"type":"string","example":"fixed"},"isOptional":{"type":"boolean","example":false,"default":true},"page":{"type":"integer","example":1,"default":0},"type":{"type":"string","example":"signature"},"value":{"type":"string","example":"Allene"}}}},"fileUrl":{"type":"string","example":"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2023-12-20T23%3A10%3A29.951Z/Sample%20Contract.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVDZQAKD2G%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T000740Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQDJ84qWjYhqpt6laxi5WRVeX4Etz6WX7ttOEEUzu4C5aQIhAJz6WQOpVNarWlR%2F0oikd6JihZTK%2BoYvln0yVozQ%2FQi0KocDCLH%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAhoMMDgxNjY0NDIxMjkwIgy7rlnasmBOc521Xlsq2wJnfSejnfqCsMPrpV6FFhcWRKPnxkhTQf75UuhBbJ7ZeZHvQM2Zw0xNo8rG%2BdbwknQvHdLudZ369Gn4hgr2ex462TYzGkR7tKmTEp5T4kSvSQ5rNaM7lQ%2BTEV76rKprkvbeke6yiyebbyIQg52HF3%2BKnF1FSVMDOHzTCaLC5haZorBzAC6Y4kDfrTgExN88amXCVoY7G6N3Ld62E9cKlJA5fzJl8Z3c0GjPfxpme73VH%2Fk1vU8MdMIneGaxCRCf%2BwIuVs6opPK14zfRZhHZJax1JCj08dRBOYIAulAFGSP1MyP0kMblwnOR0jdaiJh9aNsGeTAVToGZQg5qWjxscTwaRp0dRgXUPfObVkkknupSF52A9FfezUSqkfD4mnnj%2BIJsdr94VB%2FZA%2BTe2rHJuBIFeCTrvvylhBopgTdlywe3Yo8NiNnjy%2FAmuW3IInjZoC4Mj%2FVAvSnDcc1A6DCsktGtBjqdAV4Rr%2FiXg719jfhuCeTgSn1lZMlrFZyC87oq2I0wlMAzy%2BQvjhPJZjmCYoPlGRvjmtF%2BrOSDkpGEuNvFphiEsXIwE9LXYHe9DT7%2FjAP2vb0NnGszWQFjLWLzG9N3go4UPEUIQCQgscVn%2B4vPZxwpaojYZiCARP2j%2FAP7s7cIBgK4v7uxCPi8fPnNH7b%2B1t78Zeh4NLicsoruBdu5jBU%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=710e496014d1ea018f246d681877d69c4972eee20c1ae18a7f93d984ea1d74ea"},"id":{"type":"string","example":"501543eb-40be-43d4-bde1-6640bfbb7895"},"name":{"type":"string","example":"Sample contract 1"},"object":{"type":"string","example":"contract"},"recipientId":{"type":"string","example":"501543eb-40be-43d4-bde1-6640bfbb7895","deprecated":true},"clientId":{"type":"string","example":"501543eb-40be-43d4-bde1-6640bfbb7895"},"companyId":{"type":"string","example":"501543eb-40be-43d4-bde1-6640bfbb7895"},"shareDate":{"type":"string","example":"2024-01-27T00:19:18.213398182Z"},"signedFileUrl":{"type":"string","example":"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2023-12-20T23%3A10%3A29.951Z/Sample%20Contract.pdf/d5c9AIOIg/signed.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVDZQAKD2G%2F20240127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240127T000740Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEPn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJIMEYCIQDJ84qWjYhqpt6laxi5WRVeX4Etz6WX7ttOEEUzu4C5aQIhAJz6WQOpVNarWlR%2F0oikd6JihZTK%2BoYvln0yVozQ%2FQi0KocDCLH%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQAhoMMDgxNjY0NDIxMjkwIgy7rlnasmBOc521Xlsq2wJnfSejnfqCsMPrpV6FFhcWRKPnxkhTQf75UuhBbJ7ZeZHvQM2Zw0xNo8rG%2BdbwknQvHdLudZ369Gn4hgr2ex462TYzGkR7tKmTEp5T4kSvSQ5rNaM7lQ%2BTEV76rKprkvbeke6yiyebbyIQg52HF3%2BKnF1FSVMDOHzTCaLC5haZorBzAC6Y4kDfrTgExN88amXCVoY7G6N3Ld62E9cKlJA5fzJl8Z3c0GjPfxpme73VH%2Fk1vU8MdMIneGaxCRCf%2BwIuVs6opPK14zfRZhHZJax1JCj08dRBOYIAulAFGSP1MyP0kMblwnOR0jdaiJh9aNsGeTAVToGZQg5qWjxscTwaRp0dRgXUPfObVkkknupSF52A9FfezUSqkfD4mnnj%2BIJsdr94VB%2FZA%2BTe2rHJuBIFeCTrvvylhBopgTdlywe3Yo8NiNnjy%2FAmuW3IInjZoC4Mj%2FVAvSnDcc1A6DCsktGtBjqdAV4Rr%2FiXg719jfhuCeTgSn1lZMlrFZyC87oq2I0wlMAzy%2BQvjhPJZjmCYoPlGRvjmtF%2BrOSDkpGEuNvFphiEsXIwE9LXYHe9DT7%2FjAP2vb0NnGszWQFjLWLzG9N3go4UPEUIQCQgscVn%2B4vPZxwpaojYZiCARP2j%2FAP7s7cIBgK4v7uxCPi8fPnNH7b%2B1t78Zeh4NLicsoruBdu5jBU%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=d11c64240b506cb9c05d04cadc617890577f466a2062f0f05acc102ff52d5f89"},"status":{"type":"string","example":"signed"},"submissionDate":{"type":"string","example":"2023-12-20T23:25:41.965400745Z"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/contract-templates/{id}":{"get":{"summary":"Retrieve Contract Template","description":"This API endpoint retrieves a specific contract template.","operationId":"retrieve-contract-template","parameters":[{"name":"id","in":"path","description":"The unique ID of the contract template you want to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"createdAt\": \"2023-12-20T23:42:28.27486918Z\",\n    \"fields\": [\n        {\n            \"encodedImgValue\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAAAiCAYAAACa9KFpAAAAAXNSR0IArs4c6QAABstJREFUeF7tmW1sW+UVx//nuXFil7YuKd0mNW1spy/ENikjtd2AOkXAxvs2mFJVDJjY0FoxWCf6ZS9ikwoMbSso25D2aWwCiWnKWg2EWraVKkBL6pumLYmv23Sprx2FdqwssLRpEsf3OdPjxF3ipokbpKrpvfebfc95/Jz/+d1zzn1M/lCU4VyOAkUKkALDNHRylHEUKCigmHDAcHi4QAEHDAeKKRVwwHDAcMBwGChdAadilK6VrSyvODACtbGVrOFrHnnmN8lkMmurbFxBwV55YIQjDzDTDm2EvD098YFL0cofjn0FzM9qI/3re3p6Ri7Ft9h26fXRxeUadkuBLZkuve2zrDUXfS8Ao7GxsSz9r+Gq9LEDGQCTDr7Uvb6Pz1TDJQd6Dh8+XQhYiZgrHx7+qLNzsCYcWXYi0d5X8K1a07C074O2Dwu2K1asqLDcixeZifhHq1ffsiBXwZ4Tne//u3A/cBEwVq2qv07ZHD/e8fFUQvt8jW7MH9pEzM1sCf9Q+bnTaj8F26n8a+pu/lxFrvxcMtl6VtmpNWj+kNeUyz/xU6YWwBFmflRqFa/3du37ZC4meLZ7ngRGIBR5nEHbxxcbBGObmdR/mxctFNtI4JcALAIgwGip9FgPdXR0jPqDkU6QeA/g2wGsApASgjZIya/lPzO6IWiDmYh3FhLPxFuI6UW1FgNtUpTfq8QvBsN3/TofhPwLEW4EoDFhF8qy30wfOfLpxKAD4di3mfn3//+Of2oa7c9M5+8PRV8hoH75knlrWltbc75QbAeBl40i96ALZf8srMXA3rSh3zZbkeei33kwyG0t4mHtNIh+bCbiL/jDsS+D5Y88fM192WzfqFVx7VsA3h5xyxcrzom1EPQOEX8jlWjfOQYGLWHmuxhMgsS7Y0kUd4ucPMka9hB4Z8po/0Eh8QD+pmn0mGXxYgBvEOFQKqHfPwmMLy4f9Cd7Eww+PGrhSRfEAmjyTUHYl0rom4sEJ3849hCYXynPuRZ2d+8fRFMTTeevKoa0cscAepqJDGK5R7KMZJIHD6vKJ5l6Af6qGfTtQkuLNRcTPNs9nwdDG+l3WxWVJxnUymw9m0ke/ACAnLRwU5NWk+zzS+RqAWoBYZuZ0H8+XjEOmEb8u8reH4q+CcBlGvod6nMgGP0dE2Kmod9USLyUoj5z9MChfDUKRzcTY7tp6AsD4cjXCzOG9IhqllYnMd+eI3FK2WrgBwF8yzT0ZcVBj1e1P/HgPE863TocuKHhhpn8fcHoJiI8B+aTIPqHaehb83sKRr5ARKcYfFfaaFcPha2uSa3EXxv5Eoi2gbAegKoe281EfDuamrRAMv0Cgx4DMABwAqAGgH+pyrUCg4n2pA39qXEw/kqATBn6A3kwQpFmBjWahn5jAYxRaIv7jLb+sTYVuZNAu3M511KXK7uuAIbllneC6c8AzKKscPWSeatV+Z/4fTEY/nBkw0z++ZmnolLNSwsIVnXK6Oh1wMg/3Bf+VxKor/fKYW0TAb8gQsSScokgsYtA61NGfN948v8DcPNswWBJDemj8QNjFSO2hZifMQ3dGwhH7i+uGJbgmt6u9tRMj2wBjNGF2ry+trahQsWYzj8QivyQQVvBfIpB7emk/p2JYEiWd2eSB3fP9NtX2/3zYEgNAWHhEDE/kfWW7Sz/r9zIxC8LQWsloxLMfxfAbTTSvz/nvnYTMf0aGBvwZlMxQHhXQmwWUl4HQgtAraYR33jhjJHpAnCCYH1PssgS0R/BdNpMxh8uTkZNKHqrBN5Ws48sG92bXrnyjD95cf/quqhfWDAAfF8QJyXTeyz41nRX+ztVDQ0e14D1KQHNlrSaM0c78q3MLtfkVhKMbAXRFgBVAM4S0/OpZPz5+vp6V/9w2asAb8i/hjK9BuJbAP7DrMFgPAnCrwCUAdirjVCTOrcofitZURersqz82806NbcAiJOFR1LH9OPFSQoGg+VDNH8HgHsAes404k9P5x8IxXYxuNI09AYVly8ceZkk3axl+9eocxBfMPozIvxE/aZp6Kq92uaaspWoaf1E5/uq7046x1AtJpf1iM/yTj8x8V5vbujsWbe7u3v/mZkU/3xd3TULznm0Ug69lG1tZeXIxBnkUvwn7kXBNuD1aqo1zbTHq+n+ZT/5vNgB1tUk6tUQy2UHwx9cGwVpT40uFI/a7SmcS8BcdjDmkjh23qsDhp2zP03sDhgOGFMq4IDhgOGA4TBQugJOxShdK1tZOmDYKt2lB+uAUbpWtrJ0wLBVuksP1gGjdK1sZemAYat0lx6sA0bpWtnK0gHDVukuPdjzYJTu4ljaRYH/Aba4QIHKbdOkAAAAAElFTkSuQmCC\",\n            \"id\": \"d6345682-6b68-4949-982f-dc93acc3c065\",\n            \"inputType\": \"fixed\",\n            \"isOptional\": false,\n            \"page\": 1,\n            \"type\": \"text\",\n            \"value\": \"sample text\"\n        },\n        {\n            \"id\": \"0085c347-f64f-41c8-a840-2a5c9845372c\",\n            \"inputType\": \"client\",\n            \"isOptional\": true,\n            \"label\": \"client text field\",\n            \"page\": 1,\n            \"type\": \"text\"\n        },\n        {\n            \"id\": \"8c15a865-1d2f-4786-ae7f-d6d36e418b29\",\n            \"inputType\": \"client\",\n            \"isOptional\": false,\n            \"label\": \"initial_1\",\n            \"page\": 1,\n            \"type\": \"initials\",\n            \"value\": \"Initials\"\n        }\n    ],\n    \"id\": \"f1436029-0cb3-47ff-ac7c-f79e4603c2e2\",\n    \"latestSubmissionDate\": \"2023-12-20T23:44:41.093248434Z\",\n    \"name\": \"Sample contract 2\",\n    \"object\": \"contractTemplate\",\n    \"requestsCount\": 0,\n    \"submissionsCount\": 1\n}"}},"schema":{"type":"object","properties":{"createdAt":{"type":"string","example":"2023-12-20T23:42:28.27486918Z"},"fields":{"type":"array","items":{"type":"object","properties":{"encodedImgValue":{"type":"string","example":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAAAiCAYAAACa9KFpAAAAAXNSR0IArs4c6QAABstJREFUeF7tmW1sW+UVx//nuXFil7YuKd0mNW1spy/ENikjtd2AOkXAxvs2mFJVDJjY0FoxWCf6ZS9ikwoMbSso25D2aWwCiWnKWg2EWraVKkBL6pumLYmv23Sprx2FdqwssLRpEsf3OdPjxF3ipokbpKrpvfebfc95/Jz/+d1zzn1M/lCU4VyOAkUKkALDNHRylHEUKCigmHDAcHi4QAEHDAeKKRVwwHDAcMBwGChdAadilK6VrSyvODACtbGVrOFrHnnmN8lkMmurbFxBwV55YIQjDzDTDm2EvD098YFL0cofjn0FzM9qI/3re3p6Ri7Ft9h26fXRxeUadkuBLZkuve2zrDUXfS8Ao7GxsSz9r+Gq9LEDGQCTDr7Uvb6Pz1TDJQd6Dh8+XQhYiZgrHx7+qLNzsCYcWXYi0d5X8K1a07C074O2Dwu2K1asqLDcixeZifhHq1ffsiBXwZ4Tne//u3A/cBEwVq2qv07ZHD/e8fFUQvt8jW7MH9pEzM1sCf9Q+bnTaj8F26n8a+pu/lxFrvxcMtl6VtmpNWj+kNeUyz/xU6YWwBFmflRqFa/3du37ZC4meLZ7ngRGIBR5nEHbxxcbBGObmdR/mxctFNtI4JcALAIgwGip9FgPdXR0jPqDkU6QeA/g2wGsApASgjZIya/lPzO6IWiDmYh3FhLPxFuI6UW1FgNtUpTfq8QvBsN3/TofhPwLEW4EoDFhF8qy30wfOfLpxKAD4di3mfn3//+Of2oa7c9M5+8PRV8hoH75knlrWltbc75QbAeBl40i96ALZf8srMXA3rSh3zZbkeei33kwyG0t4mHtNIh+bCbiL/jDsS+D5Y88fM192WzfqFVx7VsA3h5xyxcrzom1EPQOEX8jlWjfOQYGLWHmuxhMgsS7Y0kUd4ucPMka9hB4Z8po/0Eh8QD+pmn0mGXxYgBvEOFQKqHfPwmMLy4f9Cd7Eww+PGrhSRfEAmjyTUHYl0rom4sEJ3849hCYXynPuRZ2d+8fRFMTTeevKoa0cscAepqJDGK5R7KMZJIHD6vKJ5l6Af6qGfTtQkuLNRcTPNs9nwdDG+l3WxWVJxnUymw9m0ke/ACAnLRwU5NWk+zzS+RqAWoBYZuZ0H8+XjEOmEb8u8reH4q+CcBlGvod6nMgGP0dE2Kmod9USLyUoj5z9MChfDUKRzcTY7tp6AsD4cjXCzOG9IhqllYnMd+eI3FK2WrgBwF8yzT0ZcVBj1e1P/HgPE863TocuKHhhpn8fcHoJiI8B+aTIPqHaehb83sKRr5ARKcYfFfaaFcPha2uSa3EXxv5Eoi2gbAegKoe281EfDuamrRAMv0Cgx4DMABwAqAGgH+pyrUCg4n2pA39qXEw/kqATBn6A3kwQpFmBjWahn5jAYxRaIv7jLb+sTYVuZNAu3M511KXK7uuAIbllneC6c8AzKKscPWSeatV+Z/4fTEY/nBkw0z++ZmnolLNSwsIVnXK6Oh1wMg/3Bf+VxKor/fKYW0TAb8gQsSScokgsYtA61NGfN948v8DcPNswWBJDemj8QNjFSO2hZifMQ3dGwhH7i+uGJbgmt6u9tRMj2wBjNGF2ry+trahQsWYzj8QivyQQVvBfIpB7emk/p2JYEiWd2eSB3fP9NtX2/3zYEgNAWHhEDE/kfWW7Sz/r9zIxC8LQWsloxLMfxfAbTTSvz/nvnYTMf0aGBvwZlMxQHhXQmwWUl4HQgtAraYR33jhjJHpAnCCYH1PssgS0R/BdNpMxh8uTkZNKHqrBN5Ws48sG92bXrnyjD95cf/quqhfWDAAfF8QJyXTeyz41nRX+ztVDQ0e14D1KQHNlrSaM0c78q3MLtfkVhKMbAXRFgBVAM4S0/OpZPz5+vp6V/9w2asAb8i/hjK9BuJbAP7DrMFgPAnCrwCUAdirjVCTOrcofitZURersqz82806NbcAiJOFR1LH9OPFSQoGg+VDNH8HgHsAes404k9P5x8IxXYxuNI09AYVly8ceZkk3axl+9eocxBfMPozIvxE/aZp6Kq92uaaspWoaf1E5/uq7046x1AtJpf1iM/yTj8x8V5vbujsWbe7u3v/mZkU/3xd3TULznm0Ug69lG1tZeXIxBnkUvwn7kXBNuD1aqo1zbTHq+n+ZT/5vNgB1tUk6tUQy2UHwx9cGwVpT40uFI/a7SmcS8BcdjDmkjh23qsDhp2zP03sDhgOGFMq4IDhgOGA4TBQugJOxShdK1tZOmDYKt2lB+uAUbpWtrJ0wLBVuksP1gGjdK1sZemAYat0lx6sA0bpWtnK0gHDVukuPdjzYJTu4ljaRYH/Aba4QIHKbdOkAAAAAElFTkSuQmCC"},"id":{"type":"string","example":"d6345682-6b68-4949-982f-dc93acc3c065"},"inputType":{"type":"string","example":"fixed"},"isOptional":{"type":"boolean","example":false,"default":true},"page":{"type":"integer","example":1,"default":0},"type":{"type":"string","example":"text"},"value":{"type":"string","example":"sample text"}}}},"id":{"type":"string","example":"f1436029-0cb3-47ff-ac7c-f79e4603c2e2"},"latestSubmissionDate":{"type":"string","example":"2023-12-20T23:44:41.093248434Z"},"name":{"type":"string","example":"Sample contract 2"},"object":{"type":"string","example":"contractTemplate"},"requestsCount":{"type":"integer","example":0,"default":0},"submissionsCount":{"type":"integer","example":1,"default":0},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/contract-templates":{"get":{"summary":"List Contract Templates","description":"This API endpoint retrieves the list of contract templates.  You can use the query params to filter a subset of companies who match specific field values.","operationId":"list-contract-templates","parameters":[{"name":"name","in":"query","description":"The name of the contract template to query for","schema":{"type":"string"}},{"name":"nextToken","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","format":"int32","default":100}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"createdAt\": \"2023-12-20T23:21:57.443582689Z\",\n            \"fields\": [\n                {\n                    \"encodedImgValue\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAAqCAYAAADibUizAAAAAXNSR0IArs4c6QAABF1JREFUaEPt2HWopWUQBvDfuvqHXdiIgQWiqIgIdjeKYqAidmAniokdyComBjYGyNoBBhbYLQYGit2dGDzLHPn49pyzl3sRzrrn/efynZl33nlmnndm3jvONLLGTSM4DYH+3zI9zOgwo1NpBPpRd3nMhd/wJP6eSjFOcrsb0A1wMZbA95gN92JnfD21gm0D3Qi34y6cjWewCCbiaezzfwA6J97E49gWfzZArVi/z48fpkawzYxehO2wKH7qAuYXbIN7RgB0QYQdV3XR7ScbgenRqXSAJpsf4RSc0cO5yE/DcVM4ajk8gHkxK35s6PeTjQ7BCHd1gObuXYh58G2XvdG7r2Tb97EdYC9iAfyB2Ru6/WQjdHf0ah2goeNMWLuPqZuQO9pP58yqzldjU6zUsNdPNnoEI9wZoDNUpk7tQduOqQfxF9J+uq1Z8CEOwv54CMeUYj9ZVI6tin4pTu9ifHyrOPaDtwWC5dOqE5N0A3TlaiObFD17GfkMz2KzHgr74SRsiOexJN4t3X6y3XFlDSY3YreW/XSAOL40dsG5eAvr4deW7jJ4qYabT7BYRx6gGQSuq375QQ8QuXMfVz/duofOY3iuHPoOOzT0+slewxdIIN+u7DaPOB4H4zwcjruxE9ZHWNZc6RwJTAaeMG+1JtCjiy7TFzW74dgDV+DmFoCObqp2nL0Dq2PZ+o68n2xxvFNOdbKZYaW5koQk43esg/j5SLXB91u6+b6k6sirOKIJ9OSKWLNCtsGm4qYv3oJuVTdRjCyVdssaGTs2+slC0wtwP0K7tJ/UgeZK1tZF/DwRh+JIpB83V2iaq3JtZTXBfq8J9AQchjl6UHKFouSX9TfVtL1yx3J/QtdbW8J+smtqX6i+Kt7oYjv3cT4sXLP39ZixhpememaA9Pg8PkLtMOTflTu6b0V15qJH+6xH6/dQaq+iZVsnzqR/ZrJqrrSjjJQpTt1kT1XVTyFMEWnvnVD7Eqy9S5hgZOI6q6GclhdWTIddcUPL1vgADWVeL3o83FBI27kcG2PNAptZOK+ZPN2y8ozL3V2rZuBQLPQJOxLdA2qczHzcTZbopwWl0DRXxtDUg4yiuZdhSr6TjNiK3RScDCGhcepMfMt936plKzoTmgPDUnVoHE212hFzY/Mykv3Jbu7AC+V4DkwBSrXsOPt5TUQvV5XMg+D8OrwtS89McTmk7ndaUoK6Z42RsZ3emtYS1sTpPB1vwzdVD9JG0r7S1sLOFK50iAQr1+5AfNUBmqkoNEnBSZZeQSahHJIC01mrFLBUwDhxGQIoKxnLYT8XjULLzuolS9U9p3r5QsWGsCrBfAJHFTNSuTuvqdB4jboOuYd3VgELhjwtQ+MEJjUlNsKEiaP551j2/Bf/behlN/euXYlb7JzsczJbowE6pUMGUj4EOpBpGYNTw4yOIXgDuXWY0YFMyxicGmZ0DMEbyK3DjA5kWsbg1DCjYwjeQG4dZnQg0zIGp6aZjP4DdvUAtGDGajYAAAAASUVORK5CYII=\",\n                    \"id\": \"4d29b7af-44aa-4d81-9947-a6186abe208a\",\n                    \"inputType\": \"fixed\",\n                    \"isOptional\": false,\n                    \"page\": 1,\n                    \"type\": \"signature\",\n                    \"value\": \"Max Branch\"\n                },\n                {\n                    \"encodedImgValue\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAqCAYAAAAqAaJlAAAAAXNSR0IArs4c6QAAA69JREFUWEft13fotXMYBvDPy4uQna2MrJCQUZSMZKfsEDJC2UVIkr1lC2VmJSvhDztlE0KSERGyMpKtq+6j0+99nuf8zul31Fvn/ufUee77+1zfe1z39cwyF9msuQirCdhxVev/yuwGWBP3tlxkcfww6JLjBrsiLsBOWBLb4YkCtUI9y3/L4aXy+64N9LjABtgJOBTX42p8i5NxMXbDzbgLj+NH3IKHcdwoYNevbPyGF/FPR5kCYiV8ho2wLW7EJfge8+JPHIgvcA/2xDN9Z56NvbHWMGBTlmuxet14UTyGA9BWol1wPL7Bs7i7QPbeuwy+wh64CUc29G8yeilmTxfs9ngIj+AivIKV8QBexhGDhqDl+dZ4Cq/i48rgVNe0zWVYAL83ndPfs0vgfTyPvfBXX8CG9X8G4acRAB+DK/EH1sZHDWecVAOXlmm0frDX1I1XwS8N3r9WGR8dAWyGLFXJUB3SEn8qTsMig8Amq58jTX5+g3NoJs/PxekjgE21NsM6+KAl/gwcheUHgc2tQy9Lt5BzKhCKCXHvMwLYMML9RWVt4T0+Dgt1tkFKuxC26gCSCU/Pdvk0ha+GD6uFArjNrqotlyFvBTtfZeyclhboBT6Jv2sLDZPcLIbQVagwoNss/TwPDuoCu3FR1I5V6jbf8GSoZ+dhkOJOhIcXG7BYsr3exSldYEP2txefftrimKbP5gnf7j4E2IXxJd7G5gPiXsetuKLFb3YGJzc5rzZHytxkvVJmTe47BNj9cQfSj8cOiPsaR7cos/T9bQF7VomHlKnNwgRp/Ei8YdjgwRItWTL3dZw/P6JBtsHTU/wWxAvZgAEbfjsR0ZRNFi36Wu39/EbuTcfCLtEKEUDL4ueOoF6bhYuz1vstLbpJeDpgIypSpvRX005+rv6PXjgc604HaSmvaNfIwP0GxKxXfZ3fd8o3LHUhdsUOYZKAza5+r6EEcY7Mi+OWBTjaISosJYtFt4aWotJ6orqH67CKz8ty0S7L+VFrq+KT4vKs/wxnZGO08H8fjFkK+ezIfo7I2KKysVTRTkDGkuXb8EZdLgMRysnwTNW7Z+JgrFECpgts3peVnFWf5EUPB8t1/ef2hEz66/IaomQrVJONFQESpdSzTQtc2iUgb8BbLSgi9XKBRrk3JSYt+GYJqAxxsjrHN9konzWJ6fpqmGZLD+82Ctjh3zJDEROwM5TIOY6ZZHaS2b6lMK5kzOi5k56d0XT2HTbJ7CSzEzYYVw9MMjvGzP4LcUe/kBDMlVcAAAAASUVORK5CYII=\",\n                    \"id\": \"9d447a8f-49b5-416e-8995-6b266c449f9f\",\n                    \"inputType\": \"fixed\",\n                    \"isOptional\": false,\n                    \"page\": 1,\n                    \"type\": \"initials\",\n                    \"value\": \"MB\"\n                },\n                {\n                    \"encodedImgValue\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAAAiCAYAAACa9KFpAAAAAXNSR0IArs4c6QAAB8BJREFUeF7tm39sE+cZx7/Pe06UlEFLOmCjaWM7URP7nEw09TlAaKMKOrSiig1lWittVVtGf2wVY6hUsFVMbNK6TdNEh7SyqRtl1cY0uhVBmMrKRNVB4rMy0sTn8CPxXbKIrQ2FjvIz8b3PdI7tmSQdofxhq7n7z++P533u+3ze5/1xMvlUjeE+rgLjFCAHDNPQyVXGVSCrgMOEC4bLwwQFXDBcKCZVwAXDBcMFw2Vg6gq4GWPqWk2rlhPAqA6Fb5cSX5YKHRno0dtzu9TAoioIewWAeQw+bBn6G+OV8qraQSLaYcajv3Xq/Go4zETLmJEi4A3T0N/J71MTaqyWrDwI4stCiL193dGh8TZ9auT7DL7VMvSnp2KzUl1YUQJ7BQiVAO0z49HufJu1tYtnjpSkVjJkQDD1jMxSXh9qb7+U10b4Q+GVLKmRBA99lF+fdErywRDeoLaGCD8GMItBmy0jusURoLo+0iglHwCQJMIQM5YT+KWkEVuXFahmwYI59kjJu2SjLnlMP+ELaY+D8RKB/gpwGQPNAD1sGtHdTh+vGl5OoP0gvA3GHAA1QtDC/p5oZ77oXlWLg+lFKxH95bVs3l67eL7HM9oN0DCI3wNjCRhrzYT+c8fmHfXNsxU58jcAs0HQwbiHgf6RMnvZqc7Oi2htVXyJgTYAGoCDINSBMVeSaBmId/R+0mHIf78cGJB8LwTtYqaniHgHg36WBcMX0l4F822mEbsPAPtV7SEGXh2FMmfIaD8zNpPTZS+Yhl6V/h3UhkD8ctKIbXZ++9TwdoA009AXpGetZ/QkgXcljdi3xuq1vQDuNA09AEA6ZVWBxs8KoZySCvwD3br5/2ymYQtpbcT06XL+cEkikRjxBcPrQfQDAaW+32jv86naagA/sUWpf7Dn72drGiKVts0WM62yEtE9/kB4KQs6wMIOWj2dxxobG0vOXFbiDLRZhv7t6QkG0WfYc+WK1dX1gU/VzuaD4VcjzVKkTjti5dI5SCcbtU52SAclqL1MBOeibHVLS4tn8N1L94uykVjf0aPD6cCHtGfBWGca+nzHHoPfzgY8XR8I3wNBb9mCqwd7YsmxPpGvMvNmy9BrrmUzM9svENNTyUT0N07/YDBYeok+dY6Ink7Go7+uCjUFPLBn98djRzJBFj5V+w8zrXcy0mSB96naO0zcZsVjm6YlGPk3n+PBmLjuh3czk9dK6GEng2Rm/CCDNlhGdNf49pkM4az1fzINfX1m5m4zDb0s2zabHUjSA8ne6P6MzZ1EuJiM609ey2a1urBGwj7JkhZavdGObHufqh0HY4+Z0DdMeI+g9k0QfphKldT+8/jhU7llsSFSKW1ulYSlkJhH7Fll9h4ZcMEYlzGuXnsiWwBeS0JpTva096QD2HB3LWzRWzJqzz1xovN0fvv0rBUz28A8t5xvWpxIHDrvVbXnCNhoGvot2bZeb0sZzbh4CURfy25efap2ikDPJI3oa9e0GWyKEMkOZl5gJWJdeWB0MMOwEvrj+Ta8qvZ5Apzla7Vp6Dvz66oCTXcJIbc6SQdAG6TneReMsfX+qqUkFzxV20DAFiax3Ip3HMqJPzbzHjMN/a58gZ30PzB84TWAGqS0Fw30dv5rbCmKrGLw7tJUyazjxw9/6JSlT0NMg9kZXx24OySF6LJF6RxnP5C1+1E2b6vTbi1VcBrgB00j5gQ8/fhUrZ/Av0oasRdy71Efvpck/YXAW/LLx2cEB1Yx4+J+JrLNeHSZmzEmAcMX1J4B4adE+FIyru+7OouE9xDoWNLQn8uVOzt8Y+B3IG62BZZk9w1O/R1qJKiADSKsSMZ15xQAr6o9QsAOW5RWOCD4VW0dg75iGtHIVGymIQhq7wH8ipmIPZu2WdfkJUWaLPFFq1d/3SmrqtcWCokDDNpmGdGN+e9RrWr3SUbQTOjbcmCFtE1gbDINfWZ22ZwOgEx6wTU+Y/jU8NcB2k7grVKKP2SF8ZSN9FfefPPZgeGL75PkVcne2JuZOufD3CsAHiKmNZKRO+p5Rt8/2tfXd8Uf0v7MEgFW+AmySRLweybaYxrRb2Syyn4G/8M09O9O1aY3FFlLzD8i4FHB3J0iepGAinI+H3FOKZlj90EwuqSCjZSi9P7Io6SG++Kd/f6QtoIZe0H4DqWw2xayWpDYDsDxY+V0ACIv0078ujoRjEgvwHXjhSGmx4jsExLiTb5w02zLOnQ5PXNDkXlg/vdkQmZPIpnU78CzFEDKuYwanSUedS6bMqeJMyz4Aasn9tZUbQIgX0jbCsbDAG4B4TCT/UTuNBXUfsGECRtZADtNQ38knWVC2pPE/DxA8wFccPxSrmBNX1/03LQH43oE8Ie07zHzItOI3X89/bJt5zU0zCg/V2FnoRoLTlMLsdxXzucrnJl+3XZbWxXvyZMznaP3dffNdHBuUIeMdqd/+k5luj03/K3EH4h8gRT5Qd7dwA1r6FO1z4Fxp5nQ/3jDxlwDH0uBGwbjY43qdip6BVwwij5EhXHQBaMwuhf9qC4YRR+iwjjoglEY3Yt+VBeMog9RYRx0wSiM7kU/qgtG0YeoMA66YBRG96If1QWj6ENUGAddMAqje9GP6oJR9CEqjIMuGIXRvehHdcEo+hAVxsH//a+kMOO7oxaxAv8FURJ0gaEWmokAAAAASUVORK5CYII=\",\n                    \"id\": \"f7f28436-034b-4270-a919-b03c09c5ef7c\",\n                    \"inputType\": \"fixed\",\n                    \"isOptional\": false,\n                    \"page\": 1,\n                    \"type\": \"date\",\n                    \"value\": \"12/20/2023\"\n                },\n                {\n                    \"encodedImgValue\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAAAiCAYAAACa9KFpAAAAAXNSR0IArs4c6QAABUBJREFUeF7tm32IFHUYx7/PzO2up6cHV1iUeTvrmt7Odprbzna9IaR/JBEhiElUaGQaRGQvhkJB1F+9mZRJbxD+UdyhYIInlbHQy7Wzrca5s2peO7timIqa2um97MwTc94e67nXqecgQ7/58ze/+T4P3+czz+83P3ZJUTWGuIQDwxwgBwzT0Ek4IxwoO+AwIcAQPFzkgABDQFHVAQGGAEOAIRi4dAdEx7h0r/5XM68pGKGmxHSW+AMAYQn240zUbNt0RyGnPzlaFYKq9gRIKhayvySrzQ1F4o+yJB01s6lvR9MS9y924AIwQmr8FZtwayGbXjZWs26eqV3nl9FuS3iuuEfvqKanqNo2gMLE9hs+y/91r1xaQmTHTCP99GjxlUi8k4m+Kxj6quraiRQR785n9RWjaYn7/wGG3Ev19jj+ghm3gyjRECidyGQy/eVHQmpsarfcf/xIZ2e3MxaLxXwnemsaau0zJ3O5XJ8zFg4nJklSyf/7rNBJJVeMAviNmZfacmDrwT0/nqwMP635rsm2VeoCsAVEq81s6uiMGXfXddfYvkNGx4nKucNjO/eqgXFDc/OE2lJgYiGX/ktRBRhjAX6oYwDYBOCxITHGfWZO/yHUlFjAEm8AMBWARcC7eUNfHQ6HA1agYQ9ASdNILb8pFhsf6JH3A2i1JP5QtumPshYD3xcM/f7KRBVV+wfAhPKYv+Sb1OfrfxOMe0xDn+OMjxS7GhihiPYRE5YCCIDRCoJChF2iY1wZHpVLiRyMaJ9IEs+eev2ERDKZtEJNiTBLvJsYr/bUWhv9vT6N2N7GoKcKRuorJZqYD+Z2EM0h8EJmLD0r90ScrjItGr/FZjoI8ENmJLgdbW1WZYpz586tKR47ewCMtsbJ49ckk8mSEtXWl8EY3H+MHLtiKQmp8WcY5Dy7pJ/knT7YzwO8lggfCzDGDgaFotpGZsw2Df3O82+l9iwI71mg5rK8DHsdWDpi5lID3SWkxr9kSCGAowA/Yhrpbc54MBK/kYgOM/iBgpHeMcIe4wATtxWy6TUD8SrAGC125VKiqPGtBLLyhr5wMI5zmnuUCJsFGC6AEVS1DQSsBGBeIM9Imzl9sTPWeJvWItn4GUDeNPRp5XljBWO02JVghFTNYGCHaegvDO2JovEMQGkBhgtgDL61L5mG7uwvql6KqrUD1DDQMYhWmNmUs1cZ6hg22wuKuV/br7BjjBh7GBhbGPCbhv7gQJxFi2QlVzxGhFYBxlUAQ1ETrwO8kpnnj0d3rocnNrLEu4jwTh/L631kT2HmLSC8XcjqG4PR+GJi2mSTNEu2+WEmXtVnYeaf+/TjU1paan2nrb8JWGfZ1rri3szh4SkqqjbiUjK4xxgx9gVgRBPLmPlTAMsJ1jdM8otgrCTCZwKMqwBGY7OmSBZtB3gmMc/L59I7Q03xeZDofQYiAEoMtAZKvhX9dT0S98j7wNhk5vSXI5GI/xzqOomoI2+knK8DBCPaa0RYCyBlGvq9lwPG+a+S6rH37//pzPDPVSUSfwtEzvlHHYDPQZhOwF4BxlUAY2h9jsXq85nMaQBDP+CZorY0jOs91t3V1dV7OaEcYE7X18uHOjrOXc5zlXMvNbZztnLqVE1tV1fKyV1cY3Dgmh6JjyFv8ajLDggwXDbYq/ICDK9WzuW8BRguG+xVeQGGVyvnct4CDJcN9qq8AMOrlXM5bwGGywZ7VV6A4dXKuZy3AMNlg70qL8DwauVczluA4bLBXpUXYHi1ci7nLcBw2WCvygswvFo5l/Ou/PuAy6GEvNcc+BfzdFJyeow/ewAAAABJRU5ErkJggg==\",\n                    \"id\": \"86dc3a1a-37ab-4898-ad17-8a7b82cb16f7\",\n                    \"inputType\": \"fixed\",\n                    \"isOptional\": false,\n                    \"page\": 1,\n                    \"type\": \"text\",\n                    \"value\": \"text field\"\n                },\n                {\n                    \"id\": \"741ffdd0-b2ec-4c14-b35f-3e77e6315c7e\",\n                    \"inputType\": \"variable\",\n                    \"isOptional\": false,\n                    \"label\": \"variable date\",\n                    \"page\": 1,\n                    \"type\": \"date\"\n                },\n                {\n                    \"id\": \"994db252-5bab-4948-a314-6ef33b22d6f3\",\n                    \"inputType\": \"variable\",\n                    \"isOptional\": false,\n                    \"label\": \"variable text\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"5447d651-4c38-4bf1-9bcd-b17709c87995\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.firstName}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"810e7ffb-8a1e-4def-b4ee-dc9fcd4df286\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.lastName}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"6acd515f-2a6d-4f80-906d-48180a53c9d3\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.fullName}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"fec74779-83ea-41a0-9ed9-21d34b26eae9\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.email}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"9540b843-78ba-4455-8b33-270a0f4f4eb7\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.url}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"e9321c16-dede-4e00-98ea-5b7a6281f2b6\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.text2}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"2033b9d9-e3de-49f5-876a-f233ccda1313\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.phoneNumber}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"7d2640f2-9fde-49dc-a18b-c2ba7d64c17a\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.tags}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"704195f4-3674-41ad-a1ee-0851cfb43562\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.number}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"e35be98f-96a9-42ba-b2d9-e28475b09665\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.address}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"f42e2cf2-d069-4cba-a85f-e5c94fa40c05\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.text}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"eeaa2475-2de8-4ec2-992f-7eff6ca6682a\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{client.email}}\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"320c8122-69a8-4db9-a02c-498103ea1471\",\n                    \"inputType\": \"autoFill\",\n                    \"isOptional\": false,\n                    \"label\": \"{{contract.shareDate}}\",\n                    \"page\": 1,\n                    \"type\": \"date\"\n                },\n                {\n                    \"id\": \"4d1c797d-59ab-485c-9056-a799e41287e8\",\n                    \"inputType\": \"client\",\n                    \"isOptional\": false,\n                    \"label\": \"signature_1\",\n                    \"page\": 1,\n                    \"type\": \"signature\",\n                    \"value\": \"Signature\"\n                },\n                {\n                    \"id\": \"92a153e4-0428-4b58-957a-c7bab9d4f263\",\n                    \"inputType\": \"client\",\n                    \"isOptional\": false,\n                    \"label\": \"initial_1\",\n                    \"page\": 1,\n                    \"type\": \"initials\",\n                    \"value\": \"Initials\"\n                },\n                {\n                    \"id\": \"e4ce0c13-ce6f-4a12-a27d-d0356359661b\",\n                    \"inputType\": \"client\",\n                    \"isOptional\": false,\n                    \"label\": \"date_3\",\n                    \"page\": 1,\n                    \"type\": \"date\"\n                },\n                {\n                    \"id\": \"484ff9ac-bf1f-4744-8dcc-337ca5578c41\",\n                    \"inputType\": \"client\",\n                    \"isOptional\": true,\n                    \"label\": \"client text field\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                }\n            ],\n            \"id\": \"f919eafa-c800-48eb-bbf2-38e812b7241f\",\n            \"latestSubmissionDate\": \"2023-12-20T23:25:41.965400745Z\",\n            \"name\": \"Sample contract 1\",\n            \"object\": \"contractTemplate\",\n            \"requestsCount\": 1,\n            \"submissionsCount\": 1\n        },\n        {\n            \"createdAt\": \"2023-12-20T23:42:28.27486918Z\",\n            \"fields\": [\n                {\n                    \"encodedImgValue\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIYAAAAiCAYAAACa9KFpAAAAAXNSR0IArs4c6QAABstJREFUeF7tmW1sW+UVx//nuXFil7YuKd0mNW1spy/ENikjtd2AOkXAxvs2mFJVDJjY0FoxWCf6ZS9ikwoMbSso25D2aWwCiWnKWg2EWraVKkBL6pumLYmv23Sprx2FdqwssLRpEsf3OdPjxF3ipokbpKrpvfebfc95/Jz/+d1zzn1M/lCU4VyOAkUKkALDNHRylHEUKCigmHDAcHi4QAEHDAeKKRVwwHDAcMBwGChdAadilK6VrSyvODACtbGVrOFrHnnmN8lkMmurbFxBwV55YIQjDzDTDm2EvD098YFL0cofjn0FzM9qI/3re3p6Ri7Ft9h26fXRxeUadkuBLZkuve2zrDUXfS8Ao7GxsSz9r+Gq9LEDGQCTDr7Uvb6Pz1TDJQd6Dh8+XQhYiZgrHx7+qLNzsCYcWXYi0d5X8K1a07C074O2Dwu2K1asqLDcixeZifhHq1ffsiBXwZ4Tne//u3A/cBEwVq2qv07ZHD/e8fFUQvt8jW7MH9pEzM1sCf9Q+bnTaj8F26n8a+pu/lxFrvxcMtl6VtmpNWj+kNeUyz/xU6YWwBFmflRqFa/3du37ZC4meLZ7ngRGIBR5nEHbxxcbBGObmdR/mxctFNtI4JcALAIgwGip9FgPdXR0jPqDkU6QeA/g2wGsApASgjZIya/lPzO6IWiDmYh3FhLPxFuI6UW1FgNtUpTfq8QvBsN3/TofhPwLEW4EoDFhF8qy30wfOfLpxKAD4di3mfn3//+Of2oa7c9M5+8PRV8hoH75knlrWltbc75QbAeBl40i96ALZf8srMXA3rSh3zZbkeei33kwyG0t4mHtNIh+bCbiL/jDsS+D5Y88fM192WzfqFVx7VsA3h5xyxcrzom1EPQOEX8jlWjfOQYGLWHmuxhMgsS7Y0kUd4ucPMka9hB4Z8po/0Eh8QD+pmn0mGXxYgBvEOFQKqHfPwmMLy4f9Cd7Eww+PGrhSRfEAmjyTUHYl0rom4sEJ3849hCYXynPuRZ2d+8fRFMTTeevKoa0cscAepqJDGK5R7KMZJIHD6vKJ5l6Af6qGfTtQkuLNRcTPNs9nwdDG+l3WxWVJxnUymw9m0ke/ACAnLRwU5NWk+zzS+RqAWoBYZuZ0H8+XjEOmEb8u8reH4q+CcBlGvod6nMgGP0dE2Kmod9USLyUoj5z9MChfDUKRzcTY7tp6AsD4cjXCzOG9IhqllYnMd+eI3FK2WrgBwF8yzT0ZcVBj1e1P/HgPE863TocuKHhhpn8fcHoJiI8B+aTIPqHaehb83sKRr5ARKcYfFfaaFcPha2uSa3EXxv5Eoi2gbAegKoe281EfDuamrRAMv0Cgx4DMABwAqAGgH+pyrUCg4n2pA39qXEw/kqATBn6A3kwQpFmBjWahn5jAYxRaIv7jLb+sTYVuZNAu3M511KXK7uuAIbllneC6c8AzKKscPWSeatV+Z/4fTEY/nBkw0z++ZmnolLNSwsIVnXK6Oh1wMg/3Bf+VxKor/fKYW0TAb8gQsSScokgsYtA61NGfN948v8DcPNswWBJDemj8QNjFSO2hZifMQ3dGwhH7i+uGJbgmt6u9tRMj2wBjNGF2ry+trahQsWYzj8QivyQQVvBfIpB7emk/p2JYEiWd2eSB3fP9NtX2/3zYEgNAWHhEDE/kfWW7Sz/r9zIxC8LQWsloxLMfxfAbTTSvz/nvnYTMf0aGBvwZlMxQHhXQmwWUl4HQgtAraYR33jhjJHpAnCCYH1PssgS0R/BdNpMxh8uTkZNKHqrBN5Ws48sG92bXrnyjD95cf/quqhfWDAAfF8QJyXTeyz41nRX+ztVDQ0e14D1KQHNlrSaM0c78q3MLtfkVhKMbAXRFgBVAM4S0/OpZPz5+vp6V/9w2asAb8i/hjK9BuJbAP7DrMFgPAnCrwCUAdirjVCTOrcofitZURersqz82806NbcAiJOFR1LH9OPFSQoGg+VDNH8HgHsAes404k9P5x8IxXYxuNI09AYVly8ceZkk3axl+9eocxBfMPozIvxE/aZp6Kq92uaaspWoaf1E5/uq7046x1AtJpf1iM/yTj8x8V5vbujsWbe7u3v/mZkU/3xd3TULznm0Ug69lG1tZeXIxBnkUvwn7kXBNuD1aqo1zbTHq+n+ZT/5vNgB1tUk6tUQy2UHwx9cGwVpT40uFI/a7SmcS8BcdjDmkjh23qsDhp2zP03sDhgOGFMq4IDhgOGA4TBQugJOxShdK1tZOmDYKt2lB+uAUbpWtrJ0wLBVuksP1gGjdK1sZemAYat0lx6sA0bpWtnK0gHDVukuPdjzYJTu4ljaRYH/Aba4QIHKbdOkAAAAAElFTkSuQmCC\",\n                    \"id\": \"d6345682-6b68-4949-982f-dc93acc3c065\",\n                    \"inputType\": \"fixed\",\n                    \"isOptional\": false,\n                    \"page\": 1,\n                    \"type\": \"text\",\n                    \"value\": \"sample text\"\n                },\n                {\n                    \"id\": \"0085c347-f64f-41c8-a840-2a5c9845372c\",\n                    \"inputType\": \"client\",\n                    \"isOptional\": true,\n                    \"label\": \"client text field\",\n                    \"page\": 1,\n                    \"type\": \"text\"\n                },\n                {\n                    \"id\": \"8c15a865-1d2f-4786-ae7f-d6d36e418b29\",\n                    \"inputType\": \"client\",\n                    \"isOptional\": false,\n                    \"label\": \"initial_1\",\n                    \"page\": 1,\n                    \"type\": \"initials\",\n                    \"value\": \"Initials\"\n                }\n            ],\n            \"id\": \"f1436029-0cb3-47ff-ac7c-f79e4603c2e2\",\n            \"latestSubmissionDate\": \"2023-12-20T23:44:41.093248434Z\",\n            \"name\": \"Sample contract 2\",\n            \"object\": \"contractTemplate\",\n            \"requestsCount\": 0,\n            \"submissionsCount\": 1\n        }\n    ]\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","example":"2023-12-20T23:21:57.443582689Z"},"fields":{"type":"array","items":{"type":"object","properties":{"encodedImgValue":{"type":"string","example":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAAqCAYAAADibUizAAAAAXNSR0IArs4c6QAABF1JREFUaEPt2HWopWUQBvDfuvqHXdiIgQWiqIgIdjeKYqAidmAniokdyComBjYGyNoBBhbYLQYGit2dGDzLHPn49pyzl3sRzrrn/efynZl33nlmnndm3jvONLLGTSM4DYH+3zI9zOgwo1NpBPpRd3nMhd/wJP6eSjFOcrsb0A1wMZbA95gN92JnfD21gm0D3Qi34y6cjWewCCbiaezzfwA6J97E49gWfzZArVi/z48fpkawzYxehO2wKH7qAuYXbIN7RgB0QYQdV3XR7ScbgenRqXSAJpsf4RSc0cO5yE/DcVM4ajk8gHkxK35s6PeTjQ7BCHd1gObuXYh58G2XvdG7r2Tb97EdYC9iAfyB2Ru6/WQjdHf0ah2goeNMWLuPqZuQO9pP58yqzldjU6zUsNdPNnoEI9wZoDNUpk7tQduOqQfxF9J+uq1Z8CEOwv54CMeUYj9ZVI6tin4pTu9ifHyrOPaDtwWC5dOqE5N0A3TlaiObFD17GfkMz2KzHgr74SRsiOexJN4t3X6y3XFlDSY3YreW/XSAOL40dsG5eAvr4deW7jJ4qYabT7BYRx6gGQSuq375QQ8QuXMfVz/duofOY3iuHPoOOzT0+slewxdIIN+u7DaPOB4H4zwcjruxE9ZHWNZc6RwJTAaeMG+1JtCjiy7TFzW74dgDV+DmFoCObqp2nL0Dq2PZ+o68n2xxvFNOdbKZYaW5koQk43esg/j5SLXB91u6+b6k6sirOKIJ9OSKWLNCtsGm4qYv3oJuVTdRjCyVdssaGTs2+slC0wtwP0K7tJ/UgeZK1tZF/DwRh+JIpB83V2iaq3JtZTXBfq8J9AQchjl6UHKFouSX9TfVtL1yx3J/QtdbW8J+smtqX6i+Kt7oYjv3cT4sXLP39ZixhpememaA9Pg8PkLtMOTflTu6b0V15qJH+6xH6/dQaq+iZVsnzqR/ZrJqrrSjjJQpTt1kT1XVTyFMEWnvnVD7Eqy9S5hgZOI6q6GclhdWTIddcUPL1vgADWVeL3o83FBI27kcG2PNAptZOK+ZPN2y8ozL3V2rZuBQLPQJOxLdA2qczHzcTZbopwWl0DRXxtDUg4yiuZdhSr6TjNiK3RScDCGhcepMfMt936plKzoTmgPDUnVoHE212hFzY/Mykv3Jbu7AC+V4DkwBSrXsOPt5TUQvV5XMg+D8OrwtS89McTmk7ndaUoK6Z42RsZ3emtYS1sTpPB1vwzdVD9JG0r7S1sLOFK50iAQr1+5AfNUBmqkoNEnBSZZeQSahHJIC01mrFLBUwDhxGQIoKxnLYT8XjULLzuolS9U9p3r5QsWGsCrBfAJHFTNSuTuvqdB4jboOuYd3VgELhjwtQ+MEJjUlNsKEiaP551j2/Bf/behlN/euXYlb7JzsczJbowE6pUMGUj4EOpBpGYNTw4yOIXgDuXWY0YFMyxicGmZ0DMEbyK3DjA5kWsbg1DCjYwjeQG4dZnQg0zIGp6aZjP4DdvUAtGDGajYAAAAASUVORK5CYII="},"id":{"type":"string","example":"4d29b7af-44aa-4d81-9947-a6186abe208a"},"inputType":{"type":"string","example":"fixed"},"isOptional":{"type":"boolean","example":false,"default":true},"page":{"type":"integer","example":1,"default":0},"type":{"type":"string","example":"signature"},"value":{"type":"string","example":"Max Branch"}}}},"id":{"type":"string","example":"f919eafa-c800-48eb-bbf2-38e812b7241f"},"latestSubmissionDate":{"type":"string","example":"2023-12-20T23:25:41.965400745Z"},"name":{"type":"string","example":"Sample contract 1"},"object":{"type":"string","example":"contractTemplate"},"requestsCount":{"type":"integer","example":1,"default":0},"submissionsCount":{"type":"integer","example":1,"default":0},"updatedAt":{"type":"string"}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/custom-fields":{"get":{"summary":"List Custom Fields","description":"This API endpoint retrieves a list of all the custom fields that have been created in your workspace.","operationId":"list-custom-fields","responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"id":"f1eaf544-6da4-457b-bea8-3777a2eeefa9","type":"phoneNumber","name":"Phone Number","key":"phoneNumber","order":0,"entityType":"company"},{"id":"71cc12f5-32ce-496f-8fa7-51a5f63b38a4","type":"url","name":"Website","key":"website","order":2,"entityType":"client"},{"id":"71813f92-3c9f-4161-835e-e0b4b9d4d130","type":"email","name":"Support Email","key":"supportEmail","order":0,"entityType":"client"},{"id":"7b1f2546-e01f-4279-94c0-0323d004dfdd","type":"text","name":"Pronouns","key":"pronouns","order":1,"entityType":"client"},{"id":"8465086b-29e9-4c0f-ae84-1f9246a2bc01","type":"number","name":"Access Code","key":"accessCode","order":5,"entityType":"client"},{"id":"7058565d-1753-4ca0-bbf3-3ec95121681b","type":"multiSelect","name":"Services","key":"services","order":3,"options":[{"id":"option-123456","name":"File Sharing","key":"fileSharing","color":"rgba(144, 149, 157, 1)"},{"id":"option-123457","name":"Metrics","key":"metrics","color":"rgba(0, 0, 0, 1)"},{"id":"option-123458","name":"Messaging","key":"messaging","color":"rgba(27, 29, 0, 1)"}],"entityType":"client"},{"id":"f1eaf544-6da4-457b-bea8-3777a2eeefa7","type":"phoneNumber","name":"Phone Number","key":"phoneNumber","order":4,"entityType":"client"}]}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"de0ad982-a5a2-437b-94ce-99643a816ba0"},"key":{"type":"string","example":"nickname"},"name":{"type":"string","example":"Nickname"},"type":{"type":"string","example":"text"},"order":{"type":"integer","example":2,"default":0},"object":{"type":"string","example":"customField"},"entityType":{"type":"string"}}}}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"404 page not found"}}}}}},"deprecated":false,"parameters":[{"in":"query","name":"entityType","schema":{"type":"string"},"description":"Only return custom fields that have an entity type matching this value. Can be one of `client` or `company`."}]}},"/v1/custom-fields/{id}/options":{"get":{"summary":"List Custom Field Options","description":"Get a list of options for a multi-select custom field.<br><br>You can use the query params to filter for a single matching custom field option.","operationId":"list-custom-field-options","parameters":[{"name":"label","in":"query","description":"Only the option with a label that matches the value provided here will be returned.","schema":{"type":"string"}},{"name":"id","in":"path","description":"The ID of the multi-select custom field to list options for.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"data\": [\n    {\n      \"id\": \"option-e770d1fe-bbfc-484e-92c5-279e5bec4437\",\n      \"key\": \"gold\",\n      \"label\": \"Gold\",\n      \"color\": \"rgba(144, 149, 157, 1)\",\n      \"object\": \"customFieldOption\"\n    },\n    {\n      \"id\": \"option-363fcf60-c3ef-47d7-901a-84b4376d98ec\",\n      \"key\": \"silver\",\n      \"label\": \"Silver\",\n      \"color\": \"rgba(0, 0, 0, 1)\",\n      \"object\": \"customFieldOption\"\n    },\n    {\n      \"id\": \"option-cd6315cf-6fa8-4ede-96e3-126d0142bd2b\",\n      \"key\": \"bronze\",\n      \"label\": \"Bronze\",\n      \"color\": \"rgba(150, 75, 0, 1)\",\n      \"object\": \"customFieldOption\"\n    }\n  ]\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"option-e770d1fe-bbfc-484e-92c5-279e5bec4437"},"key":{"type":"string","example":"gold"},"label":{"type":"string","example":"Gold"},"color":{"type":"string","example":"rgba(144, 149, 157, 1)"},"object":{"type":"string","example":"customFieldOption"}}}}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"404 not found"}}}}}},"deprecated":false}},"/v1/files/{fileType}":{"post":{"summary":"Create File","description":"These are 3 API endpoints which create a file object in a File Channel, of type `file`, `folder` or `link`, based on the `fileType` path parameter that you specify.","operationId":"create-file","parameters":[{"name":"fileType","in":"path","description":"The type of file object to be created. This can be 'file', 'folder', or 'link'.","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["path","channelId"],"properties":{"path":{"type":"string","description":"The full path where the file object will be created. This should include the filename and extension, if relevant"},"channelId":{"type":"string","description":"The File Channel where the file object will be created."},"linkUrl":{"type":"string","description":"The URL that the link points to (only relevant when fileType = link)"},"clientPermissions":{"type":"string","description":"For folders only, the client permissions on the folder.","default":"read_write","enum":["read_write","read_only"]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"channelId\": \"b1VRvR-zM/c3b39b06-4a7c-4e66-92e3-35201c5f4542\",\n    \"createdAt\": \"2023-12-01T18:57:50.519785029Z\",\n    \"creatorId\": \"335775a7-9115-449e-8578-45d798a1c77e\",\n    \"downloadUrl\": \"https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A335775a7-9115-449e-8578-45d798a1c77e/files/91c4ed75-c903-4ef2-b9997-a0c0cfc67563/2023-12-01T18%3A57%3A50Z/Lifestyle%20Collection%20Welcome%20Letter%20Template.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIYKLIBR77%2F20240312%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240312T184902Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEEIaCXVzLXdlc3QtMiJIMEYCIQDxD9b4Uno3hkjI83PwDeWN4NkmZ7bzprGSg9u8QOrNJwIhANzy8Y9q0lsd59eAqxIc5SRfvm2pXIzX%2FTpx5UiaOQsQKo0DCEsQBhoMMDIwNDE1MDE1MzEzIgxliEdUd8rIphnvFrUq6gJRaYtNmNC9Ffknv0GpCovpMBQobsubBIRTuc0NafoQkCVpMlIJyFuUUnKNG%2Frv0NJvOPSHVzlIch9PjA3pEqatU79TxuJSyvQ6Iuzw90OLSIemYgGjPYD%2FPvcCx9GowAr6qWH9gmSuFx2nON3JjMWX7d5CBJlJtCbn%2FQHMOczxyYU%2FFuBOUEU7q6yS8ZokB%2FcZT%2Ba%2BhT71Gj%2FtwNZh2WPPMBjM6hMixqdlnP18OvsiKABVsNGvACUb9bHqHkP%2F%2By5XJcxoj%2FrcZbRgNbnowUr0G6t0Obfuma2iTyPgHAkN3WPNfexSLRQm2entcvnXQNJegouW97kivQxnOplI5eYHmn3NKdj9gBdeB2Mde8XhoJnxIiJn%2FjZCpn8ywvn3dANcEqriPzic3ZxmiAyvVpdbvpQRgeFaRyqNutdwWeQPMEj%2FSGh2OZq25mZ20bWo5Kz4JfX60bclzCHseQ5fAoCAy27aLqzDWQcJUzDHocKvBjqcARBj7dApY7uzXTAP%2Bv6E5YRo7dkQGYXnd9bzVhqrGa6pCbYkDjxvQ1yYeSHf5lJawRcA3FE1siv6Qyt7blA%2Bzt%2FrtJewYxhMhYWb9DUpyt0OIBDmlYr6407CQLSQCqL6vU1zPmKtDXLJgHB7xlOsa5jIrBm4zAyDXBHieh%2BT9i%2Fpx25%2FZkoGver5A%2BfamYtw6mBN1ipWsNwNqaHwUQ%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=8c5b7a68842e8962127a57ac6a1616ef6843398cfed7413235dcfc59407200a1\",\n    \"id\": \"91c4ed75-c903-4ef2-b087-a0c0cfc67563\",\n    \"lastModifiedBy\": {\n        \"id\": \"9640718b-e291-4c93-8366-989ae26f58c9\",\n        \"object\": \"internalUser\"\n    },\n    \"linkUrl\": \"\",\n    \"name\": \"ExampleFile.docx\",\n    \"object\": \"file\",\n    \"path\": \"Welcome Letters/ExampleFile.docx\",\n    \"size\": 341141,\n    \"status\": \"complete\"\n}"}},"schema":{"type":"object","properties":{"channelId":{"type":"string","example":"b1VRvR-zM/c3b39b06-4a7c-4e66-92e3-35201c5f4542"},"createdAt":{"type":"string","example":"2023-12-01T18:57:50.519785029Z"},"creatorId":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e"},"downloadUrl":{"type":"string","example":"https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A335775a7-9115-449e-8578-45d798a1c77e/files/91c4ed75-c903-4ef2-b9997-a0c0cfc67563/2023-12-01T18%3A57%3A50Z/Lifestyle%20Collection%20Welcome%20Letter%20Template.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIYKLIBR77%2F20240312%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240312T184902Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEEIaCXVzLXdlc3QtMiJIMEYCIQDxD9b4Uno3hkjI83PwDeWN4NkmZ7bzprGSg9u8QOrNJwIhANzy8Y9q0lsd59eAqxIc5SRfvm2pXIzX%2FTpx5UiaOQsQKo0DCEsQBhoMMDIwNDE1MDE1MzEzIgxliEdUd8rIphnvFrUq6gJRaYtNmNC9Ffknv0GpCovpMBQobsubBIRTuc0NafoQkCVpMlIJyFuUUnKNG%2Frv0NJvOPSHVzlIch9PjA3pEqatU79TxuJSyvQ6Iuzw90OLSIemYgGjPYD%2FPvcCx9GowAr6qWH9gmSuFx2nON3JjMWX7d5CBJlJtCbn%2FQHMOczxyYU%2FFuBOUEU7q6yS8ZokB%2FcZT%2Ba%2BhT71Gj%2FtwNZh2WPPMBjM6hMixqdlnP18OvsiKABVsNGvACUb9bHqHkP%2F%2By5XJcxoj%2FrcZbRgNbnowUr0G6t0Obfuma2iTyPgHAkN3WPNfexSLRQm2entcvnXQNJegouW97kivQxnOplI5eYHmn3NKdj9gBdeB2Mde8XhoJnxIiJn%2FjZCpn8ywvn3dANcEqriPzic3ZxmiAyvVpdbvpQRgeFaRyqNutdwWeQPMEj%2FSGh2OZq25mZ20bWo5Kz4JfX60bclzCHseQ5fAoCAy27aLqzDWQcJUzDHocKvBjqcARBj7dApY7uzXTAP%2Bv6E5YRo7dkQGYXnd9bzVhqrGa6pCbYkDjxvQ1yYeSHf5lJawRcA3FE1siv6Qyt7blA%2Bzt%2FrtJewYxhMhYWb9DUpyt0OIBDmlYr6407CQLSQCqL6vU1zPmKtDXLJgHB7xlOsa5jIrBm4zAyDXBHieh%2BT9i%2Fpx25%2FZkoGver5A%2BfamYtw6mBN1ipWsNwNqaHwUQ%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=8c5b7a68842e8962127a57ac6a1616ef6843398cfed7413235dcfc59407200a1"},"id":{"type":"string","example":"91c4ed75-c903-4ef2-b087-a0c0cfc67563"},"lastModifiedBy":{"type":"object","properties":{"id":{"type":"string","example":"9640718b-e291-4c93-8366-989ae26f58c9"},"object":{"type":"string","example":"internalUser"}}},"linkUrl":{"type":"string","example":""},"name":{"type":"string","example":"ExampleFile.docx"},"object":{"type":"string","example":"file"},"path":{"type":"string","example":"Welcome Letters/ExampleFile.docx"},"size":{"type":"integer","example":341141,"default":0},"status":{"type":"string","example":"complete"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Parent Folder does not exist":{"value":"{\n  \"code\": \"invalid_request_error\",\n  \"message\": \"Parent folder does not exist\"\n}"},"Invalid Channel ID":{"value":"{\n  \"code\": \"invalid_request_error\",\n  \"message\": \"Invalid channel id\"\n}"}},"schema":{"oneOf":[{"title":"Parent Folder does not exist","type":"object","properties":{"code":{"type":"string","example":"invalid_request_error"},"message":{"type":"string","example":"Parent folder does not exist"}}},{"title":"Invalid Channel ID","type":"object","properties":{"code":{"type":"string","example":"invalid_request_error"},"message":{"type":"string","example":"Invalid channel id"}}}]}}}},"403":{"description":"403","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"message\": \"Forbidden\"\n}"}},"schema":{"type":"object","properties":{"message":{"type":"string","example":"Forbidden"}}}}}}},"deprecated":false}},"/v1/files/{id}":{"get":{"summary":"Retrieve File","description":"This endpoint returns the metadata for a specific file object.","operationId":"retrieve-file","parameters":[{"name":"id","in":"path","description":"ID of the file object","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"channelId\": \"b1VRvR-zM/c3b39b06-4a7c-4e66-92e3-35201c5f4542\",\n    \"createdAt\": \"2023-12-01T18:57:50.519785029Z\",\n    \"creatorId\": \"335775a7-9115-449e-8578-45d798a1c77e\",\n    \"downloadUrl\": \"https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A335775a7-9115-449e-8578-45d798a1c77e/files/91c4ed75-c903-4ef2-b9997-a0c0cfc67563/2023-12-01T18%3A57%3A50Z/Lifestyle%20Collection%20Welcome%20Letter%20Template.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIYKLIBR77%2F20240312%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240312T184902Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEEIaCXVzLXdlc3QtMiJIMEYCIQDxD9b4Uno3hkjI83PwDeWN4NkmZ7bzprGSg9u8QOrNJwIhANzy8Y9q0lsd59eAqxIc5SRfvm2pXIzX%2FTpx5UiaOQsQKo0DCEsQBhoMMDIwNDE1MDE1MzEzIgxliEdUd8rIphnvFrUq6gJRaYtNmNC9Ffknv0GpCovpMBQobsubBIRTuc0NafoQkCVpMlIJyFuUUnKNG%2Frv0NJvOPSHVzlIch9PjA3pEqatU79TxuJSyvQ6Iuzw90OLSIemYgGjPYD%2FPvcCx9GowAr6qWH9gmSuFx2nON3JjMWX7d5CBJlJtCbn%2FQHMOczxyYU%2FFuBOUEU7q6yS8ZokB%2FcZT%2Ba%2BhT71Gj%2FtwNZh2WPPMBjM6hMixqdlnP18OvsiKABVsNGvACUb9bHqHkP%2F%2By5XJcxoj%2FrcZbRgNbnowUr0G6t0Obfuma2iTyPgHAkN3WPNfexSLRQm2entcvnXQNJegouW97kivQxnOplI5eYHmn3NKdj9gBdeB2Mde8XhoJnxIiJn%2FjZCpn8ywvn3dANcEqriPzic3ZxmiAyvVpdbvpQRgeFaRyqNutdwWeQPMEj%2FSGh2OZq25mZ20bWo5Kz4JfX60bclzCHseQ5fAoCAy27aLqzDWQcJUzDHocKvBjqcARBj7dApY7uzXTAP%2Bv6E5YRo7dkQGYXnd9bzVhqrGa6pCbYkDjxvQ1yYeSHf5lJawRcA3FE1siv6Qyt7blA%2Bzt%2FrtJewYxhMhYWb9DUpyt0OIBDmlYr6407CQLSQCqL6vU1zPmKtDXLJgHB7xlOsa5jIrBm4zAyDXBHieh%2BT9i%2Fpx25%2FZkoGver5A%2BfamYtw6mBN1ipWsNwNqaHwUQ%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=8c5b7a68842e8962127a57ac6a1616ef6843398cfed7413235dcfc59407200a1\",\n    \"id\": \"91c4ed75-c903-4ef2-b087-a0c0cfc67563\",\n    \"lastModifiedBy\": {\n        \"id\": \"9640718b-e291-4c93-8366-989ae26f58c9\",\n        \"object\": \"internalUser\"\n    },\n    \"linkUrl\": \"\",\n    \"name\": \"ExampleFile.docx\",\n    \"object\": \"file\",\n    \"path\": \"Welcome Letters/ExampleFile.docx\",\n    \"size\": 341141,\n    \"status\": \"complete\"\n}"}},"schema":{"type":"object","properties":{"channelId":{"type":"string","example":"b1VRvR-zM/c3b39b06-4a7c-4e66-92e3-35201c5f4542"},"createdAt":{"type":"string","example":"2023-12-01T18:57:50.519785029Z"},"creatorId":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e"},"downloadUrl":{"type":"string","example":"https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A335775a7-9115-449e-8578-45d798a1c77e/files/91c4ed75-c903-4ef2-b9997-a0c0cfc67563/2023-12-01T18%3A57%3A50Z/Lifestyle%20Collection%20Welcome%20Letter%20Template.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIYKLIBR77%2F20240312%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240312T184902Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEEIaCXVzLXdlc3QtMiJIMEYCIQDxD9b4Uno3hkjI83PwDeWN4NkmZ7bzprGSg9u8QOrNJwIhANzy8Y9q0lsd59eAqxIc5SRfvm2pXIzX%2FTpx5UiaOQsQKo0DCEsQBhoMMDIwNDE1MDE1MzEzIgxliEdUd8rIphnvFrUq6gJRaYtNmNC9Ffknv0GpCovpMBQobsubBIRTuc0NafoQkCVpMlIJyFuUUnKNG%2Frv0NJvOPSHVzlIch9PjA3pEqatU79TxuJSyvQ6Iuzw90OLSIemYgGjPYD%2FPvcCx9GowAr6qWH9gmSuFx2nON3JjMWX7d5CBJlJtCbn%2FQHMOczxyYU%2FFuBOUEU7q6yS8ZokB%2FcZT%2Ba%2BhT71Gj%2FtwNZh2WPPMBjM6hMixqdlnP18OvsiKABVsNGvACUb9bHqHkP%2F%2By5XJcxoj%2FrcZbRgNbnowUr0G6t0Obfuma2iTyPgHAkN3WPNfexSLRQm2entcvnXQNJegouW97kivQxnOplI5eYHmn3NKdj9gBdeB2Mde8XhoJnxIiJn%2FjZCpn8ywvn3dANcEqriPzic3ZxmiAyvVpdbvpQRgeFaRyqNutdwWeQPMEj%2FSGh2OZq25mZ20bWo5Kz4JfX60bclzCHseQ5fAoCAy27aLqzDWQcJUzDHocKvBjqcARBj7dApY7uzXTAP%2Bv6E5YRo7dkQGYXnd9bzVhqrGa6pCbYkDjxvQ1yYeSHf5lJawRcA3FE1siv6Qyt7blA%2Bzt%2FrtJewYxhMhYWb9DUpyt0OIBDmlYr6407CQLSQCqL6vU1zPmKtDXLJgHB7xlOsa5jIrBm4zAyDXBHieh%2BT9i%2Fpx25%2FZkoGver5A%2BfamYtw6mBN1ipWsNwNqaHwUQ%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=8c5b7a68842e8962127a57ac6a1616ef6843398cfed7413235dcfc59407200a1"},"id":{"type":"string","example":"91c4ed75-c903-4ef2-b087-a0c0cfc67563"},"lastModifiedBy":{"type":"object","properties":{"id":{"type":"string","example":"9640718b-e291-4c93-8366-989ae26f58c9"},"object":{"type":"string","example":"internalUser"}}},"linkUrl":{"type":"string","example":""},"name":{"type":"string","example":"ExampleFile.docx"},"object":{"type":"string","example":"file"},"path":{"type":"string","example":"Welcome Letters/ExampleFile.docx"},"size":{"type":"integer","example":341141,"default":0},"status":{"type":"string","example":"complete"},"updatedAt":{"type":"string"},"clientPermissions":{"type":"string","description":"folder only","default":"read-only","enum":["read-write","read-only"]}}}}}},"403":{"description":"403","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"message\": \"Forbidden\"\n}"}},"schema":{"type":"object","properties":{"message":{"type":"string","example":"Forbidden"}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"not_found\",\n  \"message\": \"Record not found\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found"},"message":{"type":"string","example":"Record not found"}}}}}}},"deprecated":false,"x-readme":{"code-samples":[{"language":"text","code":"https://api.copilot.com/v1/files/4a088ffd-5d63-4f35-949f-0311c794ff48"}],"samples-languages":["text"]}},"delete":{"summary":"Delete File","description":"This API endpoint permanently removes a specific file, folder, or link. <br><br> If the deleted object is a folder, this operation is not recursive and files within the folder will not be deleted. You will receive a ‘Folder is not empty’ error message and the folder will not be deleted.","operationId":"delete-file","parameters":[{"name":"id","in":"path","description":"The ID of the file to delete.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"id\": \"25bd3f5a-c059-4f68-8a2d-2749016ba451\",\n  \"object\": \"file\",\n  \"deleted\": true\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"25bd3f5a-c059-4f68-8a2d-2749016ba451"},"object":{"type":"string","example":"file"},"deleted":{"type":"boolean","example":true,"default":true}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Folder is not empty":{"value":"{\n    \"code\": \"invalid_request_error\",\n    \"type\": \"invalid_request_error\",\n    \"message\": \"Folder is not empty\",\n    \"error\": {}\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request_error"},"type":{"type":"string","example":"invalid_request_error"},"message":{"type":"string","example":"Folder is not empty"},"error":{"type":"object","properties":{}}}}}}}},"deprecated":false}},"/v1/files/{id}/download-url":{"get":{"summary":"Deprecated: Retrieve Download URL of a File","description":"This endpoint returns a URL to download the contents of a file (of all sizes).","operationId":"retrieve-download-url-of-a-file","parameters":[{"name":"id","in":"path","description":"ID of the file to download","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"downloadUrl\": \"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A3a994c9f-d5e7-4601-96a4-21d2fdbd900e/files/310fe439-ee0f-4a0c-a7f5-21b9d78b6c1f/2023-03-24T17%3A50%3A38Z/hello.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVEDLIJNJV%2F20230324%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230324T183256Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEBMaCXVzLWVhc3QtMSJHMEUCIQCH9IuhN8o4LxGils6nV4ZntBm233wwWTS5QnCEzUy40wIgZiO41seyMik8BEHrTH4abNJLzjBO7GyMCvzzzZX9OugqhwMI3P%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwwODE2NjQ0MjEyOTAiDILvXp%2FuU1rXsPY2%2FSrbAgRysISbTguHOAPnO3X6S44Yc06QACXsh2u3RUC9ECRThNDk4s1pZzbGyHu%2BxyPwxbd1fsbxkf2kVFIrVOV4Tfguoy6zNq7vRnEScwlK6X6prqCK6U0D84uFOH5pKB4MQlhYRRTCX5Z0dTxFqZOIEPkfwn9ReHrThRwPzSD3Wls0O3qZ%2FwVCK2bUZYQafzFpN8qRYOoIjW%2BL%2BGKL%2BxeYM1t6hjlDm7VCqzqnOBW%2BnLFDHDoMOLDZXn50KhJbMuhJhmIZ1qt8r0TqpCe3S9bQPWHBH7vpIF8qNpKmgWMyA1TkZkUYQafGwFls8135%2B6gxAgGLon2z6NkOIblVOLe%2BaFp2esg2wIfs7flS9IJmqC%2B7rG5X38FbJKkYlxka1q0GfxFBrHrnxa2lLsW9WHdXwurxcLw%2BaN0mqaIFFILh7Nmp1AR2%2FQ0j0k0Rw5WG9qzEWJUr%2FI%2F91NplBnXZMNbZ96AGOp4B6O4AtpjiAbJqHsZSe%2FA2HFedtsXUkAhhGy2Qc9GlmCuqtTBVro8h2wPpgqGynmM5waaHZ4K0lMj6KNmiAorcePHt86E2vNFDu6D9mowQXaBmqum5mE5xZzadYosFS4PTIZ6P%2F84m9sTk8pXdmkXjrJwHT%2BqRSl%2BhH3gYhDkDHeq8kdpMluFQGZ6HixXoUYJgfnU2Lv1nqxcnP8Jipws%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=cd87d5416b4ea136c85c14bcd50df10015cf5c2e730a87b0cc1f525928bbecba\"\n}"}},"schema":{"type":"object","properties":{"downloadUrl":{"type":"string","example":"https://copilot-user-files.s3.amazonaws.com/protected/us-east-1%3A3a994c9f-d5e7-4601-96a4-21d2fdbd900e/files/310fe439-ee0f-4a0c-a7f5-21b9d78b6c1f/2023-03-24T17%3A50%3A38Z/hello.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVEDLIJNJV%2F20230324%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230324T183256Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEBMaCXVzLWVhc3QtMSJHMEUCIQCH9IuhN8o4LxGils6nV4ZntBm233wwWTS5QnCEzUy40wIgZiO41seyMik8BEHrTH4abNJLzjBO7GyMCvzzzZX9OugqhwMI3P%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwwODE2NjQ0MjEyOTAiDILvXp%2FuU1rXsPY2%2FSrbAgRysISbTguHOAPnO3X6S44Yc06QACXsh2u3RUC9ECRThNDk4s1pZzbGyHu%2BxyPwxbd1fsbxkf2kVFIrVOV4Tfguoy6zNq7vRnEScwlK6X6prqCK6U0D84uFOH5pKB4MQlhYRRTCX5Z0dTxFqZOIEPkfwn9ReHrThRwPzSD3Wls0O3qZ%2FwVCK2bUZYQafzFpN8qRYOoIjW%2BL%2BGKL%2BxeYM1t6hjlDm7VCqzqnOBW%2BnLFDHDoMOLDZXn50KhJbMuhJhmIZ1qt8r0TqpCe3S9bQPWHBH7vpIF8qNpKmgWMyA1TkZkUYQafGwFls8135%2B6gxAgGLon2z6NkOIblVOLe%2BaFp2esg2wIfs7flS9IJmqC%2B7rG5X38FbJKkYlxka1q0GfxFBrHrnxa2lLsW9WHdXwurxcLw%2BaN0mqaIFFILh7Nmp1AR2%2FQ0j0k0Rw5WG9qzEWJUr%2FI%2F91NplBnXZMNbZ96AGOp4B6O4AtpjiAbJqHsZSe%2FA2HFedtsXUkAhhGy2Qc9GlmCuqtTBVro8h2wPpgqGynmM5waaHZ4K0lMj6KNmiAorcePHt86E2vNFDu6D9mowQXaBmqum5mE5xZzadYosFS4PTIZ6P%2F84m9sTk8pXdmkXjrJwHT%2BqRSl%2BhH3gYhDkDHeq8kdpMluFQGZ6HixXoUYJgfnU2Lv1nqxcnP8Jipws%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=cd87d5416b4ea136c85c14bcd50df10015cf5c2e730a87b0cc1f525928bbecba"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"parameter_invalid\",\n  \"message\": \"Record not of file type\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"parameter_invalid"},"message":{"type":"string","example":"Record not of file type"}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"not_found\",\n  \"message\": \"Record not found\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found"},"message":{"type":"string","example":"Record not found"}}}}}}},"deprecated":false}},"/v1/files/{id}/download":{"get":{"summary":"Deprecated: Download a File","description":"This endpoint directly downloads the contents of a file (under 4 MB).","operationId":"download-a-file","parameters":[{"name":"id","in":"path","description":"ID of the file object to be downloaded","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"<contents of the file>"}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}},"500":{"description":"500","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"file_download_failed\",\n  \"message\": \"Unable to provide file contents\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"file_download_failed"},"message":{"type":"string","example":"Unable to provide file contents"}}}}}}},"deprecated":false}},"/v1/files":{"get":{"summary":"List Files","description":"This API endpoint retrieves the list of files in a file channel.","operationId":"list-files","parameters":[{"name":"channelId","in":"query","description":"Only return files within the file channel that matches this ID. You can retrieve a file channel ID by calling the List File Channels endpoint.","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","description":"Filters the results based on a folder path prefix. This is a recursive search, files location in subfolders will be returned if they match the path prefix.","schema":{"type":"string"}},{"name":"nextToken","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","format":"int32","default":100}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"channelId\": \"us-east-1_Gz7TRlAaM/7787061b-21d6-4742-b38d-319f3d18831b/none\",\n            \"createdAt\": \"2024-02-29T22:34:39.549178548Z\",\n            \"creatorId\": \"dc0f1749-7d01-48b7-bd80-fcbfce835642\",\n            \"id\": \"9fb39008-6f3b-4f2e-9c8e-f4d5daf4c49a\",\n            \"linkUrl\": \"https://www.google.com\",\n            \"lastModifiedBy\": {\n                \"id\": \"9640718b-e291-4c93-8366-989ae26f58c9\",\n                \"object\": \"internalUser\"\n            },\n            \"name\": \"Example Link\",\n            \"object\": \"link\",\n            \"path\": \"Example Link\"\n        },\n        {\n            \"channelId\": \"us-east-1_Gz7TRlAaM/7787061b-21d6-4742-b38d-319f3d18831b/none\",\n            \"createdAt\": \"2024-02-29T22:35:25.178536067Z\",\n            \"creatorId\": \"dc0f1749-7d01-48b7-bd80-fcbfce835642\",\n            \"downloadUrl\": \"https://copilot-user-files.s3-accelerate.amazonaws.com/protected/us-east-1%3A785e4ea4-8cf8-4cea-a9cd-cdb6a5732c40/files/2024-02-29T22%3A35%3A23.236Z/Example%20File.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIARGA4UFWVPVVBSVND%2F20240229%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240229T223553Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjECcaCXVzLWVhc3QtMSJIMEYCIQDm3ZRALQ87YbEVz6I8ghj7%2FmQK2T7dwML87%2Bgij3QaQQIhAIu8c6ZtNPx6%2FO%2BEegYTQu%2FRYQOSZGKAoVxuTd8SPRePKv4CCCAQAhoMMDgxNjY0NDIxMjkwIgzxihxAy85cz4dgX30q2wLXqiK1UfzDLuncsSODgqOSC0RyJq%2Bl4s6vLHfqDsiJdwCJ9V1pbKFZjp1HaQ1kfAbulRNS2%2F0Hl2p2u%2BSL7RBOwHYlPVEe4YTKaX6ho8D0YlE6eHTj4tH9m37lMFliZZqRnXHCmiUk%2FyjMiDuADmYlpXmSPtEWWNR75x3ujrDr1hqDuXTfdM4Oz%2BXXrjdGKkWDxiJZ4UI8MRCWfPZNH3C8FKAedtFWeLg7gAt%2B9uH1Z%2FYpXw58HKRJAa5jS4qCOwQx2GfoqpZRh8%2FJzy1lbpL2iIpO6%2FKtPzoLX2QkRF8ZPjBcvSkLjRKNT43OVFDctc3KXjLerYG7n%2FEVMTouV5Ogvj%2Bv0w0Sk6Kzb3XHs1C8f77hn4if%2F3lSzfizeztgsJw%2BxCtQMnM%2BtozaBi3SgIHKNoFjyOxKgd8maXLLvWwIpqD3KHdlftMMkK2wf5SS85OgQA9ZYDAEyQ174zCVi4SvBjqdAavIEykEBmaykIyuCabL%2FH3eRykpJISVw2rkxB%2FK%2BBIwtxfRh52I656SjydT4W%2FzMbaN8rCy8rDKyFC83o%2FpV0Tcd6BG0eusOGVxbLJgQv5n3siisu%2Fprf6JSJRc6GnXdFJXIwMGkJsrkZQyDeyKNBUVG0vR771wK1kf7KZzzvUAlIfo2tC5siUVd%2FFRAt5nCX%2BB8vWiU73Iu2xaKHU%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=2b328e202a0d39d0bc2643570e75cb9a00634043d391257151d385412a81dd30\",\n            \"id\": \"c1943404-f187-4e71-80cb-f35336021afe\",\n            \"lastModifiedBy\": {\n                \"id\": \"9640718b-e291-4c93-8366-989ae26f58c9\",\n                \"object\": \"internalUser\"\n            },\n            \"linkUrl\": \"\",\n            \"name\": \"Example File.pdf\",\n            \"object\": \"file\",\n            \"path\": \"Example File.pdf\",\n            \"size\": 341141,\n            \"status\": \"complete\"\n        },\n        {\n            \"channelId\": \"us-east-1_Gz7TRlAaM/7787061b-21d6-4742-b38d-319f3d18831b/none\",\n            \"createdAt\": \"2024-02-29T22:34:48.044346124Z\",\n            \"creatorId\": \"dc0f1749-7d01-48b7-bd80-fcbfce835642\",\n            \"id\": \"9640718b-e291-4c93-8366-989ae26f58c9\",\n            \"lastModifiedBy\": {\n                \"id\": \"9640718b-e291-4c93-8366-989ae26f58c9\",\n                \"object\": \"internalUser\"\n            },\n            \"linkUrl\": \"\",\n            \"name\": \"Example Folder\",\n            \"object\": \"folder\",\n            \"path\": \"Example Folder\"\n        }\n    ],\n    \"nextToken\": \"eyJwa2V5IjoiODc2NjdkY2ItNjcxNC00ZmNkLWJjNGUtNDI0ZGUxMzNiZjYyIiwic2tleSI6IkNMSUVOVF9DT01QQU5ZIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ==\"\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","example":"us-east-1_Gz7TRlAaM/7787061b-21d6-4742-b38d-319f3d18831b/none"},"createdAt":{"type":"string","example":"2024-02-29T22:34:39.549178548Z"},"creatorId":{"type":"string","example":"dc0f1749-7d01-48b7-bd80-fcbfce835642"},"id":{"type":"string","example":"9fb39008-6f3b-4f2e-9c8e-f4d5daf4c49a"},"linkUrl":{"type":"string","example":"https://www.google.com"},"lastModifiedBy":{"type":"object","properties":{"id":{"type":"string","example":"9640718b-e291-4c93-8366-989ae26f58c9"},"object":{"type":"string","example":"internalUser"}}},"name":{"type":"string","example":"Example Link"},"object":{"type":"string","example":"link"},"path":{"type":"string","example":"Example Link"},"updatedAt":{"type":"string"}}}},"nextToken":{"type":"string","example":"eyJwa2V5IjoiODc2NjdkY2ItNjcxNC00ZmNkLWJjNGUtNDI0ZGUxMzNiZjYyIiwic2tleSI6IkNMSUVOVF9DT01QQU5ZIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ=="}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/file":{"post":{"summary":"Deprecated: Create a File","description":"This was the initial API endpoint to create a file resource, specifically folders.","operationId":"create-a-file-deprecated","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["type","channelID"],"properties":{"type":{"type":"string","description":"The type of object to create. Currently only `folder` is supported."},"channelID":{"type":"string","description":"The id of the channel in which this resource should reside"},"fileKey":{"type":"string","description":"The location in our storage system (S3) where the content of this resource is located. Only relevant when `type` is `folder`"},"path":{"type":"string","description":"The relative location from the channel where where this resource should be placed. This is a `/` delimited string where each separated value is an existing folder name. When creating a new folder, the final separated value is the name of the new folder. A path with folders that do not exist is considered invalid input and will return a 400 error."},"fileUrl":{"type":"string","description":"If type `link`, the URL associated with this resource"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"id\": \"fbd5a90b-5216-4230-bcd2-0d6a746aeb65\",\n  \"object\": \"folder\",\n  \"createdBy\": \"1dbb3e36-af70-4f41-89e6-6ddf9e2c62b5\",\n  \"createdAt\": \"2022-08-07T15:11:13.549092588Z\",\n  \"updatedAt\": \"2022-08-07T15:11:13.549092588Z\",\n  \"channelId\": \"us-east-1_JDwzcwQiA/339b6252-d773-4c58-a5ef-236ac3edc566\",\n  \"fields\": {\n    \"fileKey\": \"__placeholder__\",\n    \"fileUrl\": \"\",\n    \"path\": \"Example\",\n    \"starred\": false\n  }\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"fbd5a90b-5216-4230-bcd2-0d6a746aeb65"},"object":{"type":"string","example":"folder"},"createdBy":{"type":"string","example":"1dbb3e36-af70-4f41-89e6-6ddf9e2c62b5"},"createdAt":{"type":"string","example":"2022-08-07T15:11:13.549092588Z"},"updatedAt":{"type":"string","example":"2022-08-07T15:11:13.549092588Z"},"channelId":{"type":"string","example":"us-east-1_JDwzcwQiA/339b6252-d773-4c58-a5ef-236ac3edc566"},"fields":{"type":"object","properties":{"fileKey":{"type":"string","example":"__placeholder__"},"fileUrl":{"type":"string","example":""},"path":{"type":"string","example":"Example"},"starred":{"type":"boolean","example":false,"default":true}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"message\": \"Field: RecipientID, Should Match: uuid\"\n}"}},"schema":{"type":"object","properties":{"message":{"type":"string","example":"Field: RecipientID, Should Match: uuid"}}}}}},"403":{"description":"403","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"message\": \"Forbidden\"\n}"}},"schema":{"type":"object","properties":{"message":{"type":"string","example":"Forbidden"}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"code\": \"not_found\",\n    \"message\": \"Form not found | Client not found\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found"},"message":{"type":"string","example":"Form not found | Client not found"}}}}}}},"deprecated":false}},"/v1/channels/files":{"post":{"summary":"Create File Channel","description":"This API endpoint creates a new file channel. See the File Channel resource for detailed descriptions of the properties.","operationId":"create-file-channel","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["membershipType"],"properties":{"membershipType":{"type":"string","description":"The type of membership that this channel is associated with. Can be one of `individual`, `group` or `company`."},"membershipEntityId":{"type":"string","description":"Deprecated: Use clientId and companyId instead."},"memberIds":{"type":"array","description":"The `id`s of the clients to be added to this particular channel. Required for `group` channels. Ignored for `individual` and `company` channels.","items":{"type":"string"}},"clientId":{"type":"string","description":"The `id` of the client this channel is for. Required when membershipType is `individual`."},"companyId":{"type":"string","description":"The `id` of the client this channel belongs to. Required when membershipType is `company` or when member(s) have multiple companies."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"id\": \"us-west-2_n4dciX6tp/3a45806b-f85e-4b6e-bb47-15293f0d0995\",\n  \"createdAt\": \"2023-07-14T17:52:16.728194048Z\",\n  \"updatedAt\": \"2023-07-14T17:52:16.728194048Z\",\n  \"membershipType\": \"company\",\n  \"membershipEntityId\": \"ea13806b-f85e-4b6e-bb47-15293f0d0995\",\n  \"memberIds\": [\n    \"a39833b5-c8b3-47b6-87fb-4c4e224e4b10\",\n    \"3554835d-8ae8-4e93-ad18-0845027126e7\",\n    \"5dc512b3-4008-4224-9999-bb4bb2e931c4\"\n  ]\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"us-west-2_n4dciX6tp/3a45806b-f85e-4b6e-bb47-15293f0d0995"},"createdAt":{"type":"string","example":"2023-07-14T17:52:16.728194048Z"},"updatedAt":{"type":"string","example":"2023-07-14T17:52:16.728194048Z"},"membershipType":{"type":"string","example":"company"},"clientId":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1"},"companyId":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1"},"membershipEntityId":{"type":"string","deprecated":true,"example":"ea13806b-f85e-4b6e-bb47-15293f0d0995"},"memberIds":{"type":"array","items":{"type":"string","example":"a39833b5-c8b3-47b6-87fb-4c4e224e4b10"}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"invalid_request_error\",\n  \"type\": \"invalid_request_error\",\n  \"message\": \"missing or empty value for parameter membershipEntityId for create file channel request\",\n  \"error\": {}\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request_error"},"type":{"type":"string","example":"invalid_request_error"},"message":{"type":"string","example":"missing or empty value for parameter membershipEntityId for create file channel request"},"error":{"type":"object","properties":{}}}}}}}},"deprecated":false},"get":{"summary":"List File Channels","description":"This API endpoint retrieves a list of file channels.<br><br>You can use the query params to filter a subset of the file channels that match the specified field values.","operationId":"list-file-channels","parameters":[{"name":"membershipType","in":"query","description":"Only return channels that have a membership type matching this value. Can be `individual`, `group` or `company`","schema":{"type":"string"}},{"name":"membershipEntityId","in":"query","description":"Deprecated: filter using clientId or companyId","schema":{"type":"string","default":""},"required":false},{"name":"memberId","in":"query","description":"Only return channels that contain the member (client or internal user) matching this ID.","schema":{"type":"string"}},{"name":"nextToken","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","format":"int32","default":100}},{"name":"clientId","in":"query","required":false,"description":"Only return individual channels for this client.","schema":{"type":"string","default":""}},{"name":"companyId","in":"query","required":false,"description":"Only return channels that are part of this company","schema":{"type":"string","default":""}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"id":"us-east-1_C9xIMWJtp/210ad1fb-837a-4b5a-9d15-58dc9cc07073","object":"fileChannel","createdAt":"2023-06-02T16:32:38Z","updatedAt":"2023-06-02T16:32:38Z","membershipType":"company","membershipEntityId":"210ad1fb-837a-4b5a-9d15-58dc9cc07073","companyId":"210ad1fb-837a-4b5a-9d15-58dc9cc07073","memberIds":["09d3f64b-512c-48d1-9f48-6ca8b7627925","638f3dc4-0a9c-4585-9b74-60bcdca1b30a"]},{"id":"us-east-1_C9xIMWJtp/1f603da8-db86-4dc0-9223-218903b5ca21/none","object":"fileChannel","createdAt":"2023-05-26T17:35:12Z","updatedAt":"2023-05-26T17:35:12Z","membershipType":"individual","membershipEntityId":"54d209f9-a79a-4f9b-a851-c49fc2aed642","clientId":"54d209f9-a79a-4f9b-a851-c49fc2aed642","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","memberIds":["638f3dc4-0a9c-4585-9b74-60bcdca1b30a","54d209f9-a79a-4f9b-a851-c49fc2aed642"]}],"nextToken":"eyJwa2V5IjoiMmUxOTBhYmUtZDZhZC00ZTcwLWE5ZDUtNzYwZTNlZDQ5OTg1Iiwic2tleSI6IkNMSUVOVF9VU0VSIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvMjViMmE2ZTctNzExYy00ZWE3LTgxYmEtNjViYzlkZGYxNWVjLzJlMTkwYWJlLWQ2YWQtNGU3MC1hOWQ1LTc2MGUzZWQ0OTk4NSJ9"}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"us-east-1_C9xIMWJtp/210ad1fb-837a-4b5a-9d15-58dc9cc07073"},"object":{"type":"string","example":"fileChannel"},"createdAt":{"type":"string","example":"2023-06-02T16:32:38Z"},"updatedAt":{"type":"string","example":"2023-06-02T16:32:38Z"},"membershipType":{"type":"string","example":"company"},"clientId":{"type":"string","example":"210ad1fb-837a-4b5a-9d15-58dc9cc07073"},"companyId":{"type":"string","example":"210ad1fb-837a-4b5a-9d15-58dc9cc07073"},"membershipEntityId":{"type":"string","example":"210ad1fb-837a-4b5a-9d15-58dc9cc07073","deprecated":true},"memberIds":{"type":"array","items":{"type":"string","example":"09d3f64b-512c-48d1-9f48-6ca8b7627925"}}}}},"nextToken":{"type":"string","example":"eyJwa2V5IjoiMmUxOTBhYmUtZDZhZC00ZTcwLWE5ZDUtNzYwZTNlZDQ5OTg1Iiwic2tleSI6IkNMSUVOVF9VU0VSIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvMjViMmE2ZTctNzExYy00ZWE3LTgxYmEtNjViYzlkZGYxNWVjLzJlMTkwYWJlLWQ2YWQtNGU3MC1hOWQ1LTc2MGUzZWQ0OTk4NSJ9"}}}}}}},"deprecated":false}},"/v1/channels/files/{id}":{"get":{"summary":"Retrieve File Channel","description":"This API endpoint retrieves a specific file channel.","operationId":"retrieve-file-channel","parameters":[{"name":"id","in":"path","description":"The ID of the file channel to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"us-east-1_j3GR1Xeap/4c6f53da-8b9b-4a3d-a0d0-8ac1320bb832/none","createdAt":"2023-05-06T17:00:46Z","updatedAt":"2023-05-07T18:21:13Z","membershipType":"individual","membershipEntityId":"9e6e4e43-f1f1-4c1f-95ea-34e4ec75ab1e","clientId":"9e6e4e43-f1f1-4c1f-95ea-34e4ec75ab1e","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","memberIds":["fb673508-3c94-4f40-a9e7-b43929917862","9e6e4e43-f1f1-4c1f-95ea-34e4ec75ab1e","daa81bc6-10ba-4367-bbd0-01a84291378b"]}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"us-east-1_j3GR1Xeap/4c6f53da-8b9b-4a3d-a0d0-8ac1320bb832/none"},"createdAt":{"type":"string","example":"2023-05-06T17:00:46Z"},"updatedAt":{"type":"string","example":"2023-05-07T18:21:13Z"},"membershipType":{"type":"string","example":"individual"},"clientId":{"type":"string","example":"9e6e4e43-f1f1-4c1f-95ea-34e4ec75ab1e"},"companyId":{"type":"string","example":"9e6e4e43-f1f1-4c1f-95ea-34e4ec75ab1e"},"membershipEntityId":{"type":"string","example":"9e6e4e43-f1f1-4c1f-95ea-34e4ec75ab1e","deprecated":true},"memberIds":{"type":"array","items":{"type":"string","example":"fb673508-3c94-4f40-a9e7-b43929917862"}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/forms/{id}":{"get":{"summary":"Retrieve Form","description":"This API endpoint retrieves a specific form.","operationId":"retrieve-form","parameters":[{"name":"id","in":"path","description":"The unique ID of the form to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"id\": \"a8c2c520-8045-4068-1772-a7c8ca09ee1a\",\n    \"createdAt\": \"2023-02-25T02:19:35Z\",\n    \"object\": \"form\",\n    \"name\": \"Onboarding Form\",\n    \"description\": \"Fill out this form to get started!\",\n    \"formFieldIds\": [\n        \"id0\",\n        \"id1\",\n        \"id2\",\n        \"id3\"\n    ],\n    \"formFields\": [\n        {\n            \"formFieldId\": \"id0\",\n            \"title\": \"Welcome to Potluck's Accounting Services!\",\n            \"description\": \"Email me if you have any questions at potluck@copilot.app\",\n            \"type\": \"title\",\n            \"isRequired\": false\n        },\n        {\n            \"formFieldId\": \"id1\",\n            \"title\": \"What is your full name?\",\n            \"description\": \"\",\n            \"type\": \"shortAnswer\",\n            \"isRequired\": true\n        },\n        {\n            \"formFieldId\": \"id2\",\n            \"title\": \"Upload your ID\",\n            \"description\": \"You can upload multiple documents\",\n            \"type\": \"fileUpload\",\n            \"isRequired\": true\n        },\n        {\n            \"formFieldId\": \"id3\",\n            \"title\": \"Which services are you interested in?\",\n            \"description\": \"\",\n            \"type\": \"multiSelect\",\n            \"multipleChoiceOptions\": [\n                \"Taxes\",\n                \"Family Accounting\",\n                \"Advice\"\n            ],\n            \"isRequired\": false\n        }\n    ],\n    \"allowMultipleSubmissions\": false,\n    \"visibility\": \"allClients\",\n    \"formResponseRequests\": 3,\n    \"formResponseSubmissions\": 8,\n    \"latestSubmissionDate\": \"2023-05-25T02:19:35Z\"\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"a8c2c520-8045-4068-1772-a7c8ca09ee1a"},"createdAt":{"type":"string","example":"2023-02-25T02:19:35Z"},"object":{"type":"string","example":"form"},"name":{"type":"string","example":"Onboarding Form"},"description":{"type":"string","example":"Fill out this form to get started!"},"formFieldIds":{"type":"array","items":{"type":"string","example":"id0"}},"formFields":{"type":"array","items":{"type":"object","properties":{"formFieldId":{"type":"string","example":"id0"},"title":{"type":"string","example":"Welcome to Potluck's Accounting Services!"},"description":{"type":"string","example":"Email me if you have any questions at potluck@copilot.app"},"type":{"type":"string","example":"title"},"isRequired":{"type":"boolean","example":false,"default":true}}}},"allowMultipleSubmissions":{"type":"boolean","example":false,"default":true},"visibility":{"type":"string","example":"allClients"},"formResponseRequests":{"type":"integer","example":3,"default":0},"formResponseSubmissions":{"type":"integer","example":8,"default":0},"latestSubmissionDate":{"type":"string","example":"2023-05-25T02:19:35Z"},"updatedAt":{"type":"string"}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"not_found\",\n  \"message\": \"Form not found\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found"},"message":{"type":"string","example":"Form not found"}}}}}}},"deprecated":false}},"/v1/forms":{"get":{"summary":"List Forms","description":"This API endpoint retrieves a list of forms.","operationId":"list-forms","parameters":[{"name":"nextToken","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","format":"int32","default":100}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"id\": \"a8c2c520-8045-4068-1772-a7c8ca09ee1a\",\n            \"createdAt\": \"2023-02-25T02:19:35Z\",\n            \"object\": \"form\",\n            \"name\": \"Onboarding Form\",\n            \"description\": \"Fill out this form to get started!\",\n            \"formFieldIds\": [\n                \"id0\",\n                \"id1\",\n                \"id2\",\n                \"id3\"\n            ],\n            \"formFields\": [\n                {\n                    \"formFieldId\": \"id0\",\n                    \"title\": \"Welcome to Potluck's Accounting Services!\",\n                    \"description\": \"Email me if you have any questions at potluck@copilot.app\",\n                    \"type\": \"title\",\n                    \"isRequired\": false\n                },\n                {\n                    \"formFieldId\": \"id1\",\n                    \"title\": \"What is your full name?\",\n                    \"description\": \"\",\n                    \"type\": \"shortAnswer\",\n                    \"isRequired\": true\n                },\n                {\n                    \"formFieldId\": \"id2\",\n                    \"title\": \"Upload your ID\",\n                    \"description\": \"You can upload multiple documents\",\n                    \"type\": \"fileUpload\",\n                    \"isRequired\": true\n                },\n                {\n                    \"formFieldId\": \"id3\",\n                    \"title\": \"Which services are you interested in?\",\n                    \"description\": \"\",\n                    \"type\": \"multiSelect\",\n                    \"multipleChoiceOptions\": [\n                        \"Taxes\",\n                        \"Family Accounting\",\n                        \"Advice\"\n                    ],\n                    \"isRequired\": false\n                }\n            ],\n            \"allowMultipleSubmissions\": false,\n            \"visibility\": \"allClients\",\n            \"formResponseRequests\": 3,\n            \"formResponseSubmissions\": 8,\n            \"latestSubmissionDate\": \"2023-05-25T02:19:35Z\"\n        },\n        {\n            \"id\": \"a8c2c520-8045-4068-1772-a7c8ca09ee1a\",\n            \"createdAt\": \"2023-02-25T02:19:35Z\",\n            \"object\": \"form\",\n            \"name\": \"Onboarding Form\",\n            \"description\": \"Fill out this form to get started!\",\n            \"formFieldIds\": [\n                \"id0\",\n                \"id1\",\n                \"id2\",\n                \"id3\"\n            ],\n            \"formFields\": [\n                {\n                    \"formFieldId\": \"id0\",\n                    \"title\": \"Welcome to Potluck's Accounting Services!\",\n                    \"description\": \"Email me if you have any questions at potluck@copilot.app\",\n                    \"type\": \"title\",\n                    \"isRequired\": false\n                },\n                {\n                    \"formFieldId\": \"id1\",\n                    \"title\": \"What is your full name?\",\n                    \"description\": \"\",\n                    \"type\": \"shortAnswer\",\n                    \"isRequired\": true\n                },\n                {\n                    \"formFieldId\": \"id2\",\n                    \"title\": \"Upload your ID\",\n                    \"description\": \"You can upload multiple documents\",\n                    \"type\": \"fileUpload\",\n                    \"isRequired\": true\n                },\n                {\n                    \"formFieldId\": \"id3\",\n                    \"title\": \"Which services are you interested in?\",\n                    \"description\": \"\",\n                    \"type\": \"multiSelect\",\n                    \"multipleChoiceOptions\": [\n                        \"Taxes\",\n                        \"Family Accounting\",\n                        \"Advice\"\n                    ],\n                    \"isRequired\": false\n                }\n            ],\n            \"allowMultipleSubmissions\": false,\n            \"visibility\": \"allClients\",\n            \"formResponseRequests\": 3,\n            \"formResponseSubmissions\": 8,\n            \"latestSubmissionDate\": \"2023-05-25T02:19:35Z\"\n        }\n    ],\n    \"nextToken\": \"eyJwa2V5IjoiYTAzOWIyMjgtMjc0NS00YTJiLWJjZjctYWFjNTZkNjUxOWJmIiwic2tleSI6IklOVEFLRV9GT1JNX1RFTVBMQVRFIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ==\"\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"a8c2c520-8045-4068-1772-a7c8ca09ee1a"},"createdAt":{"type":"string","example":"2023-02-25T02:19:35Z"},"object":{"type":"string","example":"form"},"name":{"type":"string","example":"Onboarding Form"},"description":{"type":"string","example":"Fill out this form to get started!"},"formFieldIds":{"type":"array","items":{"type":"string","example":"id0"}},"formFields":{"type":"array","items":{"type":"object","properties":{"formFieldId":{"type":"string","example":"id0"},"title":{"type":"string","example":"Welcome to Potluck's Accounting Services!"},"description":{"type":"string","example":"Email me if you have any questions at potluck@copilot.app"},"type":{"type":"string","example":"title"},"isRequired":{"type":"boolean","example":false,"default":true}}}},"allowMultipleSubmissions":{"type":"boolean","example":false,"default":true},"visibility":{"type":"string","example":"allClients"},"formResponseRequests":{"type":"integer","example":3,"default":0},"formResponseSubmissions":{"type":"integer","example":8,"default":0},"latestSubmissionDate":{"type":"string","example":"2023-05-25T02:19:35Z"},"updatedAt":{"type":"string"}}}},"nextToken":{"type":"string","example":"eyJwa2V5IjoiYTAzOWIyMjgtMjc0NS00YTJiLWJjZjctYWFjNTZkNjUxOWJmIiwic2tleSI6IklOVEFLRV9GT1JNX1RFTVBMQVRFIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ=="}}}}}},"403":{"description":"403","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"message\": \"Forbidden\"\n}"}},"schema":{"type":"object","properties":{"message":{"type":"string","example":"Forbidden"}}}}}}},"deprecated":false}},"/v1/form-responses":{"post":{"summary":"Request Form Response","description":"This API endpoint sends a form to client(s) for them to complete.","operationId":"request-form-response","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["formId","clientCompanyIds"],"properties":{"formId":{"type":"string","description":"The ID of the Form to send to the recipient.","default":""},"clientIds":{"type":"array","description":"Deprecated. Use clientCompanyIds","items":{"type":"string"}},"clientCompanyIds":{"type":"array","description":"The list of client and company Ids for which the form is being sent to. E.g. [{ clientId: ‘client_a’, ‘companyId’: ‘company_b’}]","items":{"properties":{"clientId":{"type":"string","description":"The ID of the client to assign this form to.","default":""},"companyId":{"type":"string","description":"The ID of the company this form is associated with. One of the companies that the client is part of."}},"type":"object","required":["clientId","companyId"]}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"allowMultipleSubmissions":false,"clientId":"55cac2c4-f3a8-4789-a1ea-b4a6f7156a8e","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","createdAt":"2024-02-12T23:55:07.63927794Z","formDescription":"","formFieldIds":["47741982-6b81-4041-8063-d8f825259318","a9da9a50-4196-4bc6-b6a3-345f33add0ef","2b7e3a5a-f335-430a-a8e9-8259c9f971d1","425fa7b8-4446-4864-8542-d9a1bdd61991","09c8dc93-4532-4995-831e-4bdf1c2e437b","7399360f-39f3-415f-af53-e223476b58eb"],"formFields":{"09c8dc93-4532-4995-831e-4bdf1c2e437b":{"title":"Select your color scheme:","description":"Color scheme description","type":"multiSelect","multipleChoiceOptions":["Red","Blue","Yellow","Green"],"isRequired":false},"2b7e3a5a-f335-430a-a8e9-8259c9f971d1":{"title":"Which industry are you in?","description":"Industry description","type":"singleSelect","multipleChoiceOptions":["Fashion","Marketing","Social Media"],"isRequired":false},"425fa7b8-4446-4864-8542-d9a1bdd61991":{"title":"Assets Section","description":"Describe and upload your brand assets.","type":"title","isRequired":false},"47741982-6b81-4041-8063-d8f825259318":{"title":"What is your name?","description":"Full name","type":"shortAnswer","isRequired":false},"7399360f-39f3-415f-af53-e223476b58eb":{"title":"Upload your logo(s) here:","description":"File upload description","type":"fileUpload","isRequired":false},"a9da9a50-4196-4bc6-b6a3-345f33add0ef":{"title":"Describe your brand","description":"Brand description","type":"longAnswer","isRequired":false}},"formId":"28e7db81-35b0-4284-96f3-ae097dfdbdd2","formName":"Sample Form All Question Types","id":"son4fbhIg","object":"formResponse","status":"pending","visibility":"requestedClients"}}},"schema":{"type":"object","properties":{"allowMultipleSubmissions":{"type":"boolean","example":false,"default":true},"clientId":{"type":"string","example":"55cac2c4-f3a8-4789-a1ea-b4a6f7156a8e"},"createdAt":{"type":"string","example":"2024-02-12T23:55:07.63927794Z"},"formDescription":{"type":"string","example":""},"formFieldIds":{"type":"array","items":{"type":"string","example":"47741982-6b81-4041-8063-d8f825259318"}},"formFields":{"type":"object","properties":{"09c8dc93-4532-4995-831e-4bdf1c2e437b":{"type":"object","properties":{"title":{"type":"string","example":"Select your color scheme:"},"description":{"type":"string","example":"Color scheme description"},"type":{"type":"string","example":"multiSelect"},"multipleChoiceOptions":{"type":"array","items":{"type":"string","example":"Red"}},"isRequired":{"type":"boolean","example":false,"default":true}}},"2b7e3a5a-f335-430a-a8e9-8259c9f971d1":{"type":"object","properties":{"title":{"type":"string","example":"Which industry are you in?"},"description":{"type":"string","example":"Industry description"},"type":{"type":"string","example":"singleSelect"},"multipleChoiceOptions":{"type":"array","items":{"type":"string","example":"Fashion"}},"isRequired":{"type":"boolean","example":false,"default":true}}},"425fa7b8-4446-4864-8542-d9a1bdd61991":{"type":"object","properties":{"title":{"type":"string","example":"Assets Section"},"description":{"type":"string","example":"Describe and upload your brand assets."},"type":{"type":"string","example":"title"},"isRequired":{"type":"boolean","example":false,"default":true}}},"47741982-6b81-4041-8063-d8f825259318":{"type":"object","properties":{"title":{"type":"string","example":"What is your name?"},"description":{"type":"string","example":"Full name"},"type":{"type":"string","example":"shortAnswer"},"isRequired":{"type":"boolean","example":false,"default":true}}},"7399360f-39f3-415f-af53-e223476b58eb":{"type":"object","properties":{"title":{"type":"string","example":"Upload your logo(s) here:"},"description":{"type":"string","example":"File upload description"},"type":{"type":"string","example":"fileUpload"},"isRequired":{"type":"boolean","example":false,"default":true}}},"a9da9a50-4196-4bc6-b6a3-345f33add0ef":{"type":"object","properties":{"title":{"type":"string","example":"Describe your brand"},"description":{"type":"string","example":"Brand description"},"type":{"type":"string","example":"longAnswer"},"isRequired":{"type":"boolean","example":false,"default":true}}}}},"formId":{"type":"string","example":"28e7db81-35b0-4284-96f3-ae097dfdbdd2"},"formName":{"type":"string","example":"Sample Form All Question Types"},"id":{"type":"string","example":"son4fbhIg"},"object":{"type":"string","example":"formResponse"},"status":{"type":"string","example":"pending"},"visibility":{"type":"string","example":"requestedClients"},"companyId":{"type":"string","example":"28e7db81-35b0-4284-96f3-ae097dfdbdd2"},"updatedAt":{"type":"string"}}}}}},"403":{"description":"403","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"message\": \"Forbidden\"\n}"}},"schema":{"type":"object","properties":{"message":{"type":"string","example":"Forbidden"}}}}}},"404":{"description":"404","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"code\": \"not_found\",\n    \"message\": \"Form not found\"\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"not_found"},"message":{"type":"string","example":"Form not found"}}}}}}},"deprecated":false}},"/v1/forms/{id}/form-responses":{"get":{"summary":"List Form Responses","description":"This API endpoint retrieves all the responses (Pending & Completed) to a given form.","operationId":"list-form-responses","parameters":[{"name":"id","in":"path","description":"The ID of the form to retrieve the form responses for.","schema":{"type":"string"},"required":true},{"in":"query","name":"nextToken","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"integer","default":"100"}},{"in":"query","name":"status","schema":{"type":"string"},"description":"Filter form responses by status. Options are pending or completed. "}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"allowMultipleSubmissions":false,"clientId":"d964f994-acb1-4859-81e5-c91c73b6ab12","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","createdAt":"2024-02-12T23:26:30.97733477Z","formDescription":"","formFieldIds":["47741982-6b81-4041-8063-d8f825259318","a9da9a50-4196-4bc6-b6a3-345f33add0ef","2b7e3a5a-f335-430a-a8e9-8259c9f971d1","425fa7b8-4446-4864-8542-d9a1bdd61991","09c8dc93-4532-4995-831e-4bdf1c2e437b","7399360f-39f3-415f-af53-e223476b58eb"],"formFields":{"09c8dc93-4532-4995-831e-4bdf1c2e437b":{"title":"Select your color scheme:","description":"Color scheme description","type":"multiSelect","multipleChoiceOptions":["Red","Blue","Yellow","Green"],"isRequired":false,"answer":["Green","Blue"]},"2b7e3a5a-f335-430a-a8e9-8259c9f971d1":{"title":"Which industry are you in?","description":"Industry description","type":"singleSelect","multipleChoiceOptions":["Fashion","Marketing","Social Media"],"isRequired":false,"answer":["Social Media"]},"425fa7b8-4446-4864-8542-d9a1bdd61991":{"title":"Assets Section","description":"Describe and upload your brand assets.","type":"title","isRequired":false},"47741982-6b81-4041-8063-d8f825259318":{"title":"What is your name?","description":"Full name","type":"shortAnswer","isRequired":false,"answer":"Sample Client"},"7399360f-39f3-415f-af53-e223476b58eb":{"title":"Upload your logo(s) here:","description":"File upload description","type":"fileUpload","isRequired":false,"answer":["ElaineBenes.jpg","GeorgeCostanza.jpg"],"attachmentUrls":["https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A4a597750-5d36-4013-a36e-563c381632db/forms/28e7db81-35b0-4284-96f3-ae097dfdbdd2/7399360f-39f3-415f-af53-e223476b58eb/ElaineBenes.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIZZRYXSXQ%2F20240212%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240212T235811Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEI7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIH5xKSvQ%2B%2BMYgvOGWqcP2DPlcojvNBFXq0J5TPkyUZ5BAiEA44txywKJF1tpGeVYdaygkuNVxYko2IhHuoQNeGmhG9EqjQMIZxAGGgwwMjA0MTUwMTUzMTMiDExWm4rJuRxGnzl6xyrqApdlZuziYci3QZ1T9oE0htZYSszNMP3b6Swob6izc1zjD2VU7s8yWzRlJ%2BRVcTFpfMB%2FOKA%2FvkiG7N0zg5cDauQRFKmlX7643HlKFFepi3xtHz2uuYOvCzsKx7ESfDtvojoJxgLHLGuBIvw6118z9RAjHnKBMb9UIJpq8XhGyOycco8EaZoXJfjwZ4iuU4Ri97HYb2FXNCpeaSxaKJsOn%2BJx7FwDrkupguLrhyjsfuJgwGBXERA0nja43FsjVYzTOvS6%2F3LiJDqr6jPXTEHIqmc5mUiLaDN8MTxOqYeN%2BrDfvomwib7PU7gkIMsVbjhfImZklWwzC7CzvEnVhPToOKlcEboYsEiW1MwdHU3K5lQq2uuzGmLAynNu4FdZuQK%2Fspidtl%2FsIuTinNtcXxtlaJrRSCEbffKIh3FFbzHELORW4ah%2FXPK1jf92Nau6l%2BIeud45jS9fbJO6a1b4mA4ga7xXjSXYwahGff8DMIanqq4GOp0B2xv%2FXq71qxJfW%2FTzou5IyHuppXpZisYPfM9FM7oJN5R2LrRKjhDW7SUjbMFNzIw0TtvmOwyyg6uKmDbjljrCq1OwFCIwMzrT3Lq9%2FX4tDS%2FDBrVQD6NZdACZLNnUR1XgI0ciO%2BlD9ygrykzmmLS7ALI2EMlrB%2Bcq3C8XbhKjXvjvchEIlzTL2dcoZuShRIQBnW7WttytGaZ2vTuZGA%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=8c1c062f5291959777545129dd21382308303b935371d5d2e4251bfd799bb3c3","https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A4a597750-5d36-4013-a36e-563c381632db/forms/28e7db81-35b0-4284-96f3-ae097dfdbdd2/7399360f-39f3-415f-af53-e223476b58eb/GeorgeCostanza.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIZZRYXSXQ%2F20240212%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240212T235811Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEI7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIH5xKSvQ%2B%2BMYgvOGWqcP2DPlcojvNBFXq0J5TPkyUZ5BAiEA44txywKJF1tpGeVYdaygkuNVxYko2IhHuoQNeGmhG9EqjQMIZxAGGgwwMjA0MTUwMTUzMTMiDExWm4rJuRxGnzl6xyrqApdlZuziYci3QZ1T9oE0htZYSszNMP3b6Swob6izc1zjD2VU7s8yWzRlJ%2BRVcTFpfMB%2FOKA%2FvkiG7N0zg5cDauQRFKmlX7643HlKFFepi3xtHz2uuYOvCzsKx7ESfDtvojoJxgLHLGuBIvw6118z9RAjHnKBMb9UIJpq8XhGyOycco8EaZoXJfjwZ4iuU4Ri97HYb2FXNCpeaSxaKJsOn%2BJx7FwDrkupguLrhyjsfuJgwGBXERA0nja43FsjVYzTOvS6%2F3LiJDqr6jPXTEHIqmc5mUiLaDN8MTxOqYeN%2BrDfvomwib7PU7gkIMsVbjhfImZklWwzC7CzvEnVhPToOKlcEboYsEiW1MwdHU3K5lQq2uuzGmLAynNu4FdZuQK%2Fspidtl%2FsIuTinNtcXxtlaJrRSCEbffKIh3FFbzHELORW4ah%2FXPK1jf92Nau6l%2BIeud45jS9fbJO6a1b4mA4ga7xXjSXYwahGff8DMIanqq4GOp0B2xv%2FXq71qxJfW%2FTzou5IyHuppXpZisYPfM9FM7oJN5R2LrRKjhDW7SUjbMFNzIw0TtvmOwyyg6uKmDbjljrCq1OwFCIwMzrT3Lq9%2FX4tDS%2FDBrVQD6NZdACZLNnUR1XgI0ciO%2BlD9ygrykzmmLS7ALI2EMlrB%2Bcq3C8XbhKjXvjvchEIlzTL2dcoZuShRIQBnW7WttytGaZ2vTuZGA%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=170ec66ba26d3dc65bfa97a8c490139e1b16e97349b33bebcca982de19452ecf"]},"a9da9a50-4196-4bc6-b6a3-345f33add0ef":{"title":"Describe your brand","description":"Brand description","type":"longAnswer","isRequired":false,"answer":"A modern approach for social media posts and engagement."}},"formId":"28e7db81-35b0-4284-96f3-ae097dfdbdd2","formName":"Sample Form All Question Types","id":"zmQJbbhSR","object":"formResponse","status":"completed","submissionDate":"2024-02-12T23:28:00.776964202Z","visibility":"requestedClients"},{"allowMultipleSubmissions":false,"clientId":"55cac2c4-f3a8-4789-a1ea-b4a6f7156a8e","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","createdAt":"2024-02-12T23:55:07.63927794Z","formDescription":"","formFieldIds":["47741982-6b81-4041-8063-d8f825259318","a9da9a50-4196-4bc6-b6a3-345f33add0ef","2b7e3a5a-f335-430a-a8e9-8259c9f971d1","425fa7b8-4446-4864-8542-d9a1bdd61991","09c8dc93-4532-4995-831e-4bdf1c2e437b","7399360f-39f3-415f-af53-e223476b58eb"],"formFields":{"09c8dc93-4532-4995-831e-4bdf1c2e437b":{"title":"Select your color scheme:","description":"Color scheme description","type":"multiSelect","multipleChoiceOptions":["Red","Blue","Yellow","Green"],"isRequired":false},"2b7e3a5a-f335-430a-a8e9-8259c9f971d1":{"title":"Which industry are you in?","description":"Industry description","type":"singleSelect","multipleChoiceOptions":["Fashion","Marketing","Social Media"],"isRequired":false},"425fa7b8-4446-4864-8542-d9a1bdd61991":{"title":"Assets Section","description":"Describe and upload your brand assets.","type":"title","isRequired":false},"47741982-6b81-4041-8063-d8f825259318":{"title":"What is your name?","description":"Full name","type":"shortAnswer","isRequired":false},"7399360f-39f3-415f-af53-e223476b58eb":{"title":"Upload your logo(s) here:","description":"File upload description","type":"fileUpload","isRequired":false},"a9da9a50-4196-4bc6-b6a3-345f33add0ef":{"title":"Describe your brand","description":"Brand description","type":"longAnswer","isRequired":false}},"formId":"28e7db81-35b0-4284-96f3-ae097dfdbdd2","formName":"Sample Form All Question Types","id":"son4fbhIg","object":"formResponse","status":"pending","visibility":"requestedClients"},{"allowMultipleSubmissions":true,"clientId":"d964f994-acb1-4859-81e5-c91c73b6ab12","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","createdAt":"2024-02-12T23:58:05.278165752Z","fields":{"formName":"Sample Form All Question Types","formDescription":"","formFieldIds":["47741982-6b81-4041-8063-d8f825259318","a9da9a50-4196-4bc6-b6a3-345f33add0ef","2b7e3a5a-f335-430a-a8e9-8259c9f971d1","425fa7b8-4446-4864-8542-d9a1bdd61991","09c8dc93-4532-4995-831e-4bdf1c2e437b","7399360f-39f3-415f-af53-e223476b58eb"],"formFields":{"09c8dc93-4532-4995-831e-4bdf1c2e437b":{"title":"Select your color scheme:","description":"Color scheme description","type":"multiSelect","multipleChoiceOptions":["Red","Blue","Yellow","Green"],"isRequired":false,"answer":["Red","Yellow"]},"2b7e3a5a-f335-430a-a8e9-8259c9f971d1":{"title":"Which industry are you in?","description":"Industry description","type":"singleSelect","multipleChoiceOptions":["Fashion","Marketing","Social Media"],"isRequired":false,"answer":["Marketing"]},"425fa7b8-4446-4864-8542-d9a1bdd61991":{"title":"Assets Section","description":"Describe and upload your brand assets.","type":"title","isRequired":false},"47741982-6b81-4041-8063-d8f825259318":{"title":"What is your name?","description":"Full name","type":"shortAnswer","isRequired":false,"answer":"Sample ClientTwo"},"7399360f-39f3-415f-af53-e223476b58eb":{"title":"Upload your logo(s) here:","description":"File upload description","type":"fileUpload","isRequired":false,"answer":["ElaineBenes.jpg","GeorgeCostanza.jpg"],"attachmentUrls":["https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A4a597750-5d36-4013-a36e-563c381632db/forms/28e7db81-35b0-4284-96f3-ae097dfdbdd2/7399360f-39f3-415f-af53-e223476b58eb/ElaineBenes.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIZZRYXSXQ%2F20240212%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240212T235811Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEI7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIH5xKSvQ%2B%2BMYgvOGWqcP2DPlcojvNBFXq0J5TPkyUZ5BAiEA44txywKJF1tpGeVYdaygkuNVxYko2IhHuoQNeGmhG9EqjQMIZxAGGgwwMjA0MTUwMTUzMTMiDExWm4rJuRxGnzl6xyrqApdlZuziYci3QZ1T9oE0htZYSszNMP3b6Swob6izc1zjD2VU7s8yWzRlJ%2BRVcTFpfMB%2FOKA%2FvkiG7N0zg5cDauQRFKmlX7643HlKFFepi3xtHz2uuYOvCzsKx7ESfDtvojoJxgLHLGuBIvw6118z9RAjHnKBMb9UIJpq8XhGyOycco8EaZoXJfjwZ4iuU4Ri97HYb2FXNCpeaSxaKJsOn%2BJx7FwDrkupguLrhyjsfuJgwGBXERA0nja43FsjVYzTOvS6%2F3LiJDqr6jPXTEHIqmc5mUiLaDN8MTxOqYeN%2BrDfvomwib7PU7gkIMsVbjhfImZklWwzC7CzvEnVhPToOKlcEboYsEiW1MwdHU3K5lQq2uuzGmLAynNu4FdZuQK%2Fspidtl%2FsIuTinNtcXxtlaJrRSCEbffKIh3FFbzHELORW4ah%2FXPK1jf92Nau6l%2BIeud45jS9fbJO6a1b4mA4ga7xXjSXYwahGff8DMIanqq4GOp0B2xv%2FXq71qxJfW%2FTzou5IyHuppXpZisYPfM9FM7oJN5R2LrRKjhDW7SUjbMFNzIw0TtvmOwyyg6uKmDbjljrCq1OwFCIwMzrT3Lq9%2FX4tDS%2FDBrVQD6NZdACZLNnUR1XgI0ciO%2BlD9ygrykzmmLS7ALI2EMlrB%2Bcq3C8XbhKjXvjvchEIlzTL2dcoZuShRIQBnW7WttytGaZ2vTuZGA%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=8c1c062f5291959777545129dd21382308303b935371d5d2e4251bfd799bb3c3","https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A4a597750-5d36-4013-a36e-563c381632db/forms/28e7db81-35b0-4284-96f3-ae097dfdbdd2/7399360f-39f3-415f-af53-e223476b58eb/GeorgeCostanza.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIZZRYXSXQ%2F20240212%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240212T235811Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEI7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIH5xKSvQ%2B%2BMYgvOGWqcP2DPlcojvNBFXq0J5TPkyUZ5BAiEA44txywKJF1tpGeVYdaygkuNVxYko2IhHuoQNeGmhG9EqjQMIZxAGGgwwMjA0MTUwMTUzMTMiDExWm4rJuRxGnzl6xyrqApdlZuziYci3QZ1T9oE0htZYSszNMP3b6Swob6izc1zjD2VU7s8yWzRlJ%2BRVcTFpfMB%2FOKA%2FvkiG7N0zg5cDauQRFKmlX7643HlKFFepi3xtHz2uuYOvCzsKx7ESfDtvojoJxgLHLGuBIvw6118z9RAjHnKBMb9UIJpq8XhGyOycco8EaZoXJfjwZ4iuU4Ri97HYb2FXNCpeaSxaKJsOn%2BJx7FwDrkupguLrhyjsfuJgwGBXERA0nja43FsjVYzTOvS6%2F3LiJDqr6jPXTEHIqmc5mUiLaDN8MTxOqYeN%2BrDfvomwib7PU7gkIMsVbjhfImZklWwzC7CzvEnVhPToOKlcEboYsEiW1MwdHU3K5lQq2uuzGmLAynNu4FdZuQK%2Fspidtl%2FsIuTinNtcXxtlaJrRSCEbffKIh3FFbzHELORW4ah%2FXPK1jf92Nau6l%2BIeud45jS9fbJO6a1b4mA4ga7xXjSXYwahGff8DMIanqq4GOp0B2xv%2FXq71qxJfW%2FTzou5IyHuppXpZisYPfM9FM7oJN5R2LrRKjhDW7SUjbMFNzIw0TtvmOwyyg6uKmDbjljrCq1OwFCIwMzrT3Lq9%2FX4tDS%2FDBrVQD6NZdACZLNnUR1XgI0ciO%2BlD9ygrykzmmLS7ALI2EMlrB%2Bcq3C8XbhKjXvjvchEIlzTL2dcoZuShRIQBnW7WttytGaZ2vTuZGA%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=170ec66ba26d3dc65bfa97a8c490139e1b16e97349b33bebcca982de19452ecf"]},"a9da9a50-4196-4bc6-b6a3-345f33add0ef":{"title":"Describe your brand","description":"Brand description","type":"longAnswer","isRequired":false,"answer":"A modern marketing agency."}},"status":"completed","allowMultipleSubmissions":true,"visibility":"allClients","submissionDate":"2024-02-12T23:58:05.278160085Z"},"formDescription":"","formFieldIds":["47741982-6b81-4041-8063-d8f825259318","a9da9a50-4196-4bc6-b6a3-345f33add0ef","2b7e3a5a-f335-430a-a8e9-8259c9f971d1","425fa7b8-4446-4864-8542-d9a1bdd61991","09c8dc93-4532-4995-831e-4bdf1c2e437b","7399360f-39f3-415f-af53-e223476b58eb"],"formFields":{"09c8dc93-4532-4995-831e-4bdf1c2e437b":{"title":"Select your color scheme:","description":"Color scheme description","type":"multiSelect","multipleChoiceOptions":["Red","Blue","Yellow","Green"],"isRequired":false,"answer":["Red","Yellow"]},"2b7e3a5a-f335-430a-a8e9-8259c9f971d1":{"title":"Which industry are you in?","description":"Industry description","type":"singleSelect","multipleChoiceOptions":["Fashion","Marketing","Social Media"],"isRequired":false,"answer":["Marketing"]},"425fa7b8-4446-4864-8542-d9a1bdd61991":{"title":"Assets Section","description":"Describe and upload your brand assets.","type":"title","isRequired":false},"47741982-6b81-4041-8063-d8f825259318":{"title":"What is your name?","description":"Full name","type":"shortAnswer","isRequired":false,"answer":"Sample ClientTwo"},"7399360f-39f3-415f-af53-e223476b58eb":{"title":"Upload your logo(s) here:","description":"File upload description","type":"fileUpload","isRequired":false,"answer":["ElaineBenes.jpg","GeorgeCostanza.jpg"],"attachmentUrls":["https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A4a597750-5d36-4013-a36e-563c381632db/forms/28e7db81-35b0-4284-96f3-ae097dfdbdd2/7399360f-39f3-415f-af53-e223476b58eb/ElaineBenes.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIZZRYXSXQ%2F20240212%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240212T235811Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEI7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIH5xKSvQ%2B%2BMYgvOGWqcP2DPlcojvNBFXq0J5TPkyUZ5BAiEA44txywKJF1tpGeVYdaygkuNVxYko2IhHuoQNeGmhG9EqjQMIZxAGGgwwMjA0MTUwMTUzMTMiDExWm4rJuRxGnzl6xyrqApdlZuziYci3QZ1T9oE0htZYSszNMP3b6Swob6izc1zjD2VU7s8yWzRlJ%2BRVcTFpfMB%2FOKA%2FvkiG7N0zg5cDauQRFKmlX7643HlKFFepi3xtHz2uuYOvCzsKx7ESfDtvojoJxgLHLGuBIvw6118z9RAjHnKBMb9UIJpq8XhGyOycco8EaZoXJfjwZ4iuU4Ri97HYb2FXNCpeaSxaKJsOn%2BJx7FwDrkupguLrhyjsfuJgwGBXERA0nja43FsjVYzTOvS6%2F3LiJDqr6jPXTEHIqmc5mUiLaDN8MTxOqYeN%2BrDfvomwib7PU7gkIMsVbjhfImZklWwzC7CzvEnVhPToOKlcEboYsEiW1MwdHU3K5lQq2uuzGmLAynNu4FdZuQK%2Fspidtl%2FsIuTinNtcXxtlaJrRSCEbffKIh3FFbzHELORW4ah%2FXPK1jf92Nau6l%2BIeud45jS9fbJO6a1b4mA4ga7xXjSXYwahGff8DMIanqq4GOp0B2xv%2FXq71qxJfW%2FTzou5IyHuppXpZisYPfM9FM7oJN5R2LrRKjhDW7SUjbMFNzIw0TtvmOwyyg6uKmDbjljrCq1OwFCIwMzrT3Lq9%2FX4tDS%2FDBrVQD6NZdACZLNnUR1XgI0ciO%2BlD9ygrykzmmLS7ALI2EMlrB%2Bcq3C8XbhKjXvjvchEIlzTL2dcoZuShRIQBnW7WttytGaZ2vTuZGA%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=8c1c062f5291959777545129dd21382308303b935371d5d2e4251bfd799bb3c3","https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A4a597750-5d36-4013-a36e-563c381632db/forms/28e7db81-35b0-4284-96f3-ae097dfdbdd2/7399360f-39f3-415f-af53-e223476b58eb/GeorgeCostanza.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIZZRYXSXQ%2F20240212%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240212T235811Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEI7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIH5xKSvQ%2B%2BMYgvOGWqcP2DPlcojvNBFXq0J5TPkyUZ5BAiEA44txywKJF1tpGeVYdaygkuNVxYko2IhHuoQNeGmhG9EqjQMIZxAGGgwwMjA0MTUwMTUzMTMiDExWm4rJuRxGnzl6xyrqApdlZuziYci3QZ1T9oE0htZYSszNMP3b6Swob6izc1zjD2VU7s8yWzRlJ%2BRVcTFpfMB%2FOKA%2FvkiG7N0zg5cDauQRFKmlX7643HlKFFepi3xtHz2uuYOvCzsKx7ESfDtvojoJxgLHLGuBIvw6118z9RAjHnKBMb9UIJpq8XhGyOycco8EaZoXJfjwZ4iuU4Ri97HYb2FXNCpeaSxaKJsOn%2BJx7FwDrkupguLrhyjsfuJgwGBXERA0nja43FsjVYzTOvS6%2F3LiJDqr6jPXTEHIqmc5mUiLaDN8MTxOqYeN%2BrDfvomwib7PU7gkIMsVbjhfImZklWwzC7CzvEnVhPToOKlcEboYsEiW1MwdHU3K5lQq2uuzGmLAynNu4FdZuQK%2Fspidtl%2FsIuTinNtcXxtlaJrRSCEbffKIh3FFbzHELORW4ah%2FXPK1jf92Nau6l%2BIeud45jS9fbJO6a1b4mA4ga7xXjSXYwahGff8DMIanqq4GOp0B2xv%2FXq71qxJfW%2FTzou5IyHuppXpZisYPfM9FM7oJN5R2LrRKjhDW7SUjbMFNzIw0TtvmOwyyg6uKmDbjljrCq1OwFCIwMzrT3Lq9%2FX4tDS%2FDBrVQD6NZdACZLNnUR1XgI0ciO%2BlD9ygrykzmmLS7ALI2EMlrB%2Bcq3C8XbhKjXvjvchEIlzTL2dcoZuShRIQBnW7WttytGaZ2vTuZGA%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=170ec66ba26d3dc65bfa97a8c490139e1b16e97349b33bebcca982de19452ecf"]},"a9da9a50-4196-4bc6-b6a3-345f33add0ef":{"title":"Describe your brand","description":"Brand description","type":"longAnswer","isRequired":false,"answer":"A modern marketing agency."}},"formId":"28e7db81-35b0-4284-96f3-ae097dfdbdd2","formName":"Sample Form All Question Types","id":"33xKBbhSR","object":"formResponse","status":"completed","submissionDate":"2024-02-12T23:58:05.278160085Z","visibility":"allClients"}],"nextToken":"eyJwa2V5IjoiYTAzOWIyMjgtMjc0NS00YTJiLWJjZjctYWFjNTZkNjUxOWJmIiwic2tleSI6IklOVEFLRV9GT1JNX1RFTVBMQVRFIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ=="}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"allowMultipleSubmissions":{"type":"boolean","example":false,"default":true},"clientId":{"type":"string","example":"d964f994-acb1-4859-81e5-c91c73b6ab12"},"createdAt":{"type":"string","example":"2024-02-12T23:26:30.97733477Z"},"formDescription":{"type":"string","example":""},"formFieldIds":{"type":"array","items":{"type":"string","example":"47741982-6b81-4041-8063-d8f825259318"}},"formFields":{"type":"object","properties":{"09c8dc93-4532-4995-831e-4bdf1c2e437b":{"type":"object","properties":{"title":{"type":"string","example":"Select your color scheme:"},"description":{"type":"string","example":"Color scheme description"},"type":{"type":"string","example":"multiSelect"},"multipleChoiceOptions":{"type":"array","items":{"type":"string","example":"Red"}},"isRequired":{"type":"boolean","example":false,"default":true},"answer":{"type":"array","items":{"type":"string","example":"Green"}}}},"2b7e3a5a-f335-430a-a8e9-8259c9f971d1":{"type":"object","properties":{"title":{"type":"string","example":"Which industry are you in?"},"description":{"type":"string","example":"Industry description"},"type":{"type":"string","example":"singleSelect"},"multipleChoiceOptions":{"type":"array","items":{"type":"string","example":"Fashion"}},"isRequired":{"type":"boolean","example":false,"default":true},"answer":{"type":"array","items":{"type":"string","example":"Social Media"}}}},"425fa7b8-4446-4864-8542-d9a1bdd61991":{"type":"object","properties":{"title":{"type":"string","example":"Assets Section"},"description":{"type":"string","example":"Describe and upload your brand assets."},"type":{"type":"string","example":"title"},"isRequired":{"type":"boolean","example":false,"default":true}}},"47741982-6b81-4041-8063-d8f825259318":{"type":"object","properties":{"title":{"type":"string","example":"What is your name?"},"description":{"type":"string","example":"Full name"},"type":{"type":"string","example":"shortAnswer"},"isRequired":{"type":"boolean","example":false,"default":true},"answer":{"type":"string","example":"Sample Client"}}},"7399360f-39f3-415f-af53-e223476b58eb":{"type":"object","properties":{"title":{"type":"string","example":"Upload your logo(s) here:"},"description":{"type":"string","example":"File upload description"},"type":{"type":"string","example":"fileUpload"},"isRequired":{"type":"boolean","example":false,"default":true},"answer":{"type":"array","items":{"type":"string","example":"ElaineBenes.jpg"}},"attachmentUrls":{"type":"array","items":{"type":"string","example":"https://ridebill-userfiles-mobilehub-310871815.s3-accelerate.amazonaws.com/protected/us-west-2%3A4a597750-5d36-4013-a36e-563c381632db/forms/28e7db81-35b0-4284-96f3-ae097dfdbdd2/7399360f-39f3-415f-af53-e223476b58eb/ElaineBenes.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJQGUNGIZZRYXSXQ%2F20240212%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240212T235811Z&X-Amz-Expires=10800&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEI7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIH5xKSvQ%2B%2BMYgvOGWqcP2DPlcojvNBFXq0J5TPkyUZ5BAiEA44txywKJF1tpGeVYdaygkuNVxYko2IhHuoQNeGmhG9EqjQMIZxAGGgwwMjA0MTUwMTUzMTMiDExWm4rJuRxGnzl6xyrqApdlZuziYci3QZ1T9oE0htZYSszNMP3b6Swob6izc1zjD2VU7s8yWzRlJ%2BRVcTFpfMB%2FOKA%2FvkiG7N0zg5cDauQRFKmlX7643HlKFFepi3xtHz2uuYOvCzsKx7ESfDtvojoJxgLHLGuBIvw6118z9RAjHnKBMb9UIJpq8XhGyOycco8EaZoXJfjwZ4iuU4Ri97HYb2FXNCpeaSxaKJsOn%2BJx7FwDrkupguLrhyjsfuJgwGBXERA0nja43FsjVYzTOvS6%2F3LiJDqr6jPXTEHIqmc5mUiLaDN8MTxOqYeN%2BrDfvomwib7PU7gkIMsVbjhfImZklWwzC7CzvEnVhPToOKlcEboYsEiW1MwdHU3K5lQq2uuzGmLAynNu4FdZuQK%2Fspidtl%2FsIuTinNtcXxtlaJrRSCEbffKIh3FFbzHELORW4ah%2FXPK1jf92Nau6l%2BIeud45jS9fbJO6a1b4mA4ga7xXjSXYwahGff8DMIanqq4GOp0B2xv%2FXq71qxJfW%2FTzou5IyHuppXpZisYPfM9FM7oJN5R2LrRKjhDW7SUjbMFNzIw0TtvmOwyyg6uKmDbjljrCq1OwFCIwMzrT3Lq9%2FX4tDS%2FDBrVQD6NZdACZLNnUR1XgI0ciO%2BlD9ygrykzmmLS7ALI2EMlrB%2Bcq3C8XbhKjXvjvchEIlzTL2dcoZuShRIQBnW7WttytGaZ2vTuZGA%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=8c1c062f5291959777545129dd21382308303b935371d5d2e4251bfd799bb3c3"}}}},"a9da9a50-4196-4bc6-b6a3-345f33add0ef":{"type":"object","properties":{"title":{"type":"string","example":"Describe your brand"},"description":{"type":"string","example":"Brand description"},"type":{"type":"string","example":"longAnswer"},"isRequired":{"type":"boolean","example":false,"default":true},"answer":{"type":"string","example":"A modern approach for social media posts and engagement."}}}}},"formId":{"type":"string","example":"28e7db81-35b0-4284-96f3-ae097dfdbdd2"},"formName":{"type":"string","example":"Sample Form All Question Types"},"id":{"type":"string","example":"zmQJbbhSR"},"object":{"type":"string","example":"formResponse"},"status":{"type":"string","example":"completed"},"submissionDate":{"type":"string","example":"2024-02-12T23:28:00.776964202Z"},"visibility":{"type":"string","example":"requestedClients"},"updatedAt":{"type":"string"}}}},"nextToken":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/internal-users/{id}":{"get":{"summary":"Retrieve Internal User","description":"This API endpoint retrieves a specific internal user.","operationId":"retrieve-internal-user","parameters":[{"name":"id","in":"path","description":"The unique ID of the internal user to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"id\": \"a34b3206-c567-4185-aad5-124ef6ea2b0b\",\n    \"object\": \"internalUser\",\n    \"createdAt\": \"2023-06-23T14:40:29.632217267Z\",\n    \"givenName\": \"Ari\",\n    \"familyName\": \"Quinones\",\n    \"email\": \"ari@copilot.app\",\n    \"role\": \"admin\",\n    \"fallbackColor\": \"#3294AE\",\n    \"isClientAccessLimited\": true,\n    \"companyAccessList\": [\n        \"00d31640-a863-44a1-a844-5b3a16f72bb0\",\n        \"1ad25040-c5dc-4c98-a182-c6610d1a799c\",\n        \"c7a8cdd0-7260-459c-9c13-77af594005b6\"\n    ],\n    \"avatarImageUrl\": \"https://lightout-portal.s3-accelerate.amazonaws.com/public/us-east-1_5EDZq5vNS/images/profile_pictures/512452-9524\"\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"a34b3206-c567-4185-aad5-124ef6ea2b0b"},"object":{"type":"string","example":"internalUser"},"createdAt":{"type":"string","example":"2023-06-23T14:40:29.632217267Z"},"givenName":{"type":"string","example":"Ari"},"familyName":{"type":"string","example":"Quinones"},"email":{"type":"string","example":"ari@copilot.app"},"role":{"type":"string","example":"admin"},"fallbackColor":{"type":"string","example":"#3294AE"},"isClientAccessLimited":{"type":"boolean","example":true,"default":true},"companyAccessList":{"type":"array","items":{"type":"string","example":"00d31640-a863-44a1-a844-5b3a16f72bb0"}},"avatarImageUrl":{"type":"string","example":"https://lightout-portal.s3-accelerate.amazonaws.com/public/us-east-1_5EDZq5vNS/images/profile_pictures/512452-9524"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"message\": \"Forbidden\"\n}"}},"schema":{"type":"object","properties":{"message":{"type":"string","example":"Forbidden"}}}}}}},"deprecated":false},"patch":{"description":"This API endpoint updates a specific Internal User's client access.","responses":{"200":{"description":"","content":{"application/json":{"examples":{"OK":{"summary":"OK","value":{"id":"192cc6f7-aa88-4dcb-892d-aaa5f6b88a29","object":"internalUser","createdAt":"2026-05-13T18:01:38.149988933Z","updatedAt":"2026-05-13T18:47:05.589927879Z","givenName":"John","fallbackColor":"teal","familyName":"Doe","email":"johndoe@assembly.com","role":"admin","isClientAccessLimited":true,"companyAccessList":["352dbb78-00d8-4875-970f-c8e9c08d0957"],"avatarImageUrl":""}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"192cc6f7-aa88-4dcb-892d-aaa5f6b88a29"},"object":{"type":"string","example":"internalUser"},"createdAt":{"type":"string","example":"2026-05-13T18:01:38.149988933Z"},"updatedAt":{"type":"string","example":"2026-05-13T18:47:05.589927879Z"},"givenName":{"type":"string","example":"John"},"fallbackColor":{"type":"string","example":"teal"},"familyName":{"type":"string","example":"Doe"},"email":{"type":"string","example":"johndoe@assembly.com"},"role":{"type":"string","example":"admin"},"isClientAccessLimited":{"type":"boolean","example":true,"default":true},"companyAccessList":{"type":"array","items":{"type":"string","example":"352dbb78-00d8-4875-970f-c8e9c08d0957"}},"avatarImageUrl":{"type":"string","example":""}}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The unique ID of the Internal User to update"}],"summary":"Update an Internal User","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"isClientAccessLimited":{"type":"boolean","default":"","description":"Whether this internal user has limited client access. When true, the user can only access certain companies. When false, the user has access to all clients. If nothing is selected, the client access setting they have will remain the same."},"companyAccessList":{"type":"array","items":{"type":"string"},"description":"The IDs of the companies this internal user should have access to. Replaces the existing list of companies. Only applicable if the internal user has limited access."}}},"examples":{"New Example":{"summary":"New Example","value":{}}}}}},"operationId":"patch_v1-internal-users-id"}},"/v1/internal-users":{"get":{"summary":"List Internal Users","description":"This API endpoint retrieves a list of internal users.","operationId":"list-internal-users","parameters":[{"name":"nextToken","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"id\": \"a34b3206-c567-4185-aad5-124ef6ea2b0b\",\n            \"object\": \"internalUser\",\n            \"createdAt\": \"2023-06-23T14:40:29.632217267Z\",\n            \"givenName\": \"Ari\",\n            \"familyName\": \"Quinones\",\n            \"email\": \"ari+customdomain@copilot.app\",\n            \"role\": \"staff\",\n            \"fallbackColor\": \"#3294AE\",\n            \"isClientAccessLimited\": true,\n            \"companyAccessList\": [\n                \"db123161-ae26-44ee-b4fe-f3eda4d73b07\",\n                \"f22094b2-4e30-439e-a742-312f6c09519a\"\n            ],\n            \"avatarImageUrl\": \"https://lightout-portal.s3-accelerate.amazonaws.com/public/us-east-1_5EDZq5vNS/images/profile_pictures/512452-9524\"\n        },\n        {\n            \"id\": \"dc0f1749-7d01-48b7-bd80-fcbfce835642\",\n            \"object\": \"internalUser\",\n            \"createdAt\": \"2023-05-02T21:10:12.062617683Z\",\n            \"givenName\": \"Copilot\",\n            \"familyName\": \"Portal\",\n            \"email\": \"allene+customapp@copilot.app\",\n            \"role\": \"admin\",\n            \"fallbackColor\": \"#3294AE\",\n            \"isClientAccessLimited\": false,\n            \"companyAccessList\": null,\n            \"avatarImageUrl\": \"https://lightout-portal.s3-accelerate.amazonaws.com/public/us-east-1_5EDZq5vNS/images/profile_pictures/512452-9524\"\n        }\n    ],\n    \"nextToken\": \"eyJwa2V5IjoiODc2NjdkY2ItNjcxNC00ZmNkLWJjNGUtNDI0ZGUxMzNiZjYyIiwic2tleSI6IkNMSUVOVF9DT01QQU5ZIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ==\"\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"a34b3206-c567-4185-aad5-124ef6ea2b0b"},"object":{"type":"string","example":"internalUser"},"createdAt":{"type":"string","example":"2023-06-23T14:40:29.632217267Z"},"givenName":{"type":"string","example":"Ari"},"familyName":{"type":"string","example":"Quinones"},"email":{"type":"string","example":"ari+customdomain@copilot.app"},"role":{"type":"string","example":"staff"},"fallbackColor":{"type":"string","example":"#3294AE"},"isClientAccessLimited":{"type":"boolean","example":true,"default":true},"companyAccessList":{"type":"array","items":{"type":"string","example":"db123161-ae26-44ee-b4fe-f3eda4d73b07"}},"avatarImageUrl":{"type":"string","example":"https://lightout-portal.s3-accelerate.amazonaws.com/public/us-east-1_5EDZq5vNS/images/profile_pictures/512452-9524"},"updatedAt":{"type":"string"}}}},"nextToken":{"type":"string","example":"eyJwa2V5IjoiODc2NjdkY2ItNjcxNC00ZmNkLWJjNGUtNDI0ZGUxMzNiZjYyIiwic2tleSI6IkNMSUVOVF9DT01QQU5ZIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvZGVmYXVsdC9iMTRlZmJlOC03Y2U3LTRjNDEtYTdhNC0yMzczMTNmYzgxZDMifQ=="}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"message\": \"Forbidden\"\n}"}},"schema":{"type":"object","properties":{"message":{"type":"string","example":"Forbidden"}}}}}}},"deprecated":false}},"/v1/invoices/{id}":{"get":{"summary":"Retrieve Invoice","description":"","operationId":"retrieve-invoice","parameters":[{"name":"id","in":"path","description":"The unique ID of the invoice you want to retrieve.","schema":{"type":"string","default":""},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"collectionMethod":"sendInvoice","createdAt":"2024-06-06T18:08:05.618445Z","currency":"usd","dueDate":"2024-06-14T18:08:01.292Z","id":"in_1POkjGFdviIHOKAncZ4XrBe0","lineItems":[{"amount":10000,"description":"Product A","priceId":"F0tsrfYSg","productId":"aae1c02f-c524-4601-bbcb-34d6379e76e3","quantity":1}],"memo":"Invoice amount","number":"","object":"invoice","recipientId":"fe818b15-431f-4e8b-82b6-85574ef35820","clientId":"fe818b15-431f-4e8b-82b6-85574ef35820","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","sentDate":"2024-06-06T14:08:05.618421-04:00","status":"draft","taxAmount":0,"taxPercentage":0,"total":10000,"receiptNumber":"","receiptUrl":"","fileUrl":"<url to download file>","billingReason":"manual","paymentMethodPreferences":[{"type":"creditCard","feePaidByClient":false},{"type":"bankAccount","feesPaidByClient":true}]}}},"schema":{"type":"object","properties":{"collectionMethod":{"type":"string","example":"sendInvoice"},"createdAt":{"type":"string","example":"2024-06-06T18:08:05.618445Z"},"currency":{"type":"string","example":"usd"},"dueDate":{"type":"string","example":"2024-06-14T18:08:01.292Z"},"id":{"type":"string","example":"in_1POkjGFdviIHOKAncZ4XrBe0"},"lineItems":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","example":10000,"default":0},"description":{"type":"string","example":"Product A"},"priceId":{"type":"string","example":"F0tsrfYSg"},"productId":{"type":"string","example":"aae1c02f-c524-4601-bbcb-34d6379e76e3"},"quantity":{"type":"integer","example":1,"default":0}}}},"memo":{"type":"string","example":"Invoice amount"},"number":{"type":"string","example":""},"object":{"type":"string","example":"invoice"},"recipientId":{"type":"string","example":"fe818b15-431f-4e8b-82b6-85574ef35820","deprecated":true},"clientId":{"type":"string","example":"fe818b15-431f-4e8b-82b6-85574ef35820"},"companyId":{"type":"string","example":"fe818b15-431f-4e8b-82b6-85574ef35820"},"sentDate":{"type":"string","example":"2024-06-06T14:08:05.618421-04:00"},"status":{"type":"string","example":"draft"},"taxAmount":{"type":"integer","example":0,"default":0},"taxPercentage":{"type":"integer","example":0,"default":0},"total":{"type":"integer","example":10000,"default":0},"receiptNumber":{"type":"string","example":""},"receiptUrl":{"type":"string","example":""},"fileUrl":{"type":"string","example":"<url to download file>"},"billingReason":{"type":"string","example":"manual"},"paymentMethodPreferences":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"creditCard"},"feePaidByClient":{"type":"boolean","example":false,"default":true}}}},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/invoices":{"get":{"summary":"List Invoices","description":"","operationId":"list-invoices","responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"collectionMethod":"sendInvoice","createdAt":"2024-05-08T17:51:31.133240408Z","currency":"usd","dueDate":"2024-05-11T17:50:58.737Z","id":"in_1PEEeKFdviIHOKAn8fX5x8Un","lineItems":[{"amount":9900,"description":"buying services","quantity":3}],"memo":"example invoice memo","number":"76997118-0001","object":"invoice","recipientId":"cf361905-1cce-4a28-af72-b05097bc89ff","clientId":"cf361905-1cce-4a28-af72-b05097bc89ff","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","sentDate":"2024-05-08T17:51:31.133225679Z","status":"paid","taxAmount":1010,"taxPercentage":3.4,"total":30710,"receiptNumber":"6463-6361","receiptUrl":"https://example.com/receipt.pdf","fileUrl":"https://example.com/invoice.pdf","billingReason":"manual","paymentMethodPreferences":[{"type":"creditCard","feePaidByClient":false},{"type":"bankAccount","feePaidByClient":true}]},{"collectionMethod":"chargeAutomatically","createdAt":"2024-05-09T14:12:35.199841153Z","currency":"usd","dueDate":"2024-06-08T14:12:32.102868402Z","id":"in_1PEXhyFdviIHOKAnIikXdArf","lineItems":[{"amount":100,"description":"INV Starter","quantity":1}],"memo":"","number":"335FA6F5-0004","object":"invoice","recipientId":"7a6c864c-51ae-4865-bf4b-9eb37da7f4ed","clientId":"7a6c864c-51ae-4865-bf4b-9eb37da7f4ed","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","sentDate":"2024-05-09T14:12:35.199827317Z","status":"void","subscriptionId":"sub_1OsQbQFdviIHOKAnJN8vTXga","taxAmount":0,"taxPercentage":0,"total":100,"receiptNumber":"","receiptUrl":"","fileUrl":"https://example.com/invoice.pdf","billingReason":"manual","paymentMethodPreferences":[{"type":"creditCard","feePaidByClient":false},{"type":"bankAccount","feePaidByClient":true}]}]}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"collectionMethod":{"type":"string","example":"sendInvoice"},"createdAt":{"type":"string","example":"2024-05-08T17:51:31.133240408Z"},"currency":{"type":"string","example":"usd"},"dueDate":{"type":"string","example":"2024-05-11T17:50:58.737Z"},"id":{"type":"string","example":"in_1PEEeKFdviIHOKAn8fX5x8Un"},"lineItems":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","example":9900,"default":0},"description":{"type":"string","example":"buying services"},"quantity":{"type":"integer","example":3,"default":0}}}},"memo":{"type":"string","example":"example invoice memo"},"number":{"type":"string","example":"76997118-0001"},"object":{"type":"string","example":"invoice"},"recipientId":{"type":"string","example":"cf361905-1cce-4a28-af72-b05097bc89ff","deprecated":true},"clientId":{"type":"string","example":"cf361905-1cce-4a28-af72-b05097bc89ff"},"companyId":{"type":"string","example":"cf361905-1cce-4a28-af72-b05097bc89ff"},"sentDate":{"type":"string","example":"2024-05-08T17:51:31.133225679Z"},"status":{"type":"string","example":"paid"},"taxAmount":{"type":"integer","example":1010,"default":0},"taxPercentage":{"type":"number","example":3.4,"default":0},"total":{"type":"integer","example":30710,"default":0},"receiptNumber":{"type":"string","example":"6463-6361"},"receiptUrl":{"type":"string","example":"https://example.com/receipt.pdf"},"fileUrl":{"type":"string","example":"https://example.com/invoice.pdf"},"billingReason":{"type":"string","example":"manual"},"paymentMethodPreferences":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"creditCard"},"feePaidByClient":{"type":"boolean","example":false,"default":true}}}},"updatedAt":{"type":"string"}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false,"parameters":[{"in":"query","name":"nextToken","schema":{"type":"string"},"required":false,"description":"Next token for pagination"},{"in":"query","name":"limit","schema":{"type":"integer"},"description":"Max number of records to fetch"}]},"post":{"summary":"Create Invoice","description":"This API endpoint create an invoice and automatically assigns it to given recipient to pay","operationId":"create-invoice","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["daysUntilDue","paymentMethodPreferences"],"properties":{"templateId":{"type":"string","description":"Unique ID of the invoice template to use. If provided, template values will be used for `lineItems`, `memo`, and `taxPercentage`."},"recipientId":{"type":"string","description":"Deprecated in favor of clientId and companyId."},"lineItems":{"type":"array","description":"Array of line items. Required if `templateId` is not provided.","items":{"properties":{"amount":{"type":"integer","description":"Amount in cents. Required if `priceId` not provided","format":"int32"},"description":{"type":"string","description":"Description of the item, ignored if `priceId` is provided."},"quantity":{"type":"number","description":"Quantity of the item (supports decimals).","format":"float"},"priceId":{"type":"string","description":"Unique ID of the `price` object. Required if `amount` is not provided."}},"required":["quantity"],"type":"object"}},"memo":{"type":"string","description":"Memo (arbitrary string) attached to the invoice, often used for display."},"daysUntilDue":{"type":"integer","description":"The number of days from when the invoice is created until it is due. Max value is 30.","format":"int32"},"taxPercentage":{"type":"number","description":"Tax percentage to apply to the invoice amount.","format":"float"},"paymentMethodPreferences":{"type":"array","description":"Array of preferences which specify which payment methods are allowed and how transaction fees are handled for each payment method","items":{"properties":{"type":{"type":"string","description":"Payment method type. Values are `creditCard` or `bankAccount`."},"feePaidByClient":{"type":"boolean","description":"When `true`, the transaction fee is paid by the client, otherwise is covered by your account."}},"required":["type","feePaidByClient"],"type":"object"}},"clientId":{"type":"string","description":"The ID of the client this invoice is assigned to. Leave empty if assigning to a company."},"companyId":{"type":"string","description":"The ID of the company this invoice is assigned. This is required when an invoice is assigned to a client with more than one company."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"a6e8a5ea-9fb1-488b-a4a8-86697943bdb3","object":"invoice","recipientId":"a6e8a5ea-9fb1-488b-a4a8-86697943bdb4","clientId":"a6e8a5ea-9fb1-488b-a4a8-86697943bdb4","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","status":"open","memo":"this invoice has a product and one off item.","taxPercentage":4.5,"currency":"USD","lineItems":[{"amount":1000,"description":"item a","quantity":3},{"amount":100000,"description":"Item b","priceId":"ZC9UiqQSR","productId":"9e1e238f-25e5-4aff-b5f3-6793f8f2703f","quantity":1}],"total":103000,"taxAmount":4635,"dueDate":"2024-07-12T21:31:16.789Z","sentDate":"2024-07-12T21:31:16.789Z","paymentSuccessDate":"2024-07-12T21:31:16.789Z","number":"INV-0001","paymentMethodPreferences":[{"type":"creditCard","feePaidByClient":false},{"type":"bankAccount","feePaidByClient":true}],"fileUrl":"https://example.com/invoice.pdf","receiptNumber":"INV-0001","receiptUrl":"https://example.com/receipt.pdf","billingReason":"manual","createdAt":"2024-02-21T15:31:16.789Z"}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"a6e8a5ea-9fb1-488b-a4a8-86697943bdb3"},"object":{"type":"string","example":"invoice"},"recipientId":{"type":"string","example":"a6e8a5ea-9fb1-488b-a4a8-86697943bdb4","deprecated":true},"clientId":{"type":"string","example":"a6e8a5ea-9fb1-488b-a4a8-86697943bdb4"},"companyId":{"type":"string","example":"a6e8a5ea-9fb1-488b-a4a8-86697943bdb4"},"status":{"type":"string","example":"open"},"memo":{"type":"string","example":"this invoice has a product and one off item."},"taxPercentage":{"type":"number","example":4.5,"default":0},"currency":{"type":"string","example":"USD"},"lineItems":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","example":1000,"default":0},"description":{"type":"string","example":"item a"},"quantity":{"type":"integer","example":3,"default":0}}}},"total":{"type":"integer","example":103000,"default":0},"taxAmount":{"type":"integer","example":4635,"default":0},"dueDate":{"type":"string","example":"2024-07-12T21:31:16.789Z"},"sentDate":{"type":"string","example":"2024-07-12T21:31:16.789Z"},"paymentSuccessDate":{"type":"string","example":"2024-07-12T21:31:16.789Z"},"number":{"type":"string","example":"INV-0001"},"paymentMethodPreferences":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"creditCard"},"feePaidByClient":{"type":"boolean","example":false,"default":true}}}},"fileUrl":{"type":"string","example":"https://example.com/invoice.pdf"},"receiptNumber":{"type":"string","example":"INV-0001"},"receiptUrl":{"type":"string","example":"https://example.com/receipt.pdf"},"billingReason":{"type":"string","example":"manual"},"createdAt":{"type":"string","example":"2024-02-21T15:31:16.789Z"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/invoice-templates":{"get":{"summary":"List Invoice Templates","description":"This API endpoint lists all the invoice templates for the workspace.","operationId":"list-invoice-templates","parameters":[{"name":"limit","in":"query","description":"Max number of records to fetch","schema":{"type":"integer","format":"int32"}},{"name":"nextToken","in":"query","description":"Next token for pagination","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n   \"data\": [\n       {\n           \"id\": \"81108543-bc52-4202-83de-71ad52a74df9\",\n           \"object\": \"invoiceTemplate\",\n           \"createdAt\": \"2024-06-25T21:34:52.436152Z\",\n           \"updatedAt\": \"2024-06-25T21:34:52.436152Z\",\n           \"name\": \"Test template1\",\n           \"memo\": \"this subscription has a product and one off item.\",\n           \"taxPercentage\": 0,\n           \"currency\": \"usd\",\n           \"lineItems\": [\n               {\n                   \"amount\": 1000,\n                   \"description\": \"item a\",\n                   \"quantity\": 3\n               },\n               {\n                   \"amount\": 100000,\n                   \"description\": \"Item B\",\n                   \"priceId\": \"d0000000-d7a5-473d-a75b-9821a8f4e180\",\n                   \"productId\": \"441424f5-2d9a-494f-b3d6-5e596a235e5a\",\n                   \"quantity\": 1\n               }\n           ]\n       },\n       {\n           \"id\": \"9e1e238f-25e5-4aff-b5f3-6793f8f2703f\",\n           \"object\": \"invoiceTemplate\",\n           \"createdAt\": \"2024-06-24T15:12:33.123456Z\",\n           \"updatedAt\": \"2024-06-24T15:12:33.123456Z\",\n           \"name\": \"Professional Services\",\n           \"memo\": \"Template for professional services invoice\",\n           \"taxPercentage\": 7.5,\n           \"currency\": \"usd\",\n           \"lineItems\": [\n               {\n                   \"amount\": 15000,\n                   \"description\": \"Consulting Services\",\n                   \"quantity\": 1\n               },\n               {\n                   \"amount\": 5000,\n                   \"description\": \"Support Hours\",\n                   \"priceId\": \"81108543-bc52-4202-83de-71ad52a74df9\",\n                   \"productId\": \"d0000000-d7a5-473d-a75b-9821a8f4e191\",\n                   \"quantity\": 10\n               }\n           ]\n       }\n   ]\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"81108543-bc52-4202-83de-71ad52a74df9"},"object":{"type":"string","example":"invoiceTemplate"},"createdAt":{"type":"string","example":"2024-06-25T21:34:52.436152Z"},"updatedAt":{"type":"string","example":"2024-06-25T21:34:52.436152Z"},"name":{"type":"string","example":"Test template1"},"memo":{"type":"string","example":"this subscription has a product and one off item."},"taxPercentage":{"type":"integer","example":0,"default":0},"currency":{"type":"string","example":"usd"},"lineItems":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","example":1000,"default":0},"description":{"type":"string","example":"item a"},"quantity":{"type":"integer","example":3,"default":0}}}}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/messages":{"post":{"summary":"Send Message","description":"This API endpoint sends a message within a Message Channel.","operationId":"send-message","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["text","channelId"],"properties":{"text":{"type":"string","description":"The contents of the message. Supports some formatting, see the [Message resource](https://docs.copilot.com/reference/messages) for details."},"channelId":{"type":"string","description":"The Message Channel where the message will be sent."},"senderId":{"type":"string","description":"The user (Client or Internal User) to send this message on behalf of. If specified, the sender must be a member of the Message Channel. If not specified, the message will be sent on behalf of the user who generated the API key used in the request."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"id\": \"fbd5a90b-5216-4230-bcd2-0d6a746aeb65\",\n  \"object\": \"message\",\n  \"senderId\": \"1dbb3e36-af70-4f41-89e6-6ddf9e2c62b5\",\n  \"createdAt\": \"2023-08-07T15:11:13.549092588Z\",\n  \"updatedAt\": \"2023-08-07T15:11:13.549092588Z\",\n  \"channelId\": \"602f5afd-2a42-47a4-a5e0-c3db0adf966a\",\n  \"isAttachmentIncluded\": true,\n  \"text\": \"This is an **urgent** message! My favorite client portal is [Copilot](https://copilot.com).\"\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"fbd5a90b-5216-4230-bcd2-0d6a746aeb65"},"object":{"type":"string","example":"message"},"senderId":{"type":"string","example":"1dbb3e36-af70-4f41-89e6-6ddf9e2c62b5"},"createdAt":{"type":"string","example":"2023-08-07T15:11:13.549092588Z"},"updatedAt":{"type":"string","example":"2023-08-07T15:11:13.549092588Z"},"channelId":{"type":"string","example":"602f5afd-2a42-47a4-a5e0-c3db0adf966a"},"isAttachmentIncluded":{"type":"boolean","example":true,"default":true},"text":{"type":"string","example":"This is an **urgent** message! My favorite client portal is [Copilot](https://copilot.com)."}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"invalid_request_error\",\n  \"type\": \"invalid_request_error\",\n  \"message\": \"missing or empty value for parameter membershipEntityId for create file channel request\",\n  \"error\": {}\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request_error"},"type":{"type":"string","example":"invalid_request_error"},"message":{"type":"string","example":"missing or empty value for parameter membershipEntityId for create file channel request"},"error":{"type":"object","properties":{}}}}}}}},"deprecated":false},"get":{"summary":"List Messages","description":"This API endpoint retrieves a list of messages in a given Message Channel. Messages are paginated and returned in descending chronological order.","operationId":"list-messages","parameters":[{"name":"channelId","in":"query","description":"The Message Channel to retrieve messages from.","required":true,"schema":{"type":"string"}},{"name":"nextToken","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","format":"int32","default":100}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"id\": \"fbd5a90b-5216-4230-bcd2-0d6a746aeb65\",\n            \"object\": \"message\",\n            \"senderId\": \"1dbb3e36-af70-4f41-89e6-6ddf9e2c62b5\",\n            \"createdAt\": \"2023-08-07T15:11:13.549092588Z\",\n            \"updatedAt\": \"2023-08-07T15:11:13.549092588Z\",\n            \"channelId\": \"602f5afd-2a42-47a4-a5e0-c3db0adf966a\",\n            \"text\": \"This is an **urgent** message! My favorite client portal is [Copilot](https://copilot.app).\",\n            \"isAttachmentIncluded\": true\n        }\n    ],\n    \"nextToken\": \"eyJwa2V5IjoiMmUxOTBhYmUtZDZhZC00ZTcwLWE5ZDUtNzYwZTNlZDQ5OTg1Iiwic2tleSI6IkNMSUVOVF9VU0VSIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvMjViMmE2ZTctNzExYy00ZWE3LTgxYmEtNjViYzlkZGYxNWVjLzJlMTkwYWJlLWQ2YWQtNGU3MC1hOWQ1LTc2MGUzZWQ0OTk4NSJ9\"\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"fbd5a90b-5216-4230-bcd2-0d6a746aeb65"},"object":{"type":"string","example":"message"},"senderId":{"type":"string","example":"1dbb3e36-af70-4f41-89e6-6ddf9e2c62b5"},"createdAt":{"type":"string","example":"2023-08-07T15:11:13.549092588Z"},"updatedAt":{"type":"string","example":"2023-08-07T15:11:13.549092588Z"},"channelId":{"type":"string","example":"602f5afd-2a42-47a4-a5e0-c3db0adf966a"},"text":{"type":"string","example":"This is an **urgent** message! My favorite client portal is [Copilot](https://copilot.app)."},"isAttachmentIncluded":{"type":"boolean","example":true,"default":true}}}},"nextToken":{"type":"string","example":"eyJwa2V5IjoiMmUxOTBhYmUtZDZhZC00ZTcwLWE5ZDUtNzYwZTNlZDQ5OTg1Iiwic2tleSI6IkNMSUVOVF9VU0VSIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvMjViMmE2ZTctNzExYy00ZWE3LTgxYmEtNjViYzlkZGYxNWVjLzJlMTkwYWJlLWQ2YWQtNGU3MC1hOWQ1LTc2MGUzZWQ0OTk4NSJ9"}}}}}}},"deprecated":false}},"/v1/message-channels":{"post":{"summary":"Create Message Channel","description":"This API endpoint creates a new message channel. See the [Message Channel](ref:message-channels) resource for detailed descriptions of the properties.","operationId":"create-message-channel","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["membershipType"],"properties":{"membershipType":{"type":"string","description":"The type of membership that this channel is associated with. Can be one of `individual`, `group` or `company`."},"membershipEntityId":{"type":"string","description":"Deprecated. Use clientId and companyId instead."},"memberIds":{"type":"array","description":"The `id`s of the clients to be added to this particular channel. Required for `group` channels. Ignored for `individual` and `company` channels.","items":{"type":"string"}},"clientId":{"type":"string","description":"The id of the client this channel is for. Required for individual channels."},"companyId":{"type":"string","description":"The id of the company this channel belongs to. Required for company channels and when the client(s) members have multiple companies."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"09660260-1e80-40a2-999c-d2255a33aff1","object":"messageChannel","createdAt":"2023-07-14T19:34:58.199614Z","updatedAt":"2023-07-14T19:34:58.199614Z","membershipType":"company","companyId":"09660260-1e80-40a2-999c-d2255a33aff1","membershipEntityId":"09660260-1e80-40a2-999c-d2255a33aff1","memberIds":["638f3dc4-0a9c-4585-9b74-60bcdca1b30a","b3efbc0c-4b77-4c2f-ad9b-8512bebb1773"],"lastMessageDate":null}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1"},"object":{"type":"string","example":"messageChannel"},"createdAt":{"type":"string","example":"2023-07-14T19:34:58.199614Z"},"updatedAt":{"type":"string","example":"2023-07-14T19:34:58.199614Z"},"membershipType":{"type":"string","example":"company"},"clientId":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1"},"companyId":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1"},"membershipEntityId":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1","deprecated":true},"memberIds":{"type":"array","items":{"type":"string","example":"638f3dc4-0a9c-4585-9b74-60bcdca1b30a"}},"lastMessageDate":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"invalid_request_error\",\n  \"type\": \"invalid_request_error\",\n  \"message\": \"missing or empty value for parameter membershipEntityId for create file channel request\",\n  \"error\": {}\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request_error"},"type":{"type":"string","example":"invalid_request_error"},"message":{"type":"string","example":"missing or empty value for parameter membershipEntityId for create file channel request"},"error":{"type":"object","properties":{}}}}}}}},"deprecated":false},"get":{"summary":"List Message Channels","description":"This API endpoint retrieves a list of message channels in your portal.<br><br>You can use the query params to filter a subset of the message channels that match the specified field values.","operationId":"list-message-channels","parameters":[{"name":"membershipType","in":"query","description":"Only return channels that have a membership type matching this value. Can be `individual`, `group` or `company`","schema":{"type":"string"}},{"name":"membershipEntityId","in":"query","description":"Deprecated. Use clientId instead.","schema":{"type":"string"}},{"name":"memberId","in":"query","description":"Only return channels that contain the member (client or internal user) matching this ID.","schema":{"type":"string"}},{"name":"nextToken","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","format":"int32","default":100}},{"name":"clientId","in":"query","required":false,"description":"Only return individual channels for this client.","schema":{"type":"string","default":""}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"id":"09660260-1e80-40a2-999c-d2255a33aff1","object":"messageChannel","createdAt":"2023-07-14T19:34:58.199614Z","updatedAt":"2023-07-14T19:34:58.199614Z","membershipType":"company","membershipEntityId":"09660260-1e80-40a2-999c-d2255a33aff1","companyId":"09660260-1e80-40a2-999c-d2255a33aff1","memberIds":["638f3dc4-0a9c-4585-9b74-60bcdca1b30a","b3efbc0c-4b77-4c2f-ad9b-8512bebb1773"],"lastMessageDate":null}],"nextToken":"eyJwa2V5IjoiMmUxOTBhYmUtZDZhZC00ZTcwLWE5ZDUtNzYwZTNlZDQ5OTg1Iiwic2tleSI6IkNMSUVOVF9VU0VSIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvMjViMmE2ZTctNzExYy00ZWE3LTgxYmEtNjViYzlkZGYxNWVjLzJlMTkwYWJlLWQ2YWQtNGU3MC1hOWQ1LTc2MGUzZWQ0OTk4NSJ9"}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1"},"object":{"type":"string","example":"messageChannel"},"createdAt":{"type":"string","example":"2023-07-14T19:34:58.199614Z"},"updatedAt":{"type":"string","example":"2023-07-14T19:34:58.199614Z"},"membershipType":{"type":"string","example":"company"},"clientId":{"type":"string","example":"210ad1fb-837a-4b5a-9d15-58dc9cc07073"},"companyId":{"type":"string","example":"210ad1fb-837a-4b5a-9d15-58dc9cc07073"},"membershipEntityId":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1","deprecated":true},"memberIds":{"type":"array","items":{"type":"string","example":"638f3dc4-0a9c-4585-9b74-60bcdca1b30a"}},"lastMessageDate":{}}}},"nextToken":{"type":"string","example":"eyJwa2V5IjoiMmUxOTBhYmUtZDZhZC00ZTcwLWE5ZDUtNzYwZTNlZDQ5OTg1Iiwic2tleSI6IkNMSUVOVF9VU0VSIiwiZGF0YSI6InVzLWVhc3QtMV9xbEFSQlE5bUYvMjViMmE2ZTctNzExYy00ZWE3LTgxYmEtNjViYzlkZGYxNWVjLzJlMTkwYWJlLWQ2YWQtNGU3MC1hOWQ1LTc2MGUzZWQ0OTk4NSJ9"}}}}}},"400":{"description":"400","content":{"text/plain":{"examples":{"Result":{"value":"{\n  \"code\": \"invalid_request_error\",\n  \"type\": \"invalid_request_error\",\n  \"message\": \"Membership type invalid, should be one of: company, group, individual\",\n  \"error\": {}\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request_error"},"type":{"type":"string","example":"invalid_request_error"},"message":{"type":"string","example":"Membership type invalid, should be one of: company, group, individual"},"error":{"type":"object","properties":{}}}}}}}},"deprecated":false}},"/v1/message-channels/{id}":{"get":{"summary":"Retrieve Message Channel","description":"This API endpoint retrieves a specific message channel in your portal.","operationId":"retrieve-message-channel","parameters":[{"name":"id","in":"path","description":"The ID of the message channel to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"09660260-1e80-40a2-999c-d2255a33aff1","object":"messageChannel","createdAt":"2023-07-14T19:34:58.199614Z","updatedAt":"2023-07-14T19:34:58.199614Z","membershipType":"company","membershipEntityId":"09660260-1e80-40a2-999c-d2255a33aff1","companyId":"09660260-1e80-40a2-999c-d2255a33aff1","memberIds":["638f3dc4-0a9c-4585-9b74-60bcdca1b30a","b3efbc0c-4b77-4c2f-ad9b-8512bebb1773"],"lastMessageDate":null}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1"},"object":{"type":"string","example":"messageChannel"},"createdAt":{"type":"string","example":"2023-07-14T19:34:58.199614Z"},"updatedAt":{"type":"string","example":"2023-07-14T19:34:58.199614Z"},"membershipType":{"type":"string","example":"company"},"clientId":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1"},"companyId":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1"},"membershipEntityId":{"type":"string","example":"09660260-1e80-40a2-999c-d2255a33aff1","deprecated":true},"memberIds":{"type":"array","items":{"type":"string","example":"638f3dc4-0a9c-4585-9b74-60bcdca1b30a"}},"lastMessageDate":{}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"code\": \"invalid_request_error\",\n  \"type\": \"invalid_request_error\",\n  \"message\": \"missing or empty value for parameter membershipEntityId for create file channel request\",\n  \"error\": {}\n}"}},"schema":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request_error"},"type":{"type":"string","example":"invalid_request_error"},"message":{"type":"string","example":"missing or empty value for parameter membershipEntityId for create file channel request"},"error":{"type":"object","properties":{}}}}}}}},"deprecated":false}},"/v1/notes":{"post":{"summary":"Create Note","description":"This API endpoint creates a note on a specified client or company in your workspace.","operationId":"create-note","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["entityType","entityId","title"],"properties":{"entityType":{"type":"string","description":"The type of entity that this note is associated with. Can be one of client or company."},"entityId":{"type":"string","description":"The ID of the entity (client or company) that this note is associated with."},"title":{"type":"string","description":"The note’s title. This field does not support formatting or newlines."},"content":{"type":"string","description":"The note’s content. This must be valid HTML."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"content\": \"<p>Example content.</p>\",\n    \"createdAt\": \"2025-03-12T16:11:26Z\",\n    \"creatorId\": \"2417c06f-44fe-4913-8c84-cd5d358d6f4b\",\n    \"entityId\": \"9edc4eb8-2b52-454a-bacf-c1d3889a1fbd\",\n    \"entityType\": \"company\",\n    \"id\": \"8c9508c6-ccbb-4f94-939e-5c1c1b0302cb\",\n    \"object\": \"note\",\n    \"title\": \"Example Note\"\n}"}},"schema":{"type":"object","properties":{"content":{"type":"string","example":"<p>Example content.</p>"},"createdAt":{"type":"string","example":"2025-03-12T16:11:26Z"},"creatorId":{"type":"string","example":"2417c06f-44fe-4913-8c84-cd5d358d6f4b"},"entityId":{"type":"string","example":"9edc4eb8-2b52-454a-bacf-c1d3889a1fbd"},"entityType":{"type":"string","example":"company"},"id":{"type":"string","example":"8c9508c6-ccbb-4f94-939e-5c1c1b0302cb"},"object":{"type":"string","example":"note"},"title":{"type":"string","example":"Example Note"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"get":{"summary":"List Notes","description":"This API endpoint retrieves a list of notes on clients or companies in your workspace.  <br> You can use the query params to filter a subset of clients or companies that match the specified field values.","operationId":"list-notes","parameters":[{"name":"entityType","in":"query","description":"Only return notes that have an entity type matching this value. Can be one of client or company.","schema":{"type":"string"}},{"name":"entityId","in":"query","description":"Only return notes for the entity (client or company) specified by this ID. If this parameter is included, you must also specify an entity type.","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of notes to fetch. Default: 20","schema":{"type":"integer","format":"int32","default":20}},{"name":"nextToken","in":"query","description":"Next token for pagination.","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"content\": \"<p>Example content.</p>\",\n            \"createdAt\": \"2025-03-12T16:09:26Z\",\n            \"creatorId\": \"2417c06f-44fe-4913-8c84-cd5d358d6f4b\",\n            \"entityId\": \"9edc4eb8-2b52-454a-bacf-c1d3889a1fbd\",\n            \"entityType\": \"company\",\n            \"id\": \"22f09cc7-a28f-453a-b39e-f017e4a79484\",\n            \"object\": \"note\",\n            \"title\": \"Example Note 2\"\n        },\n        {\n            \"content\": \"<p>Example content.</p>\",\n            \"createdAt\": \"2025-03-11T20:29:14Z\",\n            \"creatorId\": \"2417c06f-44fe-4913-8c84-cd5d358d6f4b\",\n            \"entityId\": \"9edc4eb8-2b52-454a-bacf-c1d3889a1fbd\",\n            \"entityType\": \"company\",\n            \"id\": \"20a7d78e-9bd1-4b76-a763-bb29603542a4\",\n            \"object\": \"note\",\n            \"title\": \"Example Note 3\"\n        }\n    ],\n    \"nextToken\": \"eyJwa2V5IjoiOGY0MzM1ZmQtNzc5Yi00Mzc2LWIwZTUtZTc2ODQ4MjFiZDg3Iiwic2tleSI6Ik5PVEUiLCJkYXRhIjoidXdQbm5HYTlwI0NPTVBBTlkjOWVkYzRlYjgtMmI1Mi00NTRhLWJhY2YtYzFkMzg4OWExZmJkIzIwMjUtMDMtMDRUMTc6MDg6NDAtMDU6MDAifQ==\"\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"content":{"type":"string","example":"<p>Example content.</p>"},"createdAt":{"type":"string","example":"2025-03-12T16:09:26Z"},"creatorId":{"type":"string","example":"2417c06f-44fe-4913-8c84-cd5d358d6f4b"},"entityId":{"type":"string","example":"9edc4eb8-2b52-454a-bacf-c1d3889a1fbd"},"entityType":{"type":"string","example":"company"},"id":{"type":"string","example":"22f09cc7-a28f-453a-b39e-f017e4a79484"},"object":{"type":"string","example":"note"},"title":{"type":"string","example":"Example Note 2"},"updatedAt":{"type":"string"}}}},"nextToken":{"type":"string","example":"eyJwa2V5IjoiOGY0MzM1ZmQtNzc5Yi00Mzc2LWIwZTUtZTc2ODQ4MjFiZDg3Iiwic2tleSI6Ik5PVEUiLCJkYXRhIjoidXdQbm5HYTlwI0NPTVBBTlkjOWVkYzRlYjgtMmI1Mi00NTRhLWJhY2YtYzFkMzg4OWExZmJkIzIwMjUtMDMtMDRUMTc6MDg6NDAtMDU6MDAifQ=="}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/notes/{id}":{"patch":{"summary":"Update Note","description":"This API endpoint updates a specific note.  <br> This PATCH request will only update the fields you specify, leaving the rest as they were.","operationId":"update-note","parameters":[{"name":"id","in":"path","description":"The ID of the note to update.","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"The note’s title. This field does not support formatting or newlines."},"content":{"type":"string","description":"The note’s content. This must be valid HTML."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"content\": \"<p>Example updated content.</p>\",\n    \"createdAt\": \"2025-03-12T15:11:57Z\",\n    \"creatorId\": \"2417c06f-44fe-4913-8c84-cd5d358d6f4b\",\n    \"entityId\": \"a29d0731-2e2b-4b94-9112-ea375517ab31\",\n    \"entityType\": \"client\",\n    \"id\": \"b47170e8-7ea0-485a-8395-0600bffb8718\",\n    \"object\": \"note\",\n    \"title\": \"Example Note\"\n}"}},"schema":{"type":"object","properties":{"content":{"type":"string","example":"<p>Example updated content.</p>"},"createdAt":{"type":"string","example":"2025-03-12T15:11:57Z"},"creatorId":{"type":"string","example":"2417c06f-44fe-4913-8c84-cd5d358d6f4b"},"entityId":{"type":"string","example":"a29d0731-2e2b-4b94-9112-ea375517ab31"},"entityType":{"type":"string","example":"client"},"id":{"type":"string","example":"b47170e8-7ea0-485a-8395-0600bffb8718"},"object":{"type":"string","example":"note"},"title":{"type":"string","example":"Example Note"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"get":{"summary":"Retrieve Note","description":"This API endpoint retrieves a specific note.","operationId":"retrieve-note","parameters":[{"name":"id","in":"path","description":"The ID of the note to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"content\": \"<p>Example content.</p>\",\n    \"createdAt\": \"2025-03-11T20:29:14Z\",\n    \"creatorId\": \"2417c06f-44fe-4913-8c84-cd5d358d6f4b\",\n    \"entityId\": \"9edc4eb8-2b52-454a-bacf-c1d3889a1fbd\",\n    \"entityType\": \"company\",\n    \"id\": \"20a7d78e-9bd1-4b76-a763-bb29603542a4\",\n    \"object\": \"note\",\n    \"title\": \"Example Note\"\n}"}},"schema":{"type":"object","properties":{"content":{"type":"string","example":"<p>Example content.</p>"},"createdAt":{"type":"string","example":"2025-03-11T20:29:14Z"},"creatorId":{"type":"string","example":"2417c06f-44fe-4913-8c84-cd5d358d6f4b"},"entityId":{"type":"string","example":"9edc4eb8-2b52-454a-bacf-c1d3889a1fbd"},"entityType":{"type":"string","example":"company"},"id":{"type":"string","example":"20a7d78e-9bd1-4b76-a763-bb29603542a4"},"object":{"type":"string","example":"note"},"title":{"type":"string","example":"Example Note"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"delete":{"summary":"Delete Note","description":"This API endpoint permanently removes a specific note.","operationId":"delete-note","parameters":[{"name":"id","in":"path","description":"The ID of the note to delete.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"id\": \"20a7d78e-9bd1-4b76-a763-bb29603542a4\",\n    \"object\": \"note\",\n    \"deleted\": true\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"20a7d78e-9bd1-4b76-a763-bb29603542a4"},"object":{"type":"string","example":"note"},"deleted":{"type":"boolean","example":true,"default":true}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/notifications":{"get":{"summary":"List Notifications","description":"Lists notifications for a workspace.","operationId":"list-notifications","parameters":[{"name":"recipientId","in":"query","description":"Deprecated in favor of recipientClientId and recipientInternalUserId","schema":{"type":"string"}},{"name":"includeRead","in":"query","description":"Includes read notifications.","schema":{"type":"boolean","default":false}},{"in":"query","name":"recipientClientId","schema":{"type":"string"},"description":"ID of the client to fetch notifications for."},{"in":"query","name":"recipientInternalUserId","schema":{"type":"string"},"description":"ID of the client to fetch notifications for."}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"createdAt":"2024-02-23T18:52:54.338474874Z","deliveryTargets":{"inProduct":{"title":"Invoice was paid","isRead":false,"ctaParams":{"foo":"bar"}}},"event":"invoice.paid","id":"dc0f1749-7d01-48b7-bd80-fcbfce835642:in_1On3rOFdviIHOKAnf02di30Z","object":"notification","recipientId":"dc0f1749-7d01-48b7-bd80-fcbfce835642","recipientInternalUserId":"dc0f1749-7d01-48b7-bd80-fcbfce835642","resourceId":"in_1On3rOFdviIHOKAnf02di30Z","senderId":"e960feb9-3b49-45b5-8e15-9202acced3ac","senderType":"client"},{"createdAt":"2024-02-14T20:37:10.107854781Z","deliveryTargets":{"inProduct":{"title":"Invoice was paid","isRead":false}},"event":"invoice.paid","id":"dc0f1749-7d01-48b7-bd80-fcbfce835642:in_1OjpC3FdviIHOKAnytv6rAmj","object":"notification","recipientId":"dc0f1749-7d01-48b7-bd80-fcbfce835642","recipientInternalUserId":"dc0f1749-7d01-48b7-bd80-fcbfce835642","resourceId":"in_1OjpC3FdviIHOKAnytv6rAmj","senderId":"e960feb9-3b49-45b5-8e15-9202acced3ac","senderType":"client"},{"createdAt":"2024-01-17T18:10:25.98720329Z","deliveryTargets":{"inProduct":{"title":"Contract has been signed","isRead":false},"email":{"subject":"New task","header":"New task assigned","body":"You have a new task to complete.","title":"View Task","ctaParams":{"foo":"bar"}}},"event":"contract.signed","id":"dc0f1749-7d01-48b7-bd80-fcbfce835642:TULkiocSR","object":"notification","recipientId":"dc0f1749-7d01-48b7-bd80-fcbfce835642","recipientInternalUserId":"dc0f1749-7d01-48b7-bd80-fcbfce835642","resourceId":"TULkiocSR","senderId":"e960feb9-3b49-45b5-8e15-9202acced3ac","senderType":"client"},{"channelId":"us-east-1_Gz7TRlAaM/7787061b-21d6-4742-b38d-319f3d18831b/none","createdAt":"2024-01-11T19:49:34.836257802Z","deliveryTargets":{"inProduct":{"title":"2 files were uploaded","isRead":false},"email":{"subject":"New task","header":"New task assigned","body":"You have a new task to complete.","title":"View Task","ctaParams":{"foo":"bar"}}},"event":"files.created","id":"831aec02-070b-4d2c-ad0c-6bda38fdb361/fda6ff10-ce5a-4232-8725-0c7941b60bf2","object":"notification","recipientId":"dc0f1749-7d01-48b7-bd80-fcbfce835642","recipientClientId":"dc0f1749-7d01-48b7-bd80-fcbfce835642","recipientCompanyId":"d15b1422-2e57-42f3-a0ac-0a726d6e1b42","resourceId":"","senderId":"e960feb9-3b49-45b5-8e15-9202acced3ac","senderType":"internalUser"}]}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","example":"2024-02-23T18:52:54.338474874Z"},"deliveryTargets":{"type":"object","properties":{"inProduct":{"type":"object","properties":{"title":{"type":"string","example":"Invoice was paid"},"isRead":{"type":"boolean","example":false,"default":true},"ctaParams":{"type":"object","properties":{"foo":{"type":"string","example":"bar"}}}}}}},"event":{"type":"string","example":"invoice.paid"},"id":{"type":"string","example":"dc0f1749-7d01-48b7-bd80-fcbfce835642:in_1On3rOFdviIHOKAnf02di30Z"},"object":{"type":"string","example":"notification"},"recipientId":{"type":"string","example":"dc0f1749-7d01-48b7-bd80-fcbfce835642","deprecated":true},"recipientClientId":{"type":"string","example":"dc0f1749-7d01-48b7-bd80-fcbfce835642"},"recipientCompanyId":{"type":"string","example":"dc0f1749-7d01-48b7-bd80-fcbfce835642"},"recipientInternalUserId":{"type":"string","example":"dc0f1749-7d01-48b7-bd80-fcbfce835642"},"resourceId":{"type":"string","example":"in_1On3rOFdviIHOKAnf02di30Z"},"senderId":{"type":"string","example":"e960feb9-3b49-45b5-8e15-9202acced3ac"},"senderType":{"type":"string","example":"client"}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"post":{"summary":"Create Notification","description":"Creates a notification in a workspace.","operationId":"create-notification","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["senderId"],"properties":{"senderId":{"type":"string","description":"ID of the entity sending the notification. This can be ID of client user, internal user, or a company."},"recipientId":{"type":"string","description":"Deprecated. Use recipientClientId, recipientCompanyId and recipientInternalUserId instead."},"deliveryTargets":{"properties":{"inProduct":{"properties":{"title":{"type":"string","description":"Title of the notification."},"body":{"type":"string","description":"Body of the notification."},"ctaParams":{"type":"string","description":"Key/value pairs that will be included in the search parameters when clicking on the notification’s call to action in product. This call to action is shown in the Notification Center for internal users.","format":"json"}},"required":["title"],"type":"object"},"email":{"properties":{"subject":{"type":"string","description":"Subject of the email notification."},"header":{"type":"string","description":"Header of the email notification."},"body":{"type":"string","description":"Body of the email notification."},"title":{"type":"string","description":"Call To Action button title in the email notification."},"ctaParams":{"type":"string","description":"Key/value pairs that will be included in the search parameters when clicking on an email notification’s call to action.","format":"json"},"htmlBody":{"type":"string","description":"Html body of the email notification. Allows rich formatting for body of email sent (Used when body field is empty.) Allowlist: p, br, strong/b, em/i, ul, ol, li, a."}},"required":[],"type":"object"}},"required":[],"type":"object","description":"The notification details for each delivery target."},"recipientClientId":{"type":"string","description":"ID of the client receiving the notification. This required when sending a notification to a client."},"recipientCompanyId":{"type":"string","description":"ID of the company receiving the notification. This is required when sending a notification to a client that has more than one company."},"recipientInternalUserId":{"type":"string","description":"ID of the internal user receiving the notification. This is required when sending a notification to an internal user."},"senderCompanyId":{"type":"string","description":"The ID of the company associated with the sender of this notification. This is required when the sender is a client with more than one company."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"appId":"5b58089c-1e81-439c-b511-01e3e599c23d","createdAt":"2024-02-22T18:17:01.577287641+05:30","deliveryTargets":{"inProduct":{"title":"enquiry was done","body":"details will be sent on mail","isRead":false,"ctaParams":{"foo":"bar"}},"email":{"subject":"New task","header":"New task assigned","body":"You have a new task to complete.","title":"View Task","ctaParams":{"foo":"bar"}}},"event":"customApp.action","id":"bb9405f0-8644-4bb8-bbc8-84a1a05dcc01","object":"notification","recipientId":"5d686cec-6ef8-4394-a62c-0c2fde950669","recipientInternalUserId":"5d686cec-6ef8-4394-a62c-0c2fde950669","resourceId":"3a5981d8-6619-4dc6-b9b9-a791d275bd5c","senderId":"33da2a16-f525-4d4b-99c8-a273f6260f43","senderType":"client"}}},"schema":{"type":"object","properties":{"appId":{"type":"string","example":"5b58089c-1e81-439c-b511-01e3e599c23d"},"createdAt":{"type":"string","example":"2024-02-22T18:17:01.577287641+05:30"},"deliveryTargets":{"type":"object","properties":{"inProduct":{"type":"object","properties":{"title":{"type":"string","example":"enquiry was done"},"body":{"type":"string","example":"details will be sent on mail"},"isRead":{"type":"boolean","example":false,"default":true},"ctaParams":{"type":"object","properties":{"foo":{"type":"string","example":"bar"}}}}},"email":{"type":"object","properties":{"subject":{"type":"string","example":"New task"},"header":{"type":"string","example":"New task assigned"},"body":{"type":"string","example":"You have a new task to complete."},"title":{"type":"string","example":"View Task"},"ctaParams":{"type":"object","properties":{"foo":{"type":"string","example":"bar"}}}}}}},"event":{"type":"string","example":"customApp.action"},"id":{"type":"string","example":"bb9405f0-8644-4bb8-bbc8-84a1a05dcc01"},"object":{"type":"string","example":"notification"},"recipientId":{"type":"string","example":"5d686cec-6ef8-4394-a62c-0c2fde950669","deprecated":true},"recipientClientId":{"type":"string","example":"5d686cec-6ef8-4394-a62c-0c2fde950669"},"recipientCompanyId":{"type":"string","example":"5d686cec-6ef8-4394-a62c-0c2fde950669"},"recipientInternalUserId":{"type":"string","example":"5d686cec-6ef8-4394-a62c-0c2fde950669"},"resourceId":{"type":"string","example":"3a5981d8-6619-4dc6-b9b9-a791d275bd5c"},"senderId":{"type":"string","example":"33da2a16-f525-4d4b-99c8-a273f6260f43"},"senderType":{"type":"string","example":"client"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}}}},"/v1/notifications/{id}":{"delete":{"summary":"Delete Notification","description":"This API endpoint deletes a notification.","operationId":"delete-notification","parameters":[{"name":"id","in":"path","description":"The ID of the notification to delete.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"id\": \"<notificationId>\",\n    \"object\": \"notification\",\n    \"deleted\": true\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"<notificationId>"},"object":{"type":"string","example":"notification"},"deleted":{"type":"boolean","example":true,"default":true}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/notifications/{id}/read":{"post":{"summary":"Mark Notification Read","description":"This API endpoint marks a notification as read.","operationId":"mark-notification-read","parameters":[{"name":"id","in":"path","description":"The ID of the notification to mark as read.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"createdAt":"2024-03-07T20:01:57.952358557Z","deliveryTargets":{"inProduct":{"title":"Form was submitted","isRead":true}},"event":"formResponse.completed","id":"335775a7-9115-449e-8578-45d798a1c77e:BOo5R0AIg","object":"notification","recipientId":"335775a7-9115-449e-8578-45d798a1c77e","recipientInternalUserId":"335775a7-9115-449e-8578-45d798a1c77e","resourceId":"16ad9666-f5f9-4816-aa0b-cec6e23115ef","senderId":"dff974ea-57c7-470a-8805-ab09dc1e61ee","senderType":"client"}}},"schema":{"type":"object","properties":{"createdAt":{"type":"string","example":"2024-03-07T20:01:57.952358557Z"},"deliveryTargets":{"type":"object","properties":{"inProduct":{"type":"object","properties":{"title":{"type":"string","example":"Form was submitted"},"isRead":{"type":"boolean","example":true,"default":true}}}}},"event":{"type":"string","example":"formResponse.completed"},"id":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e:BOo5R0AIg"},"object":{"type":"string","example":"notification"},"recipientId":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e","deprecated":true},"recipientClientId":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e"},"recipientCompanyId":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e"},"recipientInternalUserId":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e"},"resourceId":{"type":"string","example":"16ad9666-f5f9-4816-aa0b-cec6e23115ef"},"senderId":{"type":"string","example":"dff974ea-57c7-470a-8805-ab09dc1e61ee"},"senderType":{"type":"string","example":"client"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/notifications/{id}/unread":{"post":{"summary":"Mark Notification Unread","description":"This API endpoint marks a notification as unread.","operationId":"mark-notification-unread","parameters":[{"name":"id","in":"path","description":"The ID of the notification to mark as unread.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"createdAt":"2024-03-07T20:01:57.952358557Z","deliveryTargets":{"inProduct":{"title":"Form was submitted","isRead":false}},"event":"formResponse.completed","id":"335775a7-9115-449e-8578-45d798a1c77e:BOo5R0AIg","object":"notification","recipientId":"335775a7-9115-449e-8578-45d798a1c77e","recipientInternalUserId":"335775a7-9115-449e-8578-45d798a1c77e","resourceId":"16ad9666-f5f9-4816-aa0b-cec6e23115ef","senderId":"dff974ea-57c7-470a-8805-ab09dc1e61ee","senderType":"client"}}},"schema":{"type":"object","properties":{"createdAt":{"type":"string","example":"2024-03-07T20:01:57.952358557Z"},"deliveryTargets":{"type":"object","properties":{"inProduct":{"type":"object","properties":{"title":{"type":"string","example":"Form was submitted"},"isRead":{"type":"boolean","example":false,"default":true}}}}},"event":{"type":"string","example":"formResponse.completed"},"id":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e:BOo5R0AIg"},"object":{"type":"string","example":"notification"},"recipientId":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e","deprecated":true},"recipientClientId":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e"},"recipientCompanyId":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e"},"recipientInternalUserId":{"type":"string","example":"335775a7-9115-449e-8578-45d798a1c77e"},"resourceId":{"type":"string","example":"16ad9666-f5f9-4816-aa0b-cec6e23115ef"},"senderId":{"type":"string","example":"dff974ea-57c7-470a-8805-ab09dc1e61ee"},"senderType":{"type":"string","example":"client"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/payments":{"get":{"summary":"List Payments","description":"This API endpoint lists the payments in a workspace.<br>  Filter can be applied on invoice ID to list a payment for a specific invoice.","operationId":"list-payments","parameters":[{"name":"invoiceId","in":"query","description":"Unique ID of invoice","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max number of records to fetch","schema":{"type":"string"}},{"name":"nextToken","in":"query","description":"Next token for pagination","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"id\": \"d0000000-d7a5-473d-a75b-9821a8f4e180\",\n            \"object\": \"payment\",\n            \"createdAt\": \"2024-02-21T15:31:16.789Z\",\n            \"invoiceId\": \"inv_01HN4V8K5P7RNQJ6MGXKDZ8T2W\",\n            \"status\": \"succeeded\",\n            \"amount\": 107635,\n            \"message\": \"payment_successful\",\n            \"declineCode\": \"success\",\n            \"paymentMethod\": \"creditCard\",\n            \"last4Digits\": \"4242\",\n            \"brand\": \"visa\",\n            \"feeAmount\": {\n\t\t\t\t\t      \"paidByPlatform\": 2500,\n\t\t\t\t\t      \"paidByClient\": 0\n\t\t\t\t\t  }\n        },\n        {\n            \"id\": \"d0000000-d7a5-473d-a75b-9821a8f4e189\",\n            \"object\": \"payment\",\n            \"createdAt\": \"2024-02-21T14:15:30.123Z\",\n            \"invoiceId\": \"inv_01HN4V8K5P7RNQJ6MGXKDZ8T3X\",\n            \"status\": \"failed\",\n            \"amount\": 0,\n            \"message\": \"Insufficient funds\",\n            \"declineCode\": \"insufficientFunds\",\n            \"paymentMethod\": \"bankAccount\",\n            \"last4Digits\": \"1234\",\n            \"brand\": \"Chase\",\n            \"feeAmount\": {\n\t\t\t\t\t      \"paidByPlatform\": 0,\n\t\t\t\t\t      \"paidByClient\": 0\n\t\t\t\t\t  }\n        }\n    ]\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e180"},"object":{"type":"string","example":"payment"},"createdAt":{"type":"string","example":"2024-02-21T15:31:16.789Z"},"invoiceId":{"type":"string","example":"inv_01HN4V8K5P7RNQJ6MGXKDZ8T2W"},"status":{"type":"string","example":"succeeded"},"amount":{"type":"integer","example":107635,"default":0},"message":{"type":"string","example":"payment_successful"},"declineCode":{"type":"string","example":"success"},"paymentMethod":{"type":"string","example":"creditCard"},"last4Digits":{"type":"string","example":"4242"},"brand":{"type":"string","example":"visa"},"feeAmount":{"type":"object","properties":{"paidByPlatform":{"type":"integer","example":2500,"default":0},"paidByClient":{"type":"integer","example":0,"default":0}}},"updatedAt":{"type":"string"}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/prices":{"get":{"summary":"List Prices","description":"This API endpoint lists the prices for products in a workspace.","operationId":"list-prices","parameters":[{"name":"productId","in":"query","description":"Unique ID of the product","schema":{"type":"string"}},{"name":"nextToken","in":"query","description":"Next token for pagination","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max number of records to fetch","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"amount\": 70000,\n            \"createdAt\": \"2024-06-02T19:03:59.943926871Z\",\n            \"currency\": \"usd\",\n            \"id\": \"IV9fCTsIg\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"2124378d-995f-45c1-bc83-8e9ca2c4f61d\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 80100,\n            \"createdAt\": \"2024-06-02T19:05:32.263840738Z\",\n            \"currency\": \"USD\",\n            \"id\": \"IKEyjTySg\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"4028eb02-c21f-40a5-ba21-bd4d6ba9e540\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 80200,\n            \"createdAt\": \"2024-06-02T19:05:53.693409387Z\",\n            \"currency\": \"usd\",\n            \"id\": \"jHFUCTySg\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"4028eb02-c21f-40a5-ba21-bd4d6ba9e540\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 80300,\n            \"createdAt\": \"2024-06-02T19:06:46.011557275Z\",\n            \"currency\": \"usd\",\n            \"id\": \"uF3wCoyIg\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"4028eb02-c21f-40a5-ba21-bd4d6ba9e540\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 80400,\n            \"createdAt\": \"2024-06-02T19:14:19.666196193Z\",\n            \"currency\": \"usd\",\n            \"id\": \"bcwS3oyIR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"4028eb02-c21f-40a5-ba21-bd4d6ba9e540\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 80500,\n            \"createdAt\": \"2024-06-02T19:16:26.360940128Z\",\n            \"currency\": \"usd\",\n            \"id\": \"8ZLKqTyIR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"4028eb02-c21f-40a5-ba21-bd4d6ba9e540\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 10100,\n            \"createdAt\": \"2024-06-02T19:44:49.150979732Z\",\n            \"currency\": \"usd\",\n            \"id\": \"36a6eosSR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"93d62b4e-f4d9-4f16-a767-f940d25bd84d\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 10200,\n            \"createdAt\": \"2024-06-02T19:45:32.200153128Z\",\n            \"currency\": \"usd\",\n            \"id\": \"Nk3gRAyIg\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"93d62b4e-f4d9-4f16-a767-f940d25bd84d\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 10300,\n            \"createdAt\": \"2024-06-02T19:48:30.522579672Z\",\n            \"currency\": \"usd\",\n            \"id\": \"_754g0ySg\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"93d62b4e-f4d9-4f16-a767-f940d25bd84d\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 10400,\n            \"createdAt\": \"2024-06-02T19:49:17.503395203Z\",\n            \"currency\": \"usd\",\n            \"id\": \"6k_Sg0ySR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"93d62b4e-f4d9-4f16-a767-f940d25bd84d\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 10500,\n            \"createdAt\": \"2024-06-02T19:50:03.141584921Z\",\n            \"currency\": \"usd\",\n            \"id\": \"7BVvgAyIg\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"93d62b4e-f4d9-4f16-a767-f940d25bd84d\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 8000,\n            \"createdAt\": \"2024-06-02T20:03:05.248209683Z\",\n            \"currency\": \"usd\",\n            \"id\": \"RpizzAyIR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"6851543f-399b-43ee-b3d0-ef681ec3fd6d\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 453,\n            \"createdAt\": \"2024-06-24T13:38:25.532598961Z\",\n            \"currency\": \"USD\",\n            \"id\": \"r-JU6IwIR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"0d1d70f6-fb7e-4307-8526-e65ad59f9485\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 543,\n            \"createdAt\": \"2024-06-24T13:38:45.283659492Z\",\n            \"currency\": \"usd\",\n            \"id\": \"ZjMQeSwIg\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"0d1d70f6-fb7e-4307-8526-e65ad59f9485\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 10000,\n            \"createdAt\": \"2024-07-10T21:58:54.967914Z\",\n            \"currency\": \"USD\",\n            \"id\": \"yIo8mblIR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"4313ab83-b0c3-4a8b-9e52-11dbfbf800af\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 7000,\n            \"createdAt\": \"2024-07-10T22:06:14.126507Z\",\n            \"currency\": \"usd\",\n            \"id\": \"pZ9nZx_Sg\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"4313ab83-b0c3-4a8b-9e52-11dbfbf800af\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 20000,\n            \"createdAt\": \"2024-07-11T18:31:00.310071Z\",\n            \"currency\": \"USD\",\n            \"id\": \"PqTNDB_SR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"5bc745b0-1e62-4410-afc1-c1807b067edd\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 45000,\n            \"createdAt\": \"2024-08-06T10:35:48.14564Z\",\n            \"currency\": \"usd\",\n            \"id\": \"1zmt5PrSR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"2cf93cf0-45fa-485f-b584-03c2c38a3999\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 65000,\n            \"createdAt\": \"2024-08-06T10:35:57.906262Z\",\n            \"currency\": \"usd\",\n            \"id\": \"bbFpcErSR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"2cf93cf0-45fa-485f-b584-03c2c38a3999\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 60000,\n            \"createdAt\": \"2024-09-11T13:59:58.845233992Z\",\n            \"currency\": \"usd\",\n            \"id\": \"C-wch-eSg\",\n            \"interval\": \"week\",\n            \"intervalCount\": 1,\n            \"object\": \"price\",\n            \"productId\": \"2cf93cf0-45fa-485f-b584-03c2c38a3999\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 20000,\n            \"createdAt\": \"2024-09-11T14:01:47.979197331Z\",\n            \"currency\": \"usd\",\n            \"id\": \"K4M0ha6Ig\",\n            \"interval\": \"day\",\n            \"intervalCount\": 1,\n            \"object\": \"price\",\n            \"productId\": \"2cf93cf0-45fa-485f-b584-03c2c38a3999\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 12300,\n            \"createdAt\": \"2024-09-23T18:43:16.640400014Z\",\n            \"currency\": \"usd\",\n            \"id\": \"gkn5XbRHR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"2cf93cf0-45fa-485f-b584-03c2c38a3999\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 2400,\n            \"createdAt\": \"2024-09-24T17:11:40.997026047Z\",\n            \"currency\": \"usd\",\n            \"id\": \"7V7JNYgHg\",\n            \"interval\": \"month\",\n            \"intervalCount\": 6,\n            \"object\": \"price\",\n            \"productId\": \"2cf93cf0-45fa-485f-b584-03c2c38a3999\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 4600,\n            \"createdAt\": \"2024-09-24T17:36:33.959692218Z\",\n            \"currency\": \"usd\",\n            \"id\": \"Sny3DYRHg\",\n            \"interval\": \"week\",\n            \"intervalCount\": 1,\n            \"object\": \"price\",\n            \"productId\": \"ae2983ff-6d31-43c1-9470-c1b0f9073a44\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 5600,\n            \"createdAt\": \"2024-09-24T17:36:43.908917456Z\",\n            \"currency\": \"usd\",\n            \"id\": \"M9g6DLgNR\",\n            \"interval\": \"day\",\n            \"intervalCount\": 1,\n            \"object\": \"price\",\n            \"productId\": \"ae2983ff-6d31-43c1-9470-c1b0f9073a44\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 6400,\n            \"createdAt\": \"2024-09-24T17:36:53.459093212Z\",\n            \"currency\": \"usd\",\n            \"id\": \"aVO6DLgHg\",\n            \"interval\": \"month\",\n            \"intervalCount\": 1,\n            \"object\": \"price\",\n            \"productId\": \"ae2983ff-6d31-43c1-9470-c1b0f9073a44\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 6700,\n            \"createdAt\": \"2024-09-24T17:37:11.376396233Z\",\n            \"currency\": \"usd\",\n            \"id\": \"AEX6DLgNR\",\n            \"interval\": \"month\",\n            \"intervalCount\": 3,\n            \"object\": \"price\",\n            \"productId\": \"ae2983ff-6d31-43c1-9470-c1b0f9073a44\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 8900,\n            \"createdAt\": \"2024-09-24T17:37:36.085504198Z\",\n            \"currency\": \"usd\",\n            \"id\": \"Y_agdYgHg\",\n            \"interval\": \"month\",\n            \"intervalCount\": 6,\n            \"object\": \"price\",\n            \"productId\": \"ae2983ff-6d31-43c1-9470-c1b0f9073a44\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 8900,\n            \"createdAt\": \"2024-09-24T17:37:43.395141341Z\",\n            \"currency\": \"usd\",\n            \"id\": \"W6_ROLRNg\",\n            \"interval\": \"year\",\n            \"intervalCount\": 1,\n            \"object\": \"price\",\n            \"productId\": \"ae2983ff-6d31-43c1-9470-c1b0f9073a44\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 9000,\n            \"createdAt\": \"2024-09-24T17:37:50.723538619Z\",\n            \"currency\": \"usd\",\n            \"id\": \"ZGmzdLgNg\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"ae2983ff-6d31-43c1-9470-c1b0f9073a44\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 8400,\n            \"createdAt\": \"2024-09-24T17:37:55.05801949Z\",\n            \"currency\": \"usd\",\n            \"id\": \"xF4zdLgNR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"ae2983ff-6d31-43c1-9470-c1b0f9073a44\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 4500,\n            \"createdAt\": \"2024-09-27T18:18:12.051355998Z\",\n            \"currency\": \"usd\",\n            \"id\": \"aEWJZCRNR\",\n            \"interval\": \"month\",\n            \"intervalCount\": 3,\n            \"object\": \"price\",\n            \"productId\": \"1ab1e83f-93c7-4f17-9fec-54b077ead747\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 6500,\n            \"createdAt\": \"2024-09-27T18:18:29.242923924Z\",\n            \"currency\": \"usd\",\n            \"id\": \"loBJZCRNg\",\n            \"interval\": \"month\",\n            \"intervalCount\": 3,\n            \"object\": \"price\",\n            \"productId\": \"1ab1e83f-93c7-4f17-9fec-54b077ead747\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 40000,\n            \"createdAt\": \"2024-09-27T20:24:41.983677573Z\",\n            \"currency\": \"usd\",\n            \"id\": \"essUdCRHg\",\n            \"interval\": \"month\",\n            \"intervalCount\": 3,\n            \"object\": \"price\",\n            \"productId\": \"7e823f18-e191-498b-aa70-ec427fa1558a\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 20000,\n            \"createdAt\": \"2024-09-27T20:35:28.201317861Z\",\n            \"currency\": \"usd\",\n            \"id\": \"Dlh5KjRNg\",\n            \"interval\": \"month\",\n            \"intervalCount\": 1,\n            \"object\": \"price\",\n            \"productId\": \"351e3a6f-e36d-4230-a380-8a42e1f18735\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 34700,\n            \"createdAt\": \"2024-09-30T18:03:01.838193Z\",\n            \"currency\": \"usd\",\n            \"id\": \"hlTXwMkNg\",\n            \"interval\": \"month\",\n            \"intervalCount\": 1,\n            \"object\": \"price\",\n            \"productId\": \"2fe02952-43c3-449c-9036-75f8d69cf65b\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 48200,\n            \"createdAt\": \"2024-09-30T18:05:57.15922Z\",\n            \"currency\": \"usd\",\n            \"id\": \"VkXglMzNR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"6ebc2e3c-7f60-4abf-a2bc-b76b64685c65\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 67100,\n            \"createdAt\": \"2024-09-30T18:08:34.229356Z\",\n            \"currency\": \"usd\",\n            \"id\": \"YtB7_MkNg\",\n            \"interval\": \"month\",\n            \"intervalCount\": 6,\n            \"object\": \"price\",\n            \"productId\": \"4f1c76b1-e6e5-406d-941d-468819641127\",\n            \"type\": \"recurring\"\n        },\n        {\n            \"amount\": 78000,\n            \"createdAt\": \"2024-10-02T18:39:14.284088429Z\",\n            \"currency\": \"usd\",\n            \"id\": \"cFIsgOkHR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"2cf93cf0-45fa-485f-b584-03c2c38a3999\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 45600,\n            \"createdAt\": \"2025-02-12T02:15:07.175048883Z\",\n            \"currency\": \"usd\",\n            \"id\": \"I7uNy3KHR\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"2fe02952-43c3-449c-9036-75f8d69cf65b\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 10000,\n            \"createdAt\": \"2025-02-18T17:14:05.292996396Z\",\n            \"currency\": \"usd\",\n            \"id\": \"5WIZQo5Ng\",\n            \"interval\": null,\n            \"object\": \"price\",\n            \"productId\": \"db9c5c4a-f7af-4247-be7f-451f70769721\",\n            \"type\": \"oneTime\"\n        },\n        {\n            \"amount\": 89600,\n            \"createdAt\": \"2025-02-18T20:32:55.975672Z\",\n            \"currency\": \"usd\",\n            \"id\": \"SndTM05HR\",\n            \"interval\": \"month\",\n            \"intervalCount\": 24,\n            \"object\": \"price\",\n            \"productId\": \"2cf93cf0-45fa-485f-b584-03c2c38a3999\",\n            \"type\": \"recurring\"\n        }\n    ]\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","example":70000,"default":0},"createdAt":{"type":"string","example":"2024-06-02T19:03:59.943926871Z"},"currency":{"type":"string","example":"usd"},"id":{"type":"string","example":"IV9fCTsIg"},"interval":{},"object":{"type":"string","example":"price"},"productId":{"type":"string","example":"2124378d-995f-45c1-bc83-8e9ca2c4f61d"},"type":{"type":"string","example":"oneTime"},"updatedAt":{"type":"string"}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/prices/{id}":{"get":{"summary":"Retrieve Price","description":"This API endpoint retrieves a specific price.","operationId":"retrieve-price","parameters":[{"name":"id","in":"path","description":"The unique ID of the price you want to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"amount\": 5600,\n    \"createdAt\": \"2024-09-24T17:36:43.908917456Z\",\n    \"currency\": \"usd\",\n    \"id\": \"M9g6DLgNR\",\n    \"interval\": \"day\",\n    \"intervalCount\": 1,\n    \"object\": \"price\",\n    \"productId\": \"ae2983ff-6d31-43c1-9470-c1b0f9073a44\",\n    \"type\": \"recurring\"\n}"}},"schema":{"type":"object","properties":{"amount":{"type":"integer","example":5600,"default":0},"createdAt":{"type":"string","example":"2024-09-24T17:36:43.908917456Z"},"currency":{"type":"string","example":"usd"},"id":{"type":"string","example":"M9g6DLgNR"},"interval":{"type":"string","example":"day"},"intervalCount":{"type":"integer","example":1,"default":0},"object":{"type":"string","example":"price"},"productId":{"type":"string","example":"ae2983ff-6d31-43c1-9470-c1b0f9073a44"},"type":{"type":"string","example":"recurring"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/products":{"get":{"summary":"List Products","description":"This API endpoint lists the contracts in a workspace.","operationId":"list-products","parameters":[{"name":"name","in":"query","description":"Name of the product to filter on. Case-insensitive.","schema":{"type":"string"}},{"name":"nextToken","in":"query","description":"Next token for pagination","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max number of records to fetch","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"createdAt\": \"2024-09-27T20:35:28.20561098Z\",\n            \"id\": \"351e3a6f-e36d-4230-a380-8a42e1f18735\",\n            \"imageUrls\": [],\n            \"name\": \"Demo product2\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-05-24T20:28:49.70919982Z\",\n            \"id\": \"2124378d-995f-45c1-bc83-8e9ca2c4f61d\",\n            \"imageUrls\": [],\n            \"name\": \"Mobile App Development\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-08-06T10:35:48.372457Z\",\n            \"id\": \"2cf93cf0-45fa-485f-b584-03c2c38a3999\",\n            \"imageUrls\": [],\n            \"name\": \"New product testing\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-07-10T21:58:54.989847Z\",\n            \"id\": \"4313ab83-b0c3-4a8b-9e52-11dbfbf800af\",\n            \"imageUrls\": [],\n            \"name\": \"Test product with price 1\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-09-30T18:08:34.247996Z\",\n            \"id\": \"4f1c76b1-e6e5-406d-941d-468819641127\",\n            \"imageUrls\": [],\n            \"name\": \"Demo isUsed recurring prices\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-09-30T18:03:01.855164Z\",\n            \"id\": \"2fe02952-43c3-449c-9036-75f8d69cf65b\",\n            \"imageUrls\": [],\n            \"name\": \"Recurring product\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-05-24T15:05:39.099452104Z\",\n            \"id\": \"cd3bd042-4c58-4626-b19c-ab978fb23622\",\n            \"imageUrls\": [],\n            \"name\": \"Test product1\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-06-02T19:05:32.26830347Z\",\n            \"id\": \"4028eb02-c21f-40a5-ba21-bd4d6ba9e540\",\n            \"imageUrls\": [],\n            \"name\": \"Test product4\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-04-12T17:26:52.759700459Z\",\n            \"id\": \"6851543f-399b-43ee-b3d0-ef681ec3fd6d\",\n            \"imageUrls\": [\n                \"https://lightout-portal.s3-accelerate.amazonaws.com/public/Tr8pJhPzp/images/products/b064ff49-2137-49d9-b036-a3c7f6fcb2bf/babbaae9-6775-41be-9e79-d90254cb3c0d\"\n            ],\n            \"name\": \"Website design\",\n            \"object\": \"product\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-06-24T13:38:25.539260809Z\",\n            \"id\": \"0d1d70f6-fb7e-4307-8526-e65ad59f9485\",\n            \"imageUrls\": [],\n            \"name\": \"Test product\",\n            \"object\": \"product\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-07-11T18:31:00.328767Z\",\n            \"id\": \"5bc745b0-1e62-4410-afc1-c1807b067edd\",\n            \"imageUrls\": [],\n            \"name\": \"Test product1\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-09-24T17:36:33.965133257Z\",\n            \"id\": \"ae2983ff-6d31-43c1-9470-c1b0f9073a44\",\n            \"imageUrls\": [\n                \"https://lightout-portal.s3-accelerate.amazonaws.com/public/Tr8pJhPzp/images/products/b6efba7d-c482-4e01-abb0-c89451fbc0ec/a23d2bfa-98a1-4385-8cb5-de41f00aed78\"\n            ],\n            \"name\": \"Testing session product\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-09-27T20:24:41.989814333Z\",\n            \"id\": \"7e823f18-e191-498b-aa70-ec427fa1558a\",\n            \"imageUrls\": [],\n            \"name\": \"Demo product\",\n            \"object\": \"product\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2025-02-18T17:14:05.300361385Z\",\n            \"id\": \"db9c5c4a-f7af-4247-be7f-451f70769721\",\n            \"imageUrls\": [\n                \"https://lightout-portal.s3-accelerate.amazonaws.com/public/Tr8pJhPzp/images/products/6dfd16d3-2b52-42ad-8001-503189d05cba/Screenshot%202025-02-16%20at%207.23.05%E2%80%AFAM.png\"\n            ],\n            \"name\": \"Test product with image\",\n            \"object\": \"product\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-09-27T18:18:12.057201419Z\",\n            \"id\": \"1ab1e83f-93c7-4f17-9fec-54b077ead747\",\n            \"imageUrls\": [],\n            \"name\": \"New product\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        },\n        {\n            \"createdAt\": \"2024-05-23T19:44:54.457564188Z\",\n            \"id\": \"93d62b4e-f4d9-4f16-a767-f940d25bd84d\",\n            \"imageUrls\": [],\n            \"name\": \"Test product 10\",\n            \"object\": \"product\",\n            \"description\": \"demo\",\n            \"status\": \"active\"\n        }\n    ]\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","example":"2024-09-27T20:35:28.20561098Z"},"id":{"type":"string","example":"351e3a6f-e36d-4230-a380-8a42e1f18735"},"imageUrls":{"type":"array"},"name":{"type":"string","example":"Demo product2"},"object":{"type":"string","example":"product"},"description":{"type":"string","example":"demo"},"status":{"type":"string","example":"active"},"updatedAt":{"type":"string"}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/products/{id}":{"get":{"summary":"Retrieve Product","description":"This API endpoint retrieves a specific product.","operationId":"retrieve-product","parameters":[{"name":"id","in":"path","description":"The unique ID of the product you want to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"createdAt\": \"2024-04-12T17:26:52.759700459Z\",\n    \"id\": \"6851543f-399b-43ee-b3d0-ef681ec3fd6d\",\n    \"imageUrls\": [\n        \"https://lightout-portal.s3-accelerate.amazonaws.com/public/Tr8pJhPzp/images/products/b064ff49-2137-49d9-b036-a3c7f6fcb2bf/babbaae9-6775-41be-9e79-d90254cb3c0d\"\n    ],\n    \"name\": \"Website design\",\n    \"object\": \"product\",\n    \"description\": \"<div><h1>Professional design</h1><p>Our design services are provided by experienced individuals with industry experience.</p></div>\",\n    \"status\": \"active\"\n}"}},"schema":{"type":"object","properties":{"createdAt":{"type":"string","example":"2024-04-12T17:26:52.759700459Z"},"id":{"type":"string","example":"6851543f-399b-43ee-b3d0-ef681ec3fd6d"},"imageUrls":{"type":"array","items":{"type":"string","example":"https://lightout-portal.s3-accelerate.amazonaws.com/public/Tr8pJhPzp/images/products/b064ff49-2137-49d9-b036-a3c7f6fcb2bf/babbaae9-6775-41be-9e79-d90254cb3c0d"}},"name":{"type":"string","example":"Website design"},"object":{"type":"string","example":"product"},"description":{"type":"string","example":"<div><h1>Professional design</h1><p>Our design services are provided by experienced individuals with industry experience.</p></div>"},"status":{"type":"string","example":"active"},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/subscriptions":{"post":{"summary":"Create Subscription","description":"This API endpoint creates a subscription. A subscription is used to bill clients on a recurring basis.","operationId":"create-subscription","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["daysUntilDue","paymentMethodPreferences","collectionMethod"],"properties":{"templateId":{"type":"string","description":"Unique ID of the invoice template to use. If provided, template values will be used for lineItems, memo, taxPercentage, and currency"},"recipientId":{"type":"string","description":"Deprecated in favor of clientId and companyId."},"lineItems":{"type":"array","description":"Array of line items. Required if `templateId` is not provided.","items":{"properties":{"amount":{"type":"integer","description":"Amount in cents. Required if `priceId` not provided","format":"int32"},"description":{"type":"string","description":"Description of the item, ignored if `priceId` is provided."},"quantity":{"type":"number","description":"Quantity of the item (supports decimals).","format":"float"},"priceId":{"type":"string","description":"Unique ID of the `price` object. Required if `amount` is not provided."}},"required":["quantity"],"type":"object"}},"memo":{"type":"string","description":"Arbitrary string attached to the invoice, often used for display"},"daysUntilDue":{"type":"integer","description":"The number of days from when the subscription invoice is created until it is due. Max value is 30.","format":"int32"},"taxPercentage":{"type":"number","description":"Tax percentage to apply to the invoice amount","format":"float"},"interval":{"type":"string","description":"Billing frequency. Required if line items don't include a recurring price. Values: `day`, `week`, `month`, `quarterly`, `yearly`"},"intervalCount":{"type":"integer","description":"Number of intervals between billings. Default value = 1","default":1,"format":"int32"},"paymentMethodPreferences":{"type":"array","description":"Array of preferences which specify which payment methods are allowed and how transaction fees are handled for each payment method","items":{"properties":{"type":{"type":"string","description":"Payment method type. Values are `creditCard` or `bankAccount`."},"feePaidByClient":{"type":"boolean","description":"When `true`, the transaction fee is paid by the client, otherwise is covered by your account."}},"required":["type","feePaidByClient"],"type":"object"}},"collectionMethod":{"type":"string","description":"Specify how to charge for an invoice values: `sendInvoice` , `chargeAutomatically`"},"clientId":{"type":"string","description":"The ID of the client this subscription is assigned to. Leave empty if assigning to a company."},"companyId":{"type":"string","description":"The ID of the company this subscription is assigned to. This is required when assigning to a client with more than one company."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"sub_01HN4V8K5P7RNQJ6MGXKDZ8T2W","object":"subscription","createdAt":"2024-02-21T15:31:16.789Z","collectionMethod":"sendInvoice","status":"active","recipientId":"441424f5-2d9a-494f-b3d6-5e596a235e5a","clientId":"441424f5-2d9a-494f-b3d6-5e596a235e5a","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","memo":"Enterprise subscription with support","taxPercentage":8.5,"currency":"USD","interval":"month","intervalCount":1,"daysUntilDue":30,"canceledAt":"null-date","paymentMethodPreferences":[{"type":"creditCard","feePaidByClient":false},{"type":"bankAccount","feePaidByClient":true}],"lineItems":[{"priceId":"ZC9UiqQSR","productId":"d0000000-d7a5-473d-a75b-9821a8f4e191","description":"Enterprise Plan","quantity":1},{"amount":5000,"description":"Additional Support Hours","quantity":10}]}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"sub_01HN4V8K5P7RNQJ6MGXKDZ8T2W"},"object":{"type":"string","example":"subscription"},"createdAt":{"type":"string","example":"2024-02-21T15:31:16.789Z"},"collectionMethod":{"type":"string","example":"sendInvoice"},"status":{"type":"string","example":"active"},"recipientId":{"type":"string","example":"441424f5-2d9a-494f-b3d6-5e596a235e5a","deprecated":true},"clientId":{"type":"string","example":"441424f5-2d9a-494f-b3d6-5e596a235e5a"},"companyId":{"type":"string","example":"441424f5-2d9a-494f-b3d6-5e596a235e5a"},"memo":{"type":"string","example":"Enterprise subscription with support"},"taxPercentage":{"type":"number","example":8.5,"default":0},"currency":{"type":"string","example":"USD"},"interval":{"type":"string","example":"month"},"intervalCount":{"type":"integer","example":1,"default":0},"daysUntilDue":{"type":"integer","example":30,"default":0},"canceledAt":{"type":"string","example":"null-date"},"paymentMethodPreferences":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"creditCard"},"feePaidByClient":{"type":"boolean","example":false,"default":true}}}},"lineItems":{"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","example":"ZC9UiqQSR"},"productId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e191"},"description":{"type":"string","example":"Enterprise Plan"},"quantity":{"type":"integer","example":1,"default":0}}}},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"get":{"summary":"List Subscriptions","description":"","operationId":"list-subscriptions","parameters":[{"name":"limit","in":"query","description":"Max number of records to fetch","schema":{"type":"string"}},{"name":"nextToken","in":"query","description":"Next token for pagination","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"id":"sub_01HN4V8K5P7RNQJ6MGXKDZ8T2W","object":"subscription","createdAt":"2024-02-21T15:31:16.789Z","collectionMethod":"sendInvoice","status":"active","recipientId":"d0000000-d7a5-473d-a75b-9821a8f4e180","clientId":"d0000000-d7a5-473d-a75b-9821a8f4e180","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","memo":"Monthly service subscription","taxPercentage":8.5,"currency":"USD","interval":"month","intervalCount":1,"daysUntilDue":30,"canceledAt":"2024-02-21T15:31:16.789Z","paymentPreferences":{"allowedPaymentMethodTypes":["creditCard","bankAccount"],"absorbTransactionFee":[{"type":"creditCard","feePaidByClient":false},{"type":"bankAccount","feePaidByClient":true}]},"lineItems":[{"priceId":"K5P7RNQJ6","productId":"d0000000-d7a5-473d-a75b-9821a8f4e191","description":"Professional Plan","quantity":1},{"amount":5000,"description":"Additional Storage","quantity":2}]},{"id":"sub_01HN4V8K5P7RNQJ6MGXKDZ8T3X","object":"subscription","createdAt":"2024-02-20T10:15:22.123Z","collectionMethod":"chargeAutomatically","status":"active","recipientId":"d0000000-d7a5-473d-a75b-9821a8f4e181","clientId":"d0000000-d7a5-473d-a75b-9821a8f4e181","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","memo":"Annual enterprise plan","taxPercentage":7.5,"currency":"USD","interval":"yearly","intervalCount":1,"daysUntilDue":30,"canceledAt":"2024-02-21T15:31:16.789Z","paymentPreferences":{"allowedPaymentMethodTypes":["creditCard","bankAccount"],"absorbTransactionFee":[{"type":"creditCard","feePaidByClient":false},{"type":"bankAccount","feePaidByClient":true}]},"lineItems":[{"priceId":"L6M8SNRK7","productId":"d0000000-d7a5-473d-a75b-9821a8f4e192","description":"Enterprise Plan","quantity":5}]},{"id":"sub_01HN4V8K5P7RNQJ6MGXKDZ8T4Y","object":"subscription","createdAt":"2024-02-18T08:45:30.456Z","collectionMethod":"sendInvoice","status":"pastDue","recipientId":"d0000000-d7a5-473d-a75b-9821a8f4e182","clientId":"d0000000-d7a5-473d-a75b-9821a8f4e180","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","memo":"Quarterly consulting package","taxPercentage":6,"currency":"USD","interval":"quarterly","intervalCount":1,"daysUntilDue":15,"canceledAt":"2024-02-21T15:31:16.789Z","paymentPreferences":{"allowedPaymentMethodTypes":["creditCard","bankAccount"],"absorbTransactionFee":[{"type":"creditCard","feePaidByClient":false},{"type":"bankAccount","feePaidByClient":true}]},"lineItems":[{"priceId":"M7N9TQSL8","productId":"d0000000-d7a5-473d-a75b-9821a8f4e193","description":"Consulting Package","quantity":1}]}]}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"sub_01HN4V8K5P7RNQJ6MGXKDZ8T2W"},"object":{"type":"string","example":"subscription"},"createdAt":{"type":"string","example":"2024-02-21T15:31:16.789Z"},"collectionMethod":{"type":"string","example":"sendInvoice"},"status":{"type":"string","example":"active"},"recipientId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e180","deprecated":true},"clientId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e180"},"companyId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e180"},"memo":{"type":"string","example":"Monthly service subscription"},"taxPercentage":{"type":"number","example":8.5,"default":0},"currency":{"type":"string","example":"USD"},"interval":{"type":"string","example":"month"},"intervalCount":{"type":"integer","example":1,"default":0},"daysUntilDue":{"type":"integer","example":30,"default":0},"canceledAt":{"type":"string","example":"2024-02-21T15:31:16.789Z"},"paymentPreferences":{"type":"object","properties":{"allowedPaymentMethodTypes":{"type":"array","items":{"type":"string","example":"creditCard"}},"absorbTransactionFee":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"creditCard"},"feePaidByClient":{"type":"boolean","example":false,"default":true}}}}}},"lineItems":{"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","example":"K5P7RNQJ6"},"productId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e191"},"description":{"type":"string","example":"Professional Plan"},"quantity":{"type":"integer","example":1,"default":0}}}},"updatedAt":{"type":"string"}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/subscriptions/{id}":{"get":{"summary":"Retrieve Subscription","description":"This API endpoint retrieves a specific subscription.","operationId":"retrieve-subscription","parameters":[{"name":"id","in":"path","description":"The unique ID of the subscription you want to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"sub_01HN4V8K5P7RNQJ6MGXKDZ8T2W","object":"subscription","createdAt":"2024-02-21T15:31:16.789Z","collectionMethod":"sendInvoice","status":"active","recipientId":"d0000000-d7a5-473d-a75b-9821a8f4e180","clientId":"d0000000-d7a5-473d-a75b-9821a8f4e180","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","memo":"Monthly service subscription","taxPercentage":8.5,"currency":"USD","interval":"month","intervalCount":1,"daysUntilDue":30,"canceledAt":"2024-02-21T15:31:16.789Z","paymentPreferences":{"allowedPaymentMethodTypes":["creditCard","bankAccount"],"absorbTransactionFee":[{"type":"creditCard","feePaidByClient":false},{"type":"bankAccount","feePaidByClient":true}]},"lineItems":[{"priceId":"K5P7RNQJ6","productId":"d0000000-d7a5-473d-a75b-9821a8f4e191","description":"Professional Plan","quantity":1},{"amount":5000,"description":"Additional Storage","quantity":2}]}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"sub_01HN4V8K5P7RNQJ6MGXKDZ8T2W"},"object":{"type":"string","example":"subscription"},"createdAt":{"type":"string","example":"2024-02-21T15:31:16.789Z"},"collectionMethod":{"type":"string","example":"sendInvoice"},"status":{"type":"string","example":"active"},"recipientId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e180","deprecated":true},"clientId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e180"},"companyId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e180"},"memo":{"type":"string","example":"Monthly service subscription"},"taxPercentage":{"type":"number","example":8.5,"default":0},"currency":{"type":"string","example":"USD"},"interval":{"type":"string","example":"month"},"intervalCount":{"type":"integer","example":1,"default":0},"daysUntilDue":{"type":"integer","example":30,"default":0},"canceledAt":{"type":"string","example":"2024-02-21T15:31:16.789Z"},"paymentPreferences":{"type":"object","properties":{"allowedPaymentMethodTypes":{"type":"array","items":{"type":"string","example":"creditCard"}},"absorbTransactionFee":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"creditCard"},"feePaidByClient":{"type":"boolean","example":false,"default":true}}}}}},"lineItems":{"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","example":"K5P7RNQJ6"},"productId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e191"},"description":{"type":"string","example":"Professional Plan"},"quantity":{"type":"integer","example":1,"default":0}}}},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/subscriptions/{id}/cancel":{"post":{"summary":"Cancel Subscription","description":"This API endpoint cancels a subscription with status `active` or `notStarted`","operationId":"cancel-subscription","parameters":[{"name":"id","in":"path","description":"Unique ID of the subscription to cancel.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"sub_01HN4V8K5P7RNQJ6MGXKDZ8T2W","object":"subscription","createdAt":"2024-02-21T15:31:16.789Z","collectionMethod":"sendInvoice","status":"canceled","recipientId":"d0000000-d7a5-473d-a75b-9821a8f4e180","clientId":"d0000000-d7a5-473d-a75b-9821a8f4e180","companyId":"04a818c2-d035-495c-9cc2-06a11a8b91f6","memo":"Monthly service subscription","taxPercentage":8.5,"currency":"USD","interval":"month","intervalCount":1,"daysUntilDue":30,"canceledAt":"2024-02-21T15:31:16.789Z","paymentPreferences":{"allowedPaymentMethodTypes":["creditCard","bankAccount"],"absorbTransactionFee":[{"type":"creditCard","feePaidByClient":false},{"type":"bankAccount","feePaidByClient":true}]},"lineItems":[{"priceId":"K5P7RNQJ6","productId":"d0000000-d7a5-473d-a75b-9821a8f4e191","description":"Professional Plan","quantity":1},{"amount":5000,"description":"Additional Storage","quantity":2}]}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"sub_01HN4V8K5P7RNQJ6MGXKDZ8T2W"},"object":{"type":"string","example":"subscription"},"createdAt":{"type":"string","example":"2024-02-21T15:31:16.789Z"},"collectionMethod":{"type":"string","example":"sendInvoice"},"status":{"type":"string","example":"canceled"},"recipientId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e180","deprecated":true},"clientId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e180"},"companyId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e180"},"memo":{"type":"string","example":"Monthly service subscription"},"taxPercentage":{"type":"number","example":8.5,"default":0},"currency":{"type":"string","example":"USD"},"interval":{"type":"string","example":"month"},"intervalCount":{"type":"integer","example":1,"default":0},"daysUntilDue":{"type":"integer","example":30,"default":0},"canceledAt":{"type":"string","example":"2024-02-21T15:31:16.789Z"},"paymentPreferences":{"type":"object","properties":{"allowedPaymentMethodTypes":{"type":"array","items":{"type":"string","example":"creditCard"}},"absorbTransactionFee":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"creditCard"},"feePaidByClient":{"type":"boolean","example":false,"default":true}}}}}},"lineItems":{"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","example":"K5P7RNQJ6"},"productId":{"type":"string","example":"d0000000-d7a5-473d-a75b-9821a8f4e191"},"description":{"type":"string","example":"Professional Plan"},"quantity":{"type":"integer","example":1,"default":0}}}},"updatedAt":{"type":"string"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/subscription-templates":{"get":{"summary":"List Subscription Templates","description":"","operationId":"list-subscription-templates","parameters":[{"name":"limit","in":"query","description":"Max number of records to fetch","schema":{"type":"integer","format":"int32"}},{"name":"nextToken","in":"query","description":"Next token for pagination","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n    \"data\": [\n        {\n            \"id\": \"81108543-bc52-4202-83de-71ad52a74df9\",\n            \"object\": \"subscriptionTemplate\",\n            \"createdAt\": \"2024-06-25T21:34:52.436152Z\",\n            \"updatedAt\": \"2024-06-25T21:34:52.436152Z\",\n            \"name\": \"Subscription template\",\n            \"memo\": \"this subscription has a product and one off item.\",\n            \"taxPercentage\": 0,\n            \"currency\": \"usd\",\n            \"interval\": \"month\",\n            \"intervalCount\": 1,\n            \"lineItems\": [\n                {\n                    \"amount\": 1000,\n                    \"description\": \"item a\",\n                    \"quantity\": 3\n                },\n                {\n                    \"amount\": 100000,\n                    \"description\": \"Item B\",\n                    \"priceId\": \"d0000000-d7a5-473d-a75b-9821a8f4e180\",\n                    \"productId\": \"441424f5-2d9a-494f-b3d6-5e596a235e5a\",\n                    \"quantity\": 1\n                }\n            ]\n        },\n        {\n            \"id\": \"9e1e238f-25e5-4aff-b5f3-6793f8f2703f\",\n            \"object\": \"subscriptionTemplate\",\n            \"createdAt\": \"2024-06-24T18:22:31.123456Z\",\n            \"updatedAt\": \"2024-06-24T18:22:31.123456Z\",\n            \"name\": \"Enterprise Package\",\n            \"memo\": \"Annual enterprise subscription package\",\n            \"taxPercentage\": 8.5,\n            \"currency\": \"usd\",\n            \"interval\": \"year\",\n            \"intervalCount\": 1,\n            \"lineItems\": [\n                {\n                    \"amount\": 50000,\n                    \"description\": \"Base License\",\n                    \"quantity\": 10\n                },\n                {\n                    \"amount\": 25000,\n                    \"description\": \"Premium Support\",\n                    \"priceId\": \"81108543-bc52-4202-83de-71ad52a74df9\",\n                    \"productId\": \"d0000000-d7a5-473d-a75b-9821a8f4e191\",\n                    \"quantity\": 1\n                }\n            ]\n        }\n    ]\n}"}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"81108543-bc52-4202-83de-71ad52a74df9"},"object":{"type":"string","example":"subscriptionTemplate"},"createdAt":{"type":"string","example":"2024-06-25T21:34:52.436152Z"},"updatedAt":{"type":"string","example":"2024-06-25T21:34:52.436152Z"},"name":{"type":"string","example":"Subscription template"},"memo":{"type":"string","example":"this subscription has a product and one off item."},"taxPercentage":{"type":"integer","example":0,"default":0},"currency":{"type":"string","example":"usd"},"interval":{"type":"string","example":"month"},"intervalCount":{"type":"integer","example":1,"default":0},"lineItems":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","example":1000,"default":0},"description":{"type":"string","example":"item a"},"quantity":{"type":"integer","example":3,"default":0}}}}}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/workspaces":{"get":{"summary":"Retrieve Workspace","description":"This API endpoint retrieves information about a workspace.","operationId":"retrieve-workspace","responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"id":"us-east-1_Gz7TRlAaM","industry":"finance","isCompaniesEnabled":true,"isClientDirectSignUpEnabled":true,"logOutUrl":"https://portal.copilotcustomdomaintesting.online","brandName":"Feature Testing","squareIconUrl":"https://logo.clearbit.com/copilot.app","fullLogoUrl":"https://logo.clearbit.com/copilot.app","squareLoginImageUrl":"https://dopg8hpnitzl9.cloudfront.net/copilot/images/auth_image.png","socialSharingImageUrl":"https://dopg8hpnitzl9.cloudfront.net/copilot/images/auth_image.png","colorSidebarBackground":"#000000","colorSidebarText":"#ffffff","colorAccent":"#72788D","font":"Inter","metaTitle":"Feature Testing","metaDescription":"","portalUrl":"portal.copilotcustomdomaintesting.online","labels":{"individualTerm":"Client","individualTermPlural":"Clients","groupTerm":"Company","groupTermPlural":"Companies"}}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"us-east-1_Gz7TRlAaM"},"industry":{"type":"string","example":"finance"},"isCompaniesEnabled":{"type":"boolean","example":true,"default":true},"isClientDirectSignUpEnabled":{"type":"boolean","example":true,"default":true},"logOutUrl":{"type":"string","example":"https://portal.copilotcustomdomaintesting.online"},"brandName":{"type":"string","example":"Feature Testing"},"squareIconUrl":{"type":"string","example":"https://logo.clearbit.com/copilot.app"},"fullLogoUrl":{"type":"string","example":"https://logo.clearbit.com/copilot.app"},"squareLoginImageUrl":{"type":"string","example":"https://dopg8hpnitzl9.cloudfront.net/copilot/images/auth_image.png"},"socialSharingImageUrl":{"type":"string","example":"https://dopg8hpnitzl9.cloudfront.net/copilot/images/auth_image.png"},"colorSidebarBackground":{"type":"string","example":"#000000"},"colorSidebarText":{"type":"string","example":"#ffffff"},"colorAccent":{"type":"string","example":"#72788D"},"font":{"type":"string","example":"Inter"},"metaTitle":{"type":"string","example":"Feature Testing"},"metaDescription":{"type":"string","example":""},"portalUrl":{"type":"string","example":"portal.copilotcustomdomaintesting.online"},"labels":{"type":"object","properties":{"individualTerm":{"type":"string","example":"Client"},"individualTermPlural":{"type":"string","example":"Clients"},"groupTerm":{"type":"string","example":"Company"},"groupTermPlural":{"type":"string","example":"Companies"}}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/tasks":{"get":{"summary":"List Tasks","description":"This API endpoint retrieves tasks in a workspace.","operationId":"retrieve-tasks","parameters":[{"name":"limit","in":"query","description":"Max number of records to fetch.","schema":{"type":"integer","format":"int32","default":100}},{"name":"nextToken","in":"query","description":"Next token for pagination.","schema":{"type":"string"}},{"name":"createdBy","in":"query","description":"The creator of the tasks in order to filter the list response.","schema":{"type":"string"}},{"name":"parentTaskId","in":"query","description":"The parent task id.","schema":{"type":"string"}},{"name":"status","in":"query","description":"The status of the tasks in order to filter the list response, one of todo/inProgress/completed.","schema":{"type":"string"}},{"name":"clientId","in":"query","description":"the recipient client id","schema":{"type":"string"}},{"name":"internalUserId","in":"query","description":"the recipient internal user id","schema":{"type":"string"}},{"name":"companyId","in":"query","description":"the recipient company id","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"archivedBy":null,"archivedDate":null,"clientId":"9eee4ba8-0b5e-47c6-8a4b-53022fbc7875","companyId":"122341fa-wgj5-32hn-34hs-9023jnmgas0b","internalUserId":null,"completedBy":null,"completedByUserType":null,"completedDate":null,"createdBy":"27024189-ea18-40a7-a5cf-48579c352dee","createdDate":"2025-05-06T15:22:37Z","creatorType":"internalUser","deletedBy":null,"deletedDate":null,"description":"Task desc","dueDate":null,"id":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9","isArchived":false,"isDeleted":false,"label":"POC-013","name":"Task from marketplace api","object":"task","parentTaskId":null,"source":"api","status":"todo","templateId":null,"viewers":[{"clientId":"987e6543-e21b-12d3-a456-426614174111","companyId":"456e7890-e12b-12d3-a456-426614174222"}],"attachments":[{"id":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9","fileName":"expense_template.xlsx","fileSize":12044,"mimeType":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","downloadUrl":"https://...","uploadedBy":"27024189-ea18-40a7-a5cf-48579c352dee","uploadedByUserType":"internalUser","uploadedDate":"2025-05-06T15:22:37Z"}]}]}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"archivedBy":{"type":"string"},"archivedDate":{"type":"string"},"clientId":{"type":"string","example":"9eee4ba8-0b5e-47c6-8a4b-53022fbc7875"},"companyId":{"type":"string","example":"122341fa-wgj5-32hn-34hs-9023jnmgas0b"},"internalUserId":{"type":"string"},"completedBy":{"type":"string"},"completedByUserType":{"type":"string"},"completedDate":{"type":"string"},"createdBy":{"type":"string","example":"27024189-ea18-40a7-a5cf-48579c352dee"},"createdDate":{"type":"string","example":"2025-05-06T15:22:37Z"},"creatorType":{"type":"string","example":"internalUser"},"deletedBy":{"type":"string"},"deletedDate":{"type":"string"},"description":{"type":"string","example":"Task desc"},"dueDate":{"type":"string"},"id":{"type":"string","example":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9"},"isArchived":{"type":"boolean","example":false,"default":true},"isDeleted":{"type":"boolean","example":false,"default":true},"label":{"type":"string","example":"POC-013"},"name":{"type":"string","example":"Task from marketplace api"},"object":{"type":"string","example":"task"},"parentTaskId":{"type":"string"},"source":{"type":"string","example":"api"},"status":{"type":"string","example":"todo"},"templateId":{"type":"string"},"viewers":{"type":"array","items":{"properties":{},"type":"object"}},"attachments":{"type":"array","items":{"properties":{},"type":"object"}}}}},"nextToken":{"type":"string","example":""}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"post":{"summary":"Create Task","description":"This API endpoint creates a task.","operationId":"create-task","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"name":{"type":"string","description":"The name of the task."},"description":{"type":"string","description":"The description of the task."},"parentTaskId":{"type":"string","description":"The parent task of the task, if task should be a subtask."},"status":{"type":"string","description":"The status of the task, one of todo/inProgress/completed."},"internalUserId":{"type":"string","description":"The uuid of the internal user assigned to this task."},"clientId":{"type":"string","description":"The uuid of the client user assigned to this task. Company ID field is required if this field is used."},"companyId":{"type":"string","description":"The uuid of the company assigned to this task. If assigning to a client user, this field is required as well."},"dueDate":{"type":"string","description":"The date the task is due, in RFC3339 format."},"templateId":{"type":"string","description":"ID of the template to use when creating this task"},"viewers":{"type":"array","items":{"properties":{"clientId":{"type":"string","description":"If the task viewer is a client, you must add both the clientId and their companyId. "},"companyId":{"type":"string","description":"If the task viewer is a company, you must only add the companyId (leave clientId empty)."}},"type":"object"},"description":"The ID of the company or client that you would like to grant viewing access to the task. Viewers can only be added to tasks where the assignee is an internal user. Currently, only one entity (either a client or a company) can be added as a viewer per task."}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"archivedBy":null,"archivedDate":null,"clientId":"aead02ad-bd03-4956-8177-7bd8a24b99e4","companyId":"fadf235-af2d-afdaa-adfw-fadfadfar23f","completedBy":null,"completedByUserType":null,"completedDate":null,"createdBy":"27024189-ea18-40a7-a5cf-48579c352dee","createdDate":"2025-05-06T13:24:22Z","creatorType":"internalUser","deletedBy":null,"deletedDate":null,"description":"<p>Bow before me mortals</p>","dueDate":null,"id":"b941c6ab-9cac-4fb2-9a11-8830396e3f2e","isArchived":false,"isDeleted":false,"label":"TES-089","name":"Task name","object":"task","parentTaskId":"9fccce1a-644b-4331-9741-113d504e7dee","source":"api","status":"todo","templateId":null,"viewers":[],"attachments":[]}}},"schema":{"type":"object","properties":{"archivedBy":{"type":"string"},"archivedDate":{"type":"string"},"clientId":{"type":"string","example":"aead02ad-bd03-4956-8177-7bd8a24b99e4"},"companyId":{"type":"string","example":"fadf235-af2d-afdaa-adfw-fadfadfar23f"},"completedBy":{"type":"string"},"completedByUserType":{"type":"string"},"completedDate":{"type":"string"},"createdBy":{"type":"string","example":"27024189-ea18-40a7-a5cf-48579c352dee"},"createdDate":{"type":"string","example":"2025-05-06T13:24:22Z"},"creatorType":{"type":"string","example":"internalUser"},"deletedBy":{"type":"string"},"deletedDate":{"type":"string"},"description":{"type":"string","example":"<p>Bow before me mortals</p>"},"dueDate":{"type":"string"},"id":{"type":"string","example":"b941c6ab-9cac-4fb2-9a11-8830396e3f2e"},"isArchived":{"type":"boolean","example":false,"default":true},"isDeleted":{"type":"boolean","example":false,"default":true},"label":{"type":"string","example":"TES-089"},"name":{"type":"string","example":"Task name"},"object":{"type":"string","example":"task"},"parentTaskId":{"type":"string","example":"9fccce1a-644b-4331-9741-113d504e7dee"},"source":{"type":"string","example":"api"},"status":{"type":"string","example":"todo"},"templateId":{"type":"string"},"viewers":{"type":"array","items":{"properties":{"clientId":{"type":"string"},"companyId":{"type":"string"}},"type":"object"}},"attachments":{"type":"array","items":{"properties":{},"type":"object"}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/tasks/{id}":{"get":{"summary":"Retrieve Task","description":"This API endpoint retrieves a specific task by its id.","operationId":"retrieve-task","parameters":[{"name":"id","in":"path","description":"The id of the task to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"archivedBy":null,"archivedDate":null,"clientId":"aead02ad-bd03-4956-8177-7bd8a24b99e4","companyId":"a2w2lfa-23es-23bs-233s-252532fgadfa","completedBy":null,"completedByUserType":null,"completedDate":null,"createdBy":"27024189-ea18-40a7-a5cf-48579c352dee","createdDate":"2025-05-06T13:24:22Z","creatorType":"internalUser","deletedBy":null,"deletedDate":null,"description":"<p>Bow before me mortals</p>","dueDate":null,"id":"b941c6ab-9cac-4fb2-9a11-8830396e3f2e","isArchived":false,"isDeleted":false,"label":"TES-089","name":"Task name","object":"task","parentTaskId":"9fccce1a-644b-4331-9741-113d504e7dee","source":"api","status":"todo","templateId":"b961745d-f7ca-4412-9060-a0eb9147ce9f","viewers":[{"clientId":"987e6543-e21b-12d3-a456-426614174111","companyId":"456e7890-e12b-12d3-a456-426614174222"}],"attachments":[{"id":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9","fileName":"expense_template.xlsx","fileSize":12044,"mimeType":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","downloadUrl":"https://...","uploadedBy":"27024189-ea18-40a7-a5cf-48579c352dee","uploadedByUserType":"internalUser","uploadedDate":"2025-05-06T15:22:37Z"}]}}},"schema":{"type":"object","properties":{"archivedBy":{"type":"string"},"archivedDate":{"type":"string"},"clientId":{"type":"string","example":"aead02ad-bd03-4956-8177-7bd8a24b99e4"},"companyId":{"type":"string","example":"a2w2lfa-23es-23bs-233s-252532fgadfa"},"completedBy":{"type":"string"},"completedByUserType":{"type":"string"},"completedDate":{"type":"string"},"createdBy":{"type":"string","example":"27024189-ea18-40a7-a5cf-48579c352dee"},"createdDate":{"type":"string","example":"2025-05-06T13:24:22Z"},"creatorType":{"type":"string","example":"internalUser"},"deletedBy":{"type":"string"},"deletedDate":{"type":"string"},"description":{"type":"string","example":"<p>Bow before me mortals</p>"},"dueDate":{"type":"string"},"id":{"type":"string","example":"b941c6ab-9cac-4fb2-9a11-8830396e3f2e"},"isArchived":{"type":"boolean","example":false,"default":true},"isDeleted":{"type":"boolean","example":false,"default":true},"label":{"type":"string","example":"TES-089"},"name":{"type":"string","example":"Task name"},"object":{"type":"string","example":"task"},"parentTaskId":{"type":"string","example":"9fccce1a-644b-4331-9741-113d504e7dee"},"source":{"type":"string","example":"api"},"status":{"type":"string","example":"todo"},"templateId":{"type":"string","example":"b961745d-f7ca-4412-9060-a0eb9147ce9f"},"viewers":{"type":"array","items":{"properties":{},"type":"object"}},"attachments":{"type":"array","items":{"properties":{},"type":"object"}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"patch":{"summary":"Update Task","description":"This API endpoint updates a task.","operationId":"update-task","parameters":[{"name":"id","in":"path","description":"The id of the task to update.","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"name":{"type":"string","description":"The name of the task."},"description":{"type":"string","description":"The description of the task."},"status":{"type":"string","description":"The status of the task."},"internalUserId":{"type":"string","description":"The uuid of the internal user assigned to this task."},"clientId":{"type":"string","description":"The uuid of the client user assigned to this task."},"companyId":{"type":"string","description":"The uuid of the company assigned to this task. If assigning to a client user field should be required as well."},"dueDate":{"type":"string","description":"The date the task is due, in RFC3339 format."},"isArchived":{"type":"boolean","description":"Whether to archive the task or not."},"viewers":{"type":"object","description":"The ID of the company or client that you would like to grant viewing access to the task. Viewers can only be added to tasks where the assignee is an internal user. Currently, only one entity (either a client or a company) can be added as a viewer per task.","properties":{"clientId":{"type":"string","description":"If the task viewer is a client, you must add both the clientId and their companyId."},"companyId":{"type":"string","description":"If the task viewer is a company, you must only add the companyId (leave clientId empty)."}}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"archivedBy":null,"archivedDate":null,"clientId":"aead02ad-bd03-4956-8177-7bd8a24b99e4","companyId":"fadfaa-123g-1235-23412-kjgaliw1241g","completedBy":null,"completedByUserType":null,"completedDate":null,"createdBy":"27024189-ea18-40a7-a5cf-48579c352dee","createdDate":"2025-05-06T13:24:22Z","creatorType":"internalUser","deletedBy":null,"deletedDate":null,"description":"<p>Bow before me mortals</p>","dueDate":null,"id":"b941c6ab-9cac-4fb2-9a11-8830396e3f2e","isArchived":false,"isDeleted":false,"label":"TES-089","name":"Task name","object":"task","parentTaskId":"9fccce1a-644b-4331-9741-113d504e7dee","source":"api","status":"todo","templateId":null,"viewers":[],"attachments":[]}}},"schema":{"type":"object","properties":{"archivedBy":{"type":"string"},"archivedDate":{"type":"string"},"clientId":{"type":"string","example":"aead02ad-bd03-4956-8177-7bd8a24b99e4"},"companyId":{"type":"string","example":"fadfaa-123g-1235-23412-kjgaliw1241g"},"completedBy":{"type":"string"},"completedByUserType":{"type":"string"},"completedDate":{"type":"string"},"createdBy":{"type":"string","example":"27024189-ea18-40a7-a5cf-48579c352dee"},"createdDate":{"type":"string","example":"2025-05-06T13:24:22Z"},"creatorType":{"type":"string","example":"internalUser"},"deletedBy":{"type":"string"},"deletedDate":{"type":"string"},"description":{"type":"string","example":"<p>Bow before me mortals</p>"},"dueDate":{"type":"string"},"id":{"type":"string","example":"b941c6ab-9cac-4fb2-9a11-8830396e3f2e"},"isArchived":{"type":"boolean","example":false,"default":true},"isDeleted":{"type":"boolean","example":false,"default":true},"label":{"type":"string","example":"TES-089"},"name":{"type":"string","example":"Task name"},"object":{"type":"string","example":"task"},"parentTaskId":{"type":"string","example":"9fccce1a-644b-4331-9741-113d504e7dee"},"source":{"type":"string","example":"api"},"status":{"type":"string","example":"todo"},"templateId":{"type":"string"},"viewers":{"type":"array","items":{"properties":{"clientId":{"type":"string"},"companyId":{"type":"string"}},"type":"object"}},"attachments":{"type":"array","items":{"properties":{},"type":"object"}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false},"delete":{"summary":"Delete Task","description":"This API endpoint deletes a specific task.","operationId":"delete-task","parameters":[{"name":"id","in":"path","description":"The id of the task to delete.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"id\": \"25bd3f5a-c059-4f68-8a2d-2749016ba451\",\n  \"object\": \"task\",\n  \"deleted\": true\n}"}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"25bd3f5a-c059-4f68-8a2d-2749016ba451"},"object":{"type":"string","example":"task"},"deleted":{"type":"boolean","example":true,"default":true}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/task-templates":{"get":{"summary":"List Task Templates","description":"This API endpoint retrieves a list of task templates created in the workspace.","operationId":"list-task-templates","parameters":[{"name":"limit","in":"query","description":"Max number of records to fetch.","schema":{"type":"integer","format":"int32","default":100}},{"name":"nextToken","in":"query","description":"Next token for pagination.","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"data":[{"createdDate":"2025-05-06T15:22:37Z","description":"Task template description","id":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9","name":"Task template created as default","object":"taskTemplate","subTaskTemplates":[{"createdDate":"2025-12-19T15:45:50Z","description":"<p></p>","id":"a14a5ab1-c480-4f2c-b50b-3b9b61398b8f","name":"Create customer profiles","object":"taskTemplate"},{"createdDate":"2025-12-19T15:45:40Z","description":"<p></p>","id":"430241f4-52b2-4980-9c10-cc319aa01b60","name":"Define your core values","object":"taskTemplate"},{"createdDate":"2025-12-19T15:45:34Z","description":"<p></p>","id":"c8dbd1c4-fd47-4e2d-9b45-c922adcdf1ea","name":"Upload purpose statement","object":"taskTemplate"}]}]}}},"schema":{"type":"object","properties":{"createdDate":{"type":"string"},"description":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"object":{"type":"string"},"subTaskTemplates":{"type":"array","items":{"properties":{"createdDate":{"type":"string"},"description":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"object":{"type":"string"}},"type":"object"}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/task-templates/{id}":{"get":{"summary":"Retrieve Task Template","description":"This API endpoint retrieves a specific task template by its id.","operationId":"retrieve-task-template","parameters":[{"name":"id","in":"path","description":"The id of the task template to retrieve.","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":{"createdDate":"2025-05-06T15:22:37Z","description":"Task template description","id":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9","name":"Task template created as default","object":"taskTemplate","subTaskTemplates":[{"createdDate":"2025-12-19T15:45:50Z","description":"<p></p>","id":"a14a5ab1-c480-4f2c-b50b-3b9b61398b8f","name":"Create customer profiles","object":"taskTemplate"},{"createdDate":"2025-12-19T15:45:40Z","description":"<p></p>","id":"430241f4-52b2-4980-9c10-cc319aa01b60","name":"Define your core values","object":"taskTemplate"},{"createdDate":"2025-12-19T15:45:34Z","description":"<p></p>","id":"c8dbd1c4-fd47-4e2d-9b45-c922adcdf1ea","name":"Upload purpose statement","object":"taskTemplate"}]}}},"schema":{"type":"object","properties":{"createdDate":{"type":"string","example":"2025-05-06T15:22:37Z"},"description":{"type":"string","example":"Task template description"},"id":{"type":"string","example":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9"},"name":{"type":"string","example":"Task template created as default"},"object":{"type":"string","example":"taskTemplate"},"subTaskTemplates":{"type":"array","items":{"properties":{"createdDate":{"type":"string"},"description":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"object":{"type":"string"}},"type":"object"}}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{}"}},"schema":{"type":"object","properties":{}}}}}},"deprecated":false}},"/v1/files/{id}/permissions/":{"put":{"description":"","operationId":"put_v1files{id}permissions","responses":{"200":{"description":"Success"},"400":{"description":"Bad Request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}},"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The id of the folder to update or the string 'root' for the root folder"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"clientPermissions":{"type":"string","description":"The permission level for clients. Must be either `read_write` or `read_only`"},"channelId":{"type":"string","description":"The id for the file channel. Required for updating root folder permissions."}},"required":["clientPermissions"]}}}}}},"/v1/comments":{"get":{"description":"","responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","example":"b2c3d4e5-6789-01bc-defg-2345678901bc"},"object":{"type":"string","example":"taskComment"},"taskId":{"type":"string","example":"a1b2c3d4-5678-90ab-cdef-1234567890ab"},"parentCommentId":{"type":"string","example":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9"},"content":{"type":"string","example":"<p>Here are my receipts!</p>"},"createdBy":{"type":"string","example":"9eee4ba8-0b5e-47c6-8a4b-53022fbc7875"},"createdByUserType":{"type":"string","example":"clientUser"},"createdDate":{"type":"string","example":"2025-05-06T16:45:12Z"},"updatedDate":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"file-uuid-123"},"fileName":{"type":"string","example":"receipts_q4.pdf"},"fileSize":{"type":"integer","example":245832,"default":0},"mimeType":{"type":"string","example":"application/pdf"},"downloadUrl":{"type":"string","example":"https://..."},"uploadedBy":{"type":"string","example":"9eee4ba8-0b5e-47c6-8a4b-53022fbc7875"},"uploadedByUserType":{"type":"string","example":"client"},"uploadedDate":{"type":"string","example":"2025-05-06T16:45:12Z"}}}}}},"examples":{"Result ":{"summary":"Result ","value":{"id":"b2c3d4e5-6789-01bc-defg-2345678901bc","object":"taskComment","taskId":"a1b2c3d4-5678-90ab-cdef-1234567890ab","parentCommentId":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9","content":"<p>Here are my receipts!</p>","createdBy":"9eee4ba8-0b5e-47c6-8a4b-53022fbc7875","createdByUserType":"clientUser","createdDate":"2025-05-06T16:45:12Z","updatedDate":null,"attachments":[{"id":"file-uuid-123","fileName":"receipts_q4.pdf","fileSize":245832,"mimeType":"application/pdf","downloadUrl":"https://...","uploadedBy":"9eee4ba8-0b5e-47c6-8a4b-53022fbc7875","uploadedByUserType":"client","uploadedDate":"2025-05-06T16:45:12Z"}]}}}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{}},"examples":{"Result":{"summary":"Result","value":"{}"}}}},"description":"Bad Request"}},"parameters":[{"in":"query","name":"taskId","schema":{"type":"string"},"description":"Add an taskId if you only want comments for a specific task. "}],"operationId":"get_v1-comments"}},"/v1/comments/{commentId}":{"get":{"description":"","responses":{"200":{"description":"","content":{"application/json":{"examples":{"Result":{"summary":"Result","value":{"id":"b2c3d4e5-6789-01bc-defg-2345678901bc","object":"taskComment","taskId":"a1b2c3d4-5678-90ab-cdef-1234567890ab","parentCommentId":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9","content":"<p>Here are my receipts!</p>","createdBy":"9eee4ba8-0b5e-47c6-8a4b-53022fbc7875","createdByUserType":"clientUser","createdDate":"2025-05-06T16:45:12Z","updatedDate":null,"attachments":[{"id":"file-uuid-123","fileName":"receipts_q4.pdf","fileSize":245832,"mimeType":"application/pdf","downloadUrl":"https://...","uploadedBy":"9eee4ba8-0b5e-47c6-8a4b-53022fbc7875","uploadedByUserType":"client","uploadedDate":"2025-05-06T16:45:12Z"}]}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"b2c3d4e5-6789-01bc-defg-2345678901bc"},"object":{"type":"string","example":"taskComment"},"taskId":{"type":"string","example":"a1b2c3d4-5678-90ab-cdef-1234567890ab"},"parentCommentId":{"type":"string","example":"eddeb6a1-dfd7-4a60-9c8c-38ceed09bde9"},"content":{"type":"string","example":"<p>Here are my receipts!</p>"},"createdBy":{"type":"string","example":"9eee4ba8-0b5e-47c6-8a4b-53022fbc7875"},"createdByUserType":{"type":"string","example":"clientUser"},"createdDate":{"type":"string","example":"2025-05-06T16:45:12Z"},"updatedDate":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"file-uuid-123"},"fileName":{"type":"string","example":"receipts_q4.pdf"},"fileSize":{"type":"integer","example":245832,"default":0},"mimeType":{"type":"string","example":"application/pdf"},"downloadUrl":{"type":"string","example":"https://..."},"uploadedBy":{"type":"string","example":"9eee4ba8-0b5e-47c6-8a4b-53022fbc7875"},"uploadedByUserType":{"type":"string","example":"client"},"uploadedDate":{"type":"string","example":"2025-05-06T16:45:12Z"}}}}}}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{}},"examples":{"Result":{"summary":"Result","value":"{}"}}}},"description":"Bad Request"}},"parameters":[{"in":"path","name":"commentId","schema":{"type":"string"},"required":true,"description":"The id of the comment to retrieve from the task."}],"operationId":"get_v1-comments-commentid"},"delete":{"description":"","responses":{"200":{"description":"","content":{"application/json":{"examples":{"Result":{"summary":"Result","value":{"id":"b2c3d4e5-6789-01bc-defg-2345678901bc","object":"taskComment","deleted":true}}},"schema":{"type":"object","properties":{"id":{"type":"string","example":"b2c3d4e5-6789-01bc-defg-2345678901bc"},"object":{"type":"string","example":"taskComment"},"deleted":{"type":"boolean","example":true,"default":true}}}}}},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{}},"examples":{"Result ":{"summary":"Result ","value":"{}"}}}},"description":"Bad Request"}},"parameters":[{"in":"path","name":"commentId","schema":{"type":"string"},"required":true,"description":"The id of the comment to delete."}],"operationId":"delete_v1-comments-commentid"}},"/v1/events":{"get":{"description":"This API endpoint retrieves a list of events created in the workspace","responses":{"200":{"description":"","content":{"application/json":{"examples":{"OK":{"summary":"OK","value":{"data":[{"id":"35e1dd1d-5fe8-49e2-b154-7fc0506aabc1","object":"auditLog","actorId":"ab7bd961-0c87-4446-9037-ead4fbc3986f","actorType":"internalUser","source":"platform","eventType":"customEvent.testing","eventDescription":"user starting testing in platform","context":{"clientName":"ari","topic":"testing"},"ip":"67.166.31.192","userAgent":"PostmanRuntime/7.37.3","createdAt":"2026-03-12T20:24:26.206496361Z","updatedAt":"2026-03-12T20:24:26.206496361Z"}],"nextToken":"eyJsYXN0RXZhbHVhdGVkS2V5Ijp7Li4ufX0="}}},"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"35e1dd1d-5fe8-49e2-b154-7fc0506aabc1"},"object":{"type":"string","example":"auditLog"},"actorId":{"type":"string","example":"ab7bd961-0c87-4446-9037-ead4fbc3986f"},"actorType":{"type":"string","example":"internalUser"},"source":{"type":"string","example":"platform"},"eventType":{"type":"string","example":"customEvent.testing"},"eventDescription":{"type":"string","example":"user starting testing in platform"},"context":{"type":"object","properties":{"clientName":{"type":"string","example":"ari"},"topic":{"type":"string","example":"testing"}}},"ip":{"type":"string","example":"67.166.31.192"},"userAgent":{"type":"string","example":"PostmanRuntime/7.37.3"},"createdAt":{"type":"string","example":"2026-03-12T20:24:26.206496361Z"},"updatedAt":{"type":"string","example":"2026-03-12T20:24:26.206496361Z"}}}},"nextToken":{"type":"string","example":"eyJsYXN0RXZhbHVhdGVkS2V5Ijp7Li4ufX0="}}}}}}},"parameters":[{"in":"query","name":"limit","schema":{"type":"integer"},"description":"The maximum number of events to return per page. Defaults to 100 when omitted."},{"in":"query","name":"nextToken","schema":{"type":"string"},"description":"The pagination cursor returned in the previous response's `nextToken` field. Pass it back to fetch the next page."},{"in":"query","name":"actorId","schema":{"type":"string"},"description":"Comma-separated list of actor (user) UUIDs to filter events by."},{"in":"query","name":"eventType","schema":{"type":"string"},"description":"Comma-separated list of event types to filter by (e.g. `clientCreated`, `invoicePaid`)."},{"in":"query","name":"startDate","schema":{"type":"string"},"description":"Inclusive lower bound on event creation time. ISO-8601 / RFC3339 (e.g. `2026-03-01T00:00:00Z`)."},{"in":"query","name":"endDate","schema":{"type":"string"},"description":"Inclusive upper bound on event creation time. ISO-8601 / RFC3339 (e.g. `2026-03-31T23:59:59Z`)."}],"summary":"List Events","operationId":"get_v1-events"},"post":{"description":"This API endpoint creates a custom event in your workspace.","responses":{"201":{"content":{"application/json":{"schema":{"type":"object","properties":{"actorId":{"type":"string","example":"ab7bd961-0c87-4446-9037-ead4fbc3986f"},"actorType":{"type":"string","example":"internalUser"},"context":{"type":"object","properties":{"clientName":{"type":"string","example":"ari"},"topic":{"type":"string","example":"testing"}}},"createdAt":{"type":"string","example":"2026-03-12T20:24:26.206496361Z"},"eventDescription":{"type":"string","example":"user starting testing in platform"},"eventType":{"type":"string","example":"customEvent.testing"},"id":{"type":"string","example":"35e1dd1d-5fe8-49e2-b154-7fc0506aabc1"},"ip":{"type":"string","example":"67.166.31.192"},"object":{"type":"string","example":"auditLog"},"source":{"type":"string","example":"platform"},"updatedAt":{"type":"string","example":"2026-03-12T20:24:26.206496361Z"},"userAgent":{"type":"string","example":"PostmanRuntime/7.37.3"}}},"examples":{"Created":{"summary":"Created","value":{"actorId":"ab7bd961-0c87-4446-9037-ead4fbc3986f","actorType":"internalUser","context":{"clientName":"ari","topic":"testing"},"createdAt":"2026-03-12T20:24:26.206496361Z","eventDescription":"user starting testing in platform","eventType":"customEvent.testing","id":"35e1dd1d-5fe8-49e2-b154-7fc0506aabc1","ip":"67.166.31.192","object":"auditLog","source":"platform","updatedAt":"2026-03-12T20:24:26.206496361Z","userAgent":"PostmanRuntime/7.37.3"}}}}},"description":"Created"}},"parameters":[],"operationId":"post_v1-events","summary":"Create Event","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"eventType":{"type":"string","description":"The event type you wish to log. Max 100 characters. The stored value is prefixed with `customEvent`. (see Notes above)."},"eventDescription":{"type":"string","description":"A human-readable description of the event. Max 500 characters."},"actorId":{"type":"string","description":"The UUID of the user the event pertains to. Recommended for platform API callers so the event is attributed to the correct actor."},"companyId":{"type":"string","description":"The UUID of the company the event pertains to. Required if `actorId` belongs to a client."},"context":{"type":"string","description":"A JSON object of key-value pairs describing the event. See notes above for the expected shape.","format":"json"}},"required":["eventType","eventDescription","context"]}}}}}},"/v1/events/{id}":{"get":{"description":"This API endpoint retrieves a specific event by its ID.","responses":{"200":{"description":"","content":{"application/json":{"examples":{"OK":{"summary":"OK","value":{"actorId":"ab7bd961-0c87-4446-9037-ead4fbc3986f","actorType":"internalUser","context":{"app":"dropbox"},"createdAt":"2026-03-11T18:26:51.914818481Z","eventDescription":"syncing with a third party app","eventType":"customEvent.syncing","id":"2c30ec06-4b7b-414d-b586-c8b9b0235e07","ip":"67.166.31.192","object":"auditLog","source":"platform","updatedAt":"2026-03-11T18:26:51.914818481Z","userAgent":"PostmanRuntime/7.37.3"}}},"schema":{"type":"object","properties":{"actorId":{"type":"string","example":"ab7bd961-0c87-4446-9037-ead4fbc3986f"},"actorType":{"type":"string","example":"internalUser"},"context":{"type":"object","properties":{"app":{"type":"string","example":"dropbox"}}},"createdAt":{"type":"string","example":"2026-03-11T18:26:51.914818481Z"},"eventDescription":{"type":"string","example":"syncing with a third party app"},"eventType":{"type":"string","example":"customEvent.syncing"},"id":{"type":"string","example":"2c30ec06-4b7b-414d-b586-c8b9b0235e07"},"ip":{"type":"string","example":"67.166.31.192"},"object":{"type":"string","example":"auditLog"},"source":{"type":"string","example":"platform"},"updatedAt":{"type":"string","example":"2026-03-11T18:26:51.914818481Z"},"userAgent":{"type":"string","example":"PostmanRuntime/7.37.3"}}}}}}},"parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true,"description":"The unique ID of the event you want to retrieve."}],"operationId":"get_v1-events-id","summary":"Retrieve Event "}}},"x-readme":{"headers":[],"explorer-enabled":true,"proxy-enabled":true},"x-readme-fauxas":true}