{
  "openapi": "3.0.3",
  "info": {
    "title": "SignNow API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.signnow.com"
    }
  ],
  "paths": {
    "/request-logs": {
      "get": {
        "operationId": "get-request-logs",
        "summary": "Get logs",
        "description": "Retrieve logs for all user's active applications.",
        "parameters": [
          {
            "in": "query",
            "name": "per_page",
            "type": "string",
            "required": false,
            "description": "Allowed values: any positive integer starting from 1."
          },
          {
            "in": "query",
            "name": "page",
            "type": "string",
            "required": false,
            "description": "Allowed values: any positive integer starting from 1."
          },
          {
            "in": "query",
            "name": "filter:error",
            "type": "string",
            "required": false,
            "description": "Possible values: true/false. Format: `?filters=[{\"error\":{\"type\": \"=\", \"value\":true}}]``"
          },
          {
            "in": "query",
            "name": "filter:applicationId",
            "type": "string",
            "required": false,
            "description": "Possible values: one or several strings in array. Format: `?filters=[{\"applicationId\":{\"type\": \"in\", \"value\":[\"e1656509199c931911e919a00b1906ad1a26a450\", \"e1656509199c931911e919a00b1906ad1a26a451\"]}}]`"
          },
          {
            "in": "query",
            "name": "filter:method",
            "type": "string",
            "required": false,
            "description": "Possible values: array of strings. Format: `?filters=[{\"method\":{\"type\": \"in\", \"value\": \"POST\", \"PUT]}}]`"
          },
          {
            "in": "query",
            "name": "filter:uri",
            "type": "string",
            "required": false,
            "description": "Possible values: array of strings. Format: `?filters=[{\"uri\":{\"type\": \"match\", \"value\": \"string\"}}]` - finds only requests where the uri contains the value of the filter; `?filters=[{\"uri\":{\"type\": \"like\", \"value\": \"user\"}}]` - finds requests where the uri contains text from values of the filter."
          },
          {
            "in": "query",
            "name": "filter:code",
            "type": "string",
            "required": false,
            "description": "Possible values: array of two integers. Format: `?filters=[{\"code\":{\"type\": \"between\", \"value\": [0,500]}}]`"
          },
          {
            "in": "query",
            "name": "filter:time",
            "type": "string",
            "required": false,
            "description": "Possible values: integer. Format: `?filters=[{\"time\":{\"type\": \"=\", \"value\": 2}}]`"
          },
          {
            "in": "query",
            "name": "filter:created",
            "type": "string",
            "required": false,
            "description": "Possible values: two integers in array. Format: `?filters=[{\"created\":{\"type\": \"between\", \"value\": [1565360895, 1565360896]}}]`"
          },
          {
            "in": "query",
            "name": "sort:created",
            "type": "string",
            "required": false,
            "description": "Sort results in ascending or descending order. Possible values: asc/desc. Format: `?sort[email]=asc`"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns request logs in case of successful response. Returns an error when:\n\nUser does not have an active subscription, \"code\": 0. Message: \"User does not have active subscription\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "error": {
                            "type": "boolean"
                          },
                          "created": {
                            "type": "integer"
                          },
                          "request": {
                            "type": "object",
                            "properties": {
                              "ip": {
                                "type": "string"
                              },
                              "uri": {
                                "type": "string"
                              },
                              "body": {
                                "type": "object",
                                "properties": {
                                  "data": {
                                    "type": "string"
                                  }
                                }
                              },
                              "host": {
                                "type": "string"
                              },
                              "method": {
                                "type": "string"
                              },
                              "source": {
                                "type": "string"
                              },
                              "headers": {
                                "type": "object",
                                "properties": {
                                  "User-Agent": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "response": {
                            "type": "object",
                            "properties": {
                              "body": {
                                "type": "object",
                                "properties": {
                                  "data": {
                                    "type": "string"
                                  }
                                }
                              },
                              "code": {
                                "type": "integer"
                              },
                              "time": {
                                "type": "integer"
                              },
                              "headers": {
                                "type": "null"
                              }
                            }
                          },
                          "request_id": {
                            "type": "string"
                          },
                          "api_version": {
                            "type": "integer"
                          },
                          "application_id": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "links": {
                              "type": "object",
                              "properties": {
                                "next": {
                                  "type": "string"
                                }
                              }
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "error": true,
                          "created": 1565360895,
                          "request": {
                            "ip": "9X.XX.XX.XX",
                            "uri": "https://example.com",
                            "body": {
                              "data": "sample text"
                            },
                            "host": "example.com",
                            "method": "POST",
                            "source": "some_source",
                            "headers": {
                              "User-Agent": "Opera/9.27 (X11; Linux i686; en-US) Presto/2.9.200 Version/10.00"
                            }
                          },
                          "user_id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "response": {
                            "body": {
                              "data": "sample text"
                            },
                            "code": 400,
                            "time": 1,
                            "headers": null
                          },
                          "request_id": "5dXXXXXXXXXXX",
                          "api_version": 2,
                          "application_id": "e1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": {
                            "next": "https://api.signnow.com/request-logs?page=2"
                          },
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "error": true,
                          "created": 1565360895,
                          "request": {
                            "ip": "9X.XX.XX.XX",
                            "uri": "https://example.com",
                            "body": {
                              "data": "sample text"
                            },
                            "host": "example.com",
                            "method": "POST",
                            "source": "some_source",
                            "headers": {
                              "User-Agent": "Opera/9.27 (X11; Linux i686; en-US) Presto/2.9.200 Version/10.00"
                            }
                          },
                          "user_id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "response": {
                            "body": {
                              "data": "sample text"
                            },
                            "code": 400,
                            "time": 1,
                            "headers": null
                          },
                          "request_id": "5dXXXXXXXXXXX",
                          "api_version": 2,
                          "application_id": "e1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": {
                            "next": "https://api.signnow.com/request-logs?page=2"
                          },
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/request-logs/{request_id}": {
      "get": {
        "operationId": "get-request-logs-request-id",
        "summary": "Get request log",
        "description": "Retrieve specific user log for an active application.",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "type": "string",
            "required": true,
            "description": "Can be retrieved from `GET /request-logs` request."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the request log in case of successful response. Returns an error when:\n\n* Given {request_id} does not exist or user doesn't own this log, \"code\": 0. Message: \"Request log with ID `{request_id}` not found\"\n* User does not have an active subscription, \"code\": 0. Message: \"User does not have active subscription\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "user_id",
                        "request_id",
                        "api_version",
                        "application_id",
                        "error",
                        "created",
                        "request",
                        "response"
                      ],
                      "properties": {
                        "error": {
                          "type": "boolean"
                        },
                        "created": {
                          "type": "number"
                        },
                        "request": {
                          "type": "object",
                          "required": [
                            "host",
                            "method",
                            "uri",
                            "ip",
                            "source",
                            "body",
                            "headers"
                          ],
                          "properties": {
                            "ip": {
                              "type": "string",
                              "minLength": 1
                            },
                            "uri": {
                              "type": "string",
                              "minLength": 1
                            },
                            "body": {
                              "type": "object",
                              "required": [
                                "file"
                              ],
                              "properties": {
                                "file": {
                                  "type": "object",
                                  "required": [
                                    "filename",
                                    "mime",
                                    "name",
                                    "size"
                                  ],
                                  "properties": {
                                    "mime": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "size": {
                                      "type": "number"
                                    },
                                    "filename": {
                                      "type": "string",
                                      "minLength": 1
                                    }
                                  }
                                }
                              }
                            },
                            "host": {
                              "type": "string",
                              "minLength": 1
                            },
                            "method": {
                              "type": "string",
                              "minLength": 1
                            },
                            "source": {
                              "type": "string",
                              "minLength": 1
                            },
                            "headers": {
                              "type": "object",
                              "required": [
                                "authorization",
                                "user-agent"
                              ],
                              "properties": {
                                "user-agent": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "authorization": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              }
                            }
                          }
                        },
                        "user_id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "response": {
                          "type": "object",
                          "required": [
                            "code",
                            "time",
                            "body",
                            "headers"
                          ],
                          "properties": {
                            "body": {
                              "type": "object",
                              "required": [
                                "id"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              }
                            },
                            "code": {
                              "type": "number"
                            },
                            "time": {
                              "type": "string",
                              "minLength": 1
                            },
                            "headers": {
                              "type": "object",
                              "required": [
                                "access-control-allow-headers",
                                "access-control-allow-origin",
                                "connection",
                                "content-encoding",
                                "content-type",
                                "transfer-encoding"
                              ],
                              "properties": {
                                "connection": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "content-type": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "content-encoding": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "transfer-encoding": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "access-control-allow-origin": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "access-control-allow-headers": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              }
                            }
                          }
                        },
                        "request_id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "api_version": {
                          "type": "string",
                          "minLength": 1
                        },
                        "application_id": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": {
                        "error": false,
                        "created": 1569941241.418,
                        "request": {
                          "ip": "217.20.164.1",
                          "uri": "/document",
                          "body": {
                            "file": {
                              "mime": "application/pdf",
                              "name": "file",
                              "size": 147666,
                              "filename": "Test.pdf"
                            }
                          },
                          "host": "nginx-api-logger.signnow-dev.xyz",
                          "method": "POST",
                          "source": "PostmanRuntime/7.17.1",
                          "headers": {
                            "user-agent": "PostmanRuntime/7.17.1",
                            "authorization": "*****"
                          }
                        },
                        "user_id": "172e62b0e3a94735a989c8f5e3a451e7e8d9ba03",
                        "response": {
                          "body": {
                            "id": "37c0a7ce2b611b70f9729d8628f373f6ce72b201"
                          },
                          "code": 200,
                          "time": "3.126",
                          "headers": {
                            "connection": "close",
                            "content-type": "application/json; charset=utf-8",
                            "content-encoding": "gzip",
                            "transfer-encoding": "chunked",
                            "access-control-allow-origin": "*",
                            "access-control-allow-headers": "Authorization"
                          }
                        },
                        "request_id": "ebebd9e90c6313e32284cdfdd630eeef",
                        "api_version": "legacy",
                        "application_id": "15380b86f85e4235b16df86ae59336b1d5b06e32"
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": {
                        "error": false,
                        "created": 1569941241.418,
                        "request": {
                          "ip": "2X.XX.XXX.X",
                          "uri": "/document",
                          "body": {
                            "file": {
                              "mime": "application/pdf",
                              "name": "file",
                              "size": 147666,
                              "filename": "filename.pdf"
                            }
                          },
                          "host": "example.com",
                          "method": "POST",
                          "source": "PostmanRuntime/7.17.1",
                          "headers": {
                            "user-agent": "PostmanRuntime/7.17.1",
                            "authorization": "*****"
                          }
                        },
                        "user_id": "17XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "response": {
                          "body": {
                            "id": "37XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "code": 200,
                          "time": "3.126",
                          "headers": {
                            "connection": "close",
                            "content-type": "application/json; charset=utf-8",
                            "content-encoding": "gzip",
                            "transfer-encoding": "chunked",
                            "access-control-allow-origin": "*",
                            "access-control-allow-headers": "Authorization"
                          }
                        },
                        "request_id": "ebXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "api_version": "api_version",
                        "application_id": "15XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/paid-request-logs": {
      "get": {
        "operationId": "get-v2-paid-request-logs",
        "summary": "Get paid request logs",
        "description": "Retrieve logs of the paid requests.",
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "type": "string",
            "required": false,
            "description": "Allowed values: any positive integer starting from 1."
          },
          {
            "in": "query",
            "name": "filter:type",
            "type": "string",
            "required": false,
            "description": "Possible values: 'free_form_invite', 'invite_to_sign', 'signing_link', 'document_group_invite', 'bulk_invite'. Format: `?filters=[{\"type\":{\"type\":\"in\",\"value\":[\"free_form_invite\"]}}]`"
          },
          {
            "in": "query",
            "name": "filter:date",
            "type": "string",
            "required": false,
            "description": "Possible values: two integers in array or null. Format: `?filters=[{\"date\":{\"type\":\"between\",\"value\":[null,100]}}]`"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns paid request logs in case of successful response. Returns an error when:\n\n* User does not have an active subscription, \"code\": 0. Message: \"User does not have active subscription\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "uri": {
                            "type": "string"
                          },
                          "date": {
                            "type": "integer"
                          },
                          "rate": {
                            "type": "integer"
                          },
                          "method": {
                            "type": "string"
                          },
                          "is_seat": {
                            "type": "boolean"
                          },
                          "request_type": {
                            "type": "string"
                          },
                          "application_mode": {
                            "type": "string"
                          },
                          "request_owner_email": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {}
                              }
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "62a8f4d295b348239fcd32b6b7e1223f",
                          "uri": "/oauth2/token",
                          "date": 1572600281,
                          "rate": 1,
                          "method": "POST",
                          "is_seat": false,
                          "request_type": "signing_link",
                          "application_mode": "production",
                          "request_owner_email": "user1@example.com"
                        },
                        {
                          "id": "62b3e1dfe8274acfb65e7c12a9c544d9",
                          "uri": "/oauth2/token",
                          "date": 1572600281,
                          "rate": 1,
                          "method": "POST",
                          "is_seat": false,
                          "request_type": "free_form_invite",
                          "application_mode": "development",
                          "request_owner_email": "user2@example.com"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "62a8f4d295b348239fcd32b6b7e1223f",
                          "uri": "/oauth2/token",
                          "date": 1572600281,
                          "rate": 1,
                          "method": "POST",
                          "is_seat": false,
                          "request_type": "signing_link",
                          "application_mode": "production",
                          "request_owner_email": "user1@example.com"
                        },
                        {
                          "id": "62b3e1dfe8274acfb65e7c12a9c544d9",
                          "uri": "/oauth2/token",
                          "date": 1572600281,
                          "rate": 1,
                          "method": "POST",
                          "is_seat": false,
                          "request_type": "free_form_invite",
                          "application_mode": "development",
                          "request_owner_email": "user2@example.com"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Successful request": {
                    "value": {
                      "data": [
                        {
                          "id": "62a8f4d295b348239fcd32b6b7e1223f",
                          "uri": "/oauth2/token",
                          "date": 1572600281,
                          "rate": 1,
                          "method": "POST",
                          "is_seat": false,
                          "request_type": "signing_link",
                          "application_mode": "production",
                          "request_owner_email": "user1@email.com"
                        },
                        {
                          "id": "62b3e1dfe8274acfb65e7c12a9c544d9",
                          "uri": "/oauth2/token",
                          "date": 1572600281,
                          "rate": 1,
                          "method": "POST",
                          "is_seat": false,
                          "request_type": "free_form_invite",
                          "application_mode": "development",
                          "request_owner_email": "user2@email.com"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/paid-request-logs/export": {
      "get": {
        "operationId": "get-v2-paid-request-logs-export",
        "summary": "Export paid request logs",
        "description": "Export logs of the paid requests in an XLSX file.",
        "parameters": [
          {
            "in": "query",
            "name": "filter:date",
            "type": "string",
            "required": false,
            "description": "Possible values: two UNIX timestamps in array or null. Format: `?filters=[{\"date\":{\"type\":\"between\",\"value\":[\"2019-10-31\",\"2019-10-31\"]}}]`"
          },
          {
            "in": "query",
            "name": "filter:client_id",
            "type": "string",
            "required": false,
            "description": "Possible values: client_id of the application to get paid request logs for. Format: `?filters=[{\"client_id\":{\"type\":\"in\",\"value\":[\"{{client_id}}\"]}}]`"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns an XLSX file in case of successful response. Returns an error when:\n\n* Filter covers more than 90 days, \"code\": 0. Message: \"The `date` filter gap should be 90 days or less.\"\n* Request with invalid filter, \"code\": 0. Message: \"Wrong filters format.\"\n* User does not have an active subscription, \"code\": 0. Message: \"User does not have active subscription\"\n* Request by the user whose bearer is generated by api dashboard app, \"code\": 200. empty xlsx file",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/paid-request-monthly-totals": {
      "get": {
        "operationId": "get-v2-paid-request-monthly-totals",
        "summary": "Get monthly request totals",
        "description": "Retrieve statistics about total used monthly requests during the subscription period.",
        "responses": {
          "200": {
            "description": "Returns monthly totals in case of successful response. Returns an error when:\n\n* Request with expired subscription/user does not have subscription, \"code\": 0. Message: \"User does not have active subscription\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "properties": {
                          "201911": {
                            "type": "object",
                            "required": [
                              "invite_to_sign",
                              "bulk_invite",
                              "document_group_invite",
                              "free_form_invite",
                              "signing_link"
                            ],
                            "properties": {
                              "bulk_invite": {
                                "type": "number"
                              },
                              "signing_link": {
                                "type": "number"
                              },
                              "invite_to_sign": {
                                "type": "number"
                              },
                              "free_form_invite": {
                                "type": "number"
                              },
                              "document_group_invite": {
                                "type": "number"
                              }
                            }
                          }
                        }
                      },
                      "minItems": 1,
                      "uniqueItems": true
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "201911": {
                            "bulk_invite": 0,
                            "signing_link": 0,
                            "invite_to_sign": 0,
                            "free_form_invite": 12,
                            "document_group_invite": 0
                          }
                        },
                        {
                          "201912": {
                            "bulk_invite": 0,
                            "signing_link": 0,
                            "invite_to_sign": 0,
                            "free_form_invite": 0,
                            "document_group_invite": 0
                          }
                        }
                      ]
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": [
                        {
                          "201911": {
                            "bulk_invite": 0,
                            "signing_link": 0,
                            "invite_to_sign": 0,
                            "free_form_invite": 12,
                            "document_group_invite": 0
                          }
                        },
                        {
                          "201912": {
                            "bulk_invite": 0,
                            "signing_link": 0,
                            "invite_to_sign": 0,
                            "free_form_invite": 0,
                            "document_group_invite": 0
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/paid-request-totals": {
      "get": {
        "operationId": "get-v2-paid-request-totals",
        "summary": "Get paid requests",
        "description": "Retrieve statistics about total, used, and remaining API limits.",
        "responses": {
          "200": {
            "description": "Returns total, used, and remaining API limits in case of successful response. Returns an error when:\n\n* User doesn't have any API subscription plan, \"code\": 0. Message: \"User does not have any API Plan\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "total",
                        "used",
                        "remaining",
                        "expired",
                        "status",
                        "subscription_id"
                      ],
                      "properties": {
                        "used": {
                          "type": "number"
                        },
                        "total": {
                          "type": "number"
                        },
                        "status": {
                          "type": "string",
                          "minLength": 1
                        },
                        "expired": {
                          "type": "number"
                        },
                        "remaining": {
                          "type": "number"
                        },
                        "subscription_id": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": {
                        "used": 2,
                        "total": 10,
                        "status": "canceled",
                        "expired": 1605830400,
                        "remaining": 8,
                        "subscription_id": "5669503709575433796771245877368750673476045434115951839053246345"
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": {
                        "used": 2,
                        "total": 10,
                        "status": "canceled",
                        "expired": 1605830400,
                        "remaining": 8,
                        "subscription_id": "56XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v2/events": {
      "post": {
        "operationId": "post-api-v2-events",
        "summary": "Create event subscription",
        "description": "Allows to subscribe an external service(callback_url) to a specific event of user or document\n\n> [!NOTE]\n> For the payload your service receives for each event, see the response examples in [Get callback info by ID](/docs/callbacks-info/operations/get-v2-dashboard-event-subscriptions-subscription-id-callbacks).",
        "responses": {
          "204": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* \"attributes must not be empty\" - \"attributes\" array is missing or empty\n* \"'callback' is missing.\" -  required parameter \"callback\" is missing\n* \"Action must be equal 'callback'\" - required parameter \"action\" is missing OR value of \"action\" parameter differs from 'callback'\n* \"event must not be empty\" - required parameter \"event\" is missing or has an empty value\n* \"event must be string\" - value of the \"event\" parameter is not a string\n* \"callback must be string\" - value of the \"callback\" parameter is not a string\n* \"callback must be url\" - value of \"callback\" parameter is not an URL\n* \"Invalid integration id - {integration_id}\" - value of \"integration_id\" parameter doesn't exist in database",
            "content": {
              "application/json": {
                "examples": {
                  "event": {
                    "value": {
                      "code": 65582,
                      "message": "event must be string"
                    }
                  },
                  "action": {
                    "value": {
                      "message": "Action must be equal 'callback'"
                    }
                  },
                  "callback": {
                    "value": {
                      "code": 400,
                      "message": "attributes must not be empty"
                    }
                  },
                  "attributes": {
                    "value": {
                      "code": 400,
                      "message": "attributes must not be empty"
                    }
                  },
                  "empty event": {
                    "value": {
                      "code": 65582,
                      "message": "event must not be empty"
                    }
                  },
                  "integration": {
                    "value": {
                      "message": "Invalid integration id - {integration_id}"
                    }
                  },
                  "callback is not an url": {
                    "value": {
                      "code": 400,
                      "message": "callback must be url"
                    }
                  },
                  "callback is not a string": {
                    "value": {
                      "code": 65582,
                      "message": "callback must be string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "**Authorization =  bearer**\n\nRequest is sent with bearer token which doesn't belong user who is added to \"entity_id\" parameter\n\nOR\n\nRequest is sent with bearer of user who is not an owner of document, added to \"entity_id\" parameter\n\n\n**Authorization =  basic**\n\nCorrect request which is sent by application which is not in scope of allowed ones",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "message": "Subscription to event is not allowed"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "event",
                  "entity_id"
                ],
                "properties": {
                  "event": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "attributes": {
                    "type": "object",
                    "required": [
                      "callback"
                    ],
                    "properties": {
                      "headers": {
                        "type": "object",
                        "properties": {
                          "int_head": {
                            "type": "integer"
                          },
                          "bool_head": {
                            "type": "boolean"
                          },
                          "float_head": {
                            "type": "number"
                          },
                          "string_head": {
                            "type": "string"
                          }
                        }
                      },
                      "callback": {
                        "type": "string"
                      },
                      "use_tls_12": {
                        "type": "boolean"
                      },
                      "integration_id": {
                        "type": "string"
                      },
                      "docid_queryparam": {
                        "type": "boolean"
                      }
                    }
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": "\t\n{\n\"event\":\"document.open\",  //mandatory. Take event name from \"events\" database table\n\"entity_id\": \" \", //allowed values:\n\n//- User_unique_id - works only with events, the name of which starts from \"user.\" Ex: \"user.document.update\"\n\n//- Document_unique_id - works only with events, the name of which starts from \"document.\" Ex: \"document.open\"\n\"action\":\"callback\",\n\"attributes\": {\n\n\"callback\":\" \", //mandatory, //url of external callback url\n\"use_tls_12\" : true,  //not mandatory, If true - 1.2 tls version will be used. If false - default tls version will be used.\n\"integration_id\":\"Unique ID Integration System\",  //not mandatory, unique id of external system. It is stored in \"api_integrations\" database table\n\"docid_queryparam\": true, //if true - Json, which is sent callback will consist document id as query string parameter and as a part of \"callback_url\" parameter\n\n\"headers\":{ //not mandatory parameter. You can add any parameters to \"headers\" array\n\n\"string_head\":\"test\",\n\n\"int_head\":12,\n\n\"bool_head\":false,\n\n\"float_head\":12.24\n\n}\n\n}\n}"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-api-v2-events",
        "summary": "Get event suscriptions",
        "description": "Gets information about all subscriptions to events made with a specific application",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "event": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "created": {
                            "type": "integer"
                          },
                          "entity_id": {
                            "type": "integer"
                          },
                          "json_attributes": {
                            "type": "object",
                            "properties": {
                              "headers": {
                                "type": "object",
                                "properties": {
                                  "int_head": {
                                    "type": "integer"
                                  },
                                  "bool_head": {
                                    "type": "boolean"
                                  },
                                  "float_head": {
                                    "type": "number"
                                  },
                                  "string_head": {
                                    "type": "string"
                                  }
                                }
                              },
                              "use_tls_12": {
                                "type": "boolean"
                              },
                              "callback_url": {
                                "type": "string"
                              },
                              "integration_id": {
                                "type": "string"
                              },
                              "docid_queryparam": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              }
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "data": [
                        {
                          "id": "391a4c4a267b48c2a8e90ff802d4ae40fa051af6",
                          "event": "user.document.create",
                          "action": "callback",
                          "created": 1575381580,
                          "entity_id": 18972165,
                          "json_attributes": {
                            "headers": {
                              "int_head": 12,
                              "bool_head": false,
                              "float_head": 12.24,
                              "string_head": "test"
                            },
                            "use_tls_12": true,
                            "callback_url": "http://callback-url.com",
                            "integration_id": "b98fc00add6b43a606bc527c81eee741bf16a7d8",
                            "docid_queryparam": true
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          }
        ]
      }
    },
    "/v2/events/{event_subscription_id}": {
      "delete": {
        "operationId": "delete-event-subscription",
        "summary": "Delete event subscription (basic auth)",
        "description": "This endpoint allows API users to unsubscribe an external service (callback_url) from specific events of a user or document. This request uses Basic authorization. For the request with Bearer authorization, see [Delete event subscription (bearer auth)](/docs/manage-event-subscriptions/operations/delete-v2-event-subscriptions-subscription-id).",
        "parameters": [
          {
            "in": "path",
            "name": "event_subscription_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "204": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "**For basic auth:**\n\nApplication id which is used for request differs from application id created given event subscription.\n\n**For bearer auth:**\n\nThe event subscription was created by another user",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "message": "Unsubscription from event is not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Value of \"uniqueEventId\" doesn't exist in database",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "message": "UserEventSubscription `uniqueEventId` not found"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          }
        ]
      },
      "put": {
        "operationId": "update-event-subscription",
        "summary": "Edit event subscription (basic auth)",
        "description": "This endpoint allows API users to change an existing event subscription. This request uses Basic authorization. For the request with Bearer authorization, see [Update event subscription (bearer auth)](/docs/manage-event-subscriptions/operations/put-v2-event-subscriptions-subscription-id).",
        "parameters": [
          {
            "in": "path",
            "name": "event_subscription_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "5eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "5eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* \"attributes must not be empty\" - \"attributes\" array is missing or empty\n* \"'callback' is missing.\" -  required parameter \"callback\" is missing\n* \"Action must be equal 'callback'\" - required parameter \"action\" is missing OR value of \"action\" parameter differs from 'callback'\n* \"event must not be empty\" - required parameter \"event\" is missing or has an empty value\n* \"event must be string\" - value of the \"event\" parameter is not a string\n* \"callback must be string\" - value of the \"callback\" parameter is not a string\n* \"callback must be url\" - value of \"callback\" parameter is not an URL\n* \"Invalid integration id - {integration_id}\" - value of \"integration_id\" parameter doesn't exist in database",
            "content": {
              "application/json": {
                "examples": {
                  "event": {
                    "value": "{\n  \"code\": 65582,\n  \"message\": \"event must be string\"\n}"
                  },
                  "action": {
                    "value": {
                      "message": "Action must be equal 'callback'"
                    }
                  },
                  "callback": {
                    "value": {
                      "code": 400,
                      "message": "attributes must not be empty"
                    }
                  },
                  "attributes": {
                    "value": {
                      "code": 400,
                      "message": "attributes must not be empty"
                    }
                  },
                  "empty event": {
                    "value": {
                      "code": 65582,
                      "message": "event must not be empty"
                    }
                  },
                  "integration": {
                    "value": {
                      "message": "Invalid integration id - {integration_id}"
                    }
                  },
                  "callback is not an url": {
                    "value": {
                      "code": 400,
                      "message": "callback must be url"
                    }
                  },
                  "callback is not a string": {
                    "value": {
                      "code": 65582,
                      "message": "callback must be string"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "attributes": {
                    "type": "object",
                    "properties": {
                      "headers": {
                        "type": "object",
                        "properties": {
                          "int_head": {
                            "type": "integer"
                          },
                          "bool_head": {
                            "type": "boolean"
                          },
                          "float_head": {
                            "type": "number"
                          },
                          "string_head": {
                            "type": "string"
                          }
                        }
                      },
                      "callback": {
                        "type": "string"
                      },
                      "use_tls_12": {
                        "type": "boolean"
                      },
                      "integration_id": {
                        "type": "string"
                      },
                      "docid_queryparam": {
                        "type": "boolean"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/event-subscriptions/{subscription_id}/callbacks": {
      "get": {
        "operationId": "get-v2-dashboard-event-history",
        "summary": "Get list of callbacks by event subscription",
        "description": "Allows users to get the list of webhook events (events history) by the subscription ID.\n\nThe results can be filtered and sorted. If the `sort` parameter is not indicated, the results are sorted by the `start_time` in descending order. The `filters` and `sort` parameters need URL-encoding. \n",
        "parameters": [
          {
            "in": "path",
            "name": "subscription_id",
            "type": "string",
            "required": true,
            "description": "ID of the subscription"
          },
          {
            "in": "query",
            "name": "sort:end_time",
            "type": "string",
            "required": false,
            "description": "Sort results by the end time. Possible values: asc, desc. Format: `?sort[end_time]=desc`"
          },
          {
            "in": "query",
            "name": "sort:start_time",
            "type": "string",
            "required": false,
            "description": "Sort results by the start time. Possible values: asc, desc. Format: `?sort[start_time]=desc`"
          },
          {
            "in": "query",
            "name": "sort:code",
            "type": "string",
            "required": false,
            "description": "Sort results by the response code. Possible values: asc, desc. Format: `?sort[code]=desc`"
          },
          {
            "in": "query",
            "name": "filters:initiator_id",
            "type": "string",
            "required": false,
            "description": "Search for a string in initiator IDs. Format: `?filters=[{\"_OR\":[{\"initiator_id \":{\"type\":\"like\",\"value\":\"21a28b47\"}}]}]`"
          },
          {
            "in": "query",
            "name": "filters:date",
            "type": "string",
            "required": false,
            "description": "Filter results by the timestamps of start time. Format: `?filters=[{\"date\":{\"type\":\"between\",\"value\":[1580719773,1580720509]}}]`"
          },
          {
            "in": "query",
            "name": "filters:code",
            "type": "string",
            "required": false,
            "description": "Filter results by the response codes. Format: `?filters=[{\"code\":{\"type\": \"between\", \"value\":[199,299]}}]`"
          },
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "200": {
            "description": "Correct request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Correct request": {
                    "value": {
                      "data": [
                        {
                          "id": 12345,
                          "duration": 0.0125,
                          "entity_id": "b9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "event_name": "document.delete",
                          "entity_type": "document",
                          "callback_url": "http://example.com/handle?hash=XXXXXXXX&Param={\"docId\":\"b9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                          "request_method": "post",
                          "request_content": {
                            "meta": {
                              "event": "document.delete",
                              "timestamp": 1661430933,
                              "environment": "https://example.com",
                              "access_token": "********",
                              "callback_url": "http://example.com/handle?hash=XXXXXXXX&Param={\"docId\":\"b9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}"
                            },
                            "content": {
                              "user_id": "b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_id": "b9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "initiator_id": "b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_name": "Sample document",
                              "initiator_email": "initiator_email@email.com"
                            }
                          },
                          "request_headers": {
                            "int_head": 12,
                            "bool_head": false,
                            "float_head": 12.24,
                            "string_head": "string_head"
                          },
                          "application_name": "Sample application",
                          "request_end_time": 1661430936,
                          "response_content": "{\"message\":\"Okay\",\"timestamp\":\"2022-08-25 12:35:36.486\"}",
                          "request_start_time": 1661430936,
                          "response_status_code": 200
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Token issue\n* Incorrect filter format (each filter must contain `type` and `value` fields)\n* Incorrect filter expression (must be a string)\n* Incorrect `code` or `date` filter expression (must be `\"type\": \"between\"`)\n* Incorrect `initiator_id` filter expression (must be `\"type\": \"like\"`)\n* Incorrect `code` or `date` filter value (must be an array of 2 integers)\n* Incorrect `initiator_id` filter value (must be a string)\n\n\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization error": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Incorrect filter format": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006011,
                          "message": "Incorrect filter format, filter must have `type` and `value` fields."
                        }
                      ]
                    }
                  },
                  "Incorrect code filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006015,
                          "message": "The `code` filter value must be of type array with 2 integer."
                        }
                      ]
                    }
                  },
                  "Incorrect date filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006018,
                          "message": "The `date` filter value must be of type array with 2 integer."
                        }
                      ]
                    }
                  },
                  "Incorrect filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006012,
                          "message": "Incorrect filter format, filter `type` must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect code filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006013,
                          "message": "The `code` filter expression must be equal to `between`."
                        }
                      ]
                    }
                  },
                  "Incorrect date filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006016,
                          "message": "The `date` filter expression must be equal to `between`."
                        }
                      ]
                    }
                  },
                  "Incorrect initiator_id filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006020,
                          "message": "The `initiator_id` filter value must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect initiator_id filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006019,
                          "message": "The `initiator_id` filter expression must be equal to `like`."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Request with token of another application",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Request with token of another application": {
                    "value": {
                      "errors": [
                        {
                          "message": "Access to the subscription data is not allowed"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with non-existing subscription_id\n* Request with invalid subscription_id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  " Invalid subscription_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/dashboard/event-subscriptions/23@/callbacks/12345"
                    }
                  },
                  "Non-existing subscription_id": {
                    "value": {
                      "errors": [
                        {
                          "message": "UserEventSubscription `94XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/event-subscriptions/{subscription_id}/callbacks/{callback_id}": {
      "get": {
        "operationId": "get-v2-dashboard-event-subscriptions-subscription-id-callbacks",
        "summary": "Get callback info by ID",
        "description": "This endpoint allows API users to get detailed info about one webhook by its ID.",
        "parameters": [
          {
            "in": "path",
            "name": "callback_id",
            "type": "string",
            "required": true,
            "description": "ID of the webhook."
          },
          {
            "in": "path",
            "name": "subscription_id",
            "type": "string",
            "required": true,
            "description": "ID of the subscription."
          }
        ],
        "responses": {
          "200": {
            "description": "Depending on the type of event, the `initiator_id` parameter can be placed differently in response body (into the `request_content` object):\n* only in the `meta` object if `event_name` is:\n  * `document.update`\n  * `document.complete`\n  * `document.open`\n  * `template.copy`\n  * `document.fieldinvite.create` etc.\n  * `document_group.update`\n  * `document_group.invite.create` etc.;\n   \n* in the `meta` and in the `content` objects if `event_name` is:\n  * `document.delete`\n  * `document_group.delete`\n  * `document_group.open`\n  * `user.document_group.open`\n  * `document_group.invite.declined`\n  * `user.document_group.invite.declined`\n  * `document_group.complete`\n  * `user.document_group.complete`\n  \nThe type of event also affects the composition of the parameters of the `request_content` object. \n\n<details>\n  <summary>See the callback payload for each event</summary>\n<br>  \n<table>\n<tr>\n<td> Event </td> <td> \"request_content\" object </td>\n</tr>\n<tr>\n<td> <code>document.delete</code> <br> <code>user.document.delete</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document.delete\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"docId\\\":\\\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"document_id\": \"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"document_name\": \"Sample Document\",\n      \"user_id\": \"b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"initiator_email\": \"signer@example.com\"\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>document.update</code> <br> <code>user.document.update</code> <br> <code>user.document.create</code> <br> <code>user.document.complete</code> <br> <code>document.complete</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document.update\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"docId\\\":\\\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"document_id\": \"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"document_name\": \"Sample Document\",\n      \"user_id\": \"b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>document.open</code> <br> <code>user.document.open</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document.open\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"docId\\\":\\\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"document_id\": \"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"document_name\": \"Sample Document\",\n      \"user_id\": \"b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"viewer_user_unique_id\": \"h7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>template.copy</code> <br> <code>user.template.copy</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"template.copy\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"docId\\\":\\\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"document_id\": \"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"template_id\": \"g6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"user_id\": \"b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"viewer_user_unique_id\": \"h7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>user.document.fieldinvite.create</code> <br> <code>user.document.fieldinvite.decline</code> <br> <code>user.document.fieldinvite.delete</code> <br> <code>user.document.fieldinvite.signed</code> <br> <code>user.document.fieldinvite.sent</code> <br> <code>user.document.freeform.create</code> <br> <code>user.document.freeform.signed</code> <br> <code>document.fieldinvite.create</code> <br> <code>document.fieldinvite.decline</code> <br> <code>document.fieldinvite.delete</code> <br> <code>document.fieldinvite.signed</code> <br> <code>document.fieldinvite.sent</code> <br> <code>document.freeform.create</code> <br> <code>document.freeform.signed</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document.fieldinvite.create\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"docId\\\":\\\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"document_id\": \"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"invite_id\": \"e5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"signer\": \"signer@example.com\",\n      \"status\": \"pending\"\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>user.document.fieldinvite.reassign</code> <br> <code>document.fieldinvite.reassign</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document.fieldinvite.reassign\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"docId\\\":\\\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"document_id\": \"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"invite_id\": \"e5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"signer\": \"signer@example.com\",\n      \"old_invite_unique_id\": \"i8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>user.document.fieldinvite.replace</code> <br> <code>document.fieldinvite.replace</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document.fieldinvite.replace\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"docId\\\":\\\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"document_id\": \"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"invite_id\": \"e5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"signer\": \"signer@example.com\",\n      \"old_invite_unique_id\": \"i8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"group_invite\": true\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>user.document_group.create</code> <br> <code>user.document_group.update</code> <br> <code>document_group.update</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document_group.update\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"groupId\\\":\\\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"group_id\": \"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"group_name\": \"Sample Document Group\",\n      \"user_id\": \"b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>user.document_group.complete</code> <br> <code>document_group.complete</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document_group.complete\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"groupId\\\":\\\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"group_id\": \"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"group_name\": \"Sample Document Group\",\n      \"user_id\": \"b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"initiator_email\": \"signer@example.com\",\n      \"completed_at\": 1748521868,\n      \"documents\": [\n         {\n            \"document_id\": \"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n            \"document_name\": \"Sample Document\",\n            \"status\": \"completed\"\n         }\n      ],\n      \"invite_steps\": [\n         {\n            \"order\": 1,\n            \"status\": \"completed\",\n            \"signers\": [\n               {\n                  \"email\": \"signer@example.com\",\n                  \"role_name\": \"Signer 1\",\n                  \"action\": \"sign\",\n                  \"status\": \"fulfilled\",\n                  \"document_id\": \"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n                  \"signed_at\": 1748521800\n               }\n            ]\n         }\n      ]\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>document_group.delete</code> <br> <code>user.document_group.delete</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document_group.delete\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"groupId\\\":\\\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"group_id\": \"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"group_name\": \"Sample Document Group\",\n      \"user_id\": \"b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"initiator_email\": \"signer@example.com\"\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>document_group.open</code> <br> <code>user.document_group.open</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document_group.open\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"groupId\\\":\\\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"group_id\": \"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"group_name\": \"Sample Document Group\",\n      \"user_id\": \"b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"initiator_email\": \"signer@example.com\"\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>user.document_group.invite.create</code> <br> <code>user.document_group.invite.resend</code> <br> <code>user.document_group.invite.update</code> <br> <code>user.document_group.invite.cancel</code> <br> <code>document_group.invite.create</code> <br> <code>document_group.invite.resend</code> <br> <code>document_group.invite.update</code> <br> <code>document_group.invite.cancel</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document_group.invite.create\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"groupId\\\":\\\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"group_id\": \"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"group_invite_id\": \"d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"status\": \"pending\"\n   }\n}\n```\n\n</td>\n</tr>\n<tr>\n<td> <code>document_group.invite.declined</code> <br> <code>user.document_group.invite.declined</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"document_group.invite.declined\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"groupId\\\":\\\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"group_id\": \"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"group_invite_id\": \"d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"status\": \"canceled\",\n      \"initiator_id\": \"c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"initiator_email\": \"signer@example.com\"\n   }\n}\n```\n\n> **Note:** For SMS invitees, `initiator_email` contains a system-generated address in the format `sms_signer_{phone_number}@no.reply`.\n\n</td>\n</tr>\n<tr>\n<td> <code>user.document_group.invite.expired</code> </td>\n<td>\n\n\n```json\n\n{\n   \"meta\": {\n      \"timestamp\": 1748521868,\n      \"event\": \"user.document_group.invite.expired\",\n      \"environment\": \"https://api.signnow.com\",\n      \"initiator_id\": null,\n      \"callback_url\": \"https://example.com/webhook?Param={\\\"groupId\\\":\\\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\"}\",\n      \"access_token\": \"********\",\n      \"metadata\": []\n   },\n   \"content\": {\n      \"group_id\": \"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"group_name\": \"Sample Document Group\",\n      \"group_invite_id\": \"d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n      \"step\": 2,\n      \"signers\": [\n         \"signer@example.com\",\n         \"signer2@example.com\"\n      ]\n   }\n}\n```\n\n</td>\n</tr>\n</table>\n\n</details>\n\n<br>\n\n`Param` will be added to `callback_url` parameter, if `docid_queryparam` is `true`:\n\n```\n\"callback_url\":\"{{callback_url}}?Param={\\\"groupId\\\":\\\"{{document_unique_id}}\\\"}\n\n```\nSee [`docid_queryparam`](/docs/manage-event-subscriptions/operations/create-event-subscription-2) details\n\n`access_token` will be added only if `delete_access_token` will be `false`.\n\n<br>\n\nSee [`delete_access_token`](/docs/manage-event-subscriptions/operations/create-event-subscription-2) details.\n\n\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique ID of the callback record."
                        },
                        "duration": {
                          "type": "number",
                          "description": "Duration of the callback request in seconds."
                        },
                        "entity_id": {
                          "type": "string",
                          "description": "ID of the entity (document, document group, or template) that triggered the event."
                        },
                        "event_name": {
                          "type": "string",
                          "description": "Name of the triggered event (for example, `document.delete`)."
                        },
                        "entity_type": {
                          "type": "string",
                          "description": "Type of entity. Possible values: `user`, `document`, `document_group`."
                        },
                        "callback_url": {
                          "type": "string",
                          "description": "URL to which the webhook payload was sent."
                        },
                        "request_method": {
                          "type": "string",
                          "description": "HTTP method used for the callback request. Always `post`."
                        },
                        "request_content": {
                          "type": "object",
                          "properties": {
                            "meta": {
                              "type": "object",
                              "properties": {
                                "event": {
                                  "type": "string",
                                  "description": "Name of the triggered event."
                                },
                                "metadata": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  },
                                  "description": "Custom metadata attached to the entity at the time the event was triggered."
                                },
                                "timestamp": {
                                  "type": "integer",
                                  "description": "Unix timestamp of when the event occurred."
                                },
                                "environment": {
                                  "type": "string",
                                  "description": "API environment URL."
                                },
                                "access_token": {
                                  "type": "string",
                                  "description": "Bearer access token. Present only if `delete_access_token` is `false`."
                                },
                                "callback_url": {
                                  "type": "string",
                                  "description": "Callback URL, including any `docid_queryparam` query parameters if configured."
                                },
                                "initiator_id": {
                                  "type": "string",
                                  "description": "ID of the user who triggered the event."
                                }
                              }
                            },
                            "content": {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "string",
                                  "description": "Status of the invite."
                                },
                                "group_id": {
                                  "type": "string",
                                  "description": "ID of the document group."
                                },
                                "initiator_id": {
                                  "type": "string",
                                  "description": "ID of the user who triggered the event."
                                },
                                "group_invite_id": {
                                  "type": "string",
                                  "description": "ID of the document group invite."
                                },
                                "initiator_email": {
                                  "type": "string",
                                  "description": "Email of the user who triggered the event. For SMS invitees, this is a system-generated address in the format `sms_signer_{phone_number}@no.reply`."
                                }
                              },
                              "description": "Event-specific payload. The fields vary depending on the event type. The parameters listed here correspond to the `document_group.invite.declined` and `user.document_group.invite.declined` events. See the response description for per-event payload examples."
                            }
                          },
                          "description": "Full payload sent to the callback URL."
                        },
                        "request_headers": {
                          "type": "object",
                          "properties": {
                            "int_head": {
                              "type": "integer"
                            },
                            "bool_head": {
                              "type": "boolean"
                            },
                            "float_head": {
                              "type": "number"
                            },
                            "string_head": {
                              "type": "string"
                            }
                          },
                          "description": "HTTP headers sent with the callback request."
                        },
                        "application_name": {
                          "type": "string",
                          "description": "Name of the application that owns the subscription."
                        },
                        "request_end_time": {
                          "type": "integer",
                          "description": "Unix timestamp of when the request completed."
                        },
                        "response_content": {
                          "type": "string",
                          "description": "Response body returned by the callback URL."
                        },
                        "request_start_time": {
                          "type": "integer",
                          "description": "Unix timestamp of when the request was initiated."
                        },
                        "response_status_code": {
                          "type": "integer",
                          "description": "HTTP status code returned by the callback URL."
                        },
                        "event_subscription_id": {
                          "type": "string",
                          "description": "ID of the event subscription that triggered this callback."
                        },
                        "event_subscription_active": {
                          "type": "boolean",
                          "description": "Indicates whether the event subscription is currently active."
                        },
                        "event_subscription_owner_email": {
                          "type": "string",
                          "description": "Email of the user who owns the event subscription."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "id": "j9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "duration": 0.0109,
                        "entity_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "event_name": "document_group.invite.declined",
                        "entity_type": "document_group",
                        "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                        "request_method": "post",
                        "request_content": {
                          "meta": {
                            "event": "document_group.invite.declined",
                            "metadata": [],
                            "timestamp": 1748521868,
                            "environment": "https://api.signnow.com",
                            "access_token": "********",
                            "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                            "initiator_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "content": {
                            "status": "canceled",
                            "group_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "initiator_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "group_invite_id": "d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "initiator_email": "signer@example.com"
                          }
                        },
                        "request_headers": {
                          "Content-Type": "application/json"
                        },
                        "application_name": "Sample Application",
                        "request_end_time": 1748521868,
                        "response_content": "{\"message\":\"Okay\",\"timestamp\":\"2025-05-29 10:24:28\"}",
                        "request_start_time": 1748521868,
                        "response_status_code": 200,
                        "event_subscription_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "event_subscription_active": true,
                        "event_subscription_owner_email": "owner@example.com"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "id": "j9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "duration": 0.0109,
                        "entity_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "event_name": "document_group.invite.declined",
                        "entity_type": "document_group",
                        "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                        "request_method": "post",
                        "request_content": {
                          "meta": {
                            "event": "document_group.invite.declined",
                            "metadata": [],
                            "timestamp": 1748521868,
                            "environment": "https://api.signnow.com",
                            "access_token": "********",
                            "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                            "initiator_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "content": {
                            "status": "canceled",
                            "group_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "initiator_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "group_invite_id": "d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "initiator_email": "signer@example.com"
                          }
                        },
                        "request_headers": {
                          "Content-Type": "application/json"
                        },
                        "application_name": "Sample Application",
                        "request_end_time": 1748521868,
                        "response_content": "{\"message\":\"Okay\",\"timestamp\":\"2025-05-29 10:24:28\"}",
                        "request_start_time": 1748521868,
                        "response_status_code": 200,
                        "event_subscription_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "event_subscription_active": true,
                        "event_subscription_owner_email": "owner@example.com"
                      }
                    }
                  },
                  "document_group.invite.declined": {
                    "value": {
                      "data": {
                        "id": "j9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "duration": 0.0109,
                        "entity_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "event_name": "document_group.invite.declined",
                        "entity_type": "document_group",
                        "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                        "request_method": "post",
                        "request_content": {
                          "meta": {
                            "event": "document_group.invite.declined",
                            "metadata": [],
                            "timestamp": 1748521868,
                            "environment": "https://api.signnow.com",
                            "access_token": "********",
                            "callback_url": "https://example.com/webhook?Param={\"groupId\":\"a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                            "initiator_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "content": {
                            "status": "canceled",
                            "group_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "initiator_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "group_invite_id": "d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "initiator_email": "signer@example.com"
                          }
                        },
                        "request_headers": {
                          "Content-Type": "application/json"
                        },
                        "application_name": "Sample Application",
                        "request_end_time": 1748521868,
                        "response_content": "{\"message\":\"Okay\",\"timestamp\":\"2025-05-29 10:24:28\"}",
                        "request_start_time": 1748521868,
                        "response_status_code": 200,
                        "event_subscription_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "event_subscription_active": true,
                        "event_subscription_owner_email": "owner@example.com"
                      }
                    }
                  },
                  "`initiator_id` only in `meta` object": {
                    "value": {
                      "data": {
                        "id": "j9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "duration": 0.0109,
                        "entity_id": "f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "event_name": "document.update",
                        "entity_type": "document",
                        "callback_url": "https://example.com/webhook?Param={\"docId\":\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                        "request_method": "post",
                        "request_content": {
                          "meta": {
                            "event": "document.update",
                            "metadata": [],
                            "timestamp": 1748521868,
                            "environment": "https://api.signnow.com",
                            "access_token": "********",
                            "callback_url": "https://example.com/webhook?Param={\"docId\":\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                            "initiator_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "content": {
                            "user_id": "b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "document_id": "f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "document_name": "Sample Document"
                          }
                        },
                        "request_headers": {
                          "Content-Type": "application/json"
                        },
                        "application_name": "Sample Application",
                        "request_end_time": 1748521868,
                        "response_content": "{\"message\":\"Okay\",\"timestamp\":\"2025-05-29 10:24:28\"}",
                        "request_start_time": 1748521868,
                        "response_status_code": 200,
                        "event_subscription_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "event_subscription_active": true,
                        "event_subscription_owner_email": "owner@example.com"
                      }
                    }
                  },
                  "`initiator_id` in `meta` and `content` objects": {
                    "value": {
                      "data": {
                        "id": "j9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "duration": 0.0109,
                        "entity_id": "f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "event_name": "document.delete",
                        "entity_type": "document",
                        "callback_url": "https://example.com/webhook?Param={\"docId\":\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                        "request_method": "post",
                        "request_content": {
                          "meta": {
                            "event": "document.delete",
                            "metadata": [],
                            "timestamp": 1748521868,
                            "environment": "https://api.signnow.com",
                            "access_token": "********",
                            "callback_url": "https://example.com/webhook?Param={\"docId\":\"f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}",
                            "initiator_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "content": {
                            "user_id": "b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "document_id": "f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "initiator_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "document_name": "Sample Document",
                            "initiator_email": "signer@example.com"
                          }
                        },
                        "request_headers": {
                          "Content-Type": "application/json"
                        },
                        "application_name": "Sample Application",
                        "request_end_time": 1748521868,
                        "response_content": "{\"message\":\"Okay\",\"timestamp\":\"2025-05-29 10:24:28\"}",
                        "request_start_time": 1748521868,
                        "response_status_code": 200,
                        "event_subscription_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "event_subscription_active": true,
                        "event_subscription_owner_email": "owner@example.com"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with incorrect token\n* Request with valid bearer token but application deactivated/deleted\n* Request authenticated with Basic token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Authorization error": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Request with token of another application",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Request with token of another application": {
                    "value": {
                      "errors": [
                        {
                          "message": "Access to the subscription data is not allowed"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with non-existing subscription_id\n* Request if callback_id not found\n* Request with invalid subscription_id\n* Request with invalid callback_id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Invalid callback_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/dashboard/event-subscriptions/c4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/callbacks/23a@"
                    }
                  },
                  "Callback_id not found": {
                    "value": {
                      "errors": [
                        {
                          "message": "CallbackResponseLog `12345` not found"
                        }
                      ]
                    }
                  },
                  " Invalid subscription_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/dashboard/event-subscriptions/23@/callbacks/12345"
                    }
                  },
                  "Non-existing subscription_id": {
                    "value": {
                      "errors": [
                        {
                          "message": "UserEventSubscription `94XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/event-subscriptions/{subscription_id}/callbacks/{callback_id}/resend": {
      "post": {
        "operationId": "post-v2-event-subscriptions-subscription-id-callbacks-callback-id-resend",
        "summary": "Resend callback",
        "description": "This endpoint allows users to resend a callback.",
        "parameters": [
          {
            "in": "path",
            "name": "callback_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "subscription_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "message": "Webhook resend successful."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\r\n* Either `callback_url` is still unavailable or it returns an error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Error persists": {
                    "value": {
                      "code": 15006043,
                      "message": "Failed to send callback. Check the current callback info endpoint for details."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* User is trying to resend a successful callback.\r\n* Thus subscription is deactivated.\r\n* Either access token or subscription ID belongs to another user.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect user": {
                    "value": {
                      "code": 15006004,
                      "message": "Event subscription is not allowed."
                    }
                  },
                  "Deactivated subscription": {
                    "value": {
                      "code": 15006041,
                      "message": "Event subscription has to be active to resend a webhook."
                    }
                  },
                  "Resending successful callback": {
                    "value": {
                      "code": 15006042,
                      "message": "Successful webhook resending is not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* `subscription_id` does not exist\r\n* `callback_id` does not exist\r\n* Incorrect `subscription_id`\r\n* Incorrect `callback_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect callback_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: /v2/event-subscriptions/1234567890123456789012345678901234567890/callbacks/null/resend "
                    }
                  },
                  "Incorrect subscription_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: /v2/event-subscriptions/null/callbacks/1234567890123456789012345678901234567890/resend "
                    }
                  },
                  "callback_id does not exist": {
                    "value": {
                      "code": 15006006,
                      "message": "CallbackResponseLog `218111` not found"
                    }
                  },
                  "subscription_id does not exist": {
                    "value": {
                      "code": 15006003,
                      "message": "Event subscription not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/event-subscriptions/callbacks": {
      "get": {
        "operationId": "get-v2-event-subscriptions-callbacks",
        "summary": "Get list of callbacks",
        "description": "Allows users to get the list of all webhook events (events history).\n\nThe results can be filtered and sorted. If the `sort` parameter is not indicated, the results are sorted by `start_time` in descending order.",
        "parameters": [
          {
            "in": "query",
            "name": "sort:end_time",
            "type": "string",
            "required": false,
            "description": "Sort results by the end time. Possible values: asc, desc. Format: `?sort[end_time]=desc`"
          },
          {
            "in": "query",
            "name": "sort:start_time",
            "type": "string",
            "required": false,
            "description": "Sort results by the start type. Possible values: asc, desc. Format: `?sort[start_time]=desc`"
          },
          {
            "in": "query",
            "name": "sort:code",
            "type": "string",
            "required": false,
            "description": "Sort results by the response code. Possible values: asc, desc. Format: `?sort[code]=desc`"
          },
          {
            "in": "query",
            "name": "sort:event",
            "type": "string",
            "required": false,
            "description": "Sort results by the specific type of event (from A to Z). Possible values: asc, desc. Format: `?sort[event]=desc`"
          },
          {
            "in": "query",
            "name": "sort:application",
            "type": "string",
            "required": false,
            "description": "Sort results by the application name (from A to Z). Possible values: asc, desc. Format: `?sort[application]=desc`"
          },
          {
            "in": "query",
            "name": "filters:entity_id, callback_url, initiator_id",
            "type": "string",
            "required": false,
            "description": "Search for a string in entity IDs, callback URLs, and initiator IDs. Format: `?filters=[{\"_OR\":[{\"entity_id\":{\"type\":\"like\",\"value\":\"21a28b47\"}},{\"callback_url\":{\"type\":\"like\",\"value\":\"21a28b47\"}},{\"initiator_id\":{\"type\":\"like\",\"value\":\"21a28b47\"}}]}]`"
          },
          {
            "in": "query",
            "name": "filters:date",
            "type": "string",
            "required": false,
            "description": "Filter results by the timestamps. Format: `?filters=[{\"date\":{\"type\":\"between\",\"value\":[1580719773,1580720509]}}]`"
          },
          {
            "in": "query",
            "name": "filters:code",
            "type": "string",
            "required": false,
            "description": "Filter results by the response codes. Format: `?filters=[{\"code\":{\"type\": \"between\", \"value\":[199,299]}}]`"
          },
          {
            "in": "query",
            "name": "filters:event",
            "type": "string",
            "required": false,
            "description": "Filter results by the specific type of event. Format: `?filters=[{\"event\":{\"type\": \"in\", \"value\":[\"document.create\", \"document.update\"]}}]`"
          },
          {
            "in": "query",
            "name": "filters:event_type",
            "type": "string",
            "required": false,
            "description": "Filter results by the event type. Possible values: 'user', 'document', 'document_group'. Format: `?filters=[{\"event_type\":{\"type\": \"in\", \"value\":[\"user\", \"document\", \"document_group\"]}}]`"
          },
          {
            "in": "query",
            "name": "filters:application",
            "type": "string",
            "required": false,
            "description": "Filter results by the application. Format: `?filters=[{\"application\":{\"type\": \"in\", \"value\":[\"applicationUniqueId1\", \"applicationUniqueId2\"]}}]`"
          }
        ],
        "responses": {
          "200": {
            "description": "Correct request.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect filter format (each filter must contain type and value fields)\n* Incorrect filter expression (must be a string)\n* Incorrect `application`, `event`, or `event_type` filter expression (must be `\"type\": \"in\"`)\n* Incorrect `code` or `date` filter expression (must be `\"type\": \"between\"`)\n* Incorrect `entity_id`, `callback_url`, or `initiator_id` filter expression (must be `\"type\": \"like\"`)\n* Incorrect `application`, `event_type`, or `event` filter value (must be an array of strings)\n* Incorrect `application` filter value item (must be 40 symbols long or shorter and can contain only lowercase latin letters and digits)\n* Incorrect `event_type` filter value item (allowed values are `document`, `document_group`, `user`, and `template`)\n* Incorrect `event` filter value item (allowed values are listed [here](/docs/guides-webhooks#entity-events))\n* Incorrect `code` or `date` filter value (must be an array of 2 integers)\n* Incorrect `entity_id`, `callback_url`, or `initiator_id` filter value (must be a string)\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect filter format": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006011,
                          "message": "Invalid filter format, filter must have `type` and `value` fields."
                        }
                      ]
                    }
                  },
                  "Incorrect code filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006015,
                          "message": "The `code` filter value must be of type array with 2 integer."
                        }
                      ]
                    }
                  },
                  "Incorrect date filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006018,
                          "message": "The `date` filter value must be of type array with 2 integer."
                        }
                      ]
                    }
                  },
                  "Incorrect filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006012,
                          "message": "Invalid filter format, filter `type` must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect event filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006033,
                          "message": "The `event` filter value must be an array of strings."
                        }
                      ]
                    }
                  },
                  "Incorrect code filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006013,
                          "message": "The `code` filter expression must be equal to `between`."
                        }
                      ]
                    }
                  },
                  "Incorrect date filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006016,
                          "message": "The `date` filter expression must be equal to `between`."
                        }
                      ]
                    }
                  },
                  "Incorrect entity_id filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006020,
                          "message": "The `entity_id` filter value must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect event filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006031,
                          "message": "The `event` filter expression must be equal to `in`"
                        }
                      ]
                    }
                  },
                  "Incorrect event filter value item": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006034,
                          "message": "The `event` must be one of valid events."
                        }
                      ]
                    }
                  },
                  "Incorrect event_type filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006029,
                          "message": "The `event_type` filter value must be an array of strings."
                        }
                      ]
                    }
                  },
                  "Incorrect application filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006023,
                          "message": "The `application` filter value should be an array of strings."
                        }
                      ]
                    }
                  },
                  "Incorrect callback_url filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006025,
                          "message": "The `callback_url` filter value must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect initiator_id filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006027,
                          "message": "The `initiator_id` filter value must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect entity_id filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006019,
                          "message": "The `entity_id` filter expression must be equal to `like`."
                        }
                      ]
                    }
                  },
                  "Incorrect event_type filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006037,
                          "message": "The `event_type` filter expression must be equal to `in`."
                        }
                      ]
                    }
                  },
                  "Incorrect event_type filter value item": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006030,
                          "message": "The `event_type` must be one of 'document', 'document_group', 'user', 'template'."
                        }
                      ]
                    }
                  },
                  "Incorrect application filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006021,
                          "message": "The `application` filter expression must be equal to `in`."
                        }
                      ]
                    }
                  },
                  "Incorrect application filter value item": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006036,
                          "message": "The `application` filter item length must be 40 and it should contain only characters in [a-z0-9]."
                        }
                      ]
                    }
                  },
                  "Incorrect callback_url filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006024,
                          "message": "The `callback_url` filter expression must be equal to `like`."
                        }
                      ]
                    }
                  },
                  "Incorrect initiator_id filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006026,
                          "message": "The `initiator_id` filter expression must be equal to `like`."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/v2/brands/{brand_id}/resources/email-cc-invite": {
      "put": {
        "operationId": "put-v2-brands-brand-id-resources-email-cc-invite",
        "summary": "Brand invite CC email",
        "description": "This endpoint allows users to add and edit branding for CC emails that are sent with invite emails.\r\n\r\nBranding for invite CC emails is available for the following invite types:\r\n\r\n* [Document field invite](/docs/document-field-invite/operations/post-field-invite)\r\n* [Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)\r\n* [Document freeform invite](/docs/document-field-invite/operations/post-field-invite)\r\n* [Document group freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom text indicating sender."
                      },
                      "subject": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email subject text. Placeholder `{sender_email}` is available."
                      },
                      "body_header": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email header text. Placeholder `{sender_email}` is available."
                      },
                      "ccd_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom CC message text. Placeholder `{cc_emails}` that lists other recipients of CC emails is available."
                      },
                      "body_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email body text. Placeholders `{document_name}`, `{sender_email}`, and `{signer_email}` are available."
                      },
                      "footer_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email footer message."
                      }
                    },
                    "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/guides-branding#language-branding)."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "en": {
                      "from": "From user ",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message EN"
                    },
                    "es": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "fr": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "en": {
                      "from": "Sender Name",
                      "subject": "{sender_email} has CC'd you on an invitation",
                      "body_header": "{sender_email} has CC'd you on an invitation",
                      "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                      "body_message": "{sender_email} has invited {signer_email} to review and sign: {document_name}.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "es": {
                      "from": "Nombre del remitente",
                      "subject": "{sender_email} te ha puesto en copia en una invitación",
                      "body_header": "{sender_email} te ha puesto en copia en una invitación",
                      "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                      "body_message": "{sender_email} ha invitado a {signer_email} a revisar y firmar: {document_name}.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "fr": {
                      "from": "Nom de l'expéditeur",
                      "subject": "{sender_email} vous a mis en copie d'une invitation",
                      "body_header": "{sender_email} vous a mis en copie d'une invitation",
                      "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                      "body_message": "{sender_email} a invité {signer_email} à examiner et signer: {document_name}.",
                      "footer_message": "Unique Solutions Inc."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-cc-invite",
        "summary": "Get invite CC email branding",
        "description": "This endpoint allows users to view branding for CC emails that are sent with invite emails.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "en": {
                          "from": "Sender Name",
                          "subject": "{sender_email} has CC'd you on an invitation",
                          "body_header": "{sender_email} has CC'd you on an invitation",
                          "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                          "body_message": "{sender_email} has invited {signer_email} to review and sign: {document_name}.",
                          "footer_message": "Unique Solutions Inc."
                        },
                        "es": {
                          "from": "Nombre del remitente",
                          "subject": "{sender_email} te ha puesto en copia en una invitación",
                          "body_header": "{sender_email} te ha puesto en copia en una invitación",
                          "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                          "body_message": "{sender_email} ha invitado a {signer_email} a revisar y firmar: {document_name}.",
                          "footer_message": "Unique Solutions Inc."
                        },
                        "fr": {
                          "from": "Nom de l'expéditeur",
                          "subject": "{sender_email} vous a mis en copie d'une invitation",
                          "body_header": "{sender_email} vous a mis en copie d'une invitation",
                          "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                          "body_message": "{sender_email} a invité {signer_email} à examiner et signer: {document_name}.",
                          "footer_message": "Unique Solutions Inc."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-cc-invite",
        "summary": "Delete invite CC email branding",
        "description": "This endpoint allows users to remove branding for CC emails that are sent with invite emails.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-cc-invite-reassign": {
      "put": {
        "operationId": "put-v2-brands-brand-id-resources-email-cc-invite-reassign",
        "summary": "Brand reassign CC email",
        "description": "This endpoint allows users to add and edit branding for CC emails that are sent with reassign emails.\r\n\r\nBranding for reassign CC emails is available for the following invite types:\r\n\r\n* [Document field invite](/docs/document-field-invite/operations/post-field-invite)\r\n* [Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom text indicating sender."
                      },
                      "subject": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email subject text. Placeholder `{sender_email}` is available."
                      },
                      "body_header": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email header text."
                      },
                      "ccd_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom CC message text. Placeholder `{cc_emails}` that lists other recipients of CC emails is available."
                      },
                      "body_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email body text. Placeholders `{document_name}`, `{sender_email}`, `{old_signer_email}`, and `{new_signer_email}` are available."
                      },
                      "footer_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email footer message."
                      }
                    },
                    "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/guides-branding#language-branding)."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "en": {
                      "from": "From user ",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message EN"
                    },
                    "es": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "fr": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "en": {
                      "from": "Sender Name",
                      "subject": "{sender_email} has CC'd you in an invitation",
                      "body_header": "An invitation you were CC'd in was forwarded to another recipient",
                      "ccd_message": "The following people were cc'd:\n{cc_emails}",
                      "body_message": "{old_signer_email} forwarded their invitation to {new_signer_email} to fill out and sign {document_name} from {sender_email}.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "es": {
                      "from": "Nombre del remitente",
                      "subject": "{sender_email} te ha puesto en CC en una invitación",
                      "body_header": "Una invitación en la que estabas en CC fue reenviada a otro destinatario",
                      "ccd_message": "Se copió a las siguientes personas en el envío:\n{cc_emails}",
                      "body_message": "{old_signer_email} ha reenviado su invitación a {new_signer_email} para completar y firmar {document_name} de parte de {sender_email}.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "fr": {
                      "from": "Nom de l'expéditeur",
                      "subject": "{sender_email} vous a mis en CC dans une invitation",
                      "body_header": "Une invitation dans laquelle vous étiez en CC a été transférée à un autre destinataire.",
                      "ccd_message": "Les personnes suivantes étaient en cc:\n{cc_emails}",
                      "body_message": "{old_signer_email} a transféré son invitation à {new_signer_email} pour remplir et signer {document_name} de la part de {sender_email}.",
                      "footer_message": "Unique Solutions Inc."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-cc-invite-reassign",
        "summary": "Get reassign CC email branding",
        "description": "This endpoint allows users to view branding for CC emails that are sent with reassign emails.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "en": {
                          "from": "Sender Name",
                          "subject": "{sender_email} has CC'd you in an invitation",
                          "body_header": "An invitation you were CC'd in was forwarded to another recipient",
                          "ccd_message": "The following people were cc'd:\n{cc_emails}",
                          "body_message": "{old_signer_email} forwarded their invitation to {new_signer_email} to fill out and sign {document_name} from {sender_email}.",
                          "footer_message": "Unique Solutions Inc."
                        },
                        "es": {
                          "from": "Nombre del remitente",
                          "subject": "{sender_email} te ha puesto en CC en una invitación",
                          "body_header": "Una invitación en la que estabas en CC fue reenviada a otro destinatario",
                          "ccd_message": "Se copió a las siguientes personas en el envío:\n{cc_emails}",
                          "body_message": "{old_signer_email} ha reenviado su invitación a {new_signer_email} para completar y firmar {document_name} de parte de {sender_email}.",
                          "footer_message": "Unique Solutions Inc."
                        },
                        "fr": {
                          "from": "Nom de l'expéditeur",
                          "subject": "{sender_email} vous a mis en CC dans une invitation",
                          "body_header": "Une invitation dans laquelle vous étiez en CC a été transférée à un autre destinataire.",
                          "ccd_message": "Les personnes suivantes étaient en cc:\n{cc_emails}",
                          "body_message": "{old_signer_email} a transféré son invitation à {new_signer_email} pour remplir et signer {document_name} de la part de {sender_email}.",
                          "footer_message": "Unique Solutions Inc."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-cc-invite-reassign",
        "summary": "Delete reassign CC email branding",
        "description": "This endpoint allows users to remove branding for CC emails that are sent with reassign emails.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-cc-invite-signed": {
      "put": {
        "operationId": "put-v2-brands-brand-id-resources-email-cc-invite-signed",
        "summary": "Brand freeform signed CC email",
        "description": "This endpoint allows users to add and edit branding for CC emails that are sent when a freeform invite is signed. If an invite has multiple signers, the CC email is sent every time a document or document group is signed. \r\n\r\nBranding for freeform signed CC emails is available for the following invite types:\r\n\r\n* [Document freeform invite](/docs/document-field-invite/operations/post-field-invite)\r\n* [Document group freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom text indicating sender."
                      },
                      "subject": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email subject text. Placeholder `{signer_email}` is available."
                      },
                      "body_header": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email header text. Placeholder `{signer_email}` is available."
                      },
                      "ccd_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom CC message text. Placeholder `{cc_emails}` that lists other recipients of CC emails is available."
                      },
                      "body_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email body text. Placeholders `{signer_email}`, `{document_name}`, and `{sender_email}` are available."
                      },
                      "footer_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email footer message."
                      }
                    },
                    "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/guides-branding#language-branding)."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "en": {
                      "from": "From user ",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message EN"
                    },
                    "es": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "fr": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "en": {
                      "from": "Sender Name",
                      "subject": "{signer_email} Has Signed Document",
                      "body_header": "{signer_email} has completed an invitation you were CC’d on",
                      "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                      "body_message": "{signer_email} has completed and signed {document_name} sent by {sender_email}.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "es": {
                      "from": "Nombre del remitente",
                      "subject": "{signer_email} ha firmado el documento",
                      "body_header": "{signer_email} ha completado una invitación en la que estabas en CC.",
                      "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                      "body_message": "{signer_email} ha completado y firmado {document_name} enviado por {sender_email}.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "fr": {
                      "from": "Nom de l'expéditeur",
                      "subject": "{signer_email} a signé le document",
                      "body_header": "{signer_email} a complété une invitation dans laquelle vous étiez en CC",
                      "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                      "body_message": "{signer_email} a rempli et signé {document_name} envoyé par {sender_email}.",
                      "footer_message": "Unique Solutions Inc."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-cc-invite-signed",
        "summary": "Get freeform signed CC email branding",
        "description": "This endpoint allows users to view branding for CC emails that are sent when a freeform invite is signed. If an invite has multiple signers, the CC email is sent every time a document or document group is signed. ",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "en": {
                          "from": "Sender Name",
                          "subject": "{signer_email} Has Signed Document",
                          "body_header": "{signer_email} has completed an invitation you were CC’d on",
                          "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                          "body_message": "{signer_email} has completed and signed {document_name} sent by {sender_email}.",
                          "footer_message": "Unique Solutions Inc."
                        },
                        "es": {
                          "from": "Nombre del remitente",
                          "subject": "{signer_email} ha firmado el documento",
                          "body_header": "{signer_email} ha completado una invitación en la que estabas en CC.",
                          "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                          "body_message": "{signer_email} ha completado y firmado {document_name} enviado por {sender_email}.",
                          "footer_message": "Unique Solutions Inc."
                        },
                        "fr": {
                          "from": "Nom de l'expéditeur",
                          "subject": "{signer_email} a signé le document",
                          "body_header": "{signer_email} a complété une invitation dans laquelle vous étiez en CC",
                          "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                          "body_message": "{signer_email} a rempli et signé {document_name} envoyé par {sender_email}.",
                          "footer_message": "Unique Solutions Inc."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-cc-invite-signed",
        "summary": "Delete freeform signed CC email branding",
        "description": "This endpoint allows users to remove branding for CC emails that are sent when a freeform invite is signed. If an invite has multiple signers, the CC email is sent every time a document or document group is signed. ",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-cc-invite-completed": {
      "put": {
        "operationId": "put-v2-brands-brand-id-resources-email-cc-invite-completed",
        "summary": "Brand invite completed CC email",
        "description": "This endpoint allows users to add and edit branding for CC emails that are sent when an invite to sign is completed.\r\n\r\nBranding for invite completed CC emails is available for the following invite types:\r\n\r\n* [Document field invite](/docs/document-field-invite/operations/post-field-invite)\r\n* [Document group field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group)\r\n* [Document freeform invite](/docs/document-field-invite/operations/post-field-invite)\r\n* [Document group freeform invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites)",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom text indicating sender."
                      },
                      "subject": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email subject text. Placeholder `{document_name}` is available."
                      },
                      "body_header": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email header text. Placeholder `{document_name}` is available."
                      },
                      "ccd_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom CC message text. Placeholder `{cc_emails}` that lists other recipients of CC emails is available."
                      },
                      "body_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email body text. Placeholders `{document_name}` and `{sender_email}` are available."
                      },
                      "footer_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email footer message."
                      }
                    },
                    "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/guides-branding#language-branding)."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "en": {
                      "from": "From user ",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message EN"
                    },
                    "es": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "fr": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "en": {
                      "from": "Sender Name",
                      "subject": "{document_name} Has Been Completed",
                      "body_header": "All recipients have completed an invitation you were CC'd in",
                      "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                      "body_message": "All recipients have filled out and signed {document_name} sent by {sender_email}.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "es": {
                      "from": "Nombre del remitente",
                      "subject": "{document_name} se ha completado",
                      "body_header": "Todos los destinatarios han completado una invitación en la que estabas en copia",
                      "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                      "body_message": "Todos los destinatarios han completado y firmado {document_name} enviado por {sender_email}.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "fr": {
                      "from": "Nom de l'expéditeur",
                      "subject": "{document_name} a été finalisé",
                      "body_header": "Tous les destinataires ont complété une invitation à laquelle vous avez été en copie",
                      "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                      "body_message": "Tous les destinataires ont rempli et signé {document_name} envoyé par {sender_email}.",
                      "footer_message": "Unique Solutions Inc."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-cc-invite-completed",
        "summary": "Get invite completed CC email branding",
        "description": "This endpoint allows users to view branding for CC emails that are sent when an invite to sign is completed.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "en": {
                          "from": "Sender Name",
                          "subject": "{document_name} Has Been Completed",
                          "body_header": "All recipients have completed an invitation you were CC'd in",
                          "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                          "body_message": "All recipients have filled out and signed {document_name} sent by {sender_email}.",
                          "footer_message": "Unique Solutions Inc."
                        },
                        "es": {
                          "from": "Nombre del remitente",
                          "subject": "{document_name} se ha completado",
                          "body_header": "Todos los destinatarios han completado una invitación en la que estabas en copia",
                          "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                          "body_message": "Todos los destinatarios han completado y firmado {document_name} enviado por {sender_email}.",
                          "footer_message": "Unique Solutions Inc."
                        },
                        "fr": {
                          "from": "Nom de l'expéditeur",
                          "subject": "{document_name} a été finalisé",
                          "body_header": "Tous les destinataires ont complété une invitation à laquelle vous avez été en copie",
                          "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                          "body_message": "Tous les destinataires ont rempli et signé {document_name} envoyé par {sender_email}.",
                          "footer_message": "Unique Solutions Inc."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-cc-invite-completed",
        "summary": "Delete invite completed CC email branding",
        "description": "This endpoint allows users to remove branding for CC emails that are sent when an invite to sign is completed.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-cc-invite-step-completed": {
      "put": {
        "operationId": "put-v2-brands-brand-id-resources-email-cc-invite-step-completed",
        "summary": "Brand step completed CC email",
        "description": "This endpoint allows users to add and edit branding for CC emails that are sent when a step of an invite is completed.\r\n\r\nBranding for step completed CC emails is available for [document field invites](/docs/document-field-invite/operations/post-field-invite).",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom text indicating sender."
                      },
                      "subject": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email subject text. Placeholder `{document_name}` is available."
                      },
                      "body_header": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email header text. Placeholder `{step_number}` is available."
                      },
                      "ccd_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom CC message text. Placeholder `{cc_emails}` that lists other recipients of CC emails is available."
                      },
                      "body_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email body text. Placeholders `{step_number}` and `{document_name}` are available."
                      },
                      "footer_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email footer message."
                      }
                    },
                    "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/guides-branding#language-branding)."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "en": {
                      "from": "From user ",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message EN"
                    },
                    "es": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "fr": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "en": {
                      "from": "Sender Name",
                      "subject": "Step completion email for document: {document_name}",
                      "body_header": "All recipients have completed step {step_number} of an invitation you were CC’d in",
                      "ccd_message": "The following people were cc’d:\n{cc_emails}",
                      "body_message": "This email is sent on the completion of step: {step_number} via signNow.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "es": {
                      "from": "Nombre del remitente",
                      "subject": "Correo electrónico de finalización del paso para el documento: {document_name}",
                      "body_header": "Todos los destinatarios han completado el paso {step_number} de una invitación en la que fuiste incluido en CC",
                      "ccd_message": "Se copió a las siguientes personas en el envío:\n{cc_emails}",
                      "body_message": "Este correo electrónico se envía al completar el paso: {step_number} a través de signNow.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "fr": {
                      "from": "Nom de l'expéditeur",
                      "subject": "E-mail de fin d`étape pour le document: {document_name}",
                      "body_header": "Tous les destinataires ont complété l'étape {step_number} d'une invitation dans laquelle vous avez été mis en copie",
                      "ccd_message": "Les personnes suivantes étaient en cc:\n{cc_emails}",
                      "body_message": "Cet e-mail est envoyé à la fin de l`étape: {step_number} via signNow.",
                      "footer_message": "Unique Solutions Inc."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-cc-invite-step-completed",
        "summary": "Get step completed CC email branding",
        "description": "This endpoint allows users to view branding for CC emails that are sent when a step of an invite is completed.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "en": {
                          "from": "Sender Name",
                          "subject": "Step completion email for document: {document_name}",
                          "body_header": "All recipients have completed step {step_number} of an invitation you were CC’d in",
                          "ccd_message": "The following people were cc’d:\n{cc_emails}",
                          "body_message": "This email is sent on the completion of step: {step_number} via signNow.",
                          "footer_message": "Unique Solutions Inc."
                        },
                        "es": {
                          "from": "Nombre del remitente",
                          "subject": "Correo electrónico de finalización del paso para el documento: {document_name}",
                          "body_header": "Todos los destinatarios han completado el paso {step_number} de una invitación en la que fuiste incluido en CC",
                          "ccd_message": "Se copió a las siguientes personas en el envío:\n{cc_emails}",
                          "body_message": "Este correo electrónico se envía al completar el paso: {step_number} a través de signNow.",
                          "footer_message": "Unique Solutions Inc."
                        },
                        "fr": {
                          "from": "Nom de l'expéditeur",
                          "subject": "E-mail de fin d`étape pour le document: {document_name}",
                          "body_header": "Tous les destinataires ont complété l'étape {step_number} d'une invitation dans laquelle vous avez été mis en copie",
                          "ccd_message": "Les personnes suivantes étaient en cc:\n{cc_emails}",
                          "body_message": "Cet e-mail est envoyé à la fin de l`étape: {step_number} via signNow.",
                          "footer_message": "Unique Solutions Inc."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-cc-invite-step-completed",
        "summary": "Delete step completed CC email branding",
        "description": "This endpoint allows users to remove branding for CC emails that are sent when a step of an invite is completed.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/crm/contacts/{contact_id}/groups": {
      "get": {
        "operationId": "get-v2-crm-contacts-contact-id-groups",
        "summary": "Get contact groups list by contact",
        "description": "Allows users to retrieve the list of contact groups stored in the CRM.",
        "parameters": [
          {
            "in": "path",
            "name": "contact_id",
            "type": "string",
            "required": true,
            "description": "Contact ID."
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "string",
            "default": "15",
            "required": false,
            "description": "How many search items to view per page. Allowed values: positive integers from 1 to 100."
          },
          {
            "in": "query",
            "name": "page",
            "type": "string",
            "required": false,
            "description": "How many pages to fit the results in. Allowed values: any positive integer starting from 1."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": [
                        {
                          "id": "8fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "My group",
                          "created_at": 1672242682,
                          "updated_at": 1672242682
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 10,
                          "links": {
                            "next": "https://example.com/v2/crm/contacts/contact_id/groups?per_page=10&page=3",
                            "previous": "https://example.com/v2/crm/contacts/contact_id/groups?per_page=10&page=1"
                          },
                          "total": 50,
                          "per_page": 15,
                          "total_pages": 5,
                          "current_page": 2
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of these cases: invalid token of user, expired token of user, empty header, authorization = null, authorization without value\n* Request with incorrect `per_page` parameter type\n* Request with `per_page` less than 0\n* Request with `per_page` more than 100\n* Request with incorrect `page` parameter type\n* Request with `page` less than 0\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Incorrect `page` parameter type": {
                    "value": {
                      "code": 27400904,
                      "message": "Query parameter `page` must be a digit"
                    }
                  },
                  "Request with `page` less than 0": {
                    "value": {
                      "code": 27400905,
                      "message": "Query parameter `page` must be more than 0"
                    }
                  },
                  "Incorrect `per_page` parameter type": {
                    "value": {
                      "code": 27400901,
                      "message": "Query parameter `per_page` must be a digit"
                    }
                  },
                  "Request with `per_page` less than 0": {
                    "value": {
                      "code": 27400902,
                      "message": "Query parameter `per_page` must be more than 0"
                    }
                  },
                  "Request with `per_page` more than 100": {
                    "value": {
                      "code": 27400903,
                      "message": "Query parameter `per_page` must be less than or equal 100"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Contact does not exist or does not belong to authorized user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Contact does not exist ": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact `contactUniqueId` not found"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/crm/groups": {
      "post": {
        "operationId": "post-v2-crm-groups",
        "summary": "Create contact group",
        "description": "This endpoint allows users to create the contacts group from your CRM contacts.",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Created": {
                    "value": {
                      "data": {
                        "id": "29XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of these cases:\n\ninvalid token of user\nexpired token of user\nempty header\nauthorization = null\nauthorization without value\n\n* Request without group name or with empty group name\n* Group name must be a string\n* Group name contains invalid characters\n* Group name length exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Group name length exceeded": {
                    "value": {
                      "code": 27405005,
                      "message": "Group name length must be not more than 40 characters"
                    }
                  },
                  "Group name must be a string": {
                    "value": {
                      "code": 27405003,
                      "message": "Group name must be a string"
                    }
                  },
                  "Group name contains invalid characters": {
                    "value": {
                      "code": 27405004,
                      "message": "Group name contains invalid characters"
                    }
                  },
                  "Request without group name or empty group name": {
                    "value": {
                      "code": 27405002,
                      "message": "Group name is required"
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Not allowed to use this HTTP method": {
                    "value": {
                      "message": "The GET method is not supported for this route. Supported methods: DELETE."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Group name already exists",
            "content": {
              "application/json": {
                "examples": {
                  "Group name already exists": {
                    "value": {
                      "code": 27405006,
                      "message": "Group with such a name already exists"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The new contact group name."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "name": "My client`s group"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "name": "My client`s group"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-crm-groups",
        "summary": "Get the list of groups",
        "description": "Allows users to retrieve the list of groups.",
        "parameters": [
          {
            "in": "query",
            "name": "filters: id",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"id\":{\"type\":\"in\",\"value\": [\"01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"]}}]`"
          },
          {
            "in": "query",
            "name": "filters: name",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"name\":{\"type\":\"like\",\"value\":\"My group\"}}]`"
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "string",
            "required": false,
            "description": "How many search items to view per page. Allowed values: positive integers from 1 to 100."
          },
          {
            "in": "query",
            "name": "page",
            "type": "string",
            "required": false,
            "description": "How many pages to fit the results in. Allowed values: any positive integer starting from 1."
          },
          {
            "in": "header",
            "name": "Accept",
            "type": "string",
            "default": "application/json",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": {
                      "data": [
                        {
                          "id": "8fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "My group",
                          "created_at": 1672242682,
                          "updated_at": 1672242682
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 10,
                          "links": {
                            "next": "https://example.com/v2/crm/groups?per_page=10&page=3",
                            "previous": "https://example.com/v2/crm/groups?per_page=10&page=1"
                          },
                          "total": 50,
                          "per_page": 15,
                          "total_pages": 5,
                          "current_page": 2
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of these cases: invalid token of user, expired token of user, empty header, authorization = null, authorization without value\n* Request with incorrect `per_page` parameter type\n* Request with `per_page` less than 0\n* Request with `per_page` more than 100\n* Request with incorrect `page` parameter type\n* Request with `page` less than 0\n* Request without `filter` parameters value or type\n* Request with invalid type of `filter` parameter type\n* Request with invalid expression of `email` filter parameter type\n* Request with invalid type of `email` filter parameter value\n* Request with invalid expression of `name` filter parameter type\n* Request with invalid type of `name` filter parameter value\n* Request with invalid filter format\n* Request with invalid `sort` value\n* Request with invalid `sort` order value\n* Request with invalid `sort` format (expected array)\n* Request with invalid `sort` format (more than one field for sorting)\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Invalid sort value": {
                    "value": {
                      "code": 27400906,
                      "message": "The `sort` key must be one of the following values:` created_at`, `full_name`, `company_name`, `email`, `last_interaction_at`"
                    }
                  },
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Invalid filter format": {
                    "value": {
                      "code": 0,
                      "message": "Wrong filters format."
                    }
                  },
                  "Incorrect `per_page` type": {
                    "value": {
                      "code": 27400901,
                      "message": "Query parameter `per_page` must be a digit"
                    }
                  },
                  "Invalid `sort` order value": {
                    "value": {
                      "code": 27400907,
                      "message": "The `sort` value must be one of the following values: `asc, desc`"
                    }
                  },
                  "Incorrect `page` parameter type": {
                    "value": {
                      "code": 27400904,
                      "message": "Query parameter `page` must be a digit"
                    }
                  },
                  "Request with `page` less than 0": {
                    "value": {
                      "code": 27400905,
                      "message": "Query parameter `page` must be more than 0"
                    }
                  },
                  "Invalid data type of `type` filter": {
                    "value": {
                      "code": 27400052,
                      "message": "Invalid filter format, filter `type` should be string"
                    }
                  },
                  "Invalid type of email filter value": {
                    "value": {
                      "code": 27400054,
                      "message": "The `email` filter value should be of type string"
                    }
                  },
                  "Invalid type of `name` filter value": {
                    "value": {
                      "code": 27400056,
                      "message": "The `first_name` filter value should be of type string"
                    }
                  },
                  "Request with `per_page` less than 0": {
                    "value": {
                      "code": 27400902,
                      "message": "Query parameter `per_page` must be more than 0"
                    }
                  },
                  "Invalid sort format (expected array)": {
                    "value": {
                      "code": 0,
                      "message": "Expected array, but got {{ type }}: {{ value }}"
                    }
                  },
                  "Request with `per_page` more than 100": {
                    "value": {
                      "code": 27400903,
                      "message": "Query parameter `per_page` must be less than or equal 100"
                    }
                  },
                  "Invalid expression of email filter type": {
                    "value": {
                      "code": 27400053,
                      "message": "The `email` filter expression should be `=` or `like`"
                    }
                  },
                  "Invalid expression of `name` filter type": {
                    "value": {
                      "code": 27400055,
                      "message": "The `first_name` filter expression should be equal to `like`"
                    }
                  },
                  "Invalid `sort` format (more than one field)": {
                    "value": {
                      "code": 27400908,
                      "message": "The `sort` must contain only one field for sorting"
                    }
                  },
                  "Request without `filter` parameters value or type": {
                    "value": {
                      "code": 27400051,
                      "message": "Invalid filter format, filter must have `type` and `value` fields"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Contact does not exist or does not belong to authorized user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Contact does not exist or does not belong to authorized user": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact `contactUniqueId` not found"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/crm/groups/{group_id}": {
      "get": {
        "operationId": "get-v2-crm-groups-group-id",
        "summary": "Get contact group",
        "description": "Allows users to retrieve properties of the contact group.",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "type": "string",
            "required": true,
            "description": "ID of the contact group."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": [
                        {
                          "id": "8fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "My group",
                          "created_at": 1672242682,
                          "updated_at": 1672242682,
                          "contacts_count": 5
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request with any of cases:\n\ninvalid token of user\nexpired token of user\nempty header\nauthorization = null\nauthorization without value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Contacts group not found\n* Contacts group does not belong to authorized user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Contacts group not found": {
                    "value": {
                      "code": 27405001,
                      "message": "Group not found"
                    }
                  },
                  "Contacts group does not belong to authorized user": {
                    "value": {
                      "code": 27405001,
                      "message": "Group not found"
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Not allowed to use this HTTP method": {
                    "value": {
                      "message": "The DELETE method is not supported for this route. Supported methods: GET."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "put-v2-crm-groups-group-id",
        "summary": "Update contact group",
        "description": "Allows users to rename the contact group.",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "type": "string",
            "required": true,
            "description": "ID of the contact group."
          }
        ],
        "responses": {
          "204": {
            "description": "Contacts group has been updated successfully"
          },
          "400": {
            "description": "* Request with any of these cases:\n\ninvalid token of user\nexpired token of user\nempty header\nauthorization = null\nauthorization without value\n\n* Request without group name or with empty group name\n* Group name must be a string\n* Group name contains invalid characters\n* Group name length exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Group name length exceeded": {
                    "value": {
                      "code": 27405005,
                      "message": "Group name length must be not more than 40 characters"
                    }
                  },
                  "Group name must be a string": {
                    "value": {
                      "code": 27405003,
                      "message": "Group name must be a string"
                    }
                  },
                  "Group name contains invalid characters": {
                    "value": {
                      "code": 27405004,
                      "message": "Group name contains invalid characters"
                    }
                  },
                  "Request without group name or empty group name": {
                    "value": {
                      "code": 27405002,
                      "message": "Group name is required"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Contacts group not found or does not belong to authorized user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Contacts group not found ": {
                    "value": {
                      "code": 27405001,
                      "message": "Group not found"
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Not allowed to use this HTTP method": {
                    "value": {
                      "message": "The GET method is not supported for this route. Supported methods: DELETE."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Group name already exists",
            "content": {
              "application/json": {
                "examples": {
                  "Group name already exists": {
                    "value": {
                      "code": 27405006,
                      "message": "Group with such a name already exists"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The updated group name."
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-v2-crm-groups-group-id",
        "summary": "Remove contact group",
        "description": "Allows users to delete the contact group.",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "type": "string",
            "required": true,
            "description": "ID of the contact group."
          }
        ],
        "responses": {
          "204": {
            "description": "\t\nContacts group has been deleted successfully"
          },
          "400": {
            "description": "Request with any of cases:\n\ninvalid token of user\nexpired token of user\nempty header\nauthorization = null\nauthorization without value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Contacts group not found\n* Contacts group does not belong to authorized user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Contacts group not found": {
                    "value": {
                      "code": 27405001,
                      "message": "Group not found"
                    }
                  },
                  "Contacts group does not belong to authorized user": {
                    "value": {
                      "code": 27405001,
                      "message": "Group not found"
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Not allowed to use this HTTP method": {
                    "value": {
                      "message": "The DELETE method is not supported for this route. Supported methods: GET."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/crm/groups/{group_id}/contacts": {
      "get": {
        "operationId": "get-v2-crm-groups-group-id-contacts",
        "summary": "Get contacts from group",
        "description": "Allows users to retrieve contacts from the group.",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "type": "string",
            "required": true,
            "description": "ID of the group"
          },
          {
            "in": "query",
            "name": "sort",
            "type": "string",
            "required": false,
            "description": "Format: `sort[last_interaction_at]=\"desc\"`. Allowed values: `asc` for ascending order, `desc` for descending order."
          },
          {
            "in": "query",
            "name": "filter:owners",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"owners\":{\"type\":IN,\"value\":[\"e6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"]}}]"
          },
          {
            "in": "query",
            "name": "filters:shared_with_me",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"shared_with_me\":{\"type\":\"=\",\"value\":\"true\"}}]`"
          },
          {
            "in": "query",
            "name": "combined filter with `OR` for email `first_name` and `last_name` and `full_name`",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"_OR\":[{\"email\":{\"type\":\"like\",\"value\":\"%value%\"}},{\"first_name\":{\"type\":\"like\",\"value\":\"%value%\"}},{\"last_name\":{\"type\":\"like\",\"value\":\"%value%\"}},{\"full_name\":{\"type\":\"like\",\"value\":\"%value%\"}}]}]`"
          },
          {
            "in": "query",
            "name": "combined filter with `OR`",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"_OR\":[{\"interaction\":{\"type\":\">\",\"value\":1652965774}},{\"company\":{\"type\":\"=\",\"value\":\"Best company\"}}]}]`"
          },
          {
            "in": "query",
            "name": "combined filter",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"interaction\":{\"type\":\">\",\"value\":1652918152}, \"company\":{\"type\":\"=\",\"value\":\"Best company\"}}]`"
          },
          {
            "in": "query",
            "name": "filters:interaction_before",
            "type": "string",
            "required": false,
            "description": "Filter by interaction before. Format: `filters=[{\"interaction\":{\"type\":\"<\",\"value\":1652918152}}]`"
          },
          {
            "in": "query",
            "name": "filters:interaction_after",
            "type": "string",
            "required": false,
            "description": "Filter by interaction after. Format: `filters=[{\"interaction\":{\"type\":\">\",\"value\":1652918152}}]`"
          },
          {
            "in": "query",
            "name": "filters:not_company",
            "type": "string",
            "required": false,
            "description": "Filter out users without a company. Format: `filters=[{\"company\":{\"type\":\"!=\",\"value\":\"Best company\"}}]`"
          },
          {
            "in": "query",
            "name": "filters:company",
            "type": "string",
            "required": false,
            "description": "Filter by company. Format: `filters=[{\"company\":{\"type\":\"=\",\"value\":\"Best company\"}}]`"
          },
          {
            "in": "query",
            "name": "filters:full_name",
            "type": "string",
            "required": false,
            "description": "Filter by contact last name. Format: `filters=[{\"full_name\":{\"type\":\"like\",\"value\":\"value\"}}]`"
          },
          {
            "in": "query",
            "name": "filters:last_name",
            "type": "string",
            "required": false,
            "description": "Filter by contact last name. Format: `filters=[{\"last_name\":{\"type\":\"like\",\"value\":\"value\"}}]`"
          },
          {
            "in": "query",
            "name": "filters:first_name",
            "type": "string",
            "required": false,
            "description": "Filter by contact first name. Format: `filters=[{\"first_name\":{\"type\":\"like\",\"value\":\"value\"}}]`"
          },
          {
            "in": "query",
            "name": "filters:email ",
            "type": "string",
            "required": false,
            "description": "Filter by email. Format: `filters=[{\"email\":{\"type\":\"=\",\"value\":\"crm@email.com\"}}]`"
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "string",
            "required": false,
            "description": "How many search items to view per page. Allowed values: positive integers from 1 to 100."
          },
          {
            "in": "query",
            "name": "page",
            "type": "string",
            "required": false,
            "description": "How many pages to fit the results in. Allowed values: any positive integer starting from 1."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "8fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "meta": {
                            "created_at": 1649926419,
                            "updated_at": 1649926419,
                            "interacted_at": 1649926419
                          },
                          "email": "crm@email.com",
                          "phone": {
                            "number": "1234567890",
                            "country_code": "US"
                          },
                          "address": {
                            "city": "New York",
                            "state": "New York",
                            "street": "5 Avenue",
                            "country": "US",
                            "zip_code": "0",
                            "apartment": "Penthouse"
                          },
                          "company": {
                            "name": "SignNow",
                            "job_title": "PHP Developer"
                          },
                          "last_name": "Doe",
                          "first_name": "John",
                          "description": "Best client"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 10,
                          "links": {
                            "next": "https://https://example.com/v2/crm/groups/group_id/contacts?per_page=10&page=3",
                            "previous": "https://https://example.com/v2/crm/groups/group_id/contacts?per_page=10&page=1"
                          },
                          "total": 50,
                          "per_page": 15,
                          "total_pages": 5,
                          "current_page": 2
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of these cases: invalid token of user, expired token of user, empty header, authorization = null, authorization without value\n* Request with incorrect `per_page` parameter type\n* Request with `per_page` less than 0\n* Request with `per_page` more than 100\n* Request with incorrect `page` parameter type\n* Request with `page` less than 0\n* Request without `filter` parameters value or type\n* Request with invalid type of `filter` parameter type\n* Request with invalid expression of `email` filter parameter type\n* Request with invalid type of `email` filter parameter value\n* Request with invalid expression of `first_name` filter parameter type\n* Request with invalid type of `first_name` filter parameter value\n* Request with invalid expression of `last_name` filter parameter type\n* Request with invalid type of `last_name` filter parameter value\n* Request with invalid expression of `full_name` filter parameter type\n* Request with invalid type of `full_name` filter parameter value\n* Request with invalid expression of `company` filter parameter type\n* Request with invalid type of `company` filter parameter value\n* Request with invalid expression of `interaction` filter parameter type\n* Request with invalid type of `interaction` filter parameter value\n* Request with invalid filter format\n* Request with invalid `sort` value\n* Request with invalid `sort` order value\n* Request with invalid `sort` format (expected array)\n* Request with invalid `sort` format (more than one field for sorting)\n* Request with invalid expression of `shared_with_me` filter parameter type\n* Request with invalid type of `shared_with_me` filter parameter type\n* Request with invalid type of `shared_with_me` filter parameter value\n* Request with invalid expression of `owners` filter parameter type\n* Request with invalid type of `owners` filter parameter type\n* Request with invalid type of `owners` filter parameter value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Invalid sort value": {
                    "value": {
                      "code": 27400906,
                      "message": "The `sort` key must be one of the following values:` created_at`, `full_name`, `company_name`, `email`, `last_interaction_at`"
                    }
                  },
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Invalid filter format": {
                    "value": {
                      "code": 0,
                      "message": "Wrong filters format."
                    }
                  },
                  "Invalid `sort` order value": {
                    "value": {
                      "code": 27400907,
                      "message": "The `sort` value must be one of the following values: `asc, desc`"
                    }
                  },
                  "Incorrect `page` parameter type": {
                    "value": {
                      "code": 27400904,
                      "message": "Query parameter `page` must be a digit"
                    }
                  },
                  "Request with `page` less than 0": {
                    "value": {
                      "code": 27400905,
                      "message": "Query parameter `page` must be more than 0"
                    }
                  },
                  "Invalid type of email filter value": {
                    "value": {
                      "code": 27400054,
                      "message": "The `email` filter value should be of type string"
                    }
                  },
                  "Invalid type of owners filter type": {
                    "value": {
                      "code": 274001152,
                      "message": "The `owners` filter value should be of type string"
                    }
                  },
                  "Incorrect `per_page` parameter type": {
                    "value": {
                      "code": 27400901,
                      "message": "Query parameter `per_page` must be a digit"
                    }
                  },
                  "Invalid type of owners filter value": {
                    "value": {
                      "code": 27400153,
                      "message": "The `owners` contains invalid unique_id (\"123\")"
                    }
                  },
                  "Request with `per_page` less than 0": {
                    "value": {
                      "code": 27400902,
                      "message": "Query parameter `per_page` must be more than 0"
                    }
                  },
                  "Invalid sort format (expected array)": {
                    "value": {
                      "code": 0,
                      "message": "Expected array, but got {{ type }}: {{ value }}"
                    }
                  },
                  "Invalid type of company filter value": {
                    "value": {
                      "code": 27400062,
                      "message": "The `company` filter value should be of type string"
                    }
                  },
                  "Request with `per_page` more than 100": {
                    "value": {
                      "code": 27400903,
                      "message": "Query parameter `per_page` must be less than or equal 100"
                    }
                  },
                  "Invalid data type of the `type` filter": {
                    "value": {
                      "code": 27400052,
                      "message": "Invalid filter format, filter `type` should be string"
                    }
                  },
                  "Invalid expression of email filter type": {
                    "value": {
                      "code": 27400053,
                      "message": "The `email` filter expression should be `=` or `like`"
                    }
                  },
                  "Invalid type of `full_name` filter value": {
                    "value": {
                      "code": 27400060,
                      "message": "The `full_name` filter value should be of type string"
                    }
                  },
                  "Invalid type of `last_name` filter value": {
                    "value": {
                      "code": 27400058,
                      "message": "The `last_name` filter value should be of type string"
                    }
                  },
                  "Invalid type of interaction filter value": {
                    "value": {
                      "code": 27400064,
                      "message": "The `interaction` filter value should be of type integer and contain not more than 10 characters"
                    }
                  },
                  "Invalid expression of company filter type": {
                    "value": {
                      "code": 27400061,
                      "message": "The `company` filter expression should be one of `=`, `!=`, `like"
                    }
                  },
                  "Invalid type of `first_name` filter value": {
                    "value": {
                      "code": 27400056,
                      "message": "The `first_name` filter value should be of type string"
                    }
                  },
                  "Invalid expression of `owners` filter type": {
                    "value": {
                      "code": 27400151,
                      "message": "The `owners` filter expression should be `in`"
                    }
                  },
                  "Invalid type of shared_with_me filter type": {
                    "value": {
                      "code": 27400066,
                      "message": "The `shared_with_me` filter value should be of type string"
                    }
                  },
                  "Invalid `sort` format (more than one field)": {
                    "value": {
                      "code": 27400908,
                      "message": "The `sort` must contain only one field for sorting"
                    }
                  },
                  "Invalid expression of full_name filter type": {
                    "value": {
                      "code": 27400059,
                      "message": "The `full_name` filter expression should be equal to `like`"
                    }
                  },
                  "Invalid type of shared_with_me filter value": {
                    "value": {
                      "code": 27400067,
                      "message": "The `shared_with_me` filter value should be `true` or `false`"
                    }
                  },
                  "Invalid expression of `last_name` filter type": {
                    "value": {
                      "code": 27400057,
                      "message": "The `last_name` filter expression should be equal to `like`"
                    }
                  },
                  "Invalid expression of interaction filter type": {
                    "value": {
                      "code": 27400063,
                      "message": "The `interaction` filter expression should be `<` or `>`"
                    }
                  },
                  "Invalid expression of `first_name` filter type": {
                    "value": {
                      "code": 27400055,
                      "message": "The `first_name` filter expression should be equal to `like`"
                    }
                  },
                  "Invalid expression of shared_with_me filter type": {
                    "value": {
                      "code": 27400065,
                      "message": "The `shared_with_me` filter expression should be `=`"
                    }
                  },
                  "Request without `filter` parameters value or type": {
                    "value": {
                      "code": 27400051,
                      "message": "Invalid filter format, filter must have `type` and `value` fields"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Contact group not found or does not belong to authorized user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Contact group not found or does not belong to authorized user": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact `contactUniqueId` not found"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/crm/groups/{group_id}/contacts/{contact_id}": {
      "put": {
        "operationId": "put-v2-crm-groups-group-id-contacts-contact-id",
        "summary": "Add contact to group",
        "description": "Allows users to add contact to the group.",
        "parameters": [
          {
            "in": "path",
            "name": "contact_id",
            "type": "string",
            "required": true,
            "description": "ID of the contact."
          },
          {
            "in": "path",
            "name": "group_id",
            "type": "string",
            "required": true,
            "description": "ID of the contact group."
          }
        ],
        "responses": {
          "200": {
            "description": "Contact successfully added to group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of these cases:\n\ninvalid token of user\nexpired token of user\nempty header\nauthorization = null\nauthorization without value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Contacts group not found or does not belong to authorized user\n* Contact does not exist or does not belong to authorized user\n* Contact does not exist or does not belong to authorized user 2",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Contact does not exist ": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact `contactUniqueId` not found"
                    }
                  },
                  "Contact does not exist 2": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact `contactUniqueId` not found"
                    }
                  },
                  "Contacts group not found ": {
                    "value": {
                      "code": 27405001,
                      "message": "Group not found"
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Not allowed to use this HTTP method": {
                    "value": {
                      "message": "The GET method is not supported for this route. Supported methods: DELETE."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-crm-groups-group-id-contacts-contact-id",
        "summary": "Remove contact from group",
        "description": "Allows users to delete the contact from the group.",
        "parameters": [
          {
            "in": "path",
            "name": "contact_id",
            "type": "string",
            "required": true,
            "description": "ID of the contact."
          },
          {
            "in": "path",
            "name": "group_id",
            "type": "string",
            "required": true,
            "description": "ID of the contact group."
          }
        ],
        "responses": {
          "204": {
            "description": "Contact successfully deleted from group"
          },
          "400": {
            "description": "* Request with any of these cases:\n\ninvalid token of user\nexpired token of user\nempty header\nauthorization = null\nauthorization without value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Contacts group not found or does not belong to authorized user\n* Contact does not exist or does not belong to authorized user\n* Contact does not exist or does not belong to authorized user or does not exist in group\n* Contact does not exist in group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Contact does not exist ": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact `contactUniqueId` not found"
                    }
                  },
                  "Contact does not exist 2": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact `contactUniqueId` not found"
                    }
                  },
                  "Contacts group not found": {
                    "value": {
                      "code": 27405001,
                      "message": "Group not found"
                    }
                  },
                  "Contact does not exist in group": {
                    "value": {
                      "code": 27405007,
                      "message": "Contact not found in current group"
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Not allowed to use this HTTP method": {
                    "value": {
                      "message": "The GET method is not supported for this route. Supported methods: DELETE."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/crm/contacts": {
      "post": {
        "operationId": "post-v2-crm-contacts",
        "summary": "Create CRM contact",
        "description": "Creates a new CRM contact object.",
        "responses": {
          "201": {
            "description": "Contact has been created successfully",
            "content": {
              "application/json": {
                "examples": {
                  "Contact created successfully": {
                    "value": {
                      "id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value\n* Request with incorrect body parameters, see examples\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Invalid email address": {
                    "value": {
                      "code": 27400002,
                      "message": "Invalid email"
                    }
                  },
                  "Field `number` not a string": {
                    "value": {
                      "code": 27400003,
                      "message": "Field `number` must be a string"
                    }
                  },
                  "Field `number` length limits": {
                    "value": {
                      "code": 27400004,
                      "message": "Field `number` must be 10 or 15 characters"
                    }
                  },
                  "The `email` field is missing": {
                    "value": {
                      "code": 27400001,
                      "message": "The `email` field is required"
                    }
                  },
                  "Field `city` must be a string": {
                    "value": {
                      "code": 27400021,
                      "message": "Field `city` must be a string"
                    }
                  },
                  "Field `name` must be a string": {
                    "value": {
                      "code": 27400011,
                      "message": "Field `name` must be a string"
                    }
                  },
                  "Field `state` must be a string": {
                    "value": {
                      "code": 27400023,
                      "message": "Field `state` must be a string"
                    }
                  },
                  "The `city` field length limits": {
                    "value": {
                      "code": 27400022,
                      "message": "The `city` field length must not be more than 128 characters"
                    }
                  },
                  "The `name` field length limits": {
                    "value": {
                      "code": 27400012,
                      "message": "The `name` field length must not be more than 128 characters"
                    }
                  },
                  "Field `street` must be a string": {
                    "value": {
                      "code": 27400017,
                      "message": "Field `street` must be a string"
                    }
                  },
                  "The `state` field length limits": {
                    "value": {
                      "code": 27400024,
                      "message": "The `state` field length must not be more than 128 characters"
                    }
                  },
                  "Field `country` must be a string": {
                    "value": {
                      "code": 27400015,
                      "message": "Field `country` must be a string"
                    }
                  },
                  "The `street` field length limits": {
                    "value": {
                      "code": 27400018,
                      "message": "The `street` field length must not be more than 255 characters"
                    }
                  },
                  "Field `zip_code` must be a string": {
                    "value": {
                      "code": 27400025,
                      "message": "Field `zip_code` must be a string"
                    }
                  },
                  "The `country` field length limits": {
                    "value": {
                      "code": 27400016,
                      "message": "The `country` field length must not be more than 2 characters"
                    }
                  },
                  "Field `apartment` must be a string": {
                    "value": {
                      "code": 27400019,
                      "message": "Field `apartment` must be a string"
                    }
                  },
                  "Field `job_title` must be a string": {
                    "value": {
                      "code": 27400013,
                      "message": "Field `job_title` must be a string"
                    }
                  },
                  "Field `last_name` must be a string": {
                    "value": {
                      "code": 27400007,
                      "message": "Field `last_name` must be a string"
                    }
                  },
                  "The `zip_code` field length limits": {
                    "value": {
                      "code": 27400026,
                      "message": "The `zip_code` field length must not be more than 10 characters"
                    }
                  },
                  "Field `first_name` must be a string": {
                    "value": {
                      "code": 27400005,
                      "message": "Field `first_name` must be a string"
                    }
                  },
                  "The `apartment` field length limits": {
                    "value": {
                      "code": 27400020,
                      "message": "The `apartment` field length must not be more than 255 characters"
                    }
                  },
                  "The `job_title` field length limits": {
                    "value": {
                      "code": 27400014,
                      "message": "The `job_title` field length must not be more than 128 characters"
                    }
                  },
                  "The `last_name` field length limits": {
                    "value": {
                      "code": 27400008,
                      "message": "The `last_name` field length must not be more than 128 characters"
                    }
                  },
                  "Field `description` must be a string": {
                    "value": {
                      "code": 27400028,
                      "message": "Field `description` must be a string"
                    }
                  },
                  "The `first_name` field length limits": {
                    "value": {
                      "code": 27400006,
                      "message": "The `first_name` field length must not be more than 128 characters"
                    }
                  },
                  "Field `country_code` must be a string": {
                    "value": {
                      "code": 27400009,
                      "message": "Field `country_code` must be a string"
                    }
                  },
                  "The `description` field length limits": {
                    "value": {
                      "code": 27400029,
                      "message": "The `description` field length must not be more than 408 characters"
                    }
                  },
                  "The `city` contains invalid characters": {
                    "value": {
                      "code": 27400036,
                      "message": "The `city` field contains invalid characters"
                    }
                  },
                  "The `name` contains invalid characters": {
                    "value": {
                      "code": 27400033,
                      "message": "The `name` field contains invalid characters"
                    }
                  },
                  "The `state` contains invalid characters": {
                    "value": {
                      "code": 27400039,
                      "message": "The `state` field contains invalid characters"
                    }
                  },
                  "The `street` contains invalid characters": {
                    "value": {
                      "code": 27400037,
                      "message": "The `street` field contains invalid characters"
                    }
                  },
                  "The `country` contains invalid characters": {
                    "value": {
                      "code": 27400035,
                      "message": "The `country` field contains invalid characters"
                    }
                  },
                  "The `apartment` contains invalid characters": {
                    "value": {
                      "code": 27400038,
                      "message": "The `apartment` field contains invalid characters"
                    }
                  },
                  "The `job_title` contains invalid characters": {
                    "value": {
                      "code": 27400034,
                      "message": "The `job_title` field contains invalid characters"
                    }
                  },
                  "The `last_name` contains invalid characters": {
                    "value": {
                      "code": 27400031,
                      "message": "The `last_name` field contains invalid characters"
                    }
                  },
                  "The `first_name` contains invalid characters": {
                    "value": {
                      "code": 27400030,
                      "message": "The `first_name` field contains invalid characters"
                    }
                  },
                  "The `phone_country_code` field length limits": {
                    "value": {
                      "code": 27400010,
                      "message": "The `phone_country_code` field length must be 2 characters"
                    }
                  },
                  "The `country` field should be with `zip_code`": {
                    "value": {
                      "code": 27400027,
                      "message": "The `country` field should be provided when provide `zip_code`"
                    }
                  },
                  "The `description` contains invalid characters": {
                    "value": {
                      "code": 27400032,
                      "message": "The `description` field contains invalid characters"
                    }
                  },
                  "The `country_code` contains invalid characters": {
                    "value": {
                      "code": 27400040,
                      "message": "The `country_code` field contains invalid characters"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "* User already has a contact with this email\n* Zip code does not match the country\n* Invalid country name provided\n* Invalid state name provided. Only for United States\n* Invalid phone country code provided",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Invalid country name provided": {
                    "value": {
                      "code": 27422003,
                      "message": "Invalid country"
                    }
                  },
                  "Invalid phone country code provided": {
                    "value": {
                      "code": 27422005,
                      "message": "Invalid country_code"
                    }
                  },
                  "Zip code does not match the country": {
                    "value": {
                      "code": 27422002,
                      "message": "Unsupported zip_code"
                    }
                  },
                  "Invalid state name. Only for United States": {
                    "value": {
                      "code": 27422004,
                      "message": "Invalid state"
                    }
                  },
                  "User already has a contact with this email": {
                    "value": {
                      "code": 27422001,
                      "message": "Contact already exists"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The new contact email address."
                  },
                  "phone": {
                    "type": "object",
                    "properties": {
                      "number": {
                        "type": "string",
                        "description": "Contact phone number. Must be 10 or 16 characters."
                      },
                      "country_code": {
                        "type": "string",
                        "description": "Contact country code. Must be 2 characters."
                      }
                    },
                    "description": "Object that holds details of the phone number."
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "city": {
                        "type": "string",
                        "description": "The city where the contact is located. Maximum 128 characters."
                      },
                      "state": {
                        "type": "string",
                        "description": "The state where the contact is located (only for United States). Maximum 128 characters."
                      },
                      "street": {
                        "type": "string",
                        "description": "The street where the contact is located. Maximum 255 characters."
                      },
                      "country": {
                        "type": "string",
                        "description": "The country where the contact is located. Required when `zip_code` parameters is specified."
                      },
                      "zip_code": {
                        "type": "string",
                        "description": "Zip code of the area where the contact is located. Maximum 10 characters."
                      },
                      "apartment": {
                        "type": "string",
                        "description": "The appartment office where the contact is located. Maximum 255 characters."
                      }
                    },
                    "description": "Object that holds details about the contact address."
                  },
                  "company": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "The name of the company. Maximum 128 characters."
                      },
                      "job_title": {
                        "type": "string",
                        "description": "Job title of the contact in this company. Maximum 128 characters."
                      }
                    },
                    "description": "Object that holds details about the company that this contact represents."
                  },
                  "last_name": {
                    "type": "string",
                    "description": "The new contact last name. Maximum 128 characters."
                  },
                  "first_name": {
                    "type": "string",
                    "description": "The new contact first name. Maximum 128 characters."
                  },
                  "description": {
                    "type": "string",
                    "description": "Contact description. Maximum 408 characters."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "email": "example@mail.com",
                    "phone": {
                      "number": "3333333333",
                      "country_code": "US"
                    },
                    "address": {
                      "city": "New york",
                      "state": "New York",
                      "street": "5 avenue, 17",
                      "country": "US",
                      "zip_code": "11111",
                      "apartment": "26"
                    },
                    "company": {
                      "name": "Marvel company",
                      "job_title": "CEO"
                    },
                    "last_name": "contact last name",
                    "first_name": "contact name",
                    "description": "Any details about this person"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "email": "example@mail.com",
                    "phone": {
                      "number": "3333333333",
                      "country_code": "US"
                    },
                    "address": {
                      "city": "New york",
                      "state": "New York",
                      "street": "5 avenue, 17",
                      "country": "US",
                      "zip_code": "11111",
                      "apartment": "26"
                    },
                    "company": {
                      "name": "Marvel company",
                      "job_title": "CEO"
                    },
                    "last_name": "contact last name",
                    "first_name": "contact name",
                    "description": "Any details about this person"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-crm-contacts",
        "summary": "Get the list of CRM contacts",
        "description": "Retrieve the list of your CRM contacts.",
        "parameters": [
          {
            "in": "query",
            "name": "sort",
            "type": "string",
            "required": false,
            "description": "Default value: `sort[last_interaction_at] = 'desc'`. Allowed values: `asc` - ascending order.; `desc` - descending order."
          },
          {
            "in": "query",
            "name": "filters: owners",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"owners\":{\"type\":\"IN\",\"value\":[\"e6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"]}}]"
          },
          {
            "in": "query",
            "name": "filters: shared with me",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"shared_with_me\":{\"type\":\"=\",\"value\":\"true\"}}]`"
          },
          {
            "in": "query",
            "name": "filters: combined filter with `OR` for `email`, `first_name`, `last_name`, and `full_name`",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"_OR\":[{\"email\":{\"type\":\"like\",\"value\":\"%value%\"}},{\"first_name\":{\"type\":\"like\",\"value\":\"%value%\"}},{\"last_name\":{\"type\":\"like\",\"value\":\"%value%\"}},{\"full_name\":{\"type\":\"like\",\"value\":\"%value%\"}}]}]`"
          },
          {
            "in": "query",
            "name": "filters: combined filter with `OR`",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"_OR\":[{\"interaction\":{\"type\":\">\",\"value\":1652965774}},{\"company\":{\"type\":\"=\",\"value\":\"The best company\"}}]}]`"
          },
          {
            "in": "query",
            "name": "filters: combined filter",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"interaction\":{\"type\":\">\",\"value\":1652918152}, \"company\":{\"type\":\"=\",\"value\":\"Best company\"}}]`"
          },
          {
            "in": "query",
            "name": "filters: interaction before",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"interaction\":{\"type\":\"<\",\"value\":1652918152}}]`"
          },
          {
            "in": "query",
            "name": "filters: interaction after",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"interaction\":{\"type\":\">\",\"value\":1652918152}}]`"
          },
          {
            "in": "query",
            "name": "filters: not company",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"company\":{\"type\":\"!=\",\"value\":\"the best company\"}}]`"
          },
          {
            "in": "query",
            "name": "filters: company",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"company\":{\"type\":\"=\",\"value\":\"The best company\"}}]`"
          },
          {
            "in": "query",
            "name": "filters: full_name",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"full_name\":{\"type\":\"like\",\"value\":\"value\"}}]`"
          },
          {
            "in": "query",
            "name": "filters: last_name",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"last_name\":{\"type\":\"like\",\"value\":\"value\"}}]`"
          },
          {
            "in": "query",
            "name": "filters: first_name",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"first_name\":{\"type\":\"like\",\"value\":\"value\"}}]`"
          },
          {
            "in": "query",
            "name": "filters: email",
            "type": "string",
            "required": false,
            "description": "Format: `filters=[{\"email\":{\"type\":\"=\",\"value\":\"crm@email.com\"}}]`"
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "integer",
            "required": false,
            "description": "How many search items to view per page. Allowed values: positive integers from 1 to 100."
          },
          {
            "in": "query",
            "name": "page",
            "type": "integer",
            "required": false,
            "description": "How many pages to fit the results in. Allowed values: any positive integer starting from 1."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "examples": {
                  "Successfull response": {
                    "value": {
                      "data": [
                        {
                          "id": "8fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "meta": {
                            "created_at": 1649926419,
                            "updated_at": 1649926419,
                            "interacted_at": 1649926419
                          },
                          "email": "crm@example.com",
                          "phone": {
                            "number": "1234567890",
                            "country_code": "US"
                          },
                          "address": {
                            "city": "New York",
                            "state": "New York",
                            "street": "5 Avenue",
                            "country": "US",
                            "zip_code": "0",
                            "apartment": "Penthouse"
                          },
                          "company": {
                            "name": "Sample name",
                            "job_title": "PHP Developer"
                          },
                          "last_name": "Doe",
                          "first_name": "John",
                          "description": "Best client"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 10,
                          "links": {
                            "next": "https://example.com/v2/crm/contacts?per_page=10&page=3",
                            "previous": "https://example.com/v2/crm/contacts?per_page=10&page=1"
                          },
                          "total": 50,
                          "per_page": 15,
                          "total_pages": 5,
                          "current_page": 2
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value\n* Request with incorrect per_page parameter type\n* Request with incorrect per_page parameter value\n* Request with incorrect per_page parameter value 2\n* Request with incorrect page parameter type\n* Request with incorrect page parameter value\n* Request without filter parameters value or type\n* Request with invalid type of filter parameter type\n* Request with invalid expression of email filter parameter type\n* Request with invalid type of email filter parameter value\n* Request with invalid expression of first_name filter parameter type\n* Request with invalid type of first_name filter parameter value\n* Request with invalid expression of last_name filter parameter type\n* Request with invalid type of last_name filter parameter value\n* Request with invalid expression of full_name filter parameter type\n* Request with invalid type of full_name filter parameter value\n* Request with invalid expression of company filter parameter type\n* Request with invalid type of company filter parameter value\n* Request with invalid expression of interaction filter parameter type\n* Request with invalid type of interaction filter parameter value\n* Request with invalid filter format\n* Request with invalid sort value\n* Request with invalid sort direction value\n* Request with invalid sort format\n* Request with invalid sort format 2\n* Request with invalid expression of shared_with_me filter parameter type\n* Request with invalid type of shared_with_me filter parameter type\n* Request with invalid type of shared_with_me filter parameter value\n* Request with invalid expression of owners filter parameter type\n* Request with invalid type of owners filter parameter type\n* Request with invalid type of owners filter parameter value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Invalid sort value": {
                    "value": {
                      "code": 27400906,
                      "message": "The `sort` key must be one of the following values:` created_at`, `full_name`, `company_name`, `email`, `last_interaction_at`"
                    }
                  },
                  "Invalid sort format": {
                    "value": {
                      "code": 0,
                      "message": "Expected array, but got {{ type }}: {{ value }}"
                    }
                  },
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Invalid filter format": {
                    "value": {
                      "code": 0,
                      "message": "Wrong filters format."
                    }
                  },
                  "Invalid sort format 2": {
                    "value": {
                      "code": 27400908,
                      "message": "The `sort` must contain only one field for sorting"
                    }
                  },
                  "Invalid sort direction value": {
                    "value": {
                      "code": 27400907,
                      "message": "The `sort` value must be one of the following values: `asc, desc`"
                    }
                  },
                  "Incorrect `page` parameter type": {
                    "value": {
                      "code": 27400904,
                      "message": "Query parameter `page` must be a digit"
                    }
                  },
                  "Incorrect `page` parameter value": {
                    "value": {
                      "code": 27400905,
                      "message": "Query parameter `page` must be more than 0"
                    }
                  },
                  "Invalid type of email filter value": {
                    "value": {
                      "code": 27400054,
                      "message": "The `email` filter value should be of type string"
                    }
                  },
                  "Invalid type of owners filter type": {
                    "value": {
                      "code": 274001152,
                      "message": "The `owners` filter value should be of type string"
                    }
                  },
                  "Incorrect `per_page` parameter type": {
                    "value": {
                      "code": 27400901,
                      "message": "Query parameter `per_page` must be a digit"
                    }
                  },
                  "Invalid expression of email filter ": {
                    "value": {
                      "code": 27400053,
                      "message": "The `email` filter expression should be `=` or `like`"
                    }
                  },
                  "Invalid type of owners filter value": {
                    "value": {
                      "code": 27400153,
                      "message": "The `owners` contains invalid unique_id (\"123\")"
                    }
                  },
                  "Incorrect `per_page` parameter value": {
                    "value": {
                      "code": 27400902,
                      "message": "Query parameter `per_page` must be more than 0"
                    }
                  },
                  "Invalid type of company filter value": {
                    "value": {
                      "code": 27400062,
                      "message": "The `company` filter value should be of type string"
                    }
                  },
                  "Incorrect `per_page` parameter value 2": {
                    "value": {
                      "code": 27400903,
                      "message": "Query parameter `per_page` must be less than or equal 100"
                    }
                  },
                  "Invalid type of full_name filter value": {
                    "value": {
                      "code": 27400060,
                      "message": "The `full_name` filter value should be of type string"
                    }
                  },
                  "Invalid type of last_name filter value": {
                    "value": {
                      "code": 27400058,
                      "message": "The `last_name` filter value should be of type string"
                    }
                  },
                  "Invalid data type of the `type` filter ": {
                    "value": {
                      "code": 27400052,
                      "message": "Invalid filter format, filter `type` should be string"
                    }
                  },
                  "Invalid type of first_name filter value": {
                    "value": {
                      "code": 27400056,
                      "message": "The `first_name` filter value should be of type string"
                    }
                  },
                  "Invalid expression of first_name filter ": {
                    "value": {
                      "code": 27400055,
                      "message": "The `first_name` filter expression should be equal to `like`"
                    }
                  },
                  "Invalid expression of owners filter type": {
                    "value": {
                      "code": 27400151,
                      "message": "The `owners` filter expression should be `in`"
                    }
                  },
                  "Invalid type of interaction filter value": {
                    "value": {
                      "code": 27400064,
                      "message": "The `interaction` filter value should be of type integer and contain not more than 10 characters"
                    }
                  },
                  "Invalid expression of company filter type": {
                    "value": {
                      "code": 27400061,
                      "message": "The `company` filter expression should be one of `=`, `!=`, `like"
                    }
                  },
                  "Invalid type of shared_with_me filter type": {
                    "value": {
                      "code": 27400066,
                      "message": "The `shared_with_me` filter value should be of type string"
                    }
                  },
                  "Invalid expression of full_name filter type": {
                    "value": {
                      "code": 27400059,
                      "message": "The `full_name` filter expression should be equal to `like`"
                    }
                  },
                  "Invalid expression of last_name filter type": {
                    "value": {
                      "code": 27400057,
                      "message": "The `last_name` filter expression should be equal to `like`"
                    }
                  },
                  "Invalid type of shared_with_me filter value": {
                    "value": {
                      "code": 27400067,
                      "message": "The `shared_with_me` filter value should be `true` or `false`"
                    }
                  },
                  "Invalid expression of interaction filter type": {
                    "value": {
                      "code": 27400063,
                      "message": "The `interaction` filter expression should be `<` or `>`"
                    }
                  },
                  "Request without filter parameters value or type": {
                    "value": {
                      "code": 27400051,
                      "message": "Invalid filter format, filter must have `type` and `value` fields"
                    }
                  },
                  "Invalid expression of shared_with_me filter type": {
                    "value": {
                      "code": 27400065,
                      "message": "The `shared_with_me` filter expression should be `=`"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/crm/contacts/{contact_id}": {
      "get": {
        "operationId": "get-v2-crm-contacts-contact-id",
        "summary": "Get CRM contact info",
        "description": "Retrieve details of a specific CRM Contact by ID.",
        "parameters": [
          {
            "in": "path",
            "name": "contact_id",
            "type": "string",
            "required": true,
            "description": "The ID of the CRM contact."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfull response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Successfull response": {
                    "value": {
                      "data": {
                        "id": "8fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "meta": {
                          "created_at": 1649926419,
                          "updated_at": 1649926419,
                          "interacted_at": 1649926419
                        },
                        "email": "crm@example.com",
                        "phone": {
                          "number": "1234567890",
                          "country_code": "US"
                        },
                        "address": {
                          "city": "New York",
                          "state": "New York",
                          "street": "5 Avenue",
                          "country": "US",
                          "zip_code": "0",
                          "apartment": "Penthouse"
                        },
                        "company": {
                          "name": "Sample Name",
                          "job_title": "PHP Developer"
                        },
                        "last_name": "Doe",
                        "first_name": "John",
                        "description": "Best client"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request with any of cases:\n\ninvalid token of user\nexpired token of user\nempty header\nauthorization = null\nauthorization without value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request to contact that doesn`t belong to user or was deleted\n* Request with wrong contact id in path parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect contact id in path parameter": {
                    "value": {
                      "code": 404,
                      "message": "Unable to find a route to match the URI: v2/crm/contacts/6dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  },
                  "Contact doesn`t belong to user or was deleted": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact 8fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX not found"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "put-v2-crm-contacts-contact-id",
        "summary": "Update a CRM contact",
        "description": "Updates details in the CRM Contact.",
        "parameters": [
          {
            "in": "path",
            "name": "contact_id",
            "type": "string",
            "required": true,
            "description": "The ID of the CRM contact."
          }
        ],
        "responses": {
          "204": {
            "description": "Contact has been updated successfully"
          },
          "400": {
            "description": "* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value\n* Request with incorrect body parameters, see examples\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Field `number` limits": {
                    "value": {
                      "code": 27400004,
                      "message": "Field `number` must be 10 or 15 characters"
                    }
                  },
                  "Invalid email address": {
                    "value": {
                      "code": 27400002,
                      "message": "Invalid email"
                    }
                  },
                  "Field `number` not a string": {
                    "value": {
                      "code": 27400003,
                      "message": "Field `number` must be a string"
                    }
                  },
                  "The `email` field is missing": {
                    "value": {
                      "code": 27400001,
                      "message": "The `email` field is required"
                    }
                  },
                  "Field `city` must be a string": {
                    "value": {
                      "code": 27400021,
                      "message": "Field `city` must be a string"
                    }
                  },
                  "Field `name` must be a string": {
                    "value": {
                      "code": 27400011,
                      "message": "Field `name` must be a string"
                    }
                  },
                  "Field `state` must be a string": {
                    "value": {
                      "code": 27400023,
                      "message": "Field `state` must be a string"
                    }
                  },
                  "The `city` field length limits": {
                    "value": {
                      "code": 27400022,
                      "message": "The `city` field length must not be more than 128 characters"
                    }
                  },
                  "The `name` field length limits": {
                    "value": {
                      "code": 27400012,
                      "message": "The `name` field length must not be more than 128 characters"
                    }
                  },
                  "Field `street` must be a string": {
                    "value": {
                      "code": 27400017,
                      "message": "Field `street` must be a string"
                    }
                  },
                  "The `state` field length limits": {
                    "value": {
                      "code": 27400024,
                      "message": "The `state` field length must not be more than 128 characters"
                    }
                  },
                  "Field `country` must be a string": {
                    "value": {
                      "code": 27400015,
                      "message": "Field `country` must be a string"
                    }
                  },
                  "The `street` field length limits": {
                    "value": {
                      "code": 27400018,
                      "message": "The `street` field length must not be more than 255 characters"
                    }
                  },
                  "Field `zip_code` must be a string": {
                    "value": {
                      "code": 27400025,
                      "message": "Field `zip_code` must be a string"
                    }
                  },
                  "The `country` field length limits": {
                    "value": {
                      "code": 27400016,
                      "message": "The `country` field length must not be more than 2 characters"
                    }
                  },
                  "Field `apartment` must be a string": {
                    "value": {
                      "code": 27400019,
                      "message": "Field `apartment` must be a string"
                    }
                  },
                  "Field `job_title` must be a string": {
                    "value": {
                      "code": 27400013,
                      "message": "Field `job_title` must be a string"
                    }
                  },
                  "Field `last_name` must be a string": {
                    "value": {
                      "code": 27400007,
                      "message": "Field `last_name` must be a string"
                    }
                  },
                  "The `zip_code` field length limits": {
                    "value": {
                      "code": 27400026,
                      "message": "The `zip_code` field length must not be more than 10 characters"
                    }
                  },
                  "Field `first_name` must be a string": {
                    "value": {
                      "code": 27400005,
                      "message": "Field `first_name` must be a string"
                    }
                  },
                  "The `apartment` field length limits": {
                    "value": {
                      "code": 27400020,
                      "message": "The `apartment` field length must not be more than 255 characters"
                    }
                  },
                  "The `job_title` field length limits": {
                    "value": {
                      "code": 27400014,
                      "message": "The `job_title` field length must not be more than 128 characters"
                    }
                  },
                  "The `last_name` field length limits": {
                    "value": {
                      "code": 27400008,
                      "message": "The `last_name` field length must not be more than 128 characters"
                    }
                  },
                  "Field `description` must be a string": {
                    "value": {
                      "code": 27400028,
                      "message": "Field `description` must be a string"
                    }
                  },
                  "The `first_name` field length limits": {
                    "value": {
                      "code": 27400006,
                      "message": "The `first_name` field length must not be more than 128 characters"
                    }
                  },
                  "Field `country_code` must be a string": {
                    "value": {
                      "code": 27400009,
                      "message": "Field `country_code` must be a string"
                    }
                  },
                  "The `description` field length limits": {
                    "value": {
                      "code": 27400029,
                      "message": "The `description` field length must not be more than 408 characters"
                    }
                  },
                  "The `city` contains invalid characters": {
                    "value": {
                      "code": 27400036,
                      "message": "The `city` field contains invalid characters"
                    }
                  },
                  "The `name` contains invalid characters": {
                    "value": {
                      "code": 27400033,
                      "message": "The `name` field contains invalid characters"
                    }
                  },
                  "The `state` contains invalid characters": {
                    "value": {
                      "code": 27400039,
                      "message": "The `state` field contains invalid characters"
                    }
                  },
                  "The `street` contains invalid characters": {
                    "value": {
                      "code": 27400037,
                      "message": "The `street` field contains invalid characters"
                    }
                  },
                  "The `country` contains invalid characters": {
                    "value": {
                      "code": 27400035,
                      "message": "The `country` field contains invalid characters"
                    }
                  },
                  "The `apartment` contains invalid characters": {
                    "value": {
                      "code": 27400038,
                      "message": "The `apartment` field contains invalid characters"
                    }
                  },
                  "The `job_title` contains invalid characters": {
                    "value": {
                      "code": 27400034,
                      "message": "The `job_title` field contains invalid characters"
                    }
                  },
                  "The `last_name` contains invalid characters": {
                    "value": {
                      "code": 27400031,
                      "message": "The `last_name` field contains invalid characters"
                    }
                  },
                  "The `first_name` contains invalid characters": {
                    "value": {
                      "code": 27400030,
                      "message": "The `first_name` field contains invalid characters"
                    }
                  },
                  "The `phone_country_code` field length limits": {
                    "value": {
                      "code": 27400010,
                      "message": "The `phone_country_code` field length must be 2 characters"
                    }
                  },
                  "The `country` field should be with `zip_code`": {
                    "value": {
                      "code": 27400027,
                      "message": "The `country` field should be provided when provide `zip_code`"
                    }
                  },
                  "The `description` contains invalid characters": {
                    "value": {
                      "code": 27400032,
                      "message": "The `description` field contains invalid characters"
                    }
                  },
                  "The `country_code` contains invalid characters": {
                    "value": {
                      "code": 27400040,
                      "message": "The `country_code` field contains invalid characters"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* No contact found\n* Attempt to edit shared contact",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "No contact found": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact `46XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                    }
                  },
                  "Attempt to edit shared contact": {
                    "value": {
                      "code": 27400913,
                      "message": "You are not allowed to perform this action"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "* User already has a contact with this email\n* Zip code does not match the country\n* Invalid country name provided\n* Invalid state name provided. Only for United States\n* Invalid phone country code provided",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Invalid country name provided": {
                    "value": {
                      "code": 27422003,
                      "message": "Invalid country"
                    }
                  },
                  "Invalid phone country code provided": {
                    "value": {
                      "code": 27422005,
                      "message": "Invalid country_code"
                    }
                  },
                  "Zip code does not match the country": {
                    "value": {
                      "code": 27422002,
                      "message": "Unsupported zip_code"
                    }
                  },
                  "Invalid state name. Only for United States": {
                    "value": {
                      "code": 27422004,
                      "message": "Invalid state"
                    }
                  },
                  "User already has a contact with this email": {
                    "value": {
                      "code": 27422001,
                      "message": "Contact already exists"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The new contact email address."
                  },
                  "phone": {
                    "type": "object",
                    "properties": {
                      "number": {
                        "type": "string",
                        "description": "Contact phone number. Must be 10 or 16 characters."
                      },
                      "country_code": {
                        "type": "string",
                        "description": "Contact country code. Must be 2 characters."
                      }
                    },
                    "description": "Object that holds details of the phone number."
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "city": {
                        "type": "string",
                        "description": "The city where the contact is located. Maximum 128 characters."
                      },
                      "state": {
                        "type": "string",
                        "description": "The state where the contact is located (only for United States). Maximum 128 characters."
                      },
                      "street": {
                        "type": "string",
                        "description": "The street where the contact is located. Maximum 255 characters."
                      },
                      "country": {
                        "type": "string",
                        "description": "The country where the contact is located. Required when `zip_code` parameters is specified."
                      },
                      "zip_code": {
                        "type": "string",
                        "description": "Zip code of the area where the contact is located. Maximum 10 characters."
                      },
                      "apartment": {
                        "type": "string",
                        "description": "The appartment office where the contact is located. Maximum 255 characters."
                      }
                    },
                    "description": "Object that holds details about the contact address."
                  },
                  "company": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "The name of the company. Maximum 128 characters."
                      },
                      "job_title": {
                        "type": "string",
                        "description": "Job title of the contact in this company. Maximum 128 characters."
                      }
                    },
                    "description": "Object that holds details about the company that this contact represents."
                  },
                  "last_name": {
                    "type": "string",
                    "description": "The new contact last name. Maximum 128 characters."
                  },
                  "first_name": {
                    "type": "string",
                    "description": "The new contact first name. Maximum 128 characters."
                  },
                  "description": {
                    "type": "string",
                    "description": "Contact description. Maximum 408 characters."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "email": "example@mail.com",
                    "phone": {
                      "number": "3333333333",
                      "country_code": "US"
                    },
                    "address": {
                      "city": "New york",
                      "state": "New York",
                      "street": "5 avenue, 17",
                      "country": "US",
                      "zip_code": "11111",
                      "apartment": "26"
                    },
                    "company": {
                      "name": "Marvel company",
                      "job_title": "CEO"
                    },
                    "last_name": "contact last name",
                    "first_name": "contact name",
                    "description": "Any details about this person"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "email": "example@mail.com",
                    "phone": {
                      "number": "3333333333",
                      "country_code": "US"
                    },
                    "address": {
                      "city": "New york",
                      "state": "New York",
                      "street": "5 avenue, 17",
                      "country": "US",
                      "zip_code": "11111",
                      "apartment": "26"
                    },
                    "company": {
                      "name": "Marvel company",
                      "job_title": "CEO"
                    },
                    "last_name": "contact last name",
                    "first_name": "contact name",
                    "description": "Any details about this person"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-v2-crm-contacts-contact-id",
        "summary": "Remove a CRM contact",
        "description": "Deletes a CRM Contact.",
        "parameters": [
          {
            "in": "path",
            "name": "contact_id",
            "type": "string",
            "required": true,
            "description": "The ID of the CRM contact."
          }
        ],
        "responses": {
          "204": {
            "description": "Contact has been deleted successfully."
          },
          "400": {
            "description": "Request with any of cases:\n\ninvalid token of user\nexpired token of user\nempty header\nauthorization = null\nauthorization without value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* No contact found or Contact does not belong to authorized user or Contact is already deleted\n* Request with wrong contact id in path parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "No contact found ": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact 8fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX not found"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/crm/contacts/import": {
      "post": {
        "operationId": "post-v2-crm-contacts-import",
        "summary": "Import CRM contacts in bulk",
        "description": "This endpoint allows users to import contacts from a CSV file into the authenticated user account. Users can map CSV columns to contact fields and configure how duplicate contacts are handled.\n\n**Notes:**\n* The CSV file must contain a header row. Data rows start from line 2.\n* Rows where the email value is missing or invalid are skipped and reported under `failed`.\n* Rows with invalid non-email fields (phone, address, etc.) are still created with those fields set to `null` and reported as `created_partial`.\n* CSV separator is auto-detected from the header row (supported: `,`, `;`, `\\t`, `|`).\n* Phone country codes are auto-detected from the phone number format (e.g., `+1` → `US`, `+44` → `GB`).\n* If `duplicates` is not specified and duplicate contacts (by email) already exist, a `409 Conflict` is returned.\n\n**Sample CSV**\n\n```csv\nFirst Name,Last Name,Email,Phone,Company Name,Job Title,Country,Street Address,Apartment,City,State,ZIP Code,Description\nJohn,Smith,john@example.com,5551234567,Sample Company,Manager,US,17 Station St,Suite 101,Brookline,Massachusetts,02445,This is a sample contact to demonstrate how the columns should be filled out. Don't forget to remove this contact before importing your contacts.\n```\n\n> Values in `mapping[...]` must exactly match the column headers in your CSV (case-sensitive, including spaces and punctuation). Set an optional `mapping[...]` to `null` to skip a field.\n",
        "responses": {
          "201": {
            "description": "Contacts imported successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "failed": {
                          "type": "object",
                          "properties": {
                            "rows": {
                              "type": "array",
                              "items": {
                                "type": "integer"
                              },
                              "description": "Row numbers (starting at 2) of failed rows."
                            },
                            "count": {
                              "type": "integer",
                              "description": "Number of failed rows."
                            }
                          },
                          "description": "Rows that could not be created due to a missing or incorrect email."
                        },
                        "created": {
                          "type": "integer",
                          "description": "Number of contacts fully created (excludes partially created)."
                        },
                        "created_partial": {
                          "type": "object",
                          "properties": {
                            "rows": {
                              "type": "array",
                              "items": {
                                "type": "integer"
                              }
                            },
                            "count": {
                              "type": "integer"
                            }
                          },
                          "description": "Contacts created with some non-email fields set to `null` due to validation errors."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Import succeeded": {
                    "value": {
                      "data": {
                        "failed": {
                          "rows": [
                            5,
                            12,
                            27
                          ],
                          "count": 3
                        },
                        "created": 45,
                        "created_partial": {
                          "rows": [
                            8,
                            19
                          ],
                          "count": 2
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Missing or incorrect bearer token.\n* Incorrect `mapping` type.\n* The `mapping` is empty.\n* The `file` is missing or larger than 5 MB.\n* Incorrect `file` type.\n* Incorrect file extension.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Incorrect `file` type": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405153,
                          "message": "The `file` type is invalid."
                        }
                      ]
                    }
                  },
                  "The `mapping` is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405149,
                          "message": "The `mapping` value can not be empty."
                        }
                      ]
                    }
                  },
                  "Incorrect `mapping` type": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405148,
                          "message": "The `mapping` should be of type array."
                        }
                      ]
                    }
                  },
                  "Incorrect file extension": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405155,
                          "message": "The allowed file extension is .csv."
                        }
                      ]
                    }
                  },
                  "Missing or incorrect bearer token": {
                    "value": {
                      "errors": [
                        {
                          "code": 1537,
                          "message": "invalid_token"
                        }
                      ]
                    }
                  },
                  "The `file` is missing or larger than 5 MB": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405152,
                          "message": "The `file` is required and maximum allowed file size is 5 MB."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Returned when the `duplicates` parameter is not set and contacts with matching emails already exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Duplicate contacts found": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405161,
                          "message": "Duplicate contacts found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "* Incorrect `mapping` value.\n* Incorrect `duplicates` value.\n* The `file` exceeds 5 MB.\n* The `file` exceeds 3000 lines.\n* The `file` is empty.\n* The email column is missing in the file.\n* Some mapping columns are missing in the file.\n* Unable to import contacts.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "The `file` is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405157,
                          "message": "File can not be empty"
                        }
                      ]
                    }
                  },
                  "The `file` exceeds 5 MB": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405154,
                          "message": "The maximum allowed file size is 5 MB"
                        }
                      ]
                    }
                  },
                  "Incorrect `mapping` value": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405150,
                          "message": "The `mapping` value is invalid"
                        }
                      ]
                    }
                  },
                  "Unable to import contacts": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405160,
                          "message": "Unable to import contacts. Please, try again later"
                        }
                      ]
                    }
                  },
                  "Incorrect `duplicates` value": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405151,
                          "message": "Duplicates should be [\"skip\", \"replace\"]"
                        }
                      ]
                    }
                  },
                  "The `file` exceeds 3000 lines": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405156,
                          "message": "The maximum allowed file size is 3000 lines"
                        }
                      ]
                    }
                  },
                  "The email column is missing in the file": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405158,
                          "message": "Column with email is required"
                        }
                      ]
                    }
                  },
                  "Some mapping columns are missing in the file": {
                    "value": {
                      "errors": [
                        {
                          "code": 27405159,
                          "message": "Columns from mapping are missed in file"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "CSV file to import. Maximum size: 5 MB. Maximum rows: 3000 (excluding header).",
                    "format": "binary"
                  },
                  "duplicates": {
                    "type": "string",
                    "description": "Duplicate handling strategy. Allowed values: `skip`, `replace`. If omitted, the request returns `409 Conflict` when contacts with matching emails already exist."
                  },
                  "mapping[email]": {
                    "type": "string",
                    "description": "Maps the contact email to a CSV column. The value is the column header name in your CSV. Required. Email values in the column must be valid and cannot end with `@no.reply`. Example value: `Email`."
                  },
                  "mapping[first_name]": {
                    "type": "string",
                    "description": "Maps the contact first name to a CSV column. The value is the column header name. Maximum 128 characters. Example value: `First Name`."
                  },
                  "mapping[last_name]": {
                    "type": "string",
                    "description": "Maps the contact last name to a CSV column. The value is the column header name. Maximum 128 characters. Example value: `Last Name`."
                  },
                  "mapping[description]": {
                    "type": "string",
                    "description": "Maps the contact description to a CSV column. The value is the column header name. Maximum 408 characters. Example value: `Description`."
                  },
                  "mapping[phone]": {
                    "type": "string",
                    "description": "Maps the contact phone number to a CSV column. The value is the column header name. Phone values must contain 10–15 digits; country code is auto-detected from the format. Example value: `Phone`."
                  },
                  "mapping[company][name]": {
                    "type": "string",
                    "description": "Maps the company name to a CSV column. The value is the column header name. Maximum 128 characters. Example value: `Company Name`."
                  },
                  "mapping[company][job_title]": {
                    "type": "string",
                    "description": "Maps the contact job title to a CSV column. The value is the column header name. Maximum 128 characters. Example value: `Job Title`."
                  },
                  "mapping[address][country]": {
                    "type": "string",
                    "description": "Maps the contact country to a CSV column. The value is the column header name. Country values must use ISO 2-character codes. Required when `mapping[address][zip_code]` is provided. Example value: `Country`."
                  },
                  "mapping[address][street]": {
                    "type": "string",
                    "description": "Maps the street address to a CSV column. The value is the column header name. Maximum 255 characters. Example value: `Street Address`."
                  },
                  "mapping[address][apartment]": {
                    "type": "string",
                    "description": "Maps the apartment / unit to a CSV column. The value is the column header name. Maximum 255 characters. Example value: `Apartment`."
                  },
                  "mapping[address][city]": {
                    "type": "string",
                    "description": "Maps the city to a CSV column. The value is the column header name. Maximum 128 characters. Example value: `City`."
                  },
                  "mapping[address][state]": {
                    "type": "string",
                    "description": "Maps the state to a CSV column. The value is the column header name. United States only. Maximum 128 characters. Example value: `State`."
                  },
                  "mapping[address][zip_code]": {
                    "type": "string",
                    "description": "Maps the zip code to a CSV column. The value is the column header name. Maximum 10 characters. Requires `mapping[address][country]` to be provided. Example value: `ZIP Code`."
                  }
                },
                "required": [
                  "file",
                  "mapping[email]"
                ]
              }
            }
          }
        }
      }
    },
    "/v2/brands/{brand_id}/{resource}": {
      "get": {
        "operationId": "get-v2-brands-brand-id-resource",
        "summary": "Get resource details",
        "description": "This endpoint allows users to get an information about a brand resource (general/editor/logo/email).",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "resource",
            "type": "string",
            "required": true,
            "description": "Possible values: `general`, `editor`, `logo`, `email`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": {
                        "general": {}
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request without token/with invalid external bearer token/ with external app basic token\n* Request with a valid bearer token from another user logged in\n* Request with bearer token from user authorised with external token from app they don’t own",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with valid bearer token from another user logged in": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Request without token/with invalid external bearer token/ with external app basic token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with bearer token from user authorised with external token from app they don’t own\n* Request with `brand_id` which does not exist/ deleted\n* Request with resource which does not exist/ deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with `brand_id` which does not exist/ deleted": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "example-1Request with resource which does not exist/ deleted": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email."
                    }
                  },
                  "Request with bearer token from user authorised with external token from app they don’t own": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002001,
                          "message": "Brand action not allowed."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resource",
        "summary": "Delete resource",
        "description": "This endpoint allows users to delete a brand resource.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "resource",
            "type": "string",
            "required": true,
            "description": "Possible values: `general`, `editor`, `logo`, `email`."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content"
          },
          "400": {
            "description": "* Request without token/with invalid external bearer token/ with external app basic token\n* Request with a valid bearer token from another user logged in\n* Request with bearer token from user authorised with external token from app they don’t own",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with valid bearer token from another user logged in": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Request without token/with invalid external bearer token/ with external app basic token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with bearer token from user authorised with external token from app they don’t own\n* Request with `brand_id` which does not exist/ deleted\n* Request with resource which does not exist/ deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with `brand_id` which does not exist/ deleted": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "example-1Request with resource which does not exist/ deleted": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email."
                    }
                  },
                  "Request with bearer token from user authorised with external token from app they don’t own": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002001,
                          "message": "Brand action not allowed."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/assign": {
      "post": {
        "operationId": "post-v2-brands-brand-id-assign",
        "summary": "Assign brand",
        "description": "This endpoint allows users to assign branding to an entity.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Request without token/with invalid external bearer token/ with external app basic token\n* Request with valid bearer token from other user logged in\n* Request with invalid payload\n* Request with `entity_type` is not string\n* Request with `entity_type` is missing\n* Request with `entity_type` is empty\n* Request with `entity_type` is not `application`, `document`, `document_group`\n* Request with `entity_unique_id` is not string\n* Request with `entity_unique_id` is missing\n* Request with `entity_unique_id` is empty\n* Request when brand assignment already exists for the `application`, `document`, `document_group`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Request with invalid payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002017,
                          "message": "Invalid payload given."
                        }
                      ]
                    }
                  },
                  "Request with entity_id is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002023,
                          "message": "Entity unique id is required."
                        }
                      ]
                    }
                  },
                  "Request with entity_type is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002020,
                          "message": "Entity type must not be an empty string."
                        }
                      ]
                    }
                  },
                  "Request with entity_type is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002019,
                          "message": "Entity type is required."
                        }
                      ]
                    }
                  },
                  "Request with entity_type is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002018,
                          "message": "Entity type must be a string."
                        }
                      ]
                    }
                  },
                  "Request with entity_unique_id is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002024,
                          "message": "Entity unique id must not be an empty string."
                        }
                      ]
                    }
                  },
                  "Request with entity_type is not application": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002021,
                          "message": "Entity type contains an unexpected value."
                        }
                      ]
                    }
                  },
                  "Request with entity_unique_id is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002022,
                          "message": "Entity unique id must be a string."
                        }
                      ]
                    }
                  },
                  "Request with valid bearer token from other user logged in": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002030,
                          "message": "No access to the brand."
                        }
                      ]
                    }
                  },
                  "Request when brand assignment already exists for the application": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002028,
                          "message": "Brand assignment already exists for provided entity."
                        }
                      ]
                    }
                  },
                  "Request without token/with invalid external bearer token/ with external app basic token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with `entity_unique_id` does not exist - 40 characters\n* Request with another user’s `entity_unique_id`\n* Request with `entity_unique_id` for deleted/deactivated application",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with another user’s entity_unique_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002026,
                          "message": "Action allowed only for the assignment owner."
                        }
                      ]
                    }
                  },
                  "Request with entity_id for deleted/deactivated application": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002026,
                          "message": "Action allowed only for the assignment owner."
                        }
                      ]
                    }
                  },
                  "Request with entity_unique_id does not exist - 40 characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002026,
                          "message": "Action allowed only for the assignment owner."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with a Bearer token from a user authorised with an external token from the app they don’t own\n* Request with `brand_id` which does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with brand_id which does not exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "Request with a Bearer token from a user authorised with an external token from the app they don’t own": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002001,
                          "message": "Brand action not allowed"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "entity_type",
                  "entity_unique_id"
                ],
                "properties": {
                  "entity_type": {
                    "type": "string",
                    "description": "Must be `application`, `document`, `document_group`. Coming soon:  `organization`."
                  },
                  "entity_unique_id": {
                    "type": "string",
                    "description": "The specified application ID."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "entity_id": "{entity_unique_id}",
                    "entity_type": "invite|application|user|team|organization"
                  }
                }
              },
              "examples": {
                "Document": {
                  "value": {
                    "entity_type": "document",
                    "entity_unique_id": "34XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                  }
                },
                "Application": {
                  "value": {
                    "entity_type": "application",
                    "entity_unique_id": "56XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                  }
                },
                "Document Group": {
                  "value": {
                    "entity_type": "document_group",
                    "entity_unique_id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/brands/{brand_id}/resources/email": {
      "put": {
        "operationId": "put-v2-brands-brand-id-email",
        "summary": "Create email brand resource",
        "description": "This endpoint allows users to create and update an email brand resource.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "201": {
            "description": "Created"
          },
          "400": {
            "description": "* Request without token/with invalid external bearer token/ with external app basic token\n* Request for `brand_id` where brand resource `email` already exists\n* Request without body\n* Request with `position` parameter values are invalid\n* Request with `position` parameter values are not string\n* Request with `color` parameter value which is not string\n* Request with `color` parameter value that doesn’t match the pattern (/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)\n* Request with `background` parameter value which is not string\n* Request with `background` parameter value that doesn’t match the pattern (/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)\n* Request with `subject-text` parameter value which is not string\n* Request with `subject-text` parameter value which are more than 300 characters\n* Request with `from-email` parameter value which is not string\n* Request with `from-email` parameter values which is not a valid email\n* Request with `header-text` parameter value which is not a string\n* Request with `header-text` parameter value which is more than 300 characters\n* Request with `payload-text` parameter value which is not string\n* Request with `payload-text` parameter value which is more than 300 characters\n* Request with `signature` parameter value which is not string\n* Request with `signature` parameter value which is more than 300 characters\n* Request with `show-mobile-devices` parameter value which is not a boolean\n* Request with `contact-sender` parameter value which is not string\n* Request with `contact-sender` parameter value which is not a valid email",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request without body": {
                    "value": {
                      "errors": [
                        {
                          "code": 2500202,
                          "message": "Invalid payload given."
                        }
                      ]
                    }
                  },
                  "Request with `position` parameter values are invalid": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002048,
                          "message": "The 'position' attribute is invalid, allowed values: left, middle, right."
                        }
                      ]
                    }
                  },
                  "Request with `position` parameter values are not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002047,
                          "message": "The 'position' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request with `color` parameter value which is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002006,
                          "message": "The 'color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request with `signature` parameter value which is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002054,
                          "message": "The 'signature' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request with `background` parameter value which is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002004,
                          "message": "The 'background' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request with `from-email` parameter value which is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002050,
                          "message": "The 'from-email' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request with `payload-text` parameter value which is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002053,
                          "message": "The 'payload-text' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request with `subject-text` parameter value which is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002049,
                          "message": "The 'subject-text' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request with `header-text` parameter value which is not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002052,
                          "message": "The 'header-text' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request with `contact-sender` parameter value which is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002056,
                          "message": "The 'contact-sender' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request for `brand_id` where brand resource `email` already exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002035,
                          "message": "Brand resource already exists. Resource name: email."
                        }
                      ]
                    }
                  },
                  "Request with `from-email` parameter values which is not a valid email": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002051,
                          "message": "The 'from-email' attribute must be a valid email address."
                        }
                      ]
                    }
                  },
                  "Request with `contact-sender` parameter value which is not a valid email": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002057,
                          "message": "The 'contact-sender' attribute must be a valid email address."
                        }
                      ]
                    }
                  },
                  "Request with `show-mobile-devices` parameter value which is not a boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002055,
                          "message": "The 'show-mobile-devices' attribute must be a boolean."
                        }
                      ]
                    }
                  },
                  "Request with `signature` parameter value which is more than 300 characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002061,
                          "message": "The 'signature' attribute must be less, than 300 characters."
                        }
                      ]
                    }
                  },
                  "Request with `header-text` parameter value which is more than 300 characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002059,
                          "message": "The 'header-text' attribute must be less, than 300 characters."
                        }
                      ]
                    }
                  },
                  "Request with `payload-text` parameter value which is more than 300 characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002060,
                          "message": "The 'payload-text' attribute must be less, than 300 characters."
                        }
                      ]
                    }
                  },
                  "Request with `subject-text` parameter value which are more than 300 characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002058,
                          "message": "The 'subject-text' attribute must be less, than 300 characters."
                        }
                      ]
                    }
                  },
                  "Request without token/with invalid external bearer token/ with external app basic token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Request with `color` parameter value that doesn’t match the pattern (/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002007,
                          "message": "The 'color' attribute format is invalid."
                        }
                      ]
                    }
                  },
                  "Request with `background` parameter value that doesn’t match the pattern (/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/)": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002005,
                          "message": "The 'background' attribute format is invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "*Request with a valid bearer token from another user logged in\n* Request with bearer token from user, authorised with external token from app they don’t own",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with valid bearer token from another user logged in": {
                    "value": {
                      "code": "25002030,",
                      "message": "No access to the brand."
                    }
                  },
                  "Request with bearer token from user, authorised with external token from app they don’t own": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002001,
                          "message": "Brand action not allowed"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with `brand_id` that doesn't exist or is deleted\n* Request with `brand_id` which is null or invalid (not 40 characters)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "111": null
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "Sender's email address."
                  },
                  "logo": {
                    "type": "object",
                    "properties": {
                      "position": {
                        "type": "string",
                        "description": "Logo position on the email page. Possible values: `left`, `middle`, `right`."
                      }
                    },
                    "description": "Logo object that contains attributes for logo positioning on the email page."
                  },
                  "buttons": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "Button main color in hex color code."
                      },
                      "background": {
                        "type": "string",
                        "description": "Button background in hex color code."
                      }
                    },
                    "description": "Button object that contains button attributes."
                  },
                  "subject": {
                    "type": "string",
                    "description": "Email subject."
                  },
                  "body_header": {
                    "type": "string",
                    "description": "Email header text. Up to 300 symbols."
                  },
                  "body_message": {
                    "type": "string",
                    "description": "Body text. Up to 300 hundred symbols."
                  },
                  "sender_email": {
                    "type": "string",
                    "description": "Valid email address for `Contact Sender` button."
                  },
                  "footer_message": {
                    "type": "string",
                    "description": "Footer text. Up to 300 symbols."
                  },
                  "signnow_references": {
                    "type": "boolean",
                    "description": "Whether or not to show links to signNow mobile apps. Possible values: true, false."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "from": "valid@email",
                    "logo": {
                      "position": "left|middle|right"
                    },
                    "buttons": {
                      "color": "#232323",
                      "background": "#232323"
                    },
                    "subject": "Some subject text.",
                    "body_header": "any text",
                    "body_message": "any text",
                    "sender_email": "valid@email",
                    "footer_message": "any text",
                    "signnow_references": true
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "from": "valid@email",
                    "logo": {
                      "position": "left|middle|right"
                    },
                    "buttons": {
                      "color": "#232323",
                      "background": "#232323"
                    },
                    "subject": "Some subject text.",
                    "body_header": "any text",
                    "body_message": "any text",
                    "sender_email": "valid@email",
                    "footer_message": "any text",
                    "signnow_references": true
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-email",
        "summary": "Get email brand resource",
        "description": "Allows users to retrieve branding for email resource.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "from": "senderemail@emaildomain.com",
                        "logo": {
                          "position": "middle"
                        },
                        "buttons": {
                          "color": "#de4991",
                          "background": "#f59758"
                        },
                        "subject": "My custom email",
                        "body_header": "Customized letter example",
                        "body_message": "This is example of message text",
                        "sender_email": "senderemail@emaildomain.com",
                        "footer_message": "Customized footer text",
                        "signnow_references": true
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with resource which does not exist/ is deleted\n* Request without token/with invalid external bearer token/ with external app basic token\n*Request with a valid bearer token from another user logged in",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with resource which does not exist/ is deleted": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email."
                    }
                  },
                  "Request with valid bearer token from another user logged in": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Request without token/with invalid external bearer token/ with external app basic token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with brand_id which does not exist/ is deleted\n* Request with bearer token from a user authorised with external token from the app they don’t own",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with brand_id which does not exist/ is deleted": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Request with bearer token from a user authorised with external token from the app they don’t own": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/unassign": {
      "post": {
        "operationId": "post-v2-brands-brand-id-unassing",
        "summary": "Unassign brand",
        "description": "This endpoint allows users to unassign branding from an entity.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Request without token/with invalid external bearer token/ with external app basic token\n* Request with valid bearer token from other user logged in\n* Request with invalid payload\n* Request with `entity_type` is not string\n* Request with `entity_type` is missing\n* Request with `entity_type` is empty\n* Request with `entity_type` is not `application`\n* Request with `entity_id` is not string\n* Request with `entity_id` is missing\n* Request with `entity_id` is empty\n* Request when brand assignment already exists for the application",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with invalid payload": {
                    "value": {
                      "code": 25002017,
                      "message": "Invalid payload given."
                    }
                  },
                  "Request with entity_id is empty": {
                    "value": {
                      "code": 25002024,
                      "message": "Entity unique id must not be an empty string."
                    }
                  },
                  "Request with entity_id is missing": {
                    "value": {
                      "code": 25002023,
                      "message": "Entity unique id is required."
                    }
                  },
                  "Request with entity_type is empty": {
                    "value": {
                      "code": 25002020,
                      "message": "Entity type must not be an empty string."
                    }
                  },
                  "Request with entity_type is missing": {
                    "value": {
                      "code": 25002019,
                      "message": "Entity type is required."
                    }
                  },
                  "Request with entity_type is not string": {
                    "value": {
                      "code": 25002018,
                      "message": "Entity type must be a string."
                    }
                  },
                  "Request with entity_type is not application": {
                    "value": {
                      "code": 25002021,
                      "message": "Entity type contains an unexpected value."
                    }
                  },
                  "Request with entity_unique_id is not string": {
                    "value": {}
                  },
                  "Request with valid bearer token from other user logged in": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Request when brand assignment already exists for the application": {
                    "value": {
                      "code": 25002028,
                      "message": "Brand assignment already exists for provided entity."
                    }
                  },
                  "Request without token/with invalid external bearer token/ with external app basic token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with `entity_id` does not exist - 40 characters\n* Request with another user’s `entity_id`\n* Request with `entity_id` for deleted/deactivated application",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with another user’s entity_id": {
                    "value": {
                      "code": 25002026,
                      "message": "Action allowed only for the assignment owner."
                    }
                  },
                  "Request with entity_id does not exist - 40 characters": {
                    "value": {
                      "code": 25002026,
                      "message": "Action allowed only for the assignment owner."
                    }
                  },
                  "Request with entity_id for deleted/deactivated application": {
                    "value": {
                      "code": 25002026,
                      "message": "Action allowed only for the assignment owner."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with a Bearer token from a user authorised with an external token from the app they don’t own\n* Request with `brand_id` which does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with brand_id which does not exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Request with a Bearer token from a user authorised with an external token from the app they don’t own": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002001,
                          "message": "Brand action not allowed"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "entity_type",
                  "entity_id"
                ],
                "properties": {
                  "entity_id": {
                    "type": "string",
                    "description": "The specified application ID."
                  },
                  "entity_type": {
                    "type": "string",
                    "description": "Must be `application`. Coming soon: `invite`, `organization`."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "entity_id": "{entity_unique_id}",
                    "entity_type": "application"
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "entity_id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                    "entity_type": "application"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/team/{team_id}/documentgroup/template/{doc_group_id}/share": {
      "post": {
        "operationId": "share-team-document-group-template",
        "summary": "Share doc group template",
        "description": "This endpoint allows user to share their document group templates with a team.\n\n> The endpoint is deprecated. To add a DGT to a team space, move it into a team folder or subfolder using [`PATCH /v2/document-group-templates/{{doc_group_template_id}}/move`](/docs/document-group-template/operations/patch-v2-document-group-templates-doc-group-template-id-move).",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "doc_group_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* User is not in the team.\r\n* Document group template not found.\r\n* User doesn't own document group template.\r\n* Team not found.",
            "content": {
              "application/json": {
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66391,
                      "message": "Team not found"
                    }
                  },
                  "User is not in the team": {
                    "value": {
                      "code": 65582,
                      "message": "User is not part of this team"
                    }
                  },
                  "User doesn't own the DGT": {
                    "value": {
                      "code": 65582,
                      "message": "User does not own document group template"
                    }
                  },
                  "Doc group template not found": {
                    "value": {
                      "code": 65536,
                      "message": "unable to find document group template"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-team-team-id-documentgroup-template-doc-group-id-share",
        "summary": "Delete doc group templates for a team",
        "description": "This endpoint allows team user to delete their document group templates from team and team admins to delete any document group templates.\n\n> The endpoint is deprecated. To remove a DGT from the team space, move it back to a personal folder using [`PATCH /v2/document-group-templates/{{doc_group_template_id}}/move`](/docs/document-group-template/operations/patch-v2-document-group-templates-doc-group-template-id-move).",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "doc_group_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Document group template not found.\r\n* User is not in the team.\r\n* User doesn't own the document group template.\r\n* Team not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66391,
                      "message": "Team not found"
                    }
                  },
                  "User not in the team": {
                    "value": {
                      "code": 65582,
                      "message": "User is not part of this team"
                    }
                  },
                  "Doc group template not found": {
                    "value": {
                      "code": 65536,
                      "message": "unable to find document group template"
                    }
                  },
                  "User not owner of doc group template": {
                    "value": {
                      "code": 65582,
                      "message": "User does not own document group template"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/team/{team_id}/documentgroup/templates": {
      "get": {
        "operationId": "get-team-document-group-templates",
        "summary": "Get team doc group templates",
        "description": "This endpoint returns all document group templates shared with the team.\n\n> The endpoint is deprecated. To retrieve DGTs shared with a team, users should now fetch the content of specific team folders/subfolders.",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "type": "string",
            "required": true,
            "description": "allowed values: numbers from 1 to 50"
          },
          {
            "in": "query",
            "name": "offset",
            "type": "string",
            "default": "0",
            "required": false,
            "description": "allowed values: positive numbers starting from 0"
          },
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "document_group_templates": [
                        {
                          "templates": [
                            {
                              "id": "bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "Template 1",
                              "roles": [
                                "Signer 1"
                              ],
                              "thumbnail": {
                                "large": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                                "small": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                                "medium": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                              }
                            },
                            {
                              "id": "efXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "Template with fixed role and field",
                              "roles": [
                                "Signer 1"
                              ],
                              "thumbnail": {
                                "large": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                                "small": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                                "medium": "http://example.com/document/bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                              }
                            }
                          ],
                          "owner_email": "owner@email.com",
                          "last_updated": "1534146166",
                          "template_group_id": "23XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "template_group_name": "Template group 2"
                        }
                      ],
                      "document_group_template_total_count": 1
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing `limit`\r\n* User is not in the team\r\n* Incorrect or missing `offset`\r\n* Team not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66391,
                      "message": "Team not found"
                    }
                  },
                  "User is not in the team": {
                    "value": {
                      "code": 65582,
                      "message": "User is not part of this team"
                    }
                  },
                  "Incorrect or missing limit": {
                    "value": {
                      "code": 65582,
                      "message": "The limit query parameter is required and must be between 1 and 50"
                    }
                  },
                  "Incorrect or missing offset": {
                    "value": {
                      "code": 65582,
                      "message": "The offset query parameter is required and must be 0 or greater"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/{document_id}/invite": {
      "post": {
        "operationId": "post-document-document-id-invite",
        "summary": "Send document invite with payment request",
        "description": "This endpoint allows users to send a document invite with a payment request. Recipients will be redirected to the payment page after completing the documents.\n\n> To request a payment, users must either connect to the payment service individually or accept an invitation to an organization already connected to the payment service.\n\n- To invite a user to an organization, see [Add members](/docs/organization/operations/post-v2-organizations-org-id-members). \n\n- To accept an invitation to an organization, the user can click the link they receive, or see [Accept invite to organization](/docs/organization/operations/post-v2-organizations-org-id-members-user-id-accept).\n\n- To connect your organization to the payment service, see [Connect to merchant account](/docs/request-payments/operations/post-organizations-org-id-merchantaccount).\n\nA payment request can be linked to a specific field (`calculated` type) or set as a fixed amount (`fixed`type).\n\nThis article lists only the parameters required for a payment request. For other field invite parameters, see [Send field invite](/docs/document-field-invite/operations/post-field-invite).\n\n\n<details>\n\n**<summary>Use additional attributes to customize the request</summary>**\n\n| Parameter | Description | Example |\n| --- | --- | --- |\n| `field_type` | Type of the field that sets the payment amount. Required if the request `type` is `calculated`. For a payment request invite, `filed_type` is `text_fields`. |<img src=\"/reference-assets/images/Request_payments/payment_request_field_name_type.png\" alt=\"Field type\"> |\n| `field_name` | Name of the field that sets the payment amount. Used if the `type` is `calculated`. Can be found in the [Get document response](/docs/document/operations/get-document) (fields.name). | See the screenshot above.  |\n| `type` | Defines how the payment amount is set. Allowed values: `fixed` (the amount is set in the amount field) and `calculated` (set using a document field).<br><br> Learn how to [add a payment request field](/docs/request-payments/operations/put-document-document-id). |<img src=\"/reference-assets/images/Request_payments/payment_request_type.png\" alt=\"Payment type\"> |\n| `currency` | Payment currency in ISO format. |<img src=\"/reference-assets/images/Request_payments/payment_request_amount_currency.png\" alt=\"Currency\"> |\n| `amount` | Amount of payment. Required if `type` is 'fixed'. | See the screenshot above. |\n\n</details>",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Document ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "status": "success"
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- `field_id` is empty or missing. \n- `field_type` is missing or incorrect.\n- `amount` is empty or missing.\n- `currency` is missing.\n- `type` is missing.\n- `merchants` is empty.\n- Merchant ID is incorrect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid field type, valid types are: text_fields"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Merchants empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Required at least one merchant account in payment request"
                        }
                      ]
                    }
                  },
                  "currency missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Must provide currency type for payments"
                        }
                      ]
                    }
                  },
                  "Merchant ID incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid merchant_id in payment_field_request"
                        }
                      ]
                    }
                  },
                  "amount empty or missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "For fixed payment types, please enter non zero amount"
                        }
                      ]
                    }
                  },
                  "field_id empty or missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid field id provided"
                        }
                      ]
                    }
                  },
                  "field_type missing or incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid field type, valid types are: text_fields"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "to",
                  "from"
                ],
                "properties": {
                  "to": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "email",
                        "role"
                      ],
                      "properties": {
                        "role": {
                          "type": "string",
                          "example": "Recipient 1",
                          "description": "Recipient's role. Can be found in the response to [Get document](/docs/document/operations/get-document) request (roles.name)."
                        },
                        "email": {
                          "type": "string",
                          "example": "signer@email.com",
                          "description": "Recipient's email address."
                        },
                        "payment_request": {
                          "type": "object",
                          "required": [
                            "type",
                            "currency",
                            "merchants"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "example": "calculated",
                              "description": "Defines how the payment amount is set. Possible values: `fixed` (the payment amount is set in the amount field) and `calculated` (the payment amount is set using a document field)."
                            },
                            "amount": {
                              "type": "string",
                              "example": "1000",
                              "description": "Payment amount. Required if `type` is `fixed`.",
                              "x-stoplight": {
                                "id": "ai5r848z73xpb"
                              }
                            },
                            "currency": {
                              "type": "string",
                              "example": "USD",
                              "description": "Payment currency in ISO format."
                            },
                            "field_id": {
                              "type": "string",
                              "example": "6d1511309f7f4d80b4df8e19a804d58846504000",
                              "description": "ID of the field that sets the payment amount. Required if the request `type` is `calculated`. Can be found in the [Get document](/docs/document/operations/get-document) response (fields.id)."
                            },
                            "merchants": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "example": "44bdae1e20624166b8073b58560066fc68440000"
                              },
                              "description": "IDs of connected payment service accounts. Found in the [Get user](/docs/user/operations/get-user-info) response and [Get merchant account](/docs/request-payments/operations/get-organizations-org-id-merchantaccount-merchant-account-id) response."
                            },
                            "field_name": {
                              "type": "string",
                              "example": "payment_field",
                              "description": "Name of the field that sets the payment amount. Used if the `type` is `calculated`. Can be found in the [Get document](/docs/document/operations/get-document) response (fields.name)."
                            },
                            "field_type": {
                              "type": "string",
                              "example": "text_fields",
                              "description": "Type of the field that sets the payment amount. Required if the request `type` is `calculated`. Allowed value is `text_fields`.\n"
                            }
                          },
                          "description": "Payment request details."
                        }
                      }
                    },
                    "description": "An array of objects with email addresses and settings for all recipients."
                  },
                  "from": {
                    "type": "string",
                    "example": "sender@email.com",
                    "description": "Sender's email address."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "to": [
                      {
                        "role": "Signer 1",
                        "email": "signer@email.com",
                        "order": 1,
                        "role_id": "dc594a43ed1d43b3abe4f50302420df507119111",
                        "payment_request": {
                          "type": "calculated",
                          "currency": "USD",
                          "field_id": "6d1511309f7f4d80b4df8e19a804d58846504000",
                          "merchants": [
                            "44bdae1e20624166b8073b58560066fc68440000",
                            "e314905b9fa546f999013bf2551225f4e0190000"
                          ],
                          "field_name": "payment_field",
                          "field_type": "text_fields"
                        }
                      }
                    ],
                    "from": "sender@email.com",
                    "document_id": "2274bf62786844e981584543275cdc0c88d67d45"
                  }
                }
              },
              "examples": {
                "Fixed amount": {
                  "value": {
                    "to": [
                      {
                        "role": "Signer 1",
                        "email": "signer@email.com",
                        "payment_request": {
                          "type": "fixed",
                          "amount": "1000",
                          "currency": "USD",
                          "merchants": [
                            "4bdae1e20624166b8073b58560066fc68440000",
                            "e314905b9fa546f999013bf2551225f4e0190000"
                          ]
                        }
                      }
                    ],
                    "from": "sender@email.com"
                  }
                },
                "Calculated amount": {
                  "value": {
                    "to": [
                      {
                        "role": "Signer 1",
                        "email": "signer@email.com",
                        "order": 1,
                        "payment_request": {
                          "type": "calculated",
                          "currency": "USD",
                          "field_id": "6d1511309f7f4d80b4df8e19a804d58846504000",
                          "merchants": [
                            "44bdae1e20624166b8073b58560066fc68440000",
                            "e314905b9fa546f999013bf2551225f4e0190000"
                          ],
                          "field_name": "payment_field",
                          "field_type": "text_fields"
                        }
                      }
                    ],
                    "from": "sender@email.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/invite/{invite_id}/cancel": {
      "put": {
        "operationId": "put-invite-invite-id-cancel",
        "summary": "Cancel freeform invite",
        "description": "Cancels a FreeForm invite with a specified cancellation reason.",
        "parameters": [
          {
            "in": "path",
            "name": "invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the invite or signature request."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Success": {
                    "value": {
                      "id": "96XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Invalid authorization\n* Field invite not found\n* Document not found\n* Incorrect invite id or signature request id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Document not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Document not found"
                        }
                      ]
                    }
                  },
                  "Invalid authorization": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Field invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 66502,
                          "message": "Field invite not found"
                        }
                      ]
                    }
                  },
                  "Incorrect invite id or signature request id": {
                    "value": {
                      "errors": [
                        {
                          "code": 66360,
                          "message": "Signature request not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "The reason for canceling the invite.",
                    "x-stoplight": {
                      "id": "jhmdiyr647dtg"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/documents/{document_id}/free-form-invites": {
      "get": {
        "operationId": "get-v2-documents-document-id-free-form-invites",
        "summary": "Get freeform invites",
        "description": "Retrieve the list of FreeForm invites by document ID.",
        "parameters": [
          {
            "in": "query",
            "name": "per_page",
            "type": "integer",
            "required": false,
            "description": "How many search items to view per page. Allowed values: positive integers from 1 to 100."
          },
          {
            "in": "query",
            "name": "page",
            "type": "integer",
            "required": false,
            "description": "How many pages to fit the results in. Allowed values: any positive integer starting from 1."
          },
          {
            "in": "query",
            "name": "filters",
            "type": "array",
            "required": false,
            "description": "JSON encoded array of filters."
          },
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document."
          }
        ],
        "responses": {
          "200": {
            "description": "* Correct request (invite has been sent)\n* Invite has been canceled\n* No invites\n* Invite is accepted, document is signed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "created": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {}
                              }
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "395a2cd89d3048a1856dbe1cdb144f519b82857e",
                          "email": "jessicamoorejm843@gmail.com",
                          "status": "canceled",
                          "created": 1735658991
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "395a2cd89d3048a1856dbe1cdb144f519b82857e",
                          "email": "jessicamoorejm843@gmail.com",
                          "status": "canceled",
                          "created": 1735658991
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "No invites": {
                    "value": {
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Invite has been canceled": {
                    "value": {
                      "data": [
                        {
                          "id": "5bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "signer1@email.com",
                          "status": "canceled",
                          "created": 1578561895
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Correct request (invite sent)": {
                    "value": {
                      "data": [
                        {
                          "id": "5bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "signer1@email.com",
                          "status": "pending",
                          "created": 1578561895
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Invite accepted, document signed": {
                    "value": {
                      "data": [
                        {
                          "id": "96XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "signer1@email.com",
                          "status": "fulfilled",
                          "created": 1578562606
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Invalid authorization\n* Document not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Document not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Document not found"
                        }
                      ]
                    }
                  },
                  "Invalid authorization": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-groups/{document_group_id}/embedded-invites": {
      "post": {
        "operationId": "create-embedded-invite-document-group",
        "summary": "Create embedded invite",
        "description": "This endpoint allows users to create an embedded signing invite for a document group. Once the invite is created, generate an embedded signing link using [`POST /document-groups/{{document_group_id}}/embedded-invites/{{embedded_invite_id}}/link`](/docs/doc-group-embedded-signing/operations/generate-link-for-embedded-invite-document-group)  with the ID you got in the response.\n\nBefore sending your request, ensure the following:\n* You are the owner of the document group to be signed.\n* Every document in the payload is a part of a document group.\n* The document group contains at least one document.\n* The document group is not part of any other invite (pending or signed).\n* At least one document in the document group contains fields.\n* Signers' email addresses are unique and do not exceed 150 characters.\n* All roles or role IDs in the document group are included in the invite (specifying extra roles will result in an error).\n\n**Action types** in `documents`:\n\n* `sign`: the recipient signs the document.\n* `view`: the recipient views the document.\n* `approve`: the recipient approves the document without signing or filling fields. Only one approver is allowed per invite step, the step must not include other actions, and all document IDs in the document group must be listed for the approver.\n\nParameters `role` and `role_id` can be retrieved from the response from [`GET /document/{{document_id}}`](/docs/document/operations/get-document). Specify a role either by `role` (unique role name, e.g. “Signer 1”), `role_id` (unique role identifier), or both `role` and `role_id`. Ensure they correspond to each other.\n\nUse these parameters to customize the request:\n\n<details>\n<summary><b>Recipient authentication for the signing session</b></summary>\n\nUse the `authentication` object to set up the signer's authentication for the signing session.\n\n* Authentication type: `phone`, method: `sms`. Note that `sms_message` parameter must contain `{password}` placeholder.\nThis method is used to authenticate the signer using a password sent via SMS.\n\n```json\n\"authentication\": {\n    \"type\": \"phone\",\n    \"method\": \"sms\",\n    \"phone\": \"+1XXXXXXXXX\",\n    \"sms_message\": \"Custom test message with {password}\"\n}\n```\n\n* Authentication type: `phone`,  method: `phone_call`\nThis method is used to authenticate the signer with a password delivered via a phone call.\n\n```json\n\"authentication\": {\n    \"type\": \"phone\",\n    \"method\": \"phone_call\",\n    \"phone\": \"+1XXXXXXXXX\"\n}\n```\n* Authentication type: `password`\nThis method is used to authenticate the signer using a pre-set password.\n\n```json\n\"authentication\": {\n    \"type\": \"password\",\n    \"password\": \"123456\"\n}\n```\n</details>\n<br>\n\n<details>\n\n<summary><b>auth_method</b> used in the integrated application</summary>\n\nThe `auth_method` parameter is defined by the application owner to specify the method used to authenticate the recipient (signer or approver) within the integrated application.\nPossible values are: `password`, `email`, `social`, `mfa`, `biometric`, `other`, `none`.\n\n**Note**: The `auth_method` parameter does not influence the recipient's authentication method during the signing or approval session. Use the `authentication` object to configure authentication for the session.\n\n</details>\n</br>\n\n<details>\n\n<summary><b>from_email, from_name</b></summary>\n\nUse `from_email` and `from_name` parameters to customize the appearance of the sender's email address and name. \n\nNote that both parameters are optional and applicable only when `delivery_type`=`email`.\n\nExplore the three scenarios of passing the `from_name` and `from_email` parameters:\n\n**When both `from_email` and `from_name` are passed:**\n\nThe custom `from_name` appears:\n\n- in email subject of the invite, reassign, reminder, and completed emails.\n\nThe custom `from_email` appears:\n\n- in email body of the invite, reassign, reminder, and completed emails.\n- when clicking **Contact Sender** and in **Reply-to** in the emails.\n- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.\n\n---\n\n**When only `from_email` is passed:**\n\nThe local part of `from_email` (before `@`) appears:\n\n- in email subject of the invite, reassign, reminder, and completed emails.\n\nThe custom `from_email` appears:\n\n- in email body of the invite, reassign, reminder, and completed emails.\n- when clicking **Contact Sender** and in **Reply-to** in the emails.\n- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.\n\n---\n\n**When only `from_name` is passed:**\n\nThe custom `from_name` appears:\n\n- in email subject of the invite, reassign, reminder, and completed emails.\n\nThe default (owner’s) `from_email` appears:\n\n- in email body of the invite, reassign, reminder, and completed emails.\n- when clicking **Contact Sender** and in **Reply-to** in the emails.\n- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.\n\n</details>\n\nLearn more about [embedded signing](/docs/guides-embedded-signing).\n",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "201": {
            "description": "Returns the ID of the created invite object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "ID of the created embedded invite."
                        }
                      },
                      "description": "Data object with the invite ID."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "id": "13XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "id": "13XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  },
                  "application/json": {
                    "value": {
                      "data": {
                        "id": "13XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Document in the payload is not part of document group.\n* Document group has no documents.\n* Document group has no fields.\n* Nonexistent role in payload.\n* Not all document roles were used.\n* Orders are not unique.\n* The order sequence is incorrect.\n* Doc ID is not unique for one signer within a step.\n* {Document ID + role} must be unique across the entire payload.\n* Email is not unique within a single step.\n\n**Validation errors**:\n\n* The `required_preset_signature_name` is not a string.\n* The `required_preset_signature_name` value is empty.\n* The `required_preset_signature_name` is too long (should be less than 255 characters).\n* The `required_preset_signature_name` contains unsupported characters.\n* The `language` is not a string.\n* The `language` attribute is incorrect, allowed values: `en`, `fr`, `es`.\n* Field `redirect_uri` is not a string.\n* Field `redirect_uri` is empty.\n* Field `redirect_uri` is not a valid URL.\n* Field `decline_redirect_uri` is not a string.\n* Field `decline_redirect_uri` is empty.\n* Field `decline_redirect_uri` is not a valid URL.\n* The `redirect_target` value is not a string.\n* The `redirect_target` attribute is incorrect, allowed values: `self`, `blank`.\n* The one of `redirect_uri` fields is required when `redirect_target` is added.\n* Parameter `redirect_uri` is too long (must not exceed 2048 characters).\n* Parameter `decline_redirect_uri` is too long (must not exceed 2048 characters).\n* Parameter `delivery_type` is not a string.\n* Incorrect `delivery_type` value. Possible values: `email`, `link`.\n* Parameter `link_expiration` is not an integer.\n* Parameter `link_expiration` is incorrect (must be equal to 15 or more).\n* Parameter `link_expiration` is incorrect (must be equal to 45 or less).\n* Parameter `link_expiration` can only be used if `delivery_type=email`.\n* Parameter `session_expiration` is not an integer.\n* Parameter `session_expiration` is out of range.\n* Parameter `session_expiration` is used with an incorrect `delivery_type` value.\n* Parameter `session_expiration` is used with an incorrect action.\n* Parameter `subject` in `signers` is not a string.\n* Parameter `subject` in `signers` is empty.\n* Parameter `subject` in `signers` is too long.\n* Parameter `subject` in `signers` contains unsupported characters.\n* Parameter `subject` in `signers` is used when `delivery_type` is not `email`.\n* Parameter `message` in `signers` is not a string.\n* Parameter `message` in `signers` is empty.\n* Parameter `message` in `signers` is too long.\n* Parameter `message` in `signers` contains unsupported characters.\n* Parameter `message` in `signers` is used when `delivery_type` is not `email`.\n* The `prefill_signature_name` format is wrong.\n* The `prefill_signature_name` is empty.\n* The`prefill_signature_name` contains unsupported characters.\n* The `prefill_signature_name` is too long.\n\n**Recipient authentication errors**:\n\n* The `authentication.method` value is incorrect.\n* The `authentication` field is empty.\n* The `authentication.type` value type is incorrect.\n* The `authentication.type` field is required.\n* The `authentication.type` field value is incorrect.\n* The `authentication.password` value type is incorrect.\n* The `authentication.password` field is required.\n* The `authentication.method` value type is incorrect.\n* The `authentication.method` field is required.\n* The `authentication.method` value is incorrect.\n* The `authentication.phone` value type is incorrect.\n* The `authentication.phone` field is required.\n* The `authentication.phone` value is incorrect.\n* The `authentication.sms_message` value type is incorrect.\n* The `authentication.sms_message` value is too long.\n* The `authentication.sms_message` value contains unsupported characters.\n* The `authentication.sms_message` must include a {password} placeholder.\n* The `authentication` is set for recipients with unsupported actions.\n* The `authentication` must be used when the `sign_as_merged` field is set to `true`.\n\n\n\n**QES-specific errors**:\n\n* The `signature.type` value  is empty.\n* The `signature.type` value is not supported.\n* Multiple signers were found in a single step.\n* Different signature providers assigned to signers.\n* The `signature` field type is incorrect.\n* The `signature.type` value type is incorrect.\n* The user is not part of the organization.\n* The organization has no advanced sign provider enabled.\n\n**Approve-action errors**:\n\n* The `action` value is not one of `sign`, `view`, `approve`.\n* More than one `approve` action is used in the same invite step.\n* An invite step with an `approve` action also includes other actions.\n* Not all document group document IDs are listed for the approver.\n* The `role` field is missing for an approve action.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": "19022008",
                          "message": "The sender organization’s advanced sign provider is not valid."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": "19022008",
                          "message": "The sender organization’s advanced sign provider is not valid."
                        }
                      ]
                    }
                  },
                  "Message is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021107,
                          "message": "The `message` field in `signers` must not be empty string."
                        }
                      ]
                    }
                  },
                  "Subject is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021103,
                          "message": "The `subject` field in `signers` must not be empty string."
                        }
                      ]
                    }
                  },
                  "Orders not unique": {
                    "value": {
                      "errors": [
                        {
                          "code": 19017030,
                          "message": "Orders must be unique."
                        }
                      ]
                    }
                  },
                  "Message is too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021108,
                          "message": "The `message` field in `signers` must contain no more than 5000 characters."
                        }
                      ]
                    }
                  },
                  "Subject is too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021104,
                          "message": "The `subject` field in `signers` must contain no more than 1000 characters."
                        }
                      ]
                    }
                  },
                  "signature.type empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021076,
                          "message": "The `signature.type` must not be empty for elements in the `signers` array."
                        }
                      ]
                    }
                  },
                  "Message is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021106,
                          "message": "The `message` field in `signers` must be a string."
                        }
                      ]
                    }
                  },
                  "Subject is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021102,
                          "message": "The `subject` field in `signers` must be a string."
                        }
                      ]
                    }
                  },
                  "Invalid order sequence": {
                    "value": {
                      "errors": [
                        {
                          "code": 19017031,
                          "message": "Orders must begin with 1 and the increment between orders must be equal to one."
                        }
                      ]
                    }
                  },
                  "Action value is invalid": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021026,
                          "message": "The `action` must be one of the following types: `sign`, `view`, `approve`."
                        }
                      ]
                    }
                  },
                  "Authentication is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021083,
                          "message": "The authentication field in signers must not be empty."
                        }
                      ]
                    }
                  },
                  "Incorrect delivery_type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021064,
                          "message": "The `delivery_type` field is invalid, allowed values: email, link."
                        }
                      ]
                    }
                  },
                  "link_expiration too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19022006,
                          "message": "The `link_expiration` field must be less than or equal to 45 minutes."
                        }
                      ]
                    }
                  },
                  "User not in organization": {
                    "value": {
                      "errors": [
                        {
                          "code": 19022009,
                          "message": "Organization is required to send an invite with advanced signing."
                        }
                      ]
                    }
                  },
                  "delivery_type not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021063,
                          "message": "The `delivery_type` field must be a string."
                        }
                      ]
                    }
                  },
                  "Redundant link_expiration": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021067,
                          "message": "The `link_expiration` field must be used if the `delivery_type` field contains `email`."
                        }
                      ]
                    }
                  },
                  "Role required for approve": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021035,
                          "message": "Field `role` is required for sign, approve actions."
                        }
                      ]
                    }
                  },
                  "No advanced sign providers": {
                    "value": {
                      "errors": [
                        {
                          "code": 19022008,
                          "message": "The sender organization’s advanced sign provider is not valid."
                        }
                      ]
                    }
                  },
                  "link_expiration too little": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021066,
                          "message": "The `link_expiration` field must be greater than or equal to 15 minutes."
                        }
                      ]
                    }
                  },
                  "Nonexistent role in payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 19018004,
                          "message": "Role {{ roleName }} is not found on document {{ documentUniqueId }}."
                        }
                      ]
                    }
                  },
                  "Signature type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021081,
                          "message": "The `signature` field in `signers` must be an array."
                        }
                      ]
                    }
                  },
                  "link_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021065,
                          "message": "The `link_expiration` field must be an integer."
                        }
                      ]
                    }
                  },
                  "Document group has no fields": {
                    "value": {
                      "errors": [
                        {
                          "code": 19018002,
                          "message": "At least one document in document group must contain fields."
                        }
                      ]
                    }
                  },
                  "signature.type not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021077,
                          "message": "The `signature.type` attribute is not valid, allowed values: \"eideasy\", \"nom151\"."
                        }
                      ]
                    }
                  },
                  "Approver missing document IDs": {
                    "value": {
                      "errors": [
                        {
                          "code": 19022014,
                          "message": "For an `approve` action, all document IDs from the document group must be specified."
                        }
                      ]
                    }
                  },
                  "Different signature providers": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021079,
                          "message": "The `signature.type` fields must be the same for all signers."
                        }
                      ]
                    }
                  },
                  "Multiple signers for one step": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021080,
                          "message": "Must have only one signer per step if a signature field exists."
                        }
                      ]
                    }
                  },
                  "session_expiration for viewer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021075,
                          "message": "The `session_expiration` field must be used if at least one of the `action` field in `documents` contains `sign`."
                        }
                      ]
                    }
                  },
                  "session_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021072,
                          "message": "The `session_expiration` field must be an integer."
                        }
                      ]
                    }
                  },
                  "Authentication.type is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021085,
                          "message": "The authentication.type field in signers is required."
                        }
                      ]
                    }
                  },
                  "Document group has no documents": {
                    "value": {
                      "errors": [
                        {
                          "code": 19018001,
                          "message": "Document group must contain at least one document."
                        }
                      ]
                    }
                  },
                  "More than one approve in a step": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021122,
                          "message": "Only one `approve` action is allowed per invite step."
                        }
                      ]
                    }
                  },
                  "prefill_signature_name is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021121,
                          "message": "The `prefill_signature_name` value must not be empty string."
                        }
                      ]
                    }
                  },
                  "prefill_signature_name too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021120,
                          "message": "The `prefill_signature_name` is too long. It should have 255 characters or less."
                        }
                      ]
                    }
                  },
                  "session_expiration out of range": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021073,
                          "message": "The `session_expiration` must be between 15 and 1440."
                        }
                      ]
                    }
                  },
                  "Authentication.phone is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021093,
                          "message": "The authentication.phone field in signers is required."
                        }
                      ]
                    }
                  },
                  "Not all document roles were used": {
                    "value": {
                      "errors": [
                        {
                          "code": 19018003,
                          "message": "Role {{ roleName }} on document {{ documentUniqueId }} was not specified."
                        }
                      ]
                    }
                  },
                  "session_expiration with no email": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021074,
                          "message": "The `session_expiration` field must be used if the `delivery_type` field contains `email`."
                        }
                      ]
                    }
                  },
                  "Authentication.method is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021090,
                          "message": "The authentication.method field in signers is required."
                        }
                      ]
                    }
                  },
                  "Authentication with sign_as_merged": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021101,
                          "message": "The authentication field must be used if the sign_as_merged field is set to true."
                        }
                      ]
                    }
                  },
                  "Authentication.method is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021082,
                          "message": "The `authentication.method` field in `signers` is invalid."
                        }
                      ]
                    }
                  },
                  "Authentication.password is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021088,
                          "message": "The authentication.password field is required."
                        }
                      ]
                    }
                  },
                  "Email is not unique within one step": {
                    "value": {
                      "errors": [
                        {
                          "code": 19017032,
                          "message": "Email must be unique within one invite step."
                        }
                      ]
                    }
                  },
                  "prefill_signature_name not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021118,
                          "message": "Field `prefill_signature_name` must be a string."
                        }
                      ]
                    }
                  },
                  "Approve step mixed with other actions": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021123,
                          "message": "An invite step with an `approve` action must not include any other actions."
                        }
                      ]
                    }
                  },
                  "Authentication.phone type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021092,
                          "message": "The authentication.phone field in signers must be a string."
                        }
                      ]
                    }
                  },
                  "Authentication.sms_message is too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021096,
                          "message": "The authentication.sms_message field in signers must contain no more than 140 characters."
                        }
                      ]
                    }
                  },
                  "Authentication.type value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021086,
                          "message": "The `authentication.type` field in signers is invalid."
                        }
                      ]
                    }
                  },
                  "signature.type value type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021078,
                          "message": "The `signature.type` must be a string."
                        }
                      ]
                    }
                  },
                  "Authentication.method type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021089,
                          "message": "The authentication.method field in signers must be a string."
                        }
                      ]
                    }
                  },
                  "Authentication.phone value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021094,
                          "message": "The authentication.phone field in signers contains an invalid phone number."
                        }
                      ]
                    }
                  },
                  "Message contains unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021109,
                          "message": "The `message` field in `signers` must not contain 4-byte characters."
                        }
                      ]
                    }
                  },
                  "Subject contains unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021105,
                          "message": "The `subject` field in `signers` must not contain 4-byte characters."
                        }
                      ]
                    }
                  },
                  "Authentication.method value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021091,
                          "message": "The `authentication.method` field in `signers` is invalid."
                        }
                      ]
                    }
                  },
                  "Message is used with wrong delivery_type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021110,
                          "message": "In `signers`, the `subject` or `message` fields must be used if the `delivery_type` field contains `email`."
                        }
                      ]
                    }
                  },
                  "Subject is used with wrong delivery_type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021110,
                          "message": "In `signers`, the `subject` or `message` fields must be used if the `delivery_type` field contains `email`."
                        }
                      ]
                    }
                  },
                  "Authentication.password type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021087,
                          "message": "The authentication.password field in signers must be a string."
                        }
                      ]
                    }
                  },
                  "Authentication set for unsupported actions": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021100,
                          "message": "The authentication field must be used if at least one action field in documents contains sign."
                        }
                      ]
                    }
                  },
                  "Authentication.sms_message type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021095,
                          "message": "The authentication.sms_message field in signers must be a string."
                        }
                      ]
                    }
                  },
                  "Authentication.sms_message without placeholder": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021098,
                          "message": "The authentication.sms_message field in signers must contain {password} placeholder."
                        }
                      ]
                    }
                  },
                  "Doc Id is not unique for one signer within step": {
                    "value": {
                      "errors": [
                        {
                          "code": 19017023,
                          "message": "Document id must be unique for signer within one step."
                        }
                      ]
                    }
                  },
                  "prefill_signature_name contains 4-byte characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021119,
                          "message": "UTF 4-byte characters in `prefill_signature_name` are not supported."
                        }
                      ]
                    }
                  },
                  "Authentication.sms_message has unsupported symbols": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021097,
                          "message": "The authentication.sms_message field in signers must not contain 4-byte characters."
                        }
                      ]
                    }
                  },
                  "{Document id + role} must be unique in all payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 19017033,
                          "message": "Document id with role must be unique."
                        }
                      ]
                    }
                  },
                  "Document in the payload is not part of document group": {
                    "value": {
                      "errors": [
                        {
                          "code": 19018005,
                          "message": "Document {documentUniqueId} is not part of the document group."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User doesn't own the document group.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "User doesn't own the document group": {
                    "value": {
                      "code": 19001010,
                      "message": "Current user is not document group owner."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Group invite already exists.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Group invite already exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001030,
                          "message": "A group invite already exists for this document group."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "invites"
                ],
                "properties": {
                  "invites": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "order",
                        "signers"
                      ],
                      "properties": {
                        "order": {
                          "type": "integer",
                          "example": 1,
                          "description": "Order step. On \"order\": 1, all recipients of this step receive an email with the invite at the same time. Only when they complete all the actions, the \"order\": 2 emails are sent."
                        },
                        "signers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "email",
                              "auth_method",
                              "documents"
                            ],
                            "properties": {
                              "email": {
                                "type": "string",
                                "example": "signer1@email.com",
                                "description": "Recipient's email to receive the invite."
                              },
                              "message": {
                                "type": "string",
                                "example": "Please review the invoice and sign it at your earliest convenience.",
                                "maxLength": 5000,
                                "description": "Invite email message. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails."
                              },
                              "subject": {
                                "type": "string",
                                "example": "Review and sign the invoice.",
                                "maxLength": 1000,
                                "description": "Invite email subject. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails."
                              },
                              "language": {
                                "type": "string",
                                "example": "en",
                                "description": "Sets the language of the signing session for the recipient. Possible values: `en` for English, `es` for Spanish, `fr` for French."
                              },
                              "documents": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "role",
                                    "action"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "example": "cd78bf43ce4b454b89d8bcd535437a939687XXXX",
                                      "description": "ID of the document."
                                    },
                                    "role": {
                                      "type": "string",
                                      "example": "Signer 1",
                                      "description": "Recipient role in the document."
                                    },
                                    "action": {
                                      "type": "string",
                                      "example": "sign",
                                      "description": "Action required in the document. Allowed values: `sign`, `view`, `approve`."
                                    }
                                  }
                                },
                                "minItems": 1,
                                "description": "Array of documents in the document group that the recipient is assigned to. For each document in the array, the document ID, role, and action are specified.",
                                "uniqueItems": true
                              },
                              "last_name": {
                                "type": "string",
                                "example": "Doe",
                                "description": "Recipient's last name."
                              },
                              "signature": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "Type of the QES. Allowed values are `eideasy`, `nom151`. For more information, see [QES user guide](/docs/qualified-electronic-signature).",
                                    "x-stoplight": {
                                      "id": "f52xc03m68mhr"
                                    }
                                  }
                                },
                                "description": "This object is used to request QES signatures from signers. To create an embedded invite with QES, a user must be a member of an organization with QES settings enabled. If QES is specified, it must be used for all signers in the invite.",
                                "x-stoplight": {
                                  "id": "4l37sc9i5nrai"
                                }
                              },
                              "first_name": {
                                "type": "string",
                                "example": "John",
                                "description": "Recipient's first name."
                              },
                              "auth_method": {
                                "type": "string",
                                "example": "none",
                                "description": "Defines the method used to authenticate the recipient within the integrated application. Allowed values: `password`, `email`, `mfa`, `biometric`, `social`, `other`, `none`."
                              },
                              "redirect_uri": {
                                "type": "string",
                                "example": "https://example.com",
                                "description": "The link that opens after the signing session has been completed. Not applicable for `approve` action."
                              },
                              "authentication": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "password",
                                    "description": "Authentication type used for the recipient authentication during the signing session. Required inside `authentication` object. Allowed values: `phone`, `password`.",
                                    "x-stoplight": {
                                      "id": "jhnd9v2akswlc"
                                    }
                                  },
                                  "phone": {
                                    "type": "string",
                                    "example": "+1XXXXXXXXX",
                                    "description": "Phone number used to authenticate the recipient. Required inside `authentication` object with the `phone` method.",
                                    "x-stoplight": {
                                      "id": "17bkxyj2hyn20"
                                    }
                                  },
                                  "method": {
                                    "type": "string",
                                    "example": "sms",
                                    "description": "Method of the `phone` authentication type. Required inside `authentication` object with the `phone` authentication type. Allowed values: `sms`, `phone_call`.",
                                    "x-stoplight": {
                                      "id": "05v5ow6u33pl7"
                                    }
                                  },
                                  "password": {
                                    "type": "string",
                                    "example": "123456",
                                    "description": "Password set for the recipient authentication. Required inside the `authentication` object with the `password` authentication type.",
                                    "x-stoplight": {
                                      "id": "djknubzhv860p"
                                    }
                                  },
                                  "sms_message": {
                                    "type": "string",
                                    "example": "Enter the password {password} to unlock your document.",
                                    "maxLength": 140,
                                    "description": "Custom sms message sent to the recipient, containing the {password} placeholder. Used with the `sms` method. Without this parameter, the recipient receives a default sms with an autogenerated password (unlock code) - \"SignNow document invite unlock code: 123456\".",
                                    "x-stoplight": {
                                      "id": "qtiiuw1moy109"
                                    }
                                  }
                                },
                                "description": "Authentication settings used to verify the recipient's identity.",
                                "x-stoplight": {
                                  "id": "sv5qxsfa96acg"
                                }
                              },
                              "delivery_type ": {
                                "type": "string",
                                "example": "link",
                                "description": "Defines how the invite is sent. Allowed values: `email`, `link`."
                              },
                              "link_expiration": {
                                "type": "integer",
                                "maximum": 43200,
                                "minimum": 15,
                                "description": "In how many minutes the email invite expires. Can be used only if `delivery_type`=`email`."
                              },
                              "redirect_target": {
                                "type": "string",
                                "default": "self",
                                "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Allowed values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab. Not applicable for `approve` action."
                              },
                              "close_redirect_uri": {
                                "type": "string",
                                "example": "https://example.com",
                                "description": "The link that opens when a recipient clicks **Save Progress and Finish Later** during a signing session or **Close** in view mode. Not applicable for `approve` action.",
                                "x-stoplight": {
                                  "id": "nydnzpctz8foj"
                                }
                              },
                              "session_expiration": {
                                "type": "integer",
                                "maximum": 1440,
                                "minimum": 15,
                                "description": "In how many minutes the signing session expires. If a link is generated for this invite, the session expiration is reset. Can be used only if `delivery_type=email` and only for sign actions.",
                                "x-stoplight": {
                                  "id": "tdzp2yb274yqj"
                                }
                              },
                              "force_new_signature": {
                                "type": "integer",
                                "example": 0,
                                "description": "Defines whether the signer can use their saved signature or not. If set to 1, the signer has to add a new signature. If set to 0, the signer can use the saved signature."
                              },
                              "decline_redirect_uri": {
                                "type": "string",
                                "example": "https://example.com",
                                "description": "The link that opens after the signing session has been declined by the recipient. Not applicable for `approve` action."
                              },
                              "prefill_signature_name": {
                                "type": "string",
                                "example": "John Doe",
                                "maxLength": 255,
                                "description": "The text displayed in the Signature field. The signer can edit this value."
                              },
                              "required_preset_signature_name": {
                                "type": "string",
                                "example": "John Doe",
                                "description": "The text displayed in the Signature field. The signer cannot edit this value. Cannot be used simultaneously with `prefill_signature_name` or `force_new_signature` for the same role."
                              }
                            }
                          },
                          "minItems": 1,
                          "description": "Array of recipient objects that must receive their invites at this step. Each object contains: recipient's email address, authentication method, documents they are assigned to, and the role assigned to them in the documents.",
                          "uniqueItems": true
                        }
                      }
                    },
                    "minItems": 1,
                    "description": "Array of invite objects that includes order and settings for different recipients.",
                    "uniqueItems": true
                  },
                  "from_name": {
                    "type": "string",
                    "example": "Jane Doe",
                    "maxLength": 300,
                    "description": "Use this attribute to customize the name that appears in email subject of the invite, reassign, reminder, and completed emails. Note: applicable when `delivery_type`=`email`."
                  },
                  "from_email": {
                    "type": "string",
                    "example": "sender@email.com",
                    "maxLength": 255,
                    "description": "Use this attribute to customize the email address that appears: 1) in the invite, reassign, reminder, and completed emails: in email subject (part before @) and email body; when clicking Contact Sender, and in Reply-to; 2) in the signing session: when clicking the Contact Sender button in the More Actions menu. Note: applicable when `delivery_type`=`email`."
                  }
                }
              },
              "examples": {
                "Request with QES": {
                  "value": {
                    "invites": [
                      {
                        "order": 1,
                        "signers": [
                          {
                            "email": "signer1@email.com",
                            "message": "Please review the invoice and sign it at your earliest convenience.",
                            "subject": "Sign the invoice",
                            "language": "es",
                            "documents": [
                              {
                                "id": "43XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "action": "sign"
                              },
                              {
                                "id": "ffXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "action": "view"
                              }
                            ],
                            "last_name": "Doe",
                            "signature": {
                              "type": "eideasy"
                            },
                            "first_name": "John",
                            "auth_method": "none",
                            "redirect_uri": "https://example.com",
                            "delivery_type": "email",
                            "authentication": {
                              "type": "password",
                              "password": "12345qwerty"
                            },
                            "link_expiration": 15,
                            "redirect_target": "blank",
                            "close_redirect_uri": "https://example.com",
                            "session_expiration": 15,
                            "decline_redirect_uri": "https://signnow.com",
                            "prefill_signature_name": "Recipient signature"
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "signers": [
                          {
                            "email": "signer2@email.com",
                            "language": "en",
                            "documents": [
                              {
                                "id": "43XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 2",
                                "action": "sign"
                              }
                            ],
                            "signature": {
                              "type": "eideasy"
                            },
                            "auth_method": "none",
                            "authentication": {
                              "type": "phone",
                              "phone": "+12025550147",
                              "method": "phone_call"
                            }
                          }
                        ]
                      }
                    ],
                    "from_name": "Jane Doe",
                    "from_email": "sender@email.com"
                  }
                },
                "Request with approver and signer authentication": {
                  "value": {
                    "invites": [
                      {
                        "order": 1,
                        "signers": [
                          {
                            "email": "approver@email.com",
                            "language": "en",
                            "documents": [
                              {
                                "id": "43XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Approver 1",
                                "action": "approve"
                              },
                              {
                                "id": "ffXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Approver 1",
                                "action": "approve"
                              },
                              {
                                "id": "74XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Approver 1",
                                "action": "approve"
                              },
                              {
                                "id": "daXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Approver 1",
                                "action": "approve"
                              }
                            ],
                            "last_name": "Williams",
                            "first_name": "Sarah",
                            "auth_method": "none",
                            "authentication": {
                              "type": "phone",
                              "phone": "+12025550147",
                              "method": "sms",
                              "sms_message": "Verification code is {password}"
                            }
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "signers": [
                          {
                            "email": "signer1@email.com",
                            "message": "Please review the invoice and sign it at your earliest convenience.",
                            "subject": "Sign the invoice",
                            "language": "es",
                            "documents": [
                              {
                                "id": "43XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "action": "sign"
                              },
                              {
                                "id": "ffXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "action": "view"
                              }
                            ],
                            "last_name": "Doe",
                            "first_name": "John",
                            "auth_method": "none",
                            "redirect_uri": "https://example.com",
                            "delivery_type": "email",
                            "authentication": {
                              "type": "password",
                              "password": "12345qwerty"
                            },
                            "link_expiration": 15,
                            "redirect_target": "blank",
                            "close_redirect_uri": "https://example.com",
                            "session_expiration": 15,
                            "decline_redirect_uri": "https://signnow.com",
                            "prefill_signature_name": "Recipient signature"
                          }
                        ]
                      },
                      {
                        "order": 3,
                        "signers": [
                          {
                            "email": "signer2@email.com",
                            "language": "en",
                            "documents": [
                              {
                                "id": "43XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 2",
                                "action": "sign"
                              }
                            ],
                            "auth_method": "none",
                            "authentication": {
                              "type": "phone",
                              "phone": "+12025550147",
                              "method": "phone_call"
                            }
                          },
                          {
                            "email": "signer3@email.com",
                            "language": "en",
                            "documents": [
                              {
                                "id": "74XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 3",
                                "action": "sign"
                              },
                              {
                                "id": "daXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 3",
                                "action": "sign"
                              }
                            ],
                            "auth_method": "none",
                            "authentication": {
                              "type": "phone",
                              "phone": "+12025550147",
                              "method": "sms",
                              "sms_message": "Enter the password to unlock your document. Password: {password}"
                            }
                          }
                        ]
                      }
                    ],
                    "from_name": "Jane Doe",
                    "from_email": "sender@email.com"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-v2-document-groups-document-group-id-embedded-invites",
        "summary": "Delete embedded invites",
        "description": "Deletes embedded invites for a document group.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "204": {
            "description": "Successful response returns Success, no content. Returns error when:\n\n* Current user is not the document group owner\n* Document group not found\n* The document group has no active embedded invites"
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-groups/{document_group_id}/embedded-invites/{embedded_invite_id}/link": {
      "post": {
        "operationId": "generate-link-for-embedded-invite-document-group",
        "summary": "Generate embedded invite link",
        "description": "This endpoint allows users to generate a link for the doc group embedded invite.\n\nCopy the document group embedded invite `id` from the response [`POST /v2/document-groups/{{document_group_id}}/embedded-invites`](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group). \n\nIn your request specify:\n* `email`: Signer's email address.\n\n* `auth_method`: Pre-defined in [`POST /v2/document-groups/{document_group_id}/embedded-invites`](/docs/doc-group-embedded-signing/operations/create-embedded-invite-document-group) request method used to authenticate the signer within the integrated application.\n",
        "parameters": [
          {
            "in": "path",
            "name": "embedded_invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the embedded document group invite."
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "Document group ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Returns a link for embedded invite.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "link": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "data": {
                        "link": "https://example.com/document_group/01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* 19020009 - `session_expiration` is not an integer.\r\n* 19020010 - `session_expiration` is out of range.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "session_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19020009,
                          "message": "The `session_expiration` field must be an integer."
                        }
                      ]
                    }
                  },
                  "session_expiration out of range": {
                    "value": {
                      "errors": [
                        {
                          "code": 19020010,
                          "message": "The `session_expiration` field must be between 15 and 1440."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "auth_method"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "example": "signer1@email.com",
                    "description": "Recipient's email address."
                  },
                  "auth_method": {
                    "type": "string",
                    "description": "Defines the method used to authenticate the recipient within the integrated application. Allowed values: `password`, `email`, `mfa`, `social`, `biometric`, `other`, `none`. Must match the value specified when creating the embedded invite."
                  },
                  "link_expiration": {
                    "type": "integer",
                    "maximum": 45,
                    "minimum": 15,
                    "description": "Specifies how many minutes the link will remain active. The allowed range is 15 to 45 minutes."
                  },
                  "session_expiration": {
                    "type": "integer",
                    "maximum": 1440,
                    "minimum": 15,
                    "description": "Specifies how many minutes the signing session will remain active.",
                    "x-stoplight": {
                      "id": "kkrakpitk9oc3"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "email": "j.doe@mail.com",
                    "auth_method": "none",
                    "link_expiration": 15,
                    "session_expiration": 15
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/recipients": {
      "get": {
        "operationId": "get-v2-document-groups-document-group-id-recipients",
        "summary": "Get doc group recipients",
        "description": "This endpoint retrieves the list of recipients for a document group invite.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "200": {
            "description": "Success with email group block",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "cc": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "order_type": {
                          "enum": [
                            "at_the_same_time",
                            "recipient_order",
                            "advanced_order",
                            null
                          ],
                          "type": "string",
                          "x-nullable": true,
                          "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
                        },
                        "recipients": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "email": {
                                "type": "string"
                              },
                              "order": {
                                "type": "integer"
                              },
                              "documents": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "role": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "email": {
                                    "type": "string"
                                  },
                                  "message": {
                                    "type": "string"
                                  },
                                  "subject": {
                                    "type": "string"
                                  },
                                  "reminder": {
                                    "type": "object",
                                    "properties": {
                                      "remind_after": {
                                        "type": "integer"
                                      },
                                      "remind_before": {
                                        "type": "integer"
                                      },
                                      "remind_repeat": {
                                        "type": "integer"
                                      }
                                    }
                                  },
                                  "document_id": {
                                    "type": "string"
                                  },
                                  "redirect_uri": {
                                    "type": "string"
                                  },
                                  "allow_reassign": {
                                    "type": "string"
                                  },
                                  "authentication": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "i_am_recipient": {
                                    "type": "boolean"
                                  },
                                  "expiration_days": {
                                    "type": "integer"
                                  },
                                  "redirect_target": {
                                    "type": "string"
                                  },
                                  "allow_forwarding": {
                                    "type": "boolean"
                                  },
                                  "close_redirect_uri": {
                                    "type": "string"
                                  },
                                  "show_decline_button": {
                                    "type": "boolean"
                                  },
                                  "decline_by_signature": {
                                    "type": "integer"
                                  },
                                  "decline_redirect_uri": {
                                    "type": "string"
                                  }
                                }
                              },
                              "email_group": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "null"
                                  }
                                }
                              },
                              "phone_invite": {
                                "type": "null"
                              }
                            }
                          }
                        },
                        "general_reminder": {
                          "type": "object",
                          "properties": {
                            "remind_after": {
                              "type": "integer",
                              "description": "Days after invite is sent before a reminder is delivered."
                            },
                            "remind_before": {
                              "type": "integer",
                              "description": "Days before expiration when a reminder is delivered."
                            },
                            "remind_repeat": {
                              "type": "integer",
                              "description": "Days between repeated reminders."
                            }
                          },
                          "x-nullable": true,
                          "description": "Default `reminder` applied to all recipients in the invite."
                        },
                        "unmapped_documents": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "role": {
                                "type": "string"
                              },
                              "action": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "general_expiration_days": {
                          "type": "integer",
                          "x-nullable": true,
                          "description": "Default `expiration_days` applied to all recipients in the invite."
                        },
                        "allowed_unmapped_sign_documents": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {}
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "cc": [
                          "cc_recipient1@email.com",
                          "cc_recipient2@email.com"
                        ],
                        "order_type": null,
                        "recipients": [
                          {
                            "name": "Buyer",
                            "email": "buyer@email.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Buyer_viewer_role_id_05ffe410-4fbf-49be-a9a4-9583c11d1b40",
                                "action": "view"
                              },
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Buyer",
                                "action": "sign"
                              }
                            ],
                            "attributes": {
                              "message": "Please contact for any questions",
                              "subject": "Review and sign documents",
                              "reminder": {
                                "remind_after": 3,
                                "remind_before": 5,
                                "remind_repeat": 7
                              },
                              "redirect_uri": "https://example.com",
                              "allow_reassign": "0",
                              "authentication": {
                                "type": "password",
                                "value": "1233456"
                              },
                              "i_am_recipient": false,
                              "expiration_days": 30,
                              "redirect_target": "blank",
                              "allow_forwarding": false,
                              "close_redirect_uri": "https://close-redirect-uri.com",
                              "show_decline_button": true,
                              "decline_by_signature": 0,
                              "decline_redirect_uri": "https://signnow.com"
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Seller",
                            "email": "seller@email.com",
                            "order": 2,
                            "documents": [
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Seller_viewer_role_id_ab14c5a0-aaac-4949-898c-12e7dba34d56",
                                "action": "view"
                              },
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Seller",
                                "action": "sign"
                              }
                            ],
                            "attributes": {
                              "message": "Please contact for any questions",
                              "subject": "Review and sign documents",
                              "reminder": {
                                "remind_after": 3,
                                "remind_before": 5,
                                "remind_repeat": 7
                              },
                              "redirect_uri": "https://example.com",
                              "allow_reassign": "0",
                              "authentication": {
                                "type": "password",
                                "value": "1233456"
                              },
                              "i_am_recipient": false,
                              "expiration_days": 30,
                              "redirect_target": "blank",
                              "allow_forwarding": false,
                              "close_redirect_uri": "https://close-redirect-uri.com",
                              "show_decline_button": true,
                              "decline_by_signature": 0,
                              "decline_redirect_uri": "https://signnow.com"
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Approver",
                            "email": "approver@email.com",
                            "order": 3,
                            "documents": [
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Approver",
                                "action": "approve"
                              },
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Approver",
                                "action": "approve"
                              }
                            ],
                            "attributes": {
                              "email": "approver@email.com",
                              "message": "Please contact for any questions",
                              "subject": "Review and approve documents",
                              "document_id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                              "redirect_uri": "https://www.signnow.com/",
                              "authentication": {
                                "type": "password",
                                "value": "1233456"
                              },
                              "expiration_days": 30
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Viewer",
                            "email": "viewer@email.com",
                            "order": 4,
                            "documents": [
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Viewer_viewer_role_id_57ae5e63-ff8e-40fc-9452-a4296b6d7353",
                                "action": "view"
                              },
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Viewer_viewer_role_id_d11e1726-8366-4fde-8354-e3dfece72ad8",
                                "action": "view"
                              }
                            ],
                            "attributes": {
                              "message": "Please contact for any questions",
                              "subject": "Review documents"
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          }
                        ],
                        "general_reminder": {
                          "remind_after": 3,
                          "remind_before": 5,
                          "remind_repeat": 7
                        },
                        "unmapped_documents": [
                          {
                            "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                            "role": "Viewer",
                            "action": "view"
                          },
                          {
                            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                            "role": "Buyer",
                            "action": "view"
                          },
                          {
                            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                            "role": "Seller",
                            "action": "view"
                          },
                          {
                            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                            "role": "Viewer",
                            "action": "view"
                          }
                        ],
                        "general_expiration_days": 30,
                        "allowed_unmapped_sign_documents": []
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "cc": [
                          "cc_recipient1@email.com",
                          "cc_recipient2@email.com"
                        ],
                        "order_type": null,
                        "recipients": [
                          {
                            "name": "Buyer",
                            "email": "buyer@email.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Buyer_viewer_role_id_05ffe410-4fbf-49be-a9a4-9583c11d1b40",
                                "action": "view"
                              },
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Buyer",
                                "action": "sign"
                              }
                            ],
                            "attributes": {
                              "message": "Please contact for any questions",
                              "subject": "Review and sign documents",
                              "reminder": {
                                "remind_after": 3,
                                "remind_before": 5,
                                "remind_repeat": 7
                              },
                              "redirect_uri": "https://example.com",
                              "allow_reassign": "0",
                              "authentication": {
                                "type": "password",
                                "value": "1233456"
                              },
                              "i_am_recipient": false,
                              "expiration_days": 30,
                              "redirect_target": "blank",
                              "allow_forwarding": false,
                              "close_redirect_uri": "https://close-redirect-uri.com",
                              "show_decline_button": true,
                              "decline_by_signature": 0,
                              "decline_redirect_uri": "https://signnow.com"
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Seller",
                            "email": "seller@email.com",
                            "order": 2,
                            "documents": [
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Seller_viewer_role_id_ab14c5a0-aaac-4949-898c-12e7dba34d56",
                                "action": "view"
                              },
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Seller",
                                "action": "sign"
                              }
                            ],
                            "attributes": {
                              "message": "Please contact for any questions",
                              "subject": "Review and sign documents",
                              "reminder": {
                                "remind_after": 3,
                                "remind_before": 5,
                                "remind_repeat": 7
                              },
                              "redirect_uri": "https://example.com",
                              "allow_reassign": "0",
                              "authentication": {
                                "type": "password",
                                "value": "1233456"
                              },
                              "i_am_recipient": false,
                              "expiration_days": 30,
                              "redirect_target": "blank",
                              "allow_forwarding": false,
                              "close_redirect_uri": "https://close-redirect-uri.com",
                              "show_decline_button": true,
                              "decline_by_signature": 0,
                              "decline_redirect_uri": "https://signnow.com"
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Approver",
                            "email": "approver@email.com",
                            "order": 3,
                            "documents": [
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Approver",
                                "action": "approve"
                              },
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Approver",
                                "action": "approve"
                              }
                            ],
                            "attributes": {
                              "email": "approver@email.com",
                              "message": "Please contact for any questions",
                              "subject": "Review and approve documents",
                              "document_id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                              "redirect_uri": "https://www.signnow.com/",
                              "authentication": {
                                "type": "password",
                                "value": "1233456"
                              },
                              "expiration_days": 30
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Viewer",
                            "email": "viewer@email.com",
                            "order": 4,
                            "documents": [
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Viewer_viewer_role_id_57ae5e63-ff8e-40fc-9452-a4296b6d7353",
                                "action": "view"
                              },
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Viewer_viewer_role_id_d11e1726-8366-4fde-8354-e3dfece72ad8",
                                "action": "view"
                              }
                            ],
                            "attributes": {
                              "message": "Please contact for any questions",
                              "subject": "Review documents"
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          }
                        ],
                        "general_reminder": {
                          "remind_after": 3,
                          "remind_before": 5,
                          "remind_repeat": 7
                        },
                        "unmapped_documents": [
                          {
                            "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                            "role": "Viewer",
                            "action": "view"
                          },
                          {
                            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                            "role": "Buyer",
                            "action": "view"
                          },
                          {
                            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                            "role": "Seller",
                            "action": "view"
                          },
                          {
                            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                            "role": "Viewer",
                            "action": "view"
                          }
                        ],
                        "general_expiration_days": 30,
                        "allowed_unmapped_sign_documents": []
                      }
                    }
                  },
                  "Success with signers, viewers, approvers": {
                    "value": {
                      "data": {
                        "cc": [
                          "cc_recipient1@email.com",
                          "cc_recipient2@email.com"
                        ],
                        "order_type": null,
                        "recipients": [
                          {
                            "name": "Buyer",
                            "email": "buyer@email.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Buyer_viewer_role_id_05ffe410-4fbf-49be-a9a4-9583c11d1b40",
                                "action": "view"
                              },
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Buyer",
                                "action": "sign"
                              }
                            ],
                            "attributes": {
                              "message": "Please contact for any questions",
                              "subject": "Review and sign documents",
                              "reminder": {
                                "remind_after": 3,
                                "remind_before": 5,
                                "remind_repeat": 7
                              },
                              "redirect_uri": "https://example.com",
                              "allow_reassign": "0",
                              "authentication": {
                                "type": "password",
                                "value": "1233456"
                              },
                              "i_am_recipient": false,
                              "expiration_days": 30,
                              "redirect_target": "blank",
                              "allow_forwarding": false,
                              "close_redirect_uri": "https://close-redirect-uri.com",
                              "show_decline_button": true,
                              "decline_by_signature": 0,
                              "decline_redirect_uri": "https://signnow.com"
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Seller",
                            "email": "seller@email.com",
                            "order": 2,
                            "documents": [
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Seller_viewer_role_id_ab14c5a0-aaac-4949-898c-12e7dba34d56",
                                "action": "view"
                              },
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Seller",
                                "action": "sign"
                              }
                            ],
                            "attributes": {
                              "message": "Please contact for any questions",
                              "subject": "Review and sign documents",
                              "reminder": {
                                "remind_after": 3,
                                "remind_before": 5,
                                "remind_repeat": 7
                              },
                              "redirect_uri": "https://example.com",
                              "allow_reassign": "0",
                              "authentication": {
                                "type": "password",
                                "value": "1233456"
                              },
                              "i_am_recipient": false,
                              "expiration_days": 30,
                              "redirect_target": "blank",
                              "allow_forwarding": false,
                              "close_redirect_uri": "https://close-redirect-uri.com",
                              "show_decline_button": true,
                              "decline_by_signature": 0,
                              "decline_redirect_uri": "https://signnow.com"
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Approver",
                            "email": "approver@email.com",
                            "order": 3,
                            "documents": [
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Approver",
                                "action": "approve"
                              },
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Approver",
                                "action": "approve"
                              }
                            ],
                            "attributes": {
                              "email": "approver@email.com",
                              "message": "Please contact for any questions",
                              "subject": "Review and approve documents",
                              "document_id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                              "redirect_uri": "https://www.signnow.com/",
                              "authentication": {
                                "type": "password",
                                "value": "1233456"
                              },
                              "expiration_days": 30
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Viewer",
                            "email": "viewer@email.com",
                            "order": 4,
                            "documents": [
                              {
                                "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                                "role": "Viewer_viewer_role_id_57ae5e63-ff8e-40fc-9452-a4296b6d7353",
                                "action": "view"
                              },
                              {
                                "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                                "role": "Viewer_viewer_role_id_d11e1726-8366-4fde-8354-e3dfece72ad8",
                                "action": "view"
                              }
                            ],
                            "attributes": {
                              "message": "Please contact for any questions",
                              "subject": "Review documents"
                            },
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          }
                        ],
                        "general_reminder": {
                          "remind_after": 3,
                          "remind_before": 5,
                          "remind_repeat": 7
                        },
                        "unmapped_documents": [
                          {
                            "id": "4c67456dc7d3430ba89514667ce4f32da7b33f76",
                            "role": "Viewer",
                            "action": "view"
                          },
                          {
                            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                            "role": "Buyer",
                            "action": "view"
                          },
                          {
                            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                            "role": "Seller",
                            "action": "view"
                          },
                          {
                            "id": "77f637a5dc3d47c4ba574a86b573a0562a07cc77",
                            "role": "Viewer",
                            "action": "view"
                          }
                        ],
                        "general_expiration_days": 30,
                        "allowed_unmapped_sign_documents": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "\t\nRequest with any of cases:\n\n- incorrect token of user\n- expired token of user\n- empty header\n- authorization = null\n- authorization without value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Access to DocumentGroup is denied",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Access to DocumentGroup is denied": {
                    "value": {
                      "errors": [
                        {
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Request with any of cases:\n\n- Document Group is not found\n- Document with incorrect UID",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Group not found or incorrect ID": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Document group `b1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "put-v2-document-groups-document-group-id-recipients",
        "summary": "Edit doc group recipients",
        "description": "This endpoint allows users to add or remove document group recipients. Users can edit recipients' emails, roles and role actions, signing order, CC recipients, and more. \n\nYou cannot edit recipients for a document group with an active signature invite.\n\n> To pre-fill recipients' information when sending an invite, `name` must match `role`.\n\n**Recipients and roles in document groups**\n\n- The same email address can have multiple roles in a document group — for example, if the recipient acts as \"Agent\" in one document and \"Manager\" in another.\n- The API creates a separate entry for each role, so the same email address may appear multiple times in the response.\n\n**Example:** If recipient@example.com is assigned as \"Agent\" in Document A and \"Manager\" in Document B, the response will contain two separate entries for recipient@example.com — one per role.\n\n**Mapping tip:** When mapping recipients in your integration, group by email address rather than by role name.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully updated document group recipients.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "cc": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "order_type": {
                          "enum": [
                            "at_the_same_time",
                            "recipient_order",
                            "advanced_order",
                            null
                          ],
                          "type": "string",
                          "x-nullable": true,
                          "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
                        },
                        "recipients": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "email": {
                                "type": "string"
                              },
                              "order": {
                                "type": "integer"
                              },
                              "documents": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "role": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "message": {
                                    "type": "string"
                                  },
                                  "subject": {
                                    "type": "string"
                                  },
                                  "reminder": {
                                    "type": "object",
                                    "properties": {
                                      "remind_after": {
                                        "type": "integer"
                                      },
                                      "remind_before": {
                                        "type": "integer"
                                      },
                                      "remind_repeat": {
                                        "type": "integer"
                                      }
                                    }
                                  },
                                  "redirect_uri": {
                                    "type": "string"
                                  },
                                  "authentication": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string"
                                      },
                                      "phone": {
                                        "type": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      },
                                      "method": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "i_am_recipient": {
                                    "type": "boolean"
                                  },
                                  "expiration_days": {
                                    "type": "integer"
                                  },
                                  "allow_forwarding": {
                                    "type": "boolean"
                                  },
                                  "close_redirect_uri": {
                                    "type": "string"
                                  },
                                  "show_decline_button": {
                                    "type": "boolean"
                                  },
                                  "decline_redirect_uri": {
                                    "type": "string"
                                  }
                                }
                              },
                              "email_group": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          }
                        },
                        "general_reminder": {
                          "type": "object",
                          "properties": {
                            "remind_after": {
                              "type": "integer",
                              "description": "Days after invite is sent before a reminder is delivered."
                            },
                            "remind_before": {
                              "type": "integer",
                              "description": "Days before expiration when a reminder is delivered."
                            },
                            "remind_repeat": {
                              "type": "integer",
                              "description": "Days between repeated reminders."
                            }
                          },
                          "x-nullable": true,
                          "description": "Default `reminder` applied to all recipients in the invite."
                        },
                        "general_expiration_days": {
                          "type": "integer",
                          "x-nullable": true,
                          "description": "Default `expiration_days` applied to all recipients in the invite."
                        },
                        "allowed_unmapped_sign_documents": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "cc": [
                          "test2@test.com",
                          "test@test.com"
                        ],
                        "order_type": null,
                        "recipients": [
                          {
                            "name": "Recipient 1",
                            "email": "signer1@email.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "512293743e954e92beafca9460ce5f83b87db885",
                                "role": "Recipient 1",
                                "action": "sign"
                              },
                              {
                                "id": "ec45e6daa0354d22997abef44232d7fbc60683e6",
                                "role": "Recipient 1",
                                "action": "sign"
                              }
                            ],
                            "attributes": {
                              "message": "test message",
                              "subject": "test subject",
                              "reminder": {
                                "remind_after": 5,
                                "remind_before": 5,
                                "remind_repeat": 5
                              },
                              "redirect_uri": "https://www.signnow.com/",
                              "authentication": {
                                "type": "password",
                                "phone": "+12345678",
                                "value": "123456",
                                "method": "phone_call"
                              },
                              "i_am_recipient": false,
                              "expiration_days": 10,
                              "allow_forwarding": false,
                              "close_redirect_uri": "https://www.signnow.com/",
                              "show_decline_button": true,
                              "decline_redirect_uri": "https://www.signnow.com/"
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Recipient 2",
                            "email": "signer2@email.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "ec45e6daa0354d22997abef44232d7fbc60683e6",
                                "role": "Recipient 2",
                                "action": "sign"
                              },
                              {
                                "id": "512293743e954e92beafca9460ce5f83b87db885",
                                "role": "Recipient 2",
                                "action": "view"
                              }
                            ],
                            "attributes": {}
                          }
                        ],
                        "general_reminder": {
                          "remind_after": 3,
                          "remind_before": 5,
                          "remind_repeat": 7
                        },
                        "general_expiration_days": 30,
                        "allowed_unmapped_sign_documents": []
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "cc": [
                          "test2@test.com",
                          "test@test.com"
                        ],
                        "order_type": null,
                        "recipients": [
                          {
                            "name": "Recipient 1",
                            "email": "signer1@email.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "512293743e954e92beafca9460ce5f83b87db885",
                                "role": "Recipient 1",
                                "action": "sign"
                              },
                              {
                                "id": "ec45e6daa0354d22997abef44232d7fbc60683e6",
                                "role": "Recipient 1",
                                "action": "sign"
                              }
                            ],
                            "attributes": {
                              "message": "test message",
                              "subject": "test subject",
                              "reminder": {
                                "remind_after": 5,
                                "remind_before": 5,
                                "remind_repeat": 5
                              },
                              "redirect_uri": "https://www.signnow.com/",
                              "authentication": {
                                "type": "password",
                                "phone": "+12345678",
                                "value": "123456",
                                "method": "phone_call"
                              },
                              "i_am_recipient": false,
                              "expiration_days": 10,
                              "allow_forwarding": false,
                              "close_redirect_uri": "https://www.signnow.com/",
                              "show_decline_button": true,
                              "decline_redirect_uri": "https://www.signnow.com/"
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Recipient 2",
                            "email": "signer2@email.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "ec45e6daa0354d22997abef44232d7fbc60683e6",
                                "role": "Recipient 2",
                                "action": "sign"
                              },
                              {
                                "id": "512293743e954e92beafca9460ce5f83b87db885",
                                "role": "Recipient 2",
                                "action": "view"
                              }
                            ],
                            "attributes": {}
                          }
                        ],
                        "general_reminder": {
                          "remind_after": 3,
                          "remind_before": 5,
                          "remind_repeat": 7
                        },
                        "general_expiration_days": 30,
                        "allowed_unmapped_sign_documents": []
                      }
                    }
                  },
                  "Successfully updated document group recipients": {
                    "value": {
                      "data": {
                        "cc": [
                          "viewer1@email.com",
                          "viewer2@email.com"
                        ],
                        "order_type": null,
                        "recipients": [
                          {
                            "name": "Recipient 1",
                            "email": "signer1@email.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "XXXXXXXXXe954e92beafca9460ce5f83b87db885",
                                "role": "Recipient 1",
                                "action": "sign"
                              },
                              {
                                "id": "XXXXXXXXX0354d22997abef44232d7fbc60683e6",
                                "role": "Recipient 1",
                                "action": "sign"
                              }
                            ],
                            "attributes": {
                              "message": "test message 1",
                              "subject": "test subject",
                              "reminder": {
                                "remind_after": 5,
                                "remind_before": 5,
                                "remind_repeat": 5
                              },
                              "redirect_uri": "https://www.signnow.com/",
                              "authentication": {
                                "type": "password",
                                "value": "123456"
                              },
                              "i_am_recipient": false,
                              "expiration_days": 10,
                              "allow_forwarding": false,
                              "close_redirect_uri": "https://www.signnow.com/",
                              "show_decline_button": true,
                              "decline_redirect_uri": "https://www.signnow.com/"
                            }
                          },
                          {
                            "name": "Recipient 2",
                            "email": "signer2@email.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "XXXXXXXXXe954e92beafca9460ce5f83b87db885",
                                "role": "Recipient 2",
                                "action": "sign"
                              },
                              {
                                "id": "XXXXXXXXX0354d22997abef44232d7fbc60683e6",
                                "role": "Recipient 2",
                                "action": "view"
                              }
                            ],
                            "attributes": {},
                            "phone_invite": null
                          }
                        ],
                        "general_reminder": {
                          "remind_after": 3,
                          "remind_before": 5,
                          "remind_repeat": 7
                        },
                        "general_expiration_days": 30,
                        "allowed_unmapped_sign_documents": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request with any of cases:\n\n* incorrect Bearer token \n* expired token \n* empty header\n* authorization = null\n* authorization without value\n\n* Document is not in DocumentGroup\n* One of the roles doesn't exist\n* The same role can't be used twice\n* Recipients must be an array\n* Name parameter is required\n* Email field must be a valid email\n* Order must be an integer\n* Documents must be not null\n* Incorrect document id provided\n* Incorrect action of the document\n* Recipients must be not empty\n* Role must be a string\n* The name field must be a maximum 255 symbols length\n* The order field must be from 1 to 127\n* Action parameter is required\n* Action must be a string\n* Name must be a string\n* Email must be a string\n* Documents must be an array\n* Order parameter is required\n* Document id must be not blank\n* Document id must be a string\n* Document role must be not blank\n* The same name can't be used twice with the same order. Wrong recipient name: test; First order: 1; Second order: 1\n* For viewers allowed only attribute.message, attribute.subject and attribute.i_am_recipient .\n* At the same time, only one recipient can have attribute.i_am_recipient = true.\n* Forbidden to use attribute.allow_forwarding with attribute.authentication at the same time.\n* The type field in attributes.authentication should be of type string.\n* The type field in attributes.authentication should be phone or password.\n* The type field in attributes.authentication must be not null.\n* The value field in attributes.authentication must be a maximum 5000 symbols length.\n* The value field in attributes.authentication should be of type string.\n* The value field in attributes.authentication should not be empty string.\n* 4-byte characters in attributes.authentication.value are not supported.\n* The phone field in attributes.authentication should be of type string.\n* The phone field in attributes.authentication should have a valid phone format for U.S. and Canada.\n* The phone field in attributes.authentication should not be empty string.\n* The phone field in attributes.authentication is required when type is phone.\n* The method field in attributes.authentication should be of type string.\n* The method field in attributes.authentication should be sms or phone_call.\n* The method field is required when authentication.type = phone.\n* The phone field in attributes.authentication should not be empty string.\n* The remind_after must be less than attributes.expiration_days.\n* The remind_before must be less than attributes.expiration_days.\n* The remind_repeat must be less than attributes.expiration_days.\n* The remind_after field in attributes.reminder attribute must be an integer.\n* The remind_repeat field in attributes.reminder attribute must be an integer.\n* The remind_before field in attributes.reminder attribute must be an integer.\n* The remind_after field in attributes.reminder cannot be less than 0.\n* The remind_repeat field in attributes.reminder cannot be less than 0.\n* The remind_before field in attributes.reminder cannot be less than 0.\n* The remind_after field in attributes.reminder should be less then or equal 179.\n* The remind_repeat field in attributes.reminder should be less then or equal 179.\n* The remind_before field in attributes.reminder should be less then or equal 179.\n* The attributes.type:password is allowed to use only with attributes.value.\n* The attributes.type:phone isnt allowed to use withattributes.value`.\n* The i_am_recipient field in attributes should be used with owners email`.\n* The `cc` emails are not valid.\n\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 13020025,
                          "message": "recipients must be not empty"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020025,
                          "message": "recipients must be not empty"
                        }
                      ]
                    }
                  },
                  "cc emails not valid": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020043,
                          "message": "The `cc` field must contain valid emails."
                        }
                      ]
                    }
                  },
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Name must be a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020013,
                          "message": "name must be a string"
                        }
                      ]
                    }
                  },
                  "Role must be a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020010,
                          "message": "role must be a string"
                        }
                      ]
                    }
                  },
                  "Email must be a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020015,
                          "message": "email must be a string"
                        }
                      ]
                    }
                  },
                  "Action must be a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020011,
                          "message": "action must be a string"
                        }
                      ]
                    }
                  },
                  "Order must be an integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020019,
                          "message": "order must be an integer"
                        }
                      ]
                    }
                  },
                  "Documents must be an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020016,
                          "message": "documents must be an array"
                        }
                      ]
                    }
                  },
                  "Documents must be not null": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020023,
                          "message": "documents must be not null"
                        }
                      ]
                    }
                  },
                  "Name parameter is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020014,
                          "message": "'name' parameter is required"
                        }
                      ]
                    }
                  },
                  "Order parameter is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020018,
                          "message": "'order' parameter is required"
                        }
                      ]
                    }
                  },
                  "Recipients must be an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020002,
                          "message": "Recipients must be an array"
                        }
                      ]
                    }
                  },
                  "Action parameter is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020012,
                          "message": "'action' parameter is required"
                        }
                      ]
                    }
                  },
                  "Document id must be a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020021,
                          "message": "document id must be an string"
                        }
                      ]
                    }
                  },
                  "Recipients must be not empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020025,
                          "message": "recipients must be not empty"
                        }
                      ]
                    }
                  },
                  "Document id must be not blank": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020020,
                          "message": "document id must be not blank"
                        }
                      ]
                    }
                  },
                  "Incorrect document id provided": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020009,
                          "message": "Invalid id provided, value: 03XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX given"
                        }
                      ]
                    }
                  },
                  "One of the roles doesn't exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020006,
                          "message": "One of the roles doesn't exist"
                        }
                      ]
                    }
                  },
                  "Document role must be not blank": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020022,
                          "message": "document role must be not blank"
                        }
                      ]
                    }
                  },
                  "Document is not in DocumentGroup": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020026,
                          "message": "Document is not in DocumentGroup"
                        }
                      ]
                    }
                  },
                  "Incorrect action of the document": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020024,
                          "message": "action must be one of the following: sign, view"
                        }
                      ]
                    }
                  },
                  "Email field must be a valid email": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020003,
                          "message": "The `email` field must be a valid email."
                        }
                      ]
                    }
                  },
                  "The same role can't be used twice": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020007,
                          "message": "The same role can't be used twice"
                        }
                      ]
                    }
                  },
                  "The order field must be from 1 to 127": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020005,
                          "message": "The `order` field must be from 1 to 127"
                        }
                      ]
                    }
                  },
                  "The name field must be a maximum 255 symbols length": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020004,
                          "message": "The `name` field must be a maximum 255 symbols length"
                        }
                      ]
                    }
                  },
                  "The type field in attributes.authentication must be not null.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020070,
                          "message": "The `type` field in `attributes.authentication` must be not null."
                        }
                      ]
                    }
                  },
                  "The method field is required when authentication.type = phone.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020082,
                          "message": "The `method` field is required when `authentication.type` = `phone`."
                        }
                      ]
                    }
                  },
                  " The remind_after must be less than attributes.expiration_days.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020087,
                          "message": "The `remind_after` must be less than `attributes.expiration_days`."
                        }
                      ]
                    }
                  },
                  "The remind_before must be less than attributes.expiration_days.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020087,
                          "message": "The `remind_before` must be less than `attributes.expiration_days`."
                        }
                      ]
                    }
                  },
                  " The remind_repeat must be less than attributes.expiration_days.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020087,
                          "message": "The `remind_repeat` must be less than `attributes.expiration_days`."
                        }
                      ]
                    }
                  },
                  "The attributes.type:phone isnt allowed to use withattributes.value`.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020098,
                          "message": "The `attributes.type`:`phone` isn`t allowed to use with `attributes.value`."
                        }
                      ]
                    }
                  },
                  "The remind_after field in attributes.reminder cannot be less than 0.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020091,
                          "message": "The `remind_after` field in `attributes.reminder` cannot be less than 0."
                        }
                      ]
                    }
                  },
                  "The remind_before field in attributes.reminder cannot be less than 0.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020093,
                          "message": "The `remind_before` field in `attributes.reminder` cannot be less than 0."
                        }
                      ]
                    }
                  },
                  "The remind_repeat field in attributes.reminder cannot be less than 0.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020092,
                          "message": "The `remind_repeat` field in `attributes.reminder` cannot be less than 0."
                        }
                      ]
                    }
                  },
                  "The type field in attributes.authentication should be of type string.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020068,
                          "message": "The `type` field in `attributes.authentication` should be of type string."
                        }
                      ]
                    }
                  },
                  "The phone field in attributes.authentication should be of type string.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020075,
                          "message": "The `phone` field in `attributes.authentication` should be of type string."
                        }
                      ]
                    }
                  },
                  "The value field in attributes.authentication should be of type string.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020073,
                          "message": "The `value` field in `attributes.authentication` should be of type string."
                        }
                      ]
                    }
                  },
                  "4-byte characters in attributes.authentication.value are not supported.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020072,
                          "message": "4-byte characters in `attributes.authentication.value` are not supported."
                        }
                      ]
                    }
                  },
                  "The method field in attributes.authentication should be of type string.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020080,
                          "message": "The `method` field in `attributes.authentication` should be of type string."
                        }
                      ]
                    }
                  },
                  "The phone field in attributes.authentication should not be empty string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020083,
                          "message": "The `phone` field in `attributes.authentication` should not be empty string."
                        }
                      ]
                    }
                  },
                  "The phone field in attributes.authentication should not be empty string.": {
                    "value": {}
                  },
                  "The type field in attributes.authentication should be phone or password.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020069,
                          "message": "The `type` field in `attributes.authentication` should be `phone` or `password`."
                        }
                      ]
                    }
                  },
                  "The value field in attributes.authentication should not be empty string.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020074,
                          "message": "The `value` field in `attributes.authentication` should not be empty string."
                        }
                      ]
                    }
                  },
                  "The i_am_recipient field in attributes should be used with owners email`.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020099,
                          "message": "The `i_am_recipient` field in `attributes` should be used with owners email`."
                        }
                      ]
                    }
                  },
                  "The attributes.type:password is allowed to use only with attributes.value.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020097,
                          "message": "The `attributes.type`:`password` is allowed to use only with `attributes.value`."
                        }
                      ]
                    }
                  },
                  "The method field in attributes.authentication should be sms or phone_call.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020081,
                          "message": "The `method` field in `attributes.authentication` should be `sms` or `phone_call`."
                        }
                      ]
                    }
                  },
                  "The remind_after field in attributes.reminder attribute must be an integer.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020088,
                          "message": "The `remind_after` field in `attributes.reminder` attribute must be an integer."
                        }
                      ]
                    }
                  },
                  "The phone field in attributes.authentication is required when type is phone.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020078,
                          "message": "The `phone` field in `attributes.authentication` is required when `type` is `phone`."
                        }
                      ]
                    }
                  },
                  "The remind_before field in attributes.reminder attribute must be an integer.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020090,
                          "message": "The `remind_before` field in `attributes.reminder` attribute must be an integer."
                        }
                      ]
                    }
                  },
                  "The remind_repeat field in attributes.reminder attribute must be an integer.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020089,
                          "message": "The `remind_repeat` field in `attributes.reminder` attribute must be an integer."
                        }
                      ]
                    }
                  },
                  "At the same time, only one recipient can have attribute.i_am_recipient = true.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020085,
                          "message": "At the same time, only one recipient can have `attribute.i_am_recipient` = `true`."
                        }
                      ]
                    }
                  },
                  "The remind_after field in attributes.reminder should be less then or equal 179.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020094,
                          "message": "The `remind_after` field in `attributes.reminder` should be less then or equal 179."
                        }
                      ]
                    }
                  },
                  "The remind_before field in attributes.reminder should be less then or equal 179.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020096,
                          "message": "The `remind_before` field in `attributes.reminder` should be less then or equal 179."
                        }
                      ]
                    }
                  },
                  "The remind_repeat field in attributes.reminder should be less then or equal 179.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020095,
                          "message": "The `remind_repeat` field in `attributes.reminder` should be less then or equal 179."
                        }
                      ]
                    }
                  },
                  " The value field in attributes.authentication must be a maximum 5000 symbols length.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020071,
                          "message": "The `value` field in `attributes.authentication` must be a maximum 5000 symbols length."
                        }
                      ]
                    }
                  },
                  "For viewers allowed only attribute.message, attribute.subject and attribute.i_am_recipient.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020084,
                          "message": "For viewers allowed only `attribute.message`, `attribute.subject` and `attribute.i_am_recipient`."
                        }
                      ]
                    }
                  },
                  "Forbidden to use attribute.allow_forwarding with attribute.authentication at the same time.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020086,
                          "message": "Forbidden to use `attribute.allow_forwarding` with `attribute.authentication` at the same time."
                        }
                      ]
                    }
                  },
                  "The phone field in attributes.authentication should have a valid phone format for U.S. and Canada.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020076,
                          "message": "The `phone` field in `attributes.authentication` should have a valid phone format for U.S. and Canada."
                        }
                      ]
                    }
                  },
                  "The same name can't be used twice with the same order. Wrong recipient name: test; First order: 1; Second order: 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020027,
                          "message": "The same name can't be used twice with the same order. Wrong recipient name: `test`; First order: `1`; Second order: `1`"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Access to DocumentGroup is denied",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 13020008,
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020008,
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  },
                  "Access to DocumentGroup is denied": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020008,
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Document Group is not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Document group `b1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Document group `b1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  },
                  "Doc group not found or incorrect UID": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Document group `b1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "recipients"
                ],
                "properties": {
                  "cc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "List of email addresses for CC recipients."
                  },
                  "order_type": {
                    "enum": [
                      "at_the_same_time",
                      "recipient_order",
                      "advanced_order",
                      null
                    ],
                    "type": "string",
                    "x-nullable": true,
                    "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
                  },
                  "recipients": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "order",
                        "documents"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "Signer",
                          "maxLength": 255,
                          "description": "Recipient's name."
                        },
                        "email": {
                          "type": "string",
                          "example": "signer@email.com",
                          "description": "Recipient's email address."
                        },
                        "order": {
                          "type": "integer",
                          "example": 1,
                          "maximum": 27,
                          "minimum": 1,
                          "description": "Order of receiving the document group invite."
                        },
                        "documents": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "id",
                              "role",
                              "action"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aYYYY",
                                "description": "Document ID."
                              },
                              "role": {
                                "type": "string",
                                "example": "Signer",
                                "description": "Recipient's role name."
                              },
                              "action": {
                                "type": "string",
                                "example": "sign",
                                "description": "Allowed action with a document. Possible values: `view`, `sign`,`approve`."
                              }
                            }
                          },
                          "description": "List of documents, recipient roles, and allowed actions. Should contain at least one document."
                        },
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "message": {
                              "type": "string",
                              "example": "{fullName} shared {documentName} for signing.",
                              "description": "Invite email message. Supports {documentName} and {fullName} placeholders.",
                              "x-stoplight": {
                                "id": "qan1mztdutmy8"
                              }
                            },
                            "subject": {
                              "type": "string",
                              "example": "Review and sign {documentName}",
                              "description": "Invite email subject. Supports {documentName} and {fullName} placeholders.",
                              "x-stoplight": {
                                "id": "y9twpi8sfo304"
                              }
                            },
                            "reminder": {
                              "type": "object",
                              "properties": {
                                "remind_after": {
                                  "type": "integer",
                                  "example": 5,
                                  "description": "Send the reminder email to the recipient after the set amount of days. `remind_after` must be less than `expiration_days`.",
                                  "x-stoplight": {
                                    "id": "aooht17ng8icb"
                                  }
                                },
                                "remind_before": {
                                  "type": "integer",
                                  "example": 5,
                                  "description": "Send the reminder email to the recipient in a set amount of days before the invite expiration. `remind_before` must be less than `expiration_days`.",
                                  "x-stoplight": {
                                    "id": "9qctgsiy7rifo"
                                  }
                                },
                                "remind_repeat": {
                                  "type": "integer",
                                  "example": 5,
                                  "description": "Send the reminder email to the recipient every set amount of days. `remind_repeat` must be less than `expiration_days`.",
                                  "x-stoplight": {
                                    "id": "el656mcqf80tg"
                                  }
                                }
                              },
                              "description": "Reminder email settings. Available for `sign` action.",
                              "x-stoplight": {
                                "id": "b33n1k6zzi15v"
                              }
                            },
                            "redirect_uri": {
                              "type": "string",
                              "example": "https://www.signnow.com/",
                              "description": "The link that opens after the signing session has been completed.",
                              "x-stoplight": {
                                "id": "2l6u9ewl8ll6b"
                              }
                            },
                            "authentication": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "example": "phone",
                                  "description": "Type of the recipient authentication. Can be `phone` or `password`.​​ Required inside the `authentication` object.",
                                  "x-stoplight": {
                                    "id": "9ae1zmcvpw34e"
                                  }
                                },
                                "phone": {
                                  "type": "string",
                                  "example": "+12345678",
                                  "description": "The phone number for the recipient's authentication. Required with type `phone`.",
                                  "x-stoplight": {
                                    "id": "9b4drjivktdud"
                                  }
                                },
                                "value": {
                                  "type": "string",
                                  "example": "123456",
                                  "description": "The password to unlock the document group. \nRequired inside the `authentication` object with the `password` authentication type.",
                                  "x-stoplight": {
                                    "id": "hsd4byyqurb2o"
                                  }
                                },
                                "method": {
                                  "type": "string",
                                  "example": "phone_call",
                                  "description": "Phone authentication type. Required inside the `authentication` object with the `phone` authentication type. Allowed values: `sms`, `phone_call`.",
                                  "x-stoplight": {
                                    "id": "u31vc46s7v1xo"
                                  }
                                },
                                "sms_message": {
                                  "type": "string",
                                  "example": "Enter the password {password} to unlock your document.",
                                  "description": "Custom SMS message sent to the recipient, containing the {password} placeholder. Used with the `sms` method. Without this parameter, the signer receives a default SMS with an autogenerated password (unlock code): “SignNow document invite unlock code: 123456.”",
                                  "x-stoplight": {
                                    "id": "vgfizr1ipgdw5"
                                  }
                                }
                              },
                              "description": "Recipient authentication settings. Available for recipients with `sign` and `approve` actions. Can not be used when `allow_forwarding`is set to true.",
                              "x-stoplight": {
                                "id": "8lox972m304ir"
                              }
                            },
                            "i_am_recipient": {
                              "type": "boolean",
                              "description": "Set to `true` if the document sender is also a recipient. Available for `sign` action.",
                              "x-stoplight": {
                                "id": "p4g1cvn49ad71"
                              }
                            },
                            "expiration_days": {
                              "type": "integer",
                              "example": 10,
                              "maximum": 180,
                              "minimum": 3,
                              "description": "Days until the invite expires. Available for `sign`and `approve` actions.",
                              "x-stoplight": {
                                "id": "u8ik63srv3nju"
                              }
                            },
                            "redirect_target": {
                              "type": "string",
                              "example": "blank",
                              "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                              "x-stoplight": {
                                "id": "sp2u7ayk1z0na"
                              }
                            },
                            "allow_forwarding": {
                              "type": "boolean",
                              "description": "Whether recipients are allowed to reassign the invite to a different email address. Available for `sign` action.",
                              "x-stoplight": {
                                "id": "x3wlb3chmc6fa"
                              }
                            },
                            "close_redirect_uri": {
                              "type": "string",
                              "example": "https://www.signnow.com/",
                              "description": "The link that opens when a signer clicks **Save Progress and Finish Later** during a signing session or **Close** in view mode. Available for `sign ` action.",
                              "x-stoplight": {
                                "id": "uo3cjzscn2a3b"
                              }
                            },
                            "show_decline_button": {
                              "type": "boolean",
                              "description": "Whether to show the Decline button on signatue fields. Available for `sign` action.",
                              "x-stoplight": {
                                "id": "0p20nxgun6f1z"
                              }
                            },
                            "decline_redirect_uri": {
                              "type": "string",
                              "example": "https://www.signnow.com/",
                              "description": "The URL that opens after the recipient declines the document. Available for `sign` action.",
                              "x-stoplight": {
                                "id": "uy9r0yvhyzc9w"
                              }
                            }
                          },
                          "description": "Signature invite attributes.",
                          "x-stoplight": {
                            "id": "ayx0tk19n5dzs"
                          }
                        },
                        "email_group": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "example": "29XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "description": "ID of the email group.",
                              "x-stoplight": {
                                "id": "jt1ghuxp7tk2b"
                              }
                            }
                          },
                          "description": "Group of recipients, such as a [CRM Contact group](/docs/contact-groups/operations/post-v2-crm-groups). Use either `email` or `email_group`, but not both simultaneously.",
                          "x-stoplight": {
                            "id": "yukislphhrr6x"
                          }
                        }
                      }
                    },
                    "description": "List of document group recipients. Should contain at least one recipient."
                  },
                  "general_reminder": {
                    "type": "object",
                    "properties": {
                      "remind_after": {
                        "type": "integer",
                        "description": "Days after invite is sent before a reminder is delivered. Must be less than `general_expiration_days`."
                      },
                      "remind_before": {
                        "type": "integer",
                        "description": "Days before expiration when a reminder is delivered. Must be less than `general_expiration_days`."
                      },
                      "remind_repeat": {
                        "type": "integer",
                        "description": "Days between repeated reminders."
                      }
                    },
                    "x-nullable": true,
                    "description": "Default `reminder` applied to all recipients in the invite."
                  },
                  "general_expiration_days": {
                    "type": "integer",
                    "maximum": 180,
                    "minimum": 1,
                    "x-nullable": true,
                    "description": "Default `expiration_days` applied to all recipients in the invite. Min: `1`, Max: `180`. Default: `30`."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "cc": [
                      "test@test.com",
                      "test2@test.com"
                    ],
                    "order_type": "recipient_order",
                    "recipients": [
                      {
                        "name": "Recipient 1",
                        "email": "emailtest@test.test",
                        "order": 1,
                        "documents": [
                          {
                            "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7412",
                            "role": "Actor name",
                            "action": "sign"
                          },
                          {
                            "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
                            "role": "Viewer name",
                            "action": "view"
                          }
                        ],
                        "attributes": {
                          "message": "test message",
                          "subject": "test subject",
                          "reminder": {
                            "remind_after": 10,
                            "remind_before": 10,
                            "remind_repeat": 10
                          },
                          "signature": {
                            "type": "eideasy"
                          },
                          "redirect_uri": "https://redirect-uri.com",
                          "authentication": {
                            "type": "type",
                            "phone": "phone number",
                            "value": "value for the paas protection",
                            "method": "method name"
                          },
                          "i_am_recipient": true,
                          "expiration_days": 10,
                          "allow_forwarding": true,
                          "close_redirect_uri": "https://close-redirect-uri.com",
                          "show_decline_button": true,
                          "decline_redirect_uri": "https://decline-redirect-uri.com"
                        },
                        "phone_invite": null
                      }
                    ],
                    "general_reminder": {
                      "remind_after": 3,
                      "remind_before": 5,
                      "remind_repeat": 7
                    },
                    "unmapped_documents": [
                      {
                        "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
                        "role": "Actor name",
                        "action": "sign"
                      }
                    ],
                    "general_expiration_days": 30,
                    "allowed_unmapped_sign_documents": [
                      {
                        "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
                        "role": "Actor name",
                        "recipient": "Recipient 1"
                      }
                    ]
                  }
                }
              },
              "examples": {
                "Request for editing document group recipients": {
                  "value": {
                    "cc": [
                      "viewer1@email.com",
                      "viewer2@email.com"
                    ],
                    "order_type": "recipient_order",
                    "recipients": [
                      {
                        "name": "Recipient 1",
                        "order": 1,
                        "documents": [
                          {
                            "id": "XXXXXXXXXe954e92beafca9460ce5f83b87db885",
                            "role": "Recipient 1",
                            "action": "sign"
                          },
                          {
                            "id": "XXXXXXXXX0354d22997abef44232d7fbc60683e6",
                            "role": "Recipient 1",
                            "action": "sign"
                          }
                        ],
                        "attributes": {
                          "message": "test message",
                          "subject": "test subject",
                          "reminder": {
                            "remind_after": 5,
                            "remind_before": 5,
                            "remind_repeat": 5
                          },
                          "redirect_uri": "https://www.signnow.com/",
                          "authentication": {
                            "type": "password",
                            "value": "1233456"
                          },
                          "i_am_recipient": false,
                          "expiration_days": 10,
                          "allow_forwarding": false,
                          "close_redirect_uri": "https://www.signnow.com/",
                          "show_decline_button": true,
                          "decline_redirect_uri": "https://www.signnow.com/"
                        }
                      },
                      {
                        "name": "Recipient 2",
                        "email": "signer2@email.com",
                        "order": 1,
                        "documents": [
                          {
                            "id": "XXXXXXXXXe954e92beafca9460ce5f83b87db885",
                            "role": "Recipient 2",
                            "action": "sign"
                          },
                          {
                            "id": "XXXXXXXXX0354d22997abef44232d7fbc60683e6",
                            "role": "Recipient 2",
                            "action": "view"
                          }
                        ]
                      }
                    ],
                    "general_reminder": {
                      "remind_after": 3,
                      "remind_before": 5,
                      "remind_repeat": 7
                    },
                    "general_expiration_days": 30
                  }
                }
              }
            }
          }
        }
      }
    },
    "/documentgroup/{document_group_id}/groupinvite/{invite_id}": {
      "get": {
        "operationId": "get-document-group-invite",
        "summary": "Get doc group invite",
        "description": "This endpoint returns document group invite information, including the status of each field invite, step and action.\n\nHere is the list of possible invite, action and step statuses:\n- `created`: invite, action, or step has been created but is not waiting to be signed.\n- `pending`: emails have been sent out for this invite action or step and are waiting to be viewed or signed.\n- `fulfilled`: the invite, action, or step has been completed by signing, viewing or approving.\n- `correction`: the step recipient is modifying the invite. \n- `canceled`: the invite or step has been canceled by the recipient.\n\nPossible invite actions are:\n- `view`: The recipient can only review the document without making changes.\n- `sign`: The recipient can sign or fill out the document.\n- `approve`: The recipient can review the document to approve or decline it.\n\n",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          },
          {
            "in": "path",
            "name": "invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group invite."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invite": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "ID of the document group invite."
                        },
                        "steps": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "ID of the invite step."
                              },
                              "order": {
                                "type": "integer",
                                "description": "Position of the step in the signing order, starting at `1`."
                              },
                              "status": {
                                "type": "string",
                                "description": "Status of the step. One of `created`, `pending`, `fulfilled`, `correction`, or `canceled`."
                              },
                              "actions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "email": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Email address of the recipient. `null` when the recipient is invited by SMS (see `signer_phone_invite`)."
                                    },
                                    "action": {
                                      "type": "string",
                                      "description": "Action assigned to the recipient. One of `sign`, `approve`, or `view`."
                                    },
                                    "status": {
                                      "type": "string",
                                      "description": "Status of the action. One of `created`, `pending`, `fulfilled`, `correction`, or `canceled`."
                                    },
                                    "role_name": {
                                      "type": "string",
                                      "description": "Name of the recipient's role in the document."
                                    },
                                    "document_id": {
                                      "type": "string",
                                      "description": "ID of the document within the document group this action applies to."
                                    },
                                    "signer_phone_invite": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Phone number of the recipient invited by SMS, in E.164 format (`+` followed by up to 13 digits). `null` when the recipient is invited by email. Use this value as `phone_invite_to_update` when calling [Update doc group invite](/docs/doc-group-field-invite/operations/update-document-group-invite)."
                                    }
                                  }
                                },
                                "description": "Recipients and the actions assigned to them within this step."
                              }
                            }
                          },
                          "description": "Ordered list of invite steps in the document group invite."
                        },
                        "status": {
                          "type": "string",
                          "description": "Status of the document group invite. One of `created`, `pending`, `fulfilled`, `correction`, or `canceled`."
                        }
                      },
                      "description": "The document group invite."
                    }
                  },
                  "x-examples": {
                    "Success": {
                      "invite": {
                        "id": "b1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "steps": [
                          {
                            "id": "abXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "order": 1,
                            "status": "pending",
                            "actions": [
                              {
                                "email": "signer1@email.com",
                                "action": "sign",
                                "status": "pending",
                                "role_name": "Signer 1",
                                "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              },
                              {
                                "action": "sign",
                                "status": "pending",
                                "role_name": "Signer 1",
                                "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "email_group": {
                                  "id": "unique_id_of_the_group",
                                  "name": "group name"
                                },
                                "signer_phone_invite": null
                              },
                              {
                                "email": "signer2@email.com",
                                "action": "sign",
                                "status": "pending",
                                "role_name": "Signer 2",
                                "document_id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              },
                              {
                                "email": null,
                                "action": "sign",
                                "status": "pending",
                                "role_name": "Signer 2 (SMS)",
                                "document_id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": "+14075985199"
                              }
                            ]
                          },
                          {
                            "id": "deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "order": 2,
                            "status": "created",
                            "actions": [
                              {
                                "email": "signer3@email.com",
                                "action": "sign",
                                "status": "created",
                                "role_name": "Signer 3",
                                "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              },
                              {
                                "email": "signer4@email.com",
                                "action": "sign",
                                "status": "created",
                                "role_name": "Signer 4",
                                "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              }
                            ]
                          },
                          {
                            "id": "c1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "order": 3,
                            "status": "created",
                            "actions": [
                              {
                                "email": "signer5@email.com",
                                "action": "sign",
                                "status": "created",
                                "role_name": "Signer 5",
                                "document_id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              },
                              {
                                "email": "signer6@email.com",
                                "action": "sign",
                                "status": "created",
                                "role_name": "Signer 6",
                                "document_id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              }
                            ]
                          }
                        ],
                        "status": "pending"
                      }
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "invite": {
                        "id": "b1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "steps": [
                          {
                            "id": "abXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "order": 1,
                            "status": "pending",
                            "actions": [
                              {
                                "email": "signer1@email.com",
                                "action": "sign",
                                "status": "pending",
                                "role_name": "Signer 1",
                                "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              },
                              {
                                "action": "sign",
                                "status": "pending",
                                "role_name": "Signer 1",
                                "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "email_group": {
                                  "id": "unique_id_of_the_group",
                                  "name": "group name"
                                },
                                "signer_phone_invite": null
                              },
                              {
                                "email": "signer2@email.com",
                                "action": "sign",
                                "status": "pending",
                                "role_name": "Signer 2",
                                "document_id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              },
                              {
                                "email": null,
                                "action": "sign",
                                "status": "pending",
                                "role_name": "Signer 2 (SMS)",
                                "document_id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": "+14075985199"
                              }
                            ]
                          },
                          {
                            "id": "deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "order": 2,
                            "status": "created",
                            "actions": [
                              {
                                "email": "signer3@email.com",
                                "action": "sign",
                                "status": "created",
                                "role_name": "Signer 3",
                                "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              },
                              {
                                "email": "signer4@email.com",
                                "action": "sign",
                                "status": "created",
                                "role_name": "Signer 4",
                                "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              }
                            ]
                          },
                          {
                            "id": "c1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "order": 3,
                            "status": "created",
                            "actions": [
                              {
                                "email": "signer5@email.com",
                                "action": "sign",
                                "status": "created",
                                "role_name": "Signer 5",
                                "document_id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              },
                              {
                                "email": "signer6@email.com",
                                "action": "sign",
                                "status": "created",
                                "role_name": "Signer 6",
                                "document_id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signer_phone_invite": null
                              }
                            ]
                          }
                        ],
                        "status": "pending"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect group invite id in the endpoint\n* Incorrect group id in the endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "unable to find document group invite of f1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "unable to find document group invite of f1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ]
                    }
                  },
                  "Incorrect group id in the endpoint": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "unable to find document group"
                        }
                      ]
                    }
                  },
                  "Incorrect group invite id in the endpoint": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "unable to find document group invite of f1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/documentgroup/{document_group_id}/groupinvite/{invite_id}/invitestep/{step_id}/emails": {
      "get": {
        "operationId": "get-emails-invite-step",
        "summary": "Get emails of the invite step",
        "description": "Returns emails and other parameters of a particular invite step in the document group invite.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "invite_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "step_id",
            "type": "string",
            "required": true,
            "description": "ID of a step in the invite."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns signer's email addresses in the invite step and email settings for each of them.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invite": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "steps": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "order": {
                                "type": "integer"
                              },
                              "status": {
                                "type": "string"
                              },
                              "actions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "email": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string"
                                    },
                                    "status": {
                                      "type": "string"
                                    },
                                    "role_name": {
                                      "type": "string"
                                    },
                                    "document_id": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "status": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "emails": [
                        {
                          "email": "signer1@email.com",
                          "message": "document_owner@email.com invited you to sign pdf",
                          "subject": "document_owner@email.com Needs Your Signature",
                          "disabled": null,
                          "reminder": {
                            "remind_after": 3,
                            "remind_before": 0,
                            "remind_repeat": 5
                          },
                          "expiration_days": 30
                        },
                        {
                          "email": "signer2@email.com",
                          "message": "document_owner@email.com invited you to sign pdf",
                          "subject": "document_owner@email.com Needs Your Signature",
                          "disabled": null,
                          "reminder": {
                            "remind_after": 2,
                            "remind_before": 1,
                            "remind_repeat": 3
                          },
                          "expiration_days": 30
                        },
                        {
                          "email": "signer3@email.com",
                          "message": "document_owner@email.com invited you to sign pdf",
                          "subject": "document_owner@email.com Needs Your Signature",
                          "disabled": null,
                          "reminder": {
                            "remind_after": 0,
                            "remind_before": 0,
                            "remind_repeat": 0
                          },
                          "expiration_days": 30
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/documentgroup/{document_group_id}/groupinvite/{invite_id}/pendinginvites": {
      "get": {
        "operationId": "get-pending-document-group-invites",
        "summary": "Get pending group invites",
        "description": "This endpoint allows users to retrieve all pending document group invite information.\nIf the caller is the document owner, the response includes both pending invites for that user and all fulfilled actions for the entire group invite.\n\n\nPossible invite actions are:\n- `sign`: The recipient can sign or fill out the document.\n- `approve`: The recipient can review the document to approve or decline it.\n- `view`: The recipient can only review the document without making changes.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          },
          {
            "in": "path",
            "name": "invite_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invites": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "link": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "document_name": {
                            "type": "string"
                          },
                          "inviter_email": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "document_group_name": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "invites": [
                        {
                          "link": "https://example.com/cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "action": "sign",
                          "status": "fulfilled",
                          "document_name": "Sample Document",
                          "inviter_email": "signer1@email.com"
                        },
                        {
                          "link": "https://example.com/ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "action": "sign",
                          "status": "pending",
                          "document_name": "Contract 2",
                          "inviter_email": "signer2@email.com"
                        }
                      ],
                      "document_group_name": "Contracts"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/documentgroup/{document_group_id}/groupinvite": {
      "post": {
        "operationId": "invite-to-sign-document-group",
        "summary": "Invite to sign doc group",
        "description": "This endpoint allows users to create an invite for signing a document group. You can configure a multistep workflow, where different recipients act on the document group at different stages.\n\nRecipients can receive the invite by email or by SMS: identify a recipient by `email` for email delivery or by `phone_invite` for SMS delivery. You can combine email and SMS recipients in a single request. For more information, see the [SMS invite guide](/docs/sms-invite).\n\nEach invite step includes:\n\n- `order`: the sequence number of the step.\n- `invite_actions`: an array of objects specifying who is invited and the action they must perform:\n\n    - **`sign`**: The recipient can sign or fill out the document.\n    - **`approve`**: The recipient can review the document to approve or decline it.\n    - **`view`**: The recipient can only review the document without making changes.\n    \n- `invite_emails`: an array for customizing the emails sent to recipients at that step.\n- `invite_sms`: an array for customizing the SMS invites sent to recipients at that step: custom SMS text (`sms_message`), expiration, and reminder settings.\n\nOnce all invite actions in a step are completed, the system sends the emails or SMS messages for the next step. When all steps are complete, completion emails are triggered.\n\nTo invite a **signing group**, use the `email_groups` field. A signing group includes multiple email addresses, and the step is marked complete as soon as any member of the group signs. You can either use an existing group or define a new one by providing a 40-character ID, a group name, and the list of recipient emails.\n\nTo create a signing group separately, see [Create contact group](/docs/contact-groups/operations/post-v2-crm-groups).\n\nLearn more about an [Invite to sign a document group](/docs/invite-to-sign#send-a-document-group-for-signature).\n\n<details>\n\n**<summary>Use additional attributes to customize signing experience</summary>**\n\nParameter | Description | Example\n---------|----------|---------\n `reassign` | A recipient can forward the invite by clicking **More Actions** > **Forward Invite** and entering an email address. | <img src=\"/reference-assets/images/Screenshots with attribute explanations/Field invite/reassign.png\" alt=\"Forward invite\"> \n `force_new_signature` | A recipient must create a new signature for each signature field. | <img src=\"/reference-assets/images/Screenshots with attribute explanations/Field invite/Force_new_signature.png\" alt=\"Force new signature\">\n `prefill_signature_name` | A string with a signature name that appears when a signer clicks a signature field. The signer can edit the signature.|\n `required_preset_signature_name` | A string with a signature name that appears when a signer clicks a signature field. The signer cannot edit the signature. |\n `decline_by_signature` | When a signer clicks a signature field, they see two options: sign the fields and decline the document group. | <img src=\"/reference-assets/images/Screenshots with attribute explanations/Field invite/Decline_by_signature.png\" alt=\"Decline by signature\">\n `authentication_type` | Requires a recipient to enter a password or a code before viewing the document group. For more information, see [Two-factor authentication](/docs/two-factor-authentication). | <img src=\"/reference-assets/images/Screenshots with attribute explanations/Field invite/DG_authentication.png\" alt=\"Password_authentication\">\n</details>",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "The ID of the document group"
          }
        ],
        "responses": {
          "200": {
            "description": "Document group invite created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "ID of the created document group invite."
                    },
                    "pending_invite_link": {
                      "type": "string",
                      "x-nullable": true,
                      "description": "Link for signers with pending invites."
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "id": "5e7d9934e1f544d187ba2fde985594342933d9d2",
                      "pending_invite_link": null
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "id": "5e7d9934e1f544d187ba2fde985594342933d9d2",
                      "pending_invite_link": null
                    }
                  },
                  "application/json": {
                    "value": {
                      "id": "5e7d9934e1f544d187ba2fde985594342933d9d2",
                      "pending_invite_link": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* `invite_actions` consists of more than one action with the same `email_group` and the same `document_id`.\n* `role` not found.\n* `group_id` not found.\n* Invite already exists.\n\n**Validation errors**:\n\n* `language` is not a string.\n* Incorrect `language`.\n* One recipient must have the same `language`.\n* `redirect_uri` is not a string.\n* Empty `redirect_uri`.\n* `redirect_uri` is not a correct URL.\n* `redirect_uri` is longer than 2048 characters.\n* One recipient must have the same `redirect_uri`.\n* `decline_redirect_uri` is not a string.\n* Empty `decline_redirect_uri`.\n* `decline_redirect_uri` is not a correct URL.\n* `decline_redirect_uri` is longer than 2048 characters.\n* `decline_redirect_uri` cannot be used with the `view`.\n* One recipient must have the same `decline_redirect_uri`.\n* `close_redirect_uri` is not a string.\n* Empty `close_redirect_uri`.\n* `close_redirect_uri` is not a correct URL address\n* `close_redirect_uri` is longer than 2048 characters.\n*  One recipient must have the same `close_redirect_uri`.\n* `redirect_target` is not a string.\n* Incorrect `redirect_target`. Allowed values: `self`, `blank`.\n* One of redirect URLs is required if `redirect_target` is added.\n* One recipient must have the same `redirect_target`.\n* `invite_emails` contains both `email` and `email_group` (must contain only one of these).\n* `allow_reassign` is not allowed for an email group.\n* Incorrect format of `email_groups`.\n* Email group `id` or email group `name` is missing.\n* Email group `id` is not a string.\n* Email group `id` is not a correct unique id.\n* Email group `name` is not a string.\n* Email group `name` contains forbidden characters (4-byte characters, such as emojis).\n* Emails in `email_groups` are missing.\n* Emails in `email_groups` is not an array of arrays.\n* Emails in `email_groups` contains more than 15 emails.\n* Emails in an email group must be unique.\n* Email in `email_groups.emails` is not a string.\n* Email in `email_groups.emails` is not a correct email address.\n* `signature.type` is missing.\n* Incorrect `signature.type`. Allowed values: `eideasy`,`eideasy-pdf`, `nom151`.\n* Missing or different QES settings for one or more signers.\n* The `prefill_signature_name` format is wrong.\n* The `prefill_signature_name` is empty.\n* The`prefill_signature_name` contains unsupported characters.\n* The `prefill_signature_name` is too long.\n\n**SMS invite (`phone_invite`) errors**:\n\n* `phone_invite` type incorrect.\n* `phone_invite` empty.\n* `phone_invite` too long.\n* `phone_invite` format incorrect.\n* `phone_invite` in `invite_sms` type is incorrect.\n* `phone_invite` in `invite_sms` is empty.\n* `phone_invite` in `invite_sms` is too long.\n* `phone_invite` in `invite_sms` format is incorrect.\n* `expiration_days` in `invite_sms` type incorrect.\n* `expiration_days` in `invite_sms` range incorrect.\n* `remind_after` range incorrect.\n* `remind_before` range incorrect.\n* `remind_repeat` range incorrect.\n* `phone_invite` with CFR org setting enabled.\n* `phone_invite` with consent org setting enabled.\n* `phone_invite` with `require_login` setting enabled.\n* Incorrect phone number.\n* `allow_reassign` not allowed for `phone_invite`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "role not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Role Signer 1 on document edXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX was not specified in any invite_actions. All roles must be used in all document groups"
                        }
                      ]
                    }
                  },
                  "Email not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field `email` in `email_groups.emails` should be of type string."
                        }
                      ]
                    }
                  },
                  "Empty redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Field `redirect_uri` must not be an empty string."
                        }
                      ]
                    }
                  },
                  "Incorrect language": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `language` field is invalid, allowed values: \"en\", \"es\", \"fr\"."
                        }
                      ]
                    }
                  },
                  "group_id not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "unable to find document group"
                        }
                      ]
                    }
                  },
                  "phone_invite empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `phone_invite` must not be empty string."
                        }
                      ]
                    }
                  },
                  "CFR org restriction": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The phone_invite cannot be used with the CFR setting enabled."
                        }
                      ]
                    }
                  },
                  "consent restriction": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The phone_invite cannot be used with the consent setting enabled."
                        }
                      ]
                    }
                  },
                  "language not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `language` field must be a string."
                        }
                      ]
                    }
                  },
                  "Missing redirect URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The one of `redirect_uri` fields is required when `redirect_target` is added."
                        }
                      ]
                    }
                  },
                  "Invite already exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "An group invite already exists for this document group."
                        }
                      ]
                    }
                  },
                  "phone_invite too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `phone_invite` value is too long. It should have 14 characters."
                        }
                      ]
                    }
                  },
                  "redirect_uri too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `redirect_uri` field must contain no more than 2048 characters."
                        }
                      ]
                    }
                  },
                  "Duplicate viewer email": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Two viewer actions in one order should not have one user email for document"
                        }
                      ]
                    }
                  },
                  "Incorrect phone number": {
                    "value": {
                      "errors": [
                        {
                          "code": 104833,
                          "message": "The phone_invite value holds a non-existent phone number."
                        }
                      ]
                    }
                  },
                  "Missing email group id": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field `id` in `email_groups` should not be blank."
                        }
                      ]
                    }
                  },
                  "Missing signature.type": {
                    "value": {
                      "code": 66390,
                      "message": "Signature type could not be blank"
                    }
                  },
                  "redirect_uri not a URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Field `redirect_uri` must be a valid URL."
                        }
                      ]
                    }
                  },
                  "Unmatching redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `redirect_uri` must be equal for the same signer."
                        }
                      ]
                    }
                  },
                  "redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Field `redirect_uri` must be of type string."
                        }
                      ]
                    }
                  },
                  "Empty close_redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `close_redirect_uri` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Incorrect signature.type": {
                    "value": {
                      "code": 66390,
                      "message": "The signature_type must be one of the following types: eideasy, eideasy-pdf, nom151"
                    }
                  },
                  "Incorrect email_groups.id": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field `id` in `email_groups` should be a valid unique id."
                        }
                      ]
                    }
                  },
                  "Incorrect redirect_target": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `redirect_target` field is invalid, allowed values: self, blank."
                        }
                      ]
                    }
                  },
                  "Missing email_groups.name": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field `name` in `email_groups` should not be blank."
                        }
                      ]
                    }
                  },
                  "Missing emails in a group": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field `emails` in `email_groups` should not be blank."
                        }
                      ]
                    }
                  },
                  "require_login restriction": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The phone_invite cannot be used with the require_login_for_signing setting enabled."
                        }
                      ]
                    }
                  },
                  "Empty decline_redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `decline_redirect_uri` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Too many emails in a group": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Email group cannot contain more than 15 emails."
                        }
                      ]
                    }
                  },
                  "Unmatching redirect_target": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `redirect_target` fields must be the same for the one signer."
                        }
                      ]
                    }
                  },
                  "email not an email address": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field `email` in `email_groups.emails` should be a valid email address."
                        }
                      ]
                    }
                  },
                  "email_groups.id not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field `id` in `email_groups` should be of type string."
                        }
                      ]
                    }
                  },
                  "redirect_target not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `redirect_target` field must be a string."
                        }
                      ]
                    }
                  },
                  "Duplicate emails in a group": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Email in email group should be unique."
                        }
                      ]
                    }
                  },
                  "close_redirect_uri too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `close_redirect_uri` field must contain no more than 2048 characters."
                        }
                      ]
                    }
                  },
                  "emails not array of arrays.": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field `emails` in `email_groups` must be an array of arrays."
                        }
                      ]
                    }
                  },
                  "phone_invite type incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `phone_invite` value should be of type string."
                        }
                      ]
                    }
                  },
                  "close_redirect_uri not a URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `close_redirect_uri` field contains a URL in an invalid format."
                        }
                      ]
                    }
                  },
                  "email_groups.name not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field `name` in `email_groups` should be of type string."
                        }
                      ]
                    }
                  },
                  "remind_after range incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The remind_after attribute cannot be less than 0"
                        }
                      ]
                    }
                  },
                  "Unmatching close_redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `close_redirect_uri` fields must be the same for the one signer."
                        }
                      ]
                    }
                  },
                  "close_redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `close_redirect_uri` field must be a string."
                        }
                      ]
                    }
                  },
                  "decline_redirect_uri too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `decline_redirect_uri` field must contain no more than 2048 characters."
                        }
                      ]
                    }
                  },
                  "phone_invite format incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `phone_invite` value is incorrect."
                        }
                      ]
                    }
                  },
                  "remind_before range incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The remind_before attribute cannot be less than 0"
                        }
                      ]
                    }
                  },
                  "remind_repeat range incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The remind_repeat attribute cannot be less than 0"
                        }
                      ]
                    }
                  },
                  "decline_redirect_uri not a URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `decline_redirect_uri` field contains a URL in an invalid format."
                        }
                      ]
                    }
                  },
                  "Both email and email_group used": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The `email` or `email_group.name` in `invite_emails` is required. But you cannot use 2 parameters at one time."
                        }
                      ]
                    }
                  },
                  "Unmatching decline_redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `decline_redirect_uri` fields must be the same for the one signer."
                        }
                      ]
                    }
                  },
                  "decline_redirect_uri for viewer": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `decline_redirect_uri` field can be used with `sign` action only."
                        }
                      ]
                    }
                  },
                  "decline_redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `decline_redirect_uri` field must be a string."
                        }
                      ]
                    }
                  },
                  "prefill_signature_name is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021121,
                          "message": "The `prefill_signature_name` field cannot be empty."
                        }
                      ]
                    }
                  },
                  "prefill_signature_name too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021120,
                          "message": "The `prefill_signature_name` field cannot exceed 255 characters."
                        }
                      ]
                    }
                  },
                  "One user has different languages": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `language` fields must be the same for the one user."
                        }
                      ]
                    }
                  },
                  "email_groups not array of arrays": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "email_groups must be an array of arrays."
                        }
                      ]
                    }
                  },
                  "phone_invite in invite_sms empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `phone_invite` in invite_sms must not be empty string."
                        }
                      ]
                    }
                  },
                  "4-byte chars in email_groups.name": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Invalid characters provided for `name` in `email_groups`."
                        }
                      ]
                    }
                  },
                  "Missing or different QES settings": {
                    "value": {
                      "code": 65582,
                      "message": "Invalid advanced sign provider for sender organization"
                    }
                  },
                  "phone_invite in invite_sms too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `phone_invite` value in invite_sms is too long. It should have 14 characters."
                        }
                      ]
                    }
                  },
                  "prefill_signature_name not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021118,
                          "message": "The `prefill_signature_name` field must be a string."
                        }
                      ]
                    }
                  },
                  "allow_reassign used with email group": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Could not set the allow_reassign parameter for a signing group."
                        }
                      ]
                    }
                  },
                  "phone_invite in invite_sms incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `phone_invite` value in invite_sms is incorrect."
                        }
                      ]
                    }
                  },
                  "reassign not allowed for phone_invite": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The `allow_reassign` in invite_actions could not be presented for phone_invite"
                        }
                      ]
                    }
                  },
                  "phone_invite type in invite_sms incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `phone_invite` value in invite_sms should be of type string."
                        }
                      ]
                    }
                  },
                  "expiration_days in invite_sms type incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `expiration_days` in invite_sms must be integer"
                        }
                      ]
                    }
                  },
                  "expiration_days in invite_sms range incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The `expiration_days` in invite_sms should be between 3 and 180."
                        }
                      ]
                    }
                  },
                  "prefill_signature_name contains 4-byte characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19021119,
                          "message": "UTF 4-byte characters are not supported in the `prefill_signature_name` field."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "invite_steps"
                ],
                "properties": {
                  "cc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Array of cc email addresses."
                  },
                  "order_type": {
                    "enum": [
                      "at_the_same_time",
                      "recipient_order",
                      "advanced_order",
                      null
                    ],
                    "type": "string",
                    "x-nullable": true,
                    "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
                  },
                  "email_groups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id",
                        "name",
                        "emails"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Signing group ID. If you created your own ID, make sure that it's 40 characters long.",
                          "x-stoplight": {
                            "id": "ftm8fhfa4sx96"
                          }
                        },
                        "name": {
                          "type": "string",
                          "description": "Signing group name",
                          "x-stoplight": {
                            "id": "6u0opiomemub1"
                          }
                        },
                        "emails": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "email"
                            ],
                            "properties": {
                              "email": {
                                "type": "string",
                                "description": "Email address in the signing group. Must be unique within a group.",
                                "x-stoplight": {
                                  "id": "nmhbd010yzp4l"
                                }
                              }
                            },
                            "x-stoplight": {
                              "id": "ge2dl9pzwvwfm"
                            }
                          },
                          "description": "List all the email addresses that should receive an invite within a group, no matter if you are using an existing email group or a new one.",
                          "x-stoplight": {
                            "id": "ngdzqehm8e1ki"
                          }
                        }
                      },
                      "x-stoplight": {
                        "id": "dh0e12s3p4bwd"
                      }
                    },
                    "description": "Defines a signing group. Required if at least one step contains a signing group (`email_group`). You can use both an existing email group or create your own.",
                    "x-stoplight": {
                      "id": "6bsyxhwpmmomu"
                    }
                  },
                  "invite_steps": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "order",
                        "invite_actions"
                      ],
                      "properties": {
                        "order": {
                          "type": "integer",
                          "description": "Integer, order of signing step: 1 - the recipient(s)  sign the document group first, then the document group is sent to 2,3 etc. Several recipients can hold the same order of signing."
                        },
                        "invite_sms": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "phone_invite"
                            ],
                            "properties": {
                              "reminder": {
                                "type": "object",
                                "properties": {
                                  "remind_after": {
                                    "type": "number",
                                    "maximum": 179,
                                    "minimum": 1,
                                    "description": "Number of days after sending the invite when the recipient receives a reminder SMS. Must be less than `expiration_days`."
                                  },
                                  "remind_before": {
                                    "type": "number",
                                    "maximum": 179,
                                    "minimum": 1,
                                    "description": "Number of days before the invite expires when the recipient receives a reminder SMS. Must be less than `expiration_days`."
                                  },
                                  "remind_repeat": {
                                    "type": "number",
                                    "maximum": 7,
                                    "minimum": 1,
                                    "description": "Number of days between each reminder sent to the recipient."
                                  }
                                },
                                "description": "Settings for sending automatic reminders."
                              },
                              "sms_message": {
                                "type": "string",
                                "example": "Hi, here is a document for signature from {sender_email}",
                                "maxLength": 140,
                                "description": "Custom text of the SMS invite, max `140` characters. Supports the `{sender_email}` placeholder that is automatically replaced with the sender's email address. The link to the document group and an opt-out notice are automatically added at the end of the SMS. Without this parameter, the recipient receives the default message: \"{sender email} has sent you a document. Follow the link to view the document\". Custom SMS messages require an API free trial, an active API subscription, or a Site License."
                              },
                              "phone_invite": {
                                "type": "string",
                                "example": "+14075985199",
                                "description": "Recipient's phone number for the SMS invite. Must match the `phone_invite` value of this recipient in `invite_actions`."
                              },
                              "expiration_days": {
                                "type": "number",
                                "default": 30,
                                "maximum": 180,
                                "minimum": 3,
                                "description": "Number of days before the invite expires."
                              }
                            }
                          },
                          "description": "Objects that define a custom SMS message, expiration, and reminder settings for each SMS recipient within a step. SMS recipients are identified by `phone_invite` instead of `email` in `invite_actions`."
                        },
                        "invite_emails": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "email"
                            ],
                            "properties": {
                              "email": {
                                "type": "string",
                                "format": "email",
                                "description": "Recipient's email address"
                              },
                              "message": {
                                "type": "string",
                                "description": "Custom email message for the recipient. Requires a paid API plan, an API free trial, or a Site License."
                              },
                              "subject": {
                                "type": "string",
                                "description": "Custom email subject for the recipient. Requires a paid API plan, an API free trial, or a Site License."
                              },
                              "reminder": {
                                "type": "object",
                                "properties": {
                                  "remind_after": {
                                    "type": "number",
                                    "maximum": 179,
                                    "minimum": 1,
                                    "description": "x days after the invite, a recipient gets a reminder email. Must be less than `expiration_days`"
                                  },
                                  "remind_before": {
                                    "type": "number",
                                    "maximum": 179,
                                    "minimum": 1,
                                    "description": "x days before expiration, a recipient gets a reminder email. Must be less than `expiration_days`"
                                  },
                                  "remind_repeat": {
                                    "type": "number",
                                    "maximum": 7,
                                    "minimum": 1,
                                    "description": "A recipient gets a reminder email each x days after the invite is sent"
                                  }
                                },
                                "description": "Settings for sending automatic reminder emails."
                              },
                              "email_group": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "The name of the contact group.",
                                    "x-stoplight": {
                                      "id": "cpunlkhtfa0sv"
                                    }
                                  }
                                },
                                "description": "A contact group of recipients, for example, [CRM Contact group](/docs/contact-groups/operations/post-v2-crm-groups).",
                                "x-stoplight": {
                                  "id": "8j65i1jlx4gka"
                                }
                              },
                              "expiration_days": {
                                "type": "number",
                                "default": 30,
                                "maximum": 180,
                                "minimum": 3,
                                "description": "In x days, the invite expires"
                              }
                            }
                          },
                          "description": "Objects that define custom email subject, email message, expiration and reminder settings for each recipient within a step."
                        },
                        "invite_actions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "role_name",
                              "action",
                              "document_id"
                            ],
                            "properties": {
                              "email": {
                                "type": "string",
                                "format": "email",
                                "description": "Recipient's email address. The invite is delivered by email. Identify each recipient by `email`, `phone_invite`, or `email_group` — only one of these parameters at a time."
                              },
                              "action": {
                                "type": "string",
                                "description": "Allowed action with a document. Possible values: `view`, `sign`, `approve`. The `approve` action must be assigned to all documents in the document group. The `view` action can be assigned to any subset of documents in the group."
                              },
                              "language": {
                                "type": "string",
                                "description": "Sets the language of the signing session and notification emails for the signer. Possible values: `en` for English, `es` for Spanish, and `fr` for French. If not set, the language is determined by the language of your signNow account. If emails are branded, you can set up [your own](/docs/guides-branding#language-branding) email texts in different languages.",
                                "x-stoplight": {
                                  "id": "b743u1ldxugp1"
                                }
                              },
                              "role_name": {
                                "type": "string",
                                "description": "Recipient's role name in the document (can be used to identify fields in the document assigned to this particular recipient). The `role` parameter is also supported as an equivalent of `role_name`."
                              },
                              "signature": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "Type of QES signature. Possible values: `eideasy`,` eideasy-pdf`, and `nom151`. All signers in the invite must have the same signature type.",
                                    "x-stoplight": {
                                      "id": "4l7pk80x2ug82"
                                    }
                                  }
                                },
                                "description": "This object is used to request QES signatures from signers. To use it, a user must be a member of an organization (workspace) with QES settings enabled. If QES is used, it must be used for all signers in the invite.<br>For more information, see [QES user guide](/docs/qualified-electronic-signature).",
                                "x-stoplight": {
                                  "id": "7eghm82e9pwme"
                                }
                              },
                              "document_id": {
                                "type": "string",
                                "description": "ID of the document on which actions are required from this recipient."
                              },
                              "email_group": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "The name of the contact group.",
                                    "x-stoplight": {
                                      "id": "woou5tg76ubps"
                                    }
                                  }
                                },
                                "description": "A contact group of recipients, for example, [CRM Contact group](/docs/contact-groups/operations/post-v2-crm-groups).",
                                "x-stoplight": {
                                  "id": "pfen0o1om14d5"
                                }
                              },
                              "phone_invite": {
                                "type": "string",
                                "example": "+14075985199",
                                "description": "Recipient's phone number. The invite is delivered by SMS instead of email. Use instead of `email`. To customize the SMS text, expiration, or reminders, add an object with the same phone number to the `invite_sms` array of this step."
                              },
                              "redirect_uri": {
                                "type": "string",
                                "example": "https://www.signnow.com/",
                                "description": "The link that opens after the recipient completes the document.\n\n",
                                "x-stoplight": {
                                  "id": "z01y5i3duhee2"
                                }
                              },
                              "allow_reassign": {
                                "type": "string",
                                "description": "Whether or not to allow recipients reassign this invite to another email address. Possible values: \"0\" - not allowed, \"1\" - allowed."
                              },
                              "authentication": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "Type of signer's identity verification. Possible values: `\"password\"` or `\"phone\"`."
                                  },
                                  "phone": {
                                    "type": "string",
                                    "description": "Required in case of `\"type\"`: `\"phone\"`. User's phone number."
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Required in case of `\"type\"`: `\"password\"`. The password for user authentication."
                                  },
                                  "method": {
                                    "type": "string",
                                    "description": "Required in case of `\"type\"`: `\"phone\"`. Possible values: `\"phone_call`\", `\"sms\"`."
                                  },
                                  "message": {
                                    "type": "string",
                                    "description": "In case of `\"method\"`: `\"sms\"` - custom SMS message, max 140 characters. Customizing the 2FA SMS message requires an API free trial, an active API subscription, or a Site License."
                                  }
                                },
                                "description": "Object that contains the type of signer's identity verification, phone number or password."
                              },
                              "payment_request": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "In this case, must be \"fixed\".",
                                    "x-stoplight": {
                                      "id": "8eozczxgftexj"
                                    }
                                  },
                                  "amount": {
                                    "type": "string",
                                    "description": "The payment amount requested.",
                                    "x-stoplight": {
                                      "id": "pgiupb58ob7i4"
                                    }
                                  },
                                  "currency": {
                                    "type": "string",
                                    "description": "The payment currency requested.",
                                    "x-stoplight": {
                                      "id": "1w4yo844v8oqv"
                                    }
                                  },
                                  "merchant_id": {
                                    "type": "string",
                                    "description": "The ID of the merchant account added to your organization (workspace).",
                                    "x-stoplight": {
                                      "id": "74htcsy6un1ra"
                                    }
                                  }
                                },
                                "description": "Object that contains details about the payment request.",
                                "x-stoplight": {
                                  "id": "iekmitepg8epa"
                                }
                              },
                              "redirect_target": {
                                "type": "string",
                                "default": "blank",
                                "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                                "x-stoplight": {
                                  "id": "7vhkx05u09xgd"
                                }
                              },
                              "close_redirect_uri": {
                                "type": "string",
                                "description": "The link that opens when a signer clicks **Save Progress and Finish Later** during a signing session or **Close** in view mode. Available for `sign ` action.",
                                "x-stoplight": {
                                  "id": "hoyx0baz5erbv"
                                }
                              },
                              "decline_by_signature": {
                                "type": "string",
                                "description": "Whether or not to allow recipients decline to sign the invite."
                              },
                              "decline_redirect_uri": {
                                "type": "string",
                                "description": "The URL that opens after the recipient declines the document. Available for `sign` action.",
                                "x-stoplight": {
                                  "id": "179b6xp2pyvyl"
                                }
                              },
                              "prefill_signature_name": {
                                "type": "string",
                                "example": "Jane Doe",
                                "maxLength": 255,
                                "description": "The text displayed in the Signature field. The signer can edit this value."
                              },
                              "is_close_redirect_canceled": {
                                "type": "boolean",
                                "default": false,
                                "description": "Specifies whether the save progress redirect setting is canceled for the organization (workspace).`true` – the redirect is canceled;`false` – the redirect remains active.",
                                "x-stoplight": {
                                  "id": "vmbf2a9u6y1uz"
                                }
                              },
                              "is_finish_redirect_canceled": {
                                "type": "boolean",
                                "default": false,
                                "description": "Specifies whether the completion redirect setting is canceled for the organization (workspace).`true` – the redirect is canceled;`false` – the redirect remains active.",
                                "x-stoplight": {
                                  "id": "vmbf2a9u6y1uz"
                                }
                              },
                              "is_decline_redirect_canceled": {
                                "type": "boolean",
                                "default": false,
                                "description": "Specifies whether the decline redirect setting is canceled for the organization (workspace).`true` – the redirect is canceled;`false` – the redirect remains active.",
                                "x-stoplight": {
                                  "id": "vmbf2a9u6y1uz"
                                }
                              },
                              "required_preset_signature_name": {
                                "type": "string",
                                "example": "Jane Doe",
                                "description": "The text displayed in the Signature field. The signer cannot edit this value. Cannot be used simultaneously with `prefill_signature_name` or `force_new_signature` for the same role."
                              }
                            }
                          },
                          "description": "Objects that define recipients (email addresses, phone numbers for SMS delivery, or signing groups) and invite actions, roles and documents assigned to each recipient within a step."
                        }
                      }
                    },
                    "description": "Steps of the document group invite. Every step contains the `order` number, `invite_emails`, `invite_sms`, and `invite_actions` within this step."
                  },
                  "sign_as_merged": {
                    "type": "boolean",
                    "default": true,
                    "description": "If true, allows API user to send an invite which opens as merged document group in a single document."
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "description": "The timestamp of the document group invite."
                  },
                  "general_reminder": {
                    "type": "object",
                    "properties": {
                      "remind_after": {
                        "type": "integer",
                        "description": "Days after invite is sent before a reminder is delivered. Must be less than `general_expiration_days`."
                      },
                      "remind_before": {
                        "type": "integer",
                        "description": "Days before expiration when a reminder is delivered. Must be less than `general_expiration_days`."
                      },
                      "remind_repeat": {
                        "type": "integer",
                        "description": "Days between repeated reminders."
                      }
                    },
                    "x-nullable": true,
                    "description": "Default `reminder` applied to all recipients in the invite."
                  },
                  "completion_emails": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "string",
                          "format": "email",
                          "description": "Email address of the completion email recipient."
                        },
                        "message": {
                          "type": "string",
                          "description": "Custom message for the completion email. Requires a paid API plan, an API free trial, or a Site License."
                        },
                        "subject": {
                          "type": "string",
                          "description": "Custom subject for the completion email. Requires a paid API plan, an API free trial, or a Site License."
                        },
                        "disable_document_attachment": {
                          "type": "integer",
                          "description": "Whether to disable sending document attachments with the completion email. Possible values: 0 - enable document attachment, 1 - disable document attachment."
                        }
                      }
                    },
                    "description": "Object that contains email addresses and custom settings for sending emails about completing the invite."
                  },
                  "general_expiration_days": {
                    "type": "integer",
                    "example": 30,
                    "maximum": 180,
                    "minimum": 1,
                    "x-nullable": true,
                    "description": "Default `expiration_days` applied to all recipients in the invite. Min: `1`, Max: `180`. Default: `30`."
                  },
                  "general_expiration_time": {
                    "type": "integer",
                    "x-nullable": true,
                    "description": "Default expiration timestamp (Unix time, seconds) applied to all recipients in the invite."
                  }
                }
              },
              "examples": {
                "Invite with QES": {
                  "value": {
                    "invite_steps": [
                      {
                        "order": 1,
                        "invite_actions": [
                          {
                            "email": "signer1@email.com",
                            "action": "sign",
                            "role_name": "Signer 1",
                            "signature": {
                              "type": "eideasy"
                            },
                            "document_id": "6e9580fa76ba4edca18fa6e680a36d10a6bab503"
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "invite_actions": [
                          {
                            "email": "signer2@email.com",
                            "action": "sign",
                            "role_name": "Signer 2",
                            "signature": {
                              "type": "eideasy"
                            },
                            "document_id": "c4aff212145b40888cd75e3c73c978484258c043"
                          }
                        ]
                      }
                    ]
                  }
                },
                "Invite to an email group": {
                  "value": {
                    "email_groups": [
                      {
                        "id": "signing_group_id",
                        "name": "Signing Group Name",
                        "emails": [
                          {
                            "email": "signer1@email.com"
                          },
                          {
                            "email": "signer2@email.com"
                          }
                        ]
                      }
                    ],
                    "invite_steps": [
                      {
                        "order": 1,
                        "invite_emails": [
                          {
                            "subject": "Subject",
                            "email_group": {
                              "name": "Signing Group Name"
                            }
                          }
                        ],
                        "invite_actions": [
                          {
                            "action": "sign",
                            "role_name": "Recipient 1",
                            "document_id": "4eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "email_group": {
                              "name": "Signing Group Name"
                            }
                          },
                          {
                            "action": "sign",
                            "role_name": "Recipient 1",
                            "document_id": "5aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "email_group": {
                              "name": "Signing Group Name"
                            }
                          }
                        ]
                      }
                    ],
                    "sign_as_merged": true,
                    "client_timestamp": 0,
                    "completion_emails": [
                      {
                        "email_group": {
                          "name": "Signing Group Name"
                        }
                      }
                    ]
                  }
                },
                "Mixed email and SMS invite": {
                  "value": {
                    "cc": [
                      "cc_recipient1@email.com",
                      "cc_recipient2@email.com"
                    ],
                    "order_type": "recipient_order",
                    "invite_steps": [
                      {
                        "order": 1,
                        "invite_sms": [
                          {
                            "reminder": {
                              "remind_after": 3,
                              "remind_before": 5,
                              "remind_repeat": 7
                            },
                            "sms_message": "Hi, here is a document for signature from {sender_email}",
                            "phone_invite": "+14075985199",
                            "expiration_days": 30
                          }
                        ],
                        "invite_actions": [
                          {
                            "action": "sign",
                            "role_name": "Buyer",
                            "document_id": "XXXXX56dc7d3430ba89514667ce4f32da7b33f76",
                            "phone_invite": "+14075985199",
                            "redirect_uri": "https://example.com",
                            "authentication": {
                              "type": "phone",
                              "phone": "+14075985199",
                              "method": "sms",
                              "message": "Enter the password to unlock the document: {password}"
                            },
                            "redirect_target": "blank",
                            "close_redirect_uri": "https://close-redirect-uri.com",
                            "show_decline_button": true,
                            "decline_by_signature": "0",
                            "decline_redirect_uri": "https://signnow.com",
                            "prefill_signature_name": "Buyer signature"
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "invite_emails": [
                          {
                            "email": "seller@email.com",
                            "message": "Please contact for any questions",
                            "subject": "Review and sign documents",
                            "reminder": {
                              "remind_after": 3,
                              "remind_before": 5,
                              "remind_repeat": 7
                            },
                            "expiration_days": 30
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "seller@email.com",
                            "action": "sign",
                            "role_name": "Seller",
                            "document_id": "XXXXX56dc7d3430ba89514667ce4f32da7b33f76",
                            "redirect_uri": "https://example.com",
                            "allow_reassign": "0",
                            "authentication": {
                              "type": "password",
                              "value": "1233456"
                            },
                            "i_am_recipient": false,
                            "redirect_target": "blank",
                            "allow_forwarding": false,
                            "close_redirect_uri": "https://close-redirect-uri.com",
                            "show_decline_button": true,
                            "decline_by_signature": "0",
                            "decline_redirect_uri": "https://signnow.com",
                            "prefill_signature_name": "Seller signature"
                          }
                        ]
                      }
                    ],
                    "sign_as_merged": true,
                    "general_reminder": {
                      "remind_after": 3,
                      "remind_before": 5,
                      "remind_repeat": 7
                    },
                    "completion_emails": [],
                    "general_expiration_days": 30
                  }
                },
                "Invite with payment request": {
                  "value": {
                    "cc": [
                      "cc_recipient1@email.com",
                      "cc_recipient2@email.com"
                    ],
                    "invite_steps": [
                      {
                        "order": 1,
                        "invite_emails": [
                          {
                            "email": "signer1@email.com",
                            "message": "Message",
                            "subject": "Subject",
                            "expiration_days": 0
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "signer1@email.com",
                            "action": "sign",
                            "role_name": "Recipient 1",
                            "document_id": "4eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "authentication": {
                              "type": "password",
                              "value": "Password123@"
                            },
                            "payment_request": {
                              "type": "calculated",
                              "currency": "USD",
                              "field_id": "eb1dc1e1946f47cd87fa4a63664803bddba6fff",
                              "merchants": [
                                "5ef7e3853f4a4624a037d90d20513a195937dxxx"
                              ],
                              "field_name": "payment_buyer",
                              "field_type": "text_fields"
                            }
                          }
                        ]
                      }
                    ],
                    "sign_as_merged": true,
                    "client_timestamp": 0,
                    "completion_emails": [
                      {
                        "email": "signer1@email.com",
                        "message": "Message",
                        "subject": "Subject",
                        "disable_document_attachment": 0
                      }
                    ]
                  }
                },
                "Invite with language settings": {
                  "value": {
                    "invite_steps": [
                      {
                        "order": 1,
                        "invite_emails": [
                          {
                            "email": "signer1@email.com",
                            "message": "Hi, this is an invite to sign a document group from sender@email.com.",
                            "subject": "You've received a document group invite",
                            "expiration_days": 30
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "signer1@email.com",
                            "action": "sign",
                            "language": "es",
                            "role_name": "Signer 1",
                            "document_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "redirect_uri": "https://example.com",
                            "allow_reassign": "0",
                            "decline_by_signature": "0"
                          },
                          {
                            "email": "signer4@email.com",
                            "action": "view",
                            "role_name": "Viewer",
                            "document_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "invite_emails": [
                          {
                            "email": "signer2@email.com",
                            "message": "Hi, this is an invite to sign a document group from sender@email.com.",
                            "subject": "You've received a document group invite",
                            "reminder": 0,
                            "expiration_days": 30
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "signer2@email.com",
                            "action": "sign",
                            "language": "fr",
                            "role_name": "Signer 2",
                            "document_id": "53XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "redirect_uri": "https://example.com",
                            "allow_reassign": "0",
                            "close_redirect_uri": "https://close-redirect-uri.com",
                            "decline_by_signature": "0"
                          }
                        ]
                      }
                    ],
                    "sign_as_merged": true,
                    "completion_emails": []
                  }
                },
                "Invite with signers, approvers, viewers, and CC-recipients": {
                  "value": {
                    "cc": [
                      "cc_recipient1@email.com",
                      "cc_recipient2@email.com"
                    ],
                    "order_type": "recipient_order",
                    "invite_steps": [
                      {
                        "order": 1,
                        "invite_emails": [
                          {
                            "email": "buyer@email.com",
                            "message": "Please contact for any questions",
                            "subject": "Review and sign documents",
                            "reminder": {
                              "remind_after": 3,
                              "remind_before": 5,
                              "remind_repeat": 7
                            },
                            "expiration_days": 30
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "buyer@email.com",
                            "action": "sign",
                            "role_name": "Buyer",
                            "document_id": "XXXXX56dc7d3430ba89514667ce4f32da7b33f76",
                            "redirect_uri": "https://example.com",
                            "allow_reassign": "0",
                            "authentication": {
                              "type": "password",
                              "value": "1233456"
                            },
                            "i_am_recipient": false,
                            "redirect_target": "blank",
                            "allow_forwarding": false,
                            "close_redirect_uri": "https://close-redirect-uri.com",
                            "show_decline_button": true,
                            "decline_by_signature": 0,
                            "decline_redirect_uri": "https://signnow.com",
                            "prefill_signature_name": "Buyer signature"
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "invite_emails": [
                          {
                            "email": "seller@email.com",
                            "message": "Please contact for any questions",
                            "subject": "Review and sign documents",
                            "reminder": {
                              "remind_after": 3,
                              "remind_before": 5,
                              "remind_repeat": 7
                            },
                            "expiration_days": 30
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "seller@email.com",
                            "action": "sign",
                            "role_name": "Seller",
                            "document_id": "XXXXX56dc7d3430ba89514667ce4f32da7b33f76",
                            "redirect_uri": "https://example.com",
                            "allow_reassign": "0",
                            "authentication": {
                              "type": "password",
                              "value": "1233456"
                            },
                            "i_am_recipient": false,
                            "redirect_target": "blank",
                            "allow_forwarding": false,
                            "close_redirect_uri": "https://close-redirect-uri.com",
                            "show_decline_button": true,
                            "decline_by_signature": "0",
                            "decline_redirect_uri": "https://signnow.com",
                            "prefill_signature_name": "Seller signature"
                          }
                        ]
                      },
                      {
                        "order": 3,
                        "invite_emails": [
                          {
                            "email": "approver@email.com",
                            "message": "Please contact for any questions",
                            "subject": "Review and approve documents",
                            "expiration_days": 30
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "approver@email.com",
                            "action": "approve",
                            "role_name": "Approver",
                            "document_id": "XXXXX56dc7d3430ba89514667ce4f32da7b33f76",
                            "redirect_uri": "https://www.signnow.com/",
                            "authentication": {
                              "type": "password",
                              "value": "1233456"
                            }
                          },
                          {
                            "email": "approver@email.com",
                            "action": "approve",
                            "role_name": "Approver",
                            "document_id": "YYYYY7a5dc3d47c4ba574a86b573a0562a07cc77",
                            "redirect_uri": "https://www.signnow.com/",
                            "authentication": {
                              "type": "password",
                              "value": "1233456"
                            }
                          }
                        ]
                      },
                      {
                        "order": 4,
                        "invite_emails": [
                          {
                            "email": "viewer@email.com",
                            "message": "Please contact for any questions",
                            "subject": "Review documents"
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "viewer@email.com",
                            "action": "view",
                            "role_name": "Viewer",
                            "document_id": "XXXXX56dc7d3430ba89514667ce4f32da7b33f76"
                          }
                        ]
                      }
                    ],
                    "sign_as_merged": true,
                    "general_reminder": {
                      "remind_after": 3,
                      "remind_before": 5,
                      "remind_repeat": 7
                    },
                    "completion_emails": [],
                    "general_expiration_days": 30
                  }
                }
              }
            }
          }
        }
      }
    },
    "/documentgroup/{document_group_id}/groupinvite/{invite_id}/cancelinvite": {
      "post": {
        "operationId": "cancel-document-group-invite",
        "summary": "Cancel doc group invite",
        "description": "Cancels a group invite. All documents will be unshared with invitees. Any signatures that occurred before canceling will remain on the documents.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "invite_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/documentgroup/{document_group_id}/groupinvite/{invite_id}/invitestep/{step_id}/update": {
      "post": {
        "operationId": "update-document-group-invite",
        "summary": "Update doc group invite",
        "description": "This endpoint either replaces the recipient at a particular invite step or updates the invite attributes (reminder, expiration, language) for a recipient at that step.\n\nRecipients can be identified and replaced by email or by SMS. Identify the current recipient by `user_to_update` (email) or `phone_invite_to_update` (phone number). Set the new recipient with `replace_with_this_user` (email) or `replace_with_this_phone_invite` (phone number). This supports all four conversions: email to email, email to phone, phone to email, and phone to phone. For SMS invites, see the [SMS invite guide](/docs/sms-invite).\n\nTo get the current SMS recipient's phone number for `phone_invite_to_update`, call [Get doc group invite](/docs/doc-group-field-invite/operations/get-document-group-invite) and read `actions[].signer_phone_invite`.\n\n**Notes**\n\n* Send both an identifier and a replacement. Use one identifier (`user_to_update` for email or `phone_invite_to_update` for phone) and one replacement (`replace_with_this_user` for email or `replace_with_this_phone_invite` for phone). To keep the same recipient and only change attributes, repeat the current value in the replacement field.\n* For an SMS recipient, omitting `replace_with_this_phone_invite` still returns `200`, but the invite stops being delivered, so always send it.\n* When replacing with an email recipient, `invite_email.email` must equal `replace_with_this_user`. When replacing with an SMS recipient, `invite_sms.phone_invite` must equal `replace_with_this_phone_invite`.\n* `update_invite_action_attributes` is optional. If omitted, every document the recipient has in the step is updated; if provided, only the listed `document_id`s are updated.\n* `expiration_days` accepts `1` to `180`. `0` means use the organization's default invite-expiration setting (falls back to `30` days).\n* A phone recipient is rejected when the `CFR` or `require_login_for_signing` setting is enabled. SMS delivery may still be suppressed after a `200` if the recipient has opted out of or declined SMS consent.\n* `allow_reassign` cannot be combined with `replace_with_this_phone_invite`.\n* With `is_short_link_invite: true` the service generates the recipient, so neither `replace_with_this_user` nor `replace_with_this_phone_invite` may be sent.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          },
          {
            "in": "path",
            "name": "invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group invite."
          },
          {
            "in": "path",
            "name": "step_id",
            "type": "string",
            "required": true,
            "description": "ID of the invite step to update."
          }
        ],
        "responses": {
          "200": {
            "description": "The invite step was updated successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Result of the operation."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "status": "success"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "status": "success"
                    }
                  },
                  "application/json": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Neither `user_to_update` nor `phone_invite_to_update` provided.\n* Both `user_to_update` and `phone_invite_to_update` provided (only one identifier allowed).\n* Both `replace_with_this_user` and `replace_with_this_phone_invite` provided (only one replacement allowed).\n* Incorrect user to update.\n* The recipient in `user_to_update` or `phone_invite_to_update` is not on this step.\n* Incorrect document ID in `update_invite_action_attributes`.\n* Incorrect replace user email.\n* Incorrect group invite ID in endpoint.\n* Cannot update the invite with an email group.\n* Invalid `phone_invite_to_update` or `replace_with_this_phone_invite` format.\n* Phone number is valid but could not be found.\n* `invite_email.email` does not match `replace_with_this_user`.\n* `invite_sms.phone_invite` does not match `replace_with_this_phone_invite`.\n* `allow_reassign` used together with `replace_with_this_phone_invite`.\n* A short-link invite (`is_short_link_invite`) contains `replace_with_this_user` or `replace_with_this_phone_invite`.\n* Phone recipient rejected because the `CFR` setting is enabled.\n* Phone recipient rejected because the `require_login_for_signing` setting is enabled.\n* SSO (SN Login) authentication is incompatible with SMS delivery.\n* Daily invite limit exceeded.\n* The organization does not allow senders to change the invite expiration.\n* The organization does not allow senders to change invite reminders.\n* The SMS message was blocked by a message filter.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Invite step does not belong to document group invite"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Invite step does not belong to document group invite"
                        }
                      ]
                    }
                  },
                  "CFR setting enabled": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The `replace_with_this_phone_invite` cannot be used with the `CFR` setting enabled."
                        }
                      ]
                    }
                  },
                  "Phone number not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 104833,
                          "message": "The phone_invite value holds a non-existent phone number."
                        }
                      ]
                    }
                  },
                  "SMS invite not allowed": {
                    "value": {
                      "errors": [
                        {
                          "code": 104956,
                          "message": "Sending sms invite is not allowed."
                        }
                      ]
                    }
                  },
                  "Incorrect user to update": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Invite step does not belong to document group invite"
                        }
                      ]
                    }
                  },
                  "Recipient not on this step": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Cannot update signer signer1@email.com because user is not part of invite step"
                        }
                      ]
                    }
                  },
                  "Short link invite conflict": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Short link invite cannot contain replace_with_this_user or replace_with_this_phone_invite fields."
                        }
                      ]
                    }
                  },
                  "Daily invite limit exceeded": {
                    "value": {
                      "errors": [
                        {
                          "code": 65639,
                          "message": "Daily invite limit exceeded"
                        }
                      ]
                    }
                  },
                  "Invalid phone number format": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The `phone_invite_to_update` value is invalid. It must start with `+` and contain up to 13 digits (total max 14 characters)."
                        }
                      ]
                    }
                  },
                  "Neither identifier provided": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Either `user_to_update` or `phone_invite_to_update` field must be provided."
                        }
                      ]
                    }
                  },
                  "Incorrect replace user email": {
                    "value": {
                      "errors": [
                        {
                          "code": 65544,
                          "message": "replace_with_this_user is invalid email."
                        }
                      ]
                    }
                  },
                  "Require login setting enabled": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The `replace_with_this_phone_invite` cannot be used with the `require_login_for_signing` setting enabled."
                        }
                      ]
                    }
                  },
                  "SSO login incompatible with SMS": {
                    "value": {
                      "errors": [
                        {
                          "code": 19099002,
                          "message": "Authentication type sso_login is incompatible with SMS delivery type."
                        }
                      ]
                    }
                  },
                  "Email does not match replacement": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Email in the invite_email object must match the email of the user being updated."
                        }
                      ]
                    }
                  },
                  "Phone does not match replacement": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "`phone_invite` in the `invite_sms` object must match the `phone_invite` of the user being updated."
                        }
                      ]
                    }
                  },
                  "Incorrect group invite id in endpoint": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "unable to find document group invite of f1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ]
                    }
                  },
                  "Only one recipient identifier allowed": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Only one field can be provided: either `user_to_update` or `phone_invite_to_update`."
                        }
                      ]
                    }
                  },
                  "Reassign not allowed for phone invite": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `allow_reassign` in `update_invite_action_attributes` could not be presented for `replace_with_this_phone_invite`."
                        }
                      ]
                    }
                  },
                  "Only one replacement recipient allowed": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Only one field can be provided: either `replace_with_this_user` or `replace_with_this_phone_invite`."
                        }
                      ]
                    }
                  },
                  "Cannot update the invite with an email group": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field invite with email group is present"
                        }
                      ]
                    }
                  },
                  "Editing reminders not allowed by organization": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Modifying invite reminders is not allowed by organization settings."
                        }
                      ]
                    }
                  },
                  "Editing expiration not allowed by organization": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Modifying invite expiration is not allowed by organization settings."
                        }
                      ]
                    }
                  },
                  "Incorrect document id in update invite action attributes": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Could not find existing action with document id c4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX in update_invite_action_attributes payload"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invite_sms": {
                    "type": "object",
                    "required": [
                      "phone_invite"
                    ],
                    "properties": {
                      "reminder": {
                        "type": "object",
                        "properties": {
                          "remind_after": {
                            "type": "integer",
                            "maximum": 179,
                            "minimum": 1,
                            "description": "Number of days after sending the invite when the recipient receives a reminder SMS. Must be less than `expiration_days`."
                          },
                          "remind_before": {
                            "type": "integer",
                            "maximum": 179,
                            "minimum": 1,
                            "description": "Number of days before the invite expires when the recipient receives a reminder SMS. Must be less than `expiration_days`."
                          },
                          "remind_repeat": {
                            "type": "integer",
                            "maximum": 7,
                            "minimum": 1,
                            "description": "Number of days between each reminder sent to the recipient."
                          }
                        },
                        "description": "Settings for sending automatic reminders. A reminder applies to the recipient's first invite in the step, not to each document."
                      },
                      "phone_invite": {
                        "type": "string",
                        "example": "+14085550123",
                        "description": "Phone number of the new SMS recipient in E.164 format (`+` followed by up to 13 digits, max 14 characters). Must match `replace_with_this_phone_invite`."
                      },
                      "expiration_days": {
                        "type": "integer",
                        "maximum": 180,
                        "minimum": 1,
                        "description": "Number of days before the invite expires. Accepts `1` to `180`. `0` uses the organization's default invite-expiration setting (falls back to `30`)."
                      }
                    },
                    "description": "Settings for the new SMS recipient. Include when the updated recipient receives the invite by SMS. The `phone_invite` value must match `replace_with_this_phone_invite`."
                  },
                  "invite_email": {
                    "type": "object",
                    "required": [
                      "email"
                    ],
                    "properties": {
                      "email": {
                        "type": "string",
                        "format": "email",
                        "example": "updated.signer@email.com",
                        "description": "Email address of the new recipient. Must match `replace_with_this_user`."
                      },
                      "reminder": {
                        "type": "object",
                        "properties": {
                          "remind_after": {
                            "type": "integer",
                            "maximum": 179,
                            "minimum": 1,
                            "description": "Number of days after sending the invite when the recipient receives a reminder. Must be less than `expiration_days`."
                          },
                          "remind_before": {
                            "type": "integer",
                            "maximum": 179,
                            "minimum": 1,
                            "description": "Number of days before the invite expires when the recipient receives a reminder. Must be less than `expiration_days`."
                          },
                          "remind_repeat": {
                            "type": "integer",
                            "maximum": 7,
                            "minimum": 1,
                            "description": "Number of days between each reminder sent to the recipient."
                          }
                        },
                        "description": "Settings for sending automatic reminders. A reminder applies to the recipient's first invite in the step, not to each document."
                      },
                      "expiration_days": {
                        "type": "integer",
                        "maximum": 180,
                        "minimum": 1,
                        "description": "Number of days before the invite expires. Accepts `1` to `180`. `0` uses the organization's default invite-expiration setting (falls back to `30`)."
                      }
                    },
                    "description": "Settings for the new email recipient. Include when the updated recipient receives the invite by email. The `email` value must match `replace_with_this_user`."
                  },
                  "user_to_update": {
                    "type": "string",
                    "example": "initial.signer@email.com",
                    "description": "Current email recipient to update or replace, identified by email address. Provide either `user_to_update` or `phone_invite_to_update`, not both."
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "example": 1531154773,
                    "description": "Unix timestamp of the request."
                  },
                  "is_short_link_invite": {
                    "type": "boolean",
                    "example": false,
                    "description": "Set to `true` for a short-link invite. Short-link invites cannot contain `replace_with_this_user` or `replace_with_this_phone_invite`, reminders, or SN Login authentication."
                  },
                  "phone_invite_to_update": {
                    "type": "string",
                    "example": "+14075985199",
                    "description": "Current SMS recipient to update or replace, identified by phone number in E.164 format (`+` followed by up to 13 digits, max 14 characters). Source it from [Get doc group invite](/docs/doc-group-field-invite/operations/get-document-group-invite) and read `actions[].signer_phone_invite`. Provide either `user_to_update` or `phone_invite_to_update`. Note: The internal `sms_signer_+<phone>@no.reply` address is not a supported input."
                  },
                  "replace_with_this_user": {
                    "type": "string",
                    "example": "updated.signer@email.com",
                    "description": "Email address of the new recipient that replaces the current one. Provide either `replace_with_this_user` or `replace_with_this_phone_invite`, not both. When provided, `invite_email.email` must equal this value."
                  },
                  "replace_with_this_phone_invite": {
                    "type": "string",
                    "example": "+14085550123",
                    "description": "Phone number (E.164) of the new SMS recipient that replaces the current one. Provide either `replace_with_this_user` or `replace_with_this_phone_invite`. When provided, `invite_sms.phone_invite` must equal this value. Cannot be combined with `allow_reassign`, or with the `CFR` or `require_login_for_signing` settings."
                  },
                  "update_invite_action_attributes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "document_id"
                      ],
                      "properties": {
                        "language": {
                          "type": "string",
                          "example": "en",
                          "description": "Language of the invite email or SMS. Allowed values: `en`, `es`, `fr`. Must be the same for one recipient."
                        },
                        "contact_id": {
                          "type": "string",
                          "example": "abc123def456abc123def456abc123def456abcd",
                          "description": "40-character ID of the CRM contact to associate with this recipient."
                        },
                        "document_id": {
                          "type": "string",
                          "example": "abc123def456abc123def456abc123def456abcd",
                          "description": "ID of the document within the document group to update for this recipient."
                        },
                        "allow_reassign": {
                          "type": "integer",
                          "example": 0,
                          "description": "Allow the recipient to reassign the invite (`1`) or not (`0`). Cannot be used together with `replace_with_this_phone_invite`."
                        },
                        "decline_by_signature": {
                          "type": "string",
                          "example": "0",
                          "description": "When a signer clicks a signature field, they can sign or decline the document group. Enabled (`1`) or disabled (`0`)."
                        }
                      }
                    },
                    "description": "Optional per-document settings for the recipient being updated. If omitted, all documents the recipient has in the step are updated; if provided, only the listed `document_id`s are updated."
                  }
                }
              },
              "examples": {
                "Update SMS recipient (phone to phone)": {
                  "value": {
                    "invite_sms": {
                      "phone_invite": "+14085550123",
                      "expiration_days": 30
                    },
                    "phone_invite_to_update": "+14075985199",
                    "replace_with_this_phone_invite": "+14085550123",
                    "update_invite_action_attributes": [
                      {
                        "document_id": "abc123def456abc123def456abc123def456abcd"
                      }
                    ]
                  }
                },
                "Update email recipient (email to email)": {
                  "value": {
                    "invite_email": {
                      "email": "updated.signer@email.com",
                      "expiration_days": 30
                    },
                    "user_to_update": "initial.signer@email.com",
                    "replace_with_this_user": "updated.signer@email.com",
                    "update_invite_action_attributes": [
                      {
                        "document_id": "abc123def456abc123def456abc123def456abcd",
                        "allow_reassign": 0,
                        "decline_by_signature": "0"
                      }
                    ]
                  }
                },
                "Convert SMS recipient to email (phone to email)": {
                  "value": {
                    "invite_email": {
                      "email": "updated.signer@email.com",
                      "expiration_days": 30
                    },
                    "phone_invite_to_update": "+14075985199",
                    "replace_with_this_user": "updated.signer@email.com",
                    "update_invite_action_attributes": [
                      {
                        "document_id": "abc123def456abc123def456abc123def456abcd",
                        "allow_reassign": 0,
                        "decline_by_signature": "0"
                      }
                    ]
                  }
                },
                "Convert email recipient to SMS (email to phone)": {
                  "value": {
                    "invite_sms": {
                      "phone_invite": "+14075985199",
                      "expiration_days": 30
                    },
                    "user_to_update": "initial.signer@email.com",
                    "replace_with_this_phone_invite": "+14075985199",
                    "update_invite_action_attributes": [
                      {
                        "document_id": "abc123def456abc123def456abc123def456abcd"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/documentgroup/{document_group_id}/groupinvite/{invite_id}/resendinvites": {
      "post": {
        "operationId": "resend-document-group-invite",
        "summary": "Resend doc group invite",
        "description": "Resends invite emails to those with pending invites for the group invite. Resend can also be used to resend invites to a single user if the user's email is specified in the POST JSON body.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "invite_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect email\n* Incorrect group invite id in endpoint\n* Incorrect group id in endpoint\n* Cannot update the invite with an email group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect email": {
                    "value": {
                      "errors": [
                        {
                          "code": 65544,
                          "message": "Invalid email."
                        }
                      ]
                    }
                  },
                  "Incorrect group id in endpoint": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "unable to find document group"
                        }
                      ]
                    }
                  },
                  "Incorrect group invite id in endpoint": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "unable to find document group invite of f1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ]
                    }
                  },
                  "Cannot update the invite with an email group": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Field invite with email group is present"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "email": "some_signer@email.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/invites/{document_group_invite_id}/full-decline": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-id-invites-document-group-invite-id-full-decline",
        "summary": "Decline group invite",
        "description": "Allows API users to decline signing a document group invite.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          },
          {
            "in": "path",
            "name": "document_group_invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group invite."
          }
        ],
        "responses": {
          "204": {
            "description": "Successfully declined.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "The access token is incorrect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect access token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User does not have access to this action",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "404": {
            "description": "* Requested document group or group invite not found or are not related to each other\n* No pending invites for you in this document group.\n* The group can not be declined as it is not in pending state.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Doc group not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001011,
                          "message": "Document group `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` not found"
                        }
                      ]
                    }
                  },
                  "Doc group invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002005,
                          "message": "Document group invite `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` not found"
                        }
                      ]
                    }
                  },
                  "No pending invites for you in this document group.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19006002,
                          "message": "No pending invites for you in this document group."
                        }
                      ]
                    }
                  },
                  "The group can not be declined as it is not in pending state.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19006001,
                          "message": "The group can not be declined as it is not in pending state."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "decline"
                ],
                "properties": {
                  "decline": {
                    "type": "string",
                    "description": "The reason for decline."
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "description": "Unix timestamp of decline."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "decline": "decline reason",
                    "client_timestamp": 1586523305
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "decline": "decline reason",
                    "client_timestamp": 1586523305
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/send-email": {
      "post": {
        "operationId": "post-v2-document-groups-id-send-email",
        "summary": "Email doc group copy",
        "description": "Sends an email with a document group. A receiver can view or download the documents. A document group can be sent by either an owner, signer, or viewer of the document group.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "204": {
            "description": "Success (Success, no content)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect payload\n* Incorrect X-Skip-Rules header\n* Permission error\n* Email limit exceeded\n* Credit card is associated with a document\n* File size limit exceeded (10 MB)\n* Payload validation error:\n  * `to` must be an array\n  * `to` must not be null\n  * `to` must include one element\n  * `with_history` must be a boolean\n  * `with_history` must not be null\n  * `email` must be a string\n  * `email` must not be null\n  * `email` must be a valid email address\n  * `client_timestamp` must be an integer\n  * `client_timestamp` must not be null\n  * `client_timestamp` value must be between 0 and 4294967295",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "File is too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19062001,
                          "message": "Attachment size exceeded 10 Megabyte."
                        }
                      ]
                    }
                  },
                  "Permission error": {
                    "value": {
                      "errors": [
                        {
                          "code": 19061001,
                          "message": "Insufficient rights to send the document group via email."
                        }
                      ]
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001000,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "Email limit exceeded": {
                    "value": {
                      "errors": [
                        {
                          "code": 19053003,
                          "message": "Exceeded daily email limit."
                        }
                      ]
                    }
                  },
                  "`to` must be an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060001,
                          "message": "'The `to` value should be of type array."
                        }
                      ]
                    }
                  },
                  "`to` must not be null": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060002,
                          "message": "The `to` value should not be null."
                        }
                      ]
                    }
                  },
                  "`email` must be a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060007,
                          "message": "The `to` element `email` value should be of type string."
                        }
                      ]
                    }
                  },
                  "`email` must not be null": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060008,
                          "message": "The `to` element `email` value should not be null."
                        }
                      ]
                    }
                  },
                  "Credit card on a document": {
                    "value": {
                      "errors": [
                        {
                          "code": 19061002,
                          "message": "It is not allowed to send the document group via email."
                        }
                      ]
                    }
                  },
                  "Incorrect X-Skip-Rules header": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001057,
                          "message": "Bad header `%s` value."
                        }
                      ]
                    }
                  },
                  "`to` must include one element": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060003,
                          "message": "The `to` value should contain exactly 1 elements."
                        }
                      ]
                    }
                  },
                  "`with_history` must not be null": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060006,
                          "message": "The `with_history` value should not be null."
                        }
                      ]
                    }
                  },
                  "`with_history` must be a boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060005,
                          "message": "The `with_history` value should be of type bool."
                        }
                      ]
                    }
                  },
                  "`client_timestamp` must not be null": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060011,
                          "message": "'The client_timestamp value should not be null."
                        }
                      ]
                    }
                  },
                  "`client_timestamp` must be an integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060010,
                          "message": "The client_timestamp value should be of type int."
                        }
                      ]
                    }
                  },
                  "`email` must be a valid email address": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060009,
                          "message": "The `to` element `email` value is not a valid email address."
                        }
                      ]
                    }
                  },
                  "`client_timestamp` value must be between 0 and 4294967295": {
                    "value": {
                      "errors": [
                        {
                          "code": 19060012,
                          "message": "'The client_timestamp value should be between 0 and 4294967295."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Unverified user email",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User not verified": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001050,
                          "message": "User is not verified."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Document group not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Document group not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002010,
                          "message": "Document group `0000000000000000000000000000000000000000` not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong during downloading attachments or sending emails.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Could not send email": {
                    "value": {
                      "errors": [
                        {
                          "code": 19062004,
                          "message": "Something went wrong during send email."
                        }
                      ]
                    }
                  },
                  "Could not download attachments": {
                    "value": {
                      "errors": [
                        {
                          "code": 19062002,
                          "message": "Something went wrong during download attachments."
                        }
                      ]
                    }
                  },
                  "Could not download attachments 2": {
                    "value": {
                      "errors": [
                        {
                          "code": 19062003,
                          "message": "Something went wrong during download attachments."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "to",
                  "with_history",
                  "client_timestamp"
                ],
                "properties": {
                  "to": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "email"
                      ],
                      "properties": {
                        "email": {
                          "type": "string",
                          "x-stoplight": {
                            "id": "1z69qqswvphys"
                          }
                        }
                      },
                      "x-stoplight": {
                        "id": "ir6umz5zp6v9l"
                      }
                    },
                    "x-stoplight": {
                      "id": "qqa5xtlcjptve"
                    }
                  },
                  "with_history": {
                    "type": "boolean",
                    "x-stoplight": {
                      "id": "4isrk0z57mbvy"
                    }
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "x-stoplight": {
                      "id": "rdad4u2majdyk"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/free-form-invites": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-id-free-form-invites",
        "summary": "Create freeform invite",
        "description": "This endpoint allows API users to create and send a FreeForm invite to sign a document group.\n\n**FreeForm invite**\n\nA FreeForm invite is an invite with a document that does not contain fields; recipients can add their signature anywhere on the document.\n> A FreeForm invite can be sent to the sender's own email address.\n\n**Schedule a freeform invite**\n\nTo send a FreeForm document group invite at a later time, use the [Schedule document group invite](/docs/scheduled-doc-group-invite/operations/post-document-group-scheduled-invite) endpoint with `is_freeform_invite: true`.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "id": "2aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* More than 20 documents in the document group.\n* Document group has no documents.\n* Document group has active fields.\n* Document group has deleted or trashed documents.\n* Owner cannot be a signer.\n* Invite has more than 50 signers.\n* User doesn't own the document group.\n* Missing `to` email.\n* `to` is not an array.\n* `to` is not an array of arrays.\n* `cc`  is not an array.\n* `cc` is not an array of arrays.\n* `message` is not a string.\n* Empty `message`.\n* `message` is longer than 1000 characters.\n* `message` contains unsupported characters.\n* `subject` is not a string.\n* Empty `subject.\n* `subject` is longer than 1000 characters.\n* `subject` contains unsupported characters.\n* `redirect_uri` is not a string.\n* Empty `redirect_uri`.\n* `redirect_uri` is not a correct URL.\n* `redirect_uri` is longer than 2048 characters.\n* Missing `to.email`.\n* `to.email` is not a string.\n* Empty `to.email`.\n* `to. email` is not a correct email address.\n* Missing `cc.email`.\n* `cc.email` is not a string.\n* Empty `cc.email`.\n* `cc. email` is not a correct email address.\n* Emails in `to` are not unique.\n* Emails in `cc` are not unique.\n* Invite has more than 50 signers.\n* Invite has more than 50 emails in `cc`.\n* Missing `client_timestamp`.\n* `client_timestamp` is not an integer.\n* `client_timestamp` is out of range.\n* `language` is not a string.\n* Incorrect `language`.\n* `to.close_redirect_uri` is not a string.\n* Empty `to.close_redirect_uri`.\n* `to.close_redirect_uri` is not a correct URL address.\n* `to.close_redirect_uri` is longer than 2048 characters.\n* `to.redirect_uri` is not a string.\n* Empty `to.redirect_uri`.\n* `to.redirect_uri` is not a correct URL address.\n* `to.redirect_uri` is longer than 2048 characters.\n* `redirect_target` is not a string.\n* Incorrect `redirect_target`.\n* One of redirect URLs is required if `redirect_target` is added.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty message": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054007,
                          "message": "Field `message` must not be empty string."
                        }
                      ]
                    }
                  },
                  "Empty subject": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054011,
                          "message": "Field `subject` must not be empty string."
                        }
                      ]
                    }
                  },
                  "Empty cc.email": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054029,
                          "message": "Field `email` in `cc` should not be empty string."
                        }
                      ]
                    }
                  },
                  "Empty to.email": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054028,
                          "message": "Field `email` in `to` should not be empty string."
                        }
                      ]
                    }
                  },
                  "`cc` not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054004,
                          "message": "Field `cc` should be of type array."
                        }
                      ]
                    }
                  },
                  "`to` not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054002,
                          "message": "Field `to` should be of type array"
                        }
                      ]
                    }
                  },
                  "Owner is signer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19055005,
                          "message": "Document group owner can not be signer."
                        }
                      ]
                    }
                  },
                  "Missing cc.email": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054021,
                          "message": "Field `email` in `cc` should not be null."
                        }
                      ]
                    }
                  },
                  "Missing to.email": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054018,
                          "message": "Field `email` in `to` should not be null."
                        }
                      ]
                    }
                  },
                  "Too many signers": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054026,
                          "message": "Maximum number of signers is 50."
                        }
                      ]
                    }
                  },
                  "message too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054008,
                          "message": "Field `message` should not exceed 1000 characters."
                        }
                      ]
                    }
                  },
                  "subject too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054012,
                          "message": "Field `subject` should not exceed 1000 characters."
                        }
                      ]
                    }
                  },
                  "Empty redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054015,
                          "message": "Field `redirect_uri` must not be empty string."
                        }
                      ]
                    }
                  },
                  "Incorrect language": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054034,
                          "message": "Field `language` in `to` is invalid, allowed values: en, fr, es."
                        }
                      ]
                    }
                  },
                  "Missing `to` field": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054001,
                          "message": "Field `to` should not be null."
                        }
                      ]
                    }
                  },
                  "message not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054006,
                          "message": "Field `message` should be of type string"
                        }
                      ]
                    }
                  },
                  "subject not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054010,
                          "message": "Field `subject` should be of type string."
                        }
                      ]
                    }
                  },
                  "DG has no documents": {
                    "value": {
                      "errors": [
                        {
                          "code": 19055002,
                          "message": "Document group has no documents."
                        }
                      ]
                    }
                  },
                  "cc.email not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054022,
                          "message": "Field `email` in `cc` should be of type string."
                        }
                      ]
                    }
                  },
                  "language not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054033,
                          "message": "Field `language` in `to` must be a string."
                        }
                      ]
                    }
                  },
                  "to.email not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054019,
                          "message": "Field `email` in `to` should be of type string."
                        }
                      ]
                    }
                  },
                  "DG has active fields": {
                    "value": {
                      "errors": [
                        {
                          "code": 19055001,
                          "message": "Document group has active fields."
                        }
                      ]
                    }
                  },
                  "Missing redirect URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054045,
                          "message": "In `to`, one of the `redirect_uri` fields is required when `redirect_target` is added."
                        }
                      ]
                    }
                  },
                  "More than 50 signers": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054026,
                          "message": "Maximum number of signers is 50."
                        }
                      ]
                    }
                  },
                  "Empty to.redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054036,
                          "message": "The `redirect_uri` field in `to` must not be empty."
                        }
                      ]
                    }
                  },
                  "redirect_uri too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054017,
                          "message": "Field `redirect_uri` should not exceed 2048 characters."
                        }
                      ]
                    }
                  },
                  "`cc` emails not unique": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054025,
                          "message": "Cc emails must be unique."
                        }
                      ]
                    }
                  },
                  "`to` emails not unique": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054024,
                          "message": "To emails must be unique."
                        }
                      ]
                    }
                  },
                  "redirect_uri not a URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054016,
                          "message": "Field `redirect_uri` should be a valid url."
                        }
                      ]
                    }
                  },
                  "Too many emails in `cc`": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054027,
                          "message": "Maximum number of cc is 50."
                        }
                      ]
                    }
                  },
                  "redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054014,
                          "message": "Field `redirect_uri` should be of type string."
                        }
                      ]
                    }
                  },
                  "Missing client_timestamp": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054030,
                          "message": "Field `client_timestamp` should not be null."
                        }
                      ]
                    }
                  },
                  "`cc` not array of arrays": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054005,
                          "message": "Field `cc` must be an array of arrays."
                        }
                      ]
                    }
                  },
                  "`to` not array of arrays": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054003,
                          "message": "Field `to` must be an array of arrays."
                        }
                      ]
                    }
                  },
                  "to.redirect_uri too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054038,
                          "message": "Parameter `redirect_uri` must not exceed 2048 characters."
                        }
                      ]
                    }
                  },
                  "Incorrect redirect_target": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054044,
                          "message": "The `redirect_target` field in `to` is invalid, allowed values: self, blank."
                        }
                      ]
                    }
                  },
                  "to.redirect_uri not a URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054037,
                          "message": "The `redirect_uri` field in `to` contains a URL in an invalid format."
                        }
                      ]
                    }
                  },
                  "20+ documents in doc group": {
                    "value": {
                      "errors": [
                        {
                          "code": 19055006,
                          "message": "Document group can not contain more than 20 documents."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "redirect_target not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054043,
                          "message": "The `The `redirect_target` field in `to` must be a string."
                        }
                      ]
                    }
                  },
                  "to.redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054035,
                          "message": "The `redirect_uri` field in `to` must be a string."
                        }
                      ]
                    }
                  },
                  "Empty to.close_redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054040,
                          "message": "The `close_redirect_uri` field in `to` must not be empty."
                        }
                      ]
                    }
                  },
                  "client_timestamp not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054031,
                          "message": "Field `client_timestamp` should be of type int."
                        }
                      ]
                    }
                  },
                  "User not document group owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001010,
                          "message": "Current user is not document group owner."
                        }
                      ]
                    }
                  },
                  "client_timestamp out of range": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054032,
                          "message": "The `client_timestamp` should be between 0 and 4294967295."
                        }
                      ]
                    }
                  },
                  "to.close_redirect_uri too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054042,
                          "message": "Parameter `close_redirect_uri` must not exceed 2048 characters."
                        }
                      ]
                    }
                  },
                  "to.close_redirect_uri not a URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054041,
                          "message": "The `close_redirect_uri` field in `to` contains a URL in an invalid format."
                        }
                      ]
                    }
                  },
                  "cc.email is not an email address": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054023,
                          "message": "Field `email` in `cc` should be a valid email address."
                        }
                      ]
                    }
                  },
                  "to.close_redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054039,
                          "message": "The `close_redirect_uri` field in `to` must be a string."
                        }
                      ]
                    }
                  },
                  "to.email is not an email address": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054020,
                          "message": "Field `email` in `to` should be a valid email address."
                        }
                      ]
                    }
                  },
                  "Message has unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054009,
                          "message": "Invalid characters provided for `message`."
                        }
                      ]
                    }
                  },
                  "Subject has unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19054013,
                          "message": "Invalid characters provided for `subject`."
                        }
                      ]
                    }
                  },
                  "DG has deleted or trashed documents": {
                    "value": {
                      "errors": [
                        {
                          "code": 19055003,
                          "message": "Document group contains deleted documents."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User is not verified",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User is not verified": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001049,
                          "message": "User is not verified."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Document group has active invites",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Document group has active invites": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001036,
                          "message": "An invite already exists for this document group."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Too many requests": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001058,
                          "message": "Too many requests."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "to",
                  "client_timestamp"
                ],
                "properties": {
                  "cc": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "string",
                          "description": "CC recipient's email address."
                        }
                      }
                    },
                    "description": "Array with the list of CC email addresses."
                  },
                  "to": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "email"
                      ],
                      "properties": {
                        "email": {
                          "type": "string",
                          "description": "Signer's email address. **Note**: A FreeForm invite can be sent to the sender's own email address."
                        },
                        "language": {
                          "type": "string",
                          "description": "Sets the language of the signing session and notification emails for the signer. Possible values: `en` for English, `es` for Spanish, and `fr` for French. If not set, the language is determined by the language of your SignNow account. If emails are branded, you can set up [your own](/docs/guides-branding#language-branding) email texts in different languages."
                        },
                        "redirect_uri": {
                          "type": "string",
                          "description": "The link that opens after a signer signs the document group. This field overrides the general `redirect_uri`.",
                          "x-stoplight": {
                            "id": "lcfnb28x6nalk"
                          }
                        },
                        "redirect_target": {
                          "type": "string",
                          "default": "blank",
                          "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                          "x-stoplight": {
                            "id": "l98jmc0673jxg"
                          }
                        },
                        "close_redirect_uri": {
                          "type": "string",
                          "description": "The link that opens after a signer selects the **Close** button.",
                          "x-stoplight": {
                            "id": "z8u5arnl0loe4"
                          }
                        }
                      }
                    },
                    "description": "Array with the list of signers."
                  },
                  "message": {
                    "type": "string",
                    "description": "Email body message for all signers."
                  },
                  "subject": {
                    "type": "string",
                    "description": "Email subject for all signers."
                  },
                  "redirect_uri": {
                    "type": "string",
                    "description": "When the document is signed, the signer is redirected to this URI."
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "maximum": 4294967295,
                    "minimum": 0,
                    "description": "UNIX timestamp.",
                    "x-stoplight": {
                      "id": "h1cu9trup60is"
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "cc": [
                      {
                        "email": "cc@email.com"
                      }
                    ],
                    "to": [
                      {
                        "email": "signer@email.com"
                      }
                    ],
                    "message": "You have been invited to sign a document group",
                    "subject": "You have been invited to sign a document group",
                    "redirect_uri": "https://example.com",
                    "client_timestamp": 1530017036
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "cc": [
                      {
                        "email": "cc@mail.com"
                      }
                    ],
                    "to": [
                      {
                        "email": "signer@mail.com",
                        "language": "en",
                        "redirect_uri": "https://redirect-uri.com",
                        "redirect_target": "blank",
                        "close_redirect_uri": "https://close-redirect-uri.com"
                      }
                    ],
                    "message": "Custom message",
                    "subject": "Custom subject",
                    "redirect_uri": "https://signnow.com",
                    "client_timestamp": 1719852788
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/free-form-invites/{dg_freeform_invite_id}/cancel": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-id-free-form-invites-dg-freeform-invite-id-cancel",
        "summary": "Cancel invites for all signers",
        "description": "Cancel the document group FreeForm invite for all signers with a specified cancellation reason.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          },
          {
            "in": "path",
            "name": "dg_freeform_invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group FreeForm invite."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Example payload validation\n* Document group not in pending status\n* Field `reason` should be of type string\n* Field `reason` must not be empty string\n* Field `reason` should not exceed 1000 characters\n* Invalid characters provided for `reason`\n* Field `client_timestamp` should not be null\n* Field `client_timestamp` should be of type int\n* The `client_timestamp` limits exceeded\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Example payload validation": {
                    "value": {
                      "errors": [
                        {
                          "code": 19064001,
                          "message": "Field `reason` should be of type string."
                        }
                      ]
                    }
                  },
                  "Document group not in pending status": {
                    "value": {
                      "errors": [
                        {
                          "code": 19065001,
                          "message": "Document group free form invite must be in pending status."
                        }
                      ]
                    }
                  },
                  "Field `reason` exceeds 1000 characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19064003,
                          "message": "Field `reason` should not exceed 1000 characters."
                        }
                      ]
                    }
                  },
                  "The `client_timestamp` limits exceeded": {
                    "value": {
                      "errors": [
                        {
                          "code": 19064007,
                          "message": "The `client_timestamp` should be between 0 and 4294967295."
                        }
                      ]
                    }
                  },
                  "Field `reason` must not be empty string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19064002,
                          "message": "Field `reason` must not be empty string."
                        }
                      ]
                    }
                  },
                  "Field `reason` should be of type string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19064001,
                          "message": "Field `reason` should be of type string."
                        }
                      ]
                    }
                  },
                  "Invalid characters provided for `reason`": {
                    "value": {
                      "errors": [
                        {
                          "code": 19064004,
                          "message": "Invalid characters provided for `reason`."
                        }
                      ]
                    }
                  },
                  "Field `client_timestamp` should not be null": {
                    "value": {
                      "errors": [
                        {
                          "code": 19064005,
                          "message": "Field `client_timestamp` should not be null."
                        }
                      ]
                    }
                  },
                  "Field `client_timestamp` should be of type int": {
                    "value": {
                      "errors": [
                        {
                          "code": 19064006,
                          "message": "Field `client_timestamp` should be of type int."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* User is not doc group owner\n* User is not verified\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User is not verified": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001049,
                          "message": "User is not verified."
                        }
                      ]
                    }
                  },
                  "User is not doc group owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001010,
                          "message": "Current user is not document group owner."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "FreeForm invite does not belong to doc group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "FreeForm invite does not belong to doc group": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001051,
                          "message": "Document group {document_group_id} not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Too many attempts.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001058,
                          "message": "Too Many Attempts."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "client_timestamp"
                ],
                "properties": {
                  "reason": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "Cancellation reason.",
                    "x-stoplight": {
                      "id": "xzp0ydvyy90xo"
                    }
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "description": "UNIX timestamp.",
                    "x-stoplight": {
                      "id": "fwg6d76r2ves6"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/free-form-invites/{dg_freeform_invite_id}/documents": {
      "get": {
        "operationId": "get-v2-document-groups-document-group-id-free-form-invites-dg-freeform-invite-id-documents",
        "summary": "Get freeform invites",
        "description": "Retrieve the document group FreeForm invites for the current user.",
        "parameters": [
          {
            "in": "query",
            "name": "per_page",
            "type": "string",
            "required": false,
            "description": "How many search items to view per page. Allowed values: positive integers from 1 to 100."
          },
          {
            "in": "query",
            "name": "page",
            "type": "string",
            "required": false,
            "description": "How many pages to fit the results in. Allowed values: any positive integer starting from 1."
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          },
          {
            "in": "path",
            "name": "dg_freeform_invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group FreeForm invite."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": [
                        {
                          "id": "2aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "document name",
                          "invite": {
                            "id": "2aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "status": "pending"
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": {
                            "next": "http://example.com/v2/document-groups/2aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/free-form-invites/2aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/documents?per_page=1&page=3",
                            "previous": "http://example.com/v2/document-groups/2aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/free-form-invites/2aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/documents?per_page=1&page=1"
                          },
                          "total": 3,
                          "per_page": 1,
                          "total_pages": 3,
                          "current_page": 2
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Current user does not have free form invites on this document group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "No free form invites with this doc group": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001053,
                          "message": "Document group free form invites not exist."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Document group free form invite not found\n* Document group not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Document group not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002010,
                          "message": "Document group '2aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' not found."
                        }
                      ]
                    }
                  },
                  "Document group free form invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002015,
                          "message": "Document group free form invite `d9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-groups/{document_group_id}/free-form-invites/{dg_freeform_invite_id}/users/{user_id}/cancel": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-id-free-form-invites-dg-freeform-invite-id-users-user-id-cancel",
        "summary": "Cancel invite for one signer",
        "description": "Cancel the document group FreeForm invite for a specific signer with a specified cancellation reason.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group"
          },
          {
            "in": "path",
            "name": "dg_freeform_invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group FreeForm invite."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the signer."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* User has signed documents in this group\n* Field `reason` should be of type string\n* Field `reason` must not be empty string\n* Field `reason` should not exceed 1000 characters\n* Invalid characters provided for `reason`\n* Field `client_timestamp` should not be null\n* Field `client_timestamp` should be of type int\n* The `client_timestamp` limits exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Field `reason` exceeds 1000 characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19057003,
                          "message": "Field `reason` should not exceed 1000 characters."
                        }
                      ]
                    }
                  },
                  "The `client_timestamp` limits exceeded": {
                    "value": {
                      "errors": [
                        {
                          "code": 19057007,
                          "message": "The `client_timestamp` should be between 0 and 4294967295."
                        }
                      ]
                    }
                  },
                  "Field `reason` must not be empty string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19057002,
                          "message": "Field `reason` must not be empty string."
                        }
                      ]
                    }
                  },
                  "Field `reason` should be of type string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19057001,
                          "message": "Field `reason` should be of type string."
                        }
                      ]
                    }
                  },
                  "User has signed documents in this group": {
                    "value": {
                      "errors": [
                        {
                          "code": 19056001,
                          "message": "The user has signed documents in this document group."
                        }
                      ]
                    }
                  },
                  "Invalid characters provided for `reason`": {
                    "value": {
                      "errors": [
                        {
                          "code": 19057004,
                          "message": "Invalid characters provided for `reason`."
                        }
                      ]
                    }
                  },
                  "Field `client_timestamp` should not be null": {
                    "value": {
                      "errors": [
                        {
                          "code": 19057005,
                          "message": "Field `client_timestamp` should not be null."
                        }
                      ]
                    }
                  },
                  "Field `client_timestamp` should be of type int": {
                    "value": {
                      "errors": [
                        {
                          "code": 19057006,
                          "message": "Field `client_timestamp` should be of type int."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* User is not doc group owner\n* User is not verified\n* User is not signer",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User is not signer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001052,
                          "message": "User {signer_id} has no invites in this document group."
                        }
                      ]
                    }
                  },
                  "User is not verified": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001049,
                          "message": "User is not verified."
                        }
                      ]
                    }
                  },
                  "User is not doc group owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001010,
                          "message": "Current user is not document group owner."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "FreeForm invite does not belong to doc group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "FreeForm invite does not belong to doc group": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001051,
                          "message": "Document group {document_group_id} not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "client_timestamp"
                ],
                "properties": {
                  "reason": {
                    "type": "string",
                    "maxLength": 1000,
                    "description": "Cancellation reason."
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "description": "UNIX timestamp."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "reason": "cancel reason",
                    "client_timestamp": 1530017036
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "reason": "cancel reason",
                    "client_timestamp": 1530017036
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/free-form-invites/{freeform_invite_id}/users/{user_id}/resend": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-unique-id-free-form-invites-free-form-invite-unique-id-users-user-unique-id-resend",
        "summary": "Resend freeform invite",
        "description": "Resend the Document Group FreeForm invite to a specific signer.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "freeform_invite_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "202": {
            "description": "Correct request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Authorization issues\n* Owner daily invite limit exceeded\n* Trial period invite limit reached",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "errors": [
                        {
                          "code": 1537,
                          "message": "invalid_token"
                        }
                      ]
                    }
                  },
                  "Owner daily invite limit exceeded": {
                    "value": {
                      "errors": [
                        {
                          "code": 19053002,
                          "message": "Daily invite limit exceeded"
                        }
                      ]
                    }
                  },
                  "Trial period invite limit reached": {
                    "value": {
                      "errors": [
                        {
                          "code": 19053001,
                          "message": "Trial period invite limit reached"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Free form invite not related to document group\n* Signature request not found\n* Current user is not document group owner",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Signature request not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001019,
                          "message": "Signature request not found"
                        }
                      ]
                    }
                  },
                  "User is not document group owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001010,
                          "message": "Current user is not document group owner."
                        }
                      ]
                    }
                  },
                  "Free form invite not related to document group": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001051,
                          "message": "Free form invite not related to document group."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Document group not found, incorrect id\n* Document group free form invite not found\n* User not found, incorrect id\n* Document group signature requests not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User not found, incorrect id": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002012,
                          "message": "User not found."
                        }
                      ]
                    }
                  },
                  "Document group not found, incorrect id": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002010,
                          "message": "Document group `document_group_id` not found."
                        }
                      ]
                    }
                  },
                  "Document group free form invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002015,
                          "message": "Document group free form invite `freeform_invite_id` not found."
                        }
                      ]
                    }
                  },
                  "Document group signature requests not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001053,
                          "message": "Document group signature requests not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document": {
      "post": {
        "operationId": "upload-document",
        "summary": "Upload document",
        "description": "Uploads a file to user's account and returns unique id of the uploaded document. Accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx, .ps, and .eps file types.\n\nMaximum file size per upload is 50 Mb. \n\nThe same limit works for the attachments uploaded by signers via SignNow editor.\n\nFor more information, check out our video tutorial.\n\n<details open>\n\n**<summary>Video tutorial</summary>**\n\n<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>\n\n[Video tutorial](https://www.youtube.com/watch?v=4pPTE7-WXVM)\n\n</details>",
        "responses": {
          "200": {
            "description": "Successful request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "9cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "@/path/to/your/file.pdf",
                    "format": "binary"
                  },
                  "check_fields": {
                    "type": "boolean",
                    "description": "If true, you can upload a document with simple text tags. For more information, see [Upload document with tags](/docs/document/operations/upload-document-with-text-tags)."
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/document/{document_id}": {
      "put": {
        "operationId": "put-document-document-id",
        "summary": "Add payment request field",
        "description": "This endpoint allows users to add a payment request field to a specific document. \n\n> The payment request field is a text field with a specific validator ID. You can only add one payment request field to your invite.\n\nFor payment requests with field values, you must use the following validator IDs:\n- `7ef095fd94ce63b670b52b2e83457d59ac796a39` (currency amount format 1) - for European countries. Example: 8,100.00\n- `824085fd04ce63b670b11b2e83457d59ac796a39` (currency amount format 2) - for the United States. Example: 8.100,60\n\n> To request payment from the recipient, you have to [connect to the payment service](/docs/request-payments/operations/post-organizations-org-id-merchantaccount) and send a [signature invite with a payment request](/docs/document-field-invite/operations/post-field-invite). The recipient will be asked to pay the amount you specified once they’ve completed the document.\n\n<details>\n\n**<summary>Use additional attributes to customize the payment request field</summary>**\n\n| Parameter | Description | Example |\n| --- | --- | --- |\n| `type` | Field type. For the payment request field, the `type` is `text`. |<img src=\"/reference-assets/images/Request_payments/payment_field_type_name.png\" alt=\"Payment field type\"> |\n| `name` | Name of the payment field. | See the screenshot above.  |\n| `validator_id` | A string that adds format validation. To use the field for the payment request, you must use the following validators: `7ef095fd94ce63b670b52b2e83457d59ac796a39` (currency amount format 1) - for European countries. Example: 8,100.00; `824085fd04ce63b670b11b2e83457d59ac796a39` (currency amount format 2) - for the United States. Example: 8.100,00. | <img src=\"/reference-assets/images/Request_payments/validator_payment_field.png\" alt=\"Validator ID\"> |\n\n</details>",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Document ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns ID of the updated document with a payment request field in case of successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "texts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "checks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "hyperlinks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "signatures": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "attachments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    },
                    "radiobuttons": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "2a4406b54049473fb709ed1191908eb6700f7347",
                      "lines": [],
                      "texts": [],
                      "checks": [],
                      "hyperlinks": [],
                      "signatures": [],
                      "attachments": [],
                      "radiobuttons": []
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "id": "2a4406b54049473fb709ed1191908eb6700fXXXX",
                      "lines": [],
                      "texts": [],
                      "checks": [],
                      "hyperlinks": [],
                      "signatures": [],
                      "attachments": [],
                      "radiobuttons": []
                    }
                  },
                  "Example 1": {
                    "value": {
                      "id": "2a4406b54049473fb709ed1191908eb6700f7347",
                      "lines": [],
                      "texts": [],
                      "checks": [],
                      "hyperlinks": [],
                      "signatures": [],
                      "attachments": [],
                      "radiobuttons": []
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "x",
                        "y",
                        "width",
                        "height",
                        "type",
                        "role"
                      ],
                      "properties": {
                        "x": {
                          "type": "number",
                          "example": 358,
                          "description": "A horizontal position of the field in pixels."
                        },
                        "y": {
                          "type": "number",
                          "example": 171,
                          "description": "A vertical position of the field in pixels."
                        },
                        "name": {
                          "type": "string",
                          "example": "payment_field",
                          "minLength": 1,
                          "description": "A unique field name."
                        },
                        "role": {
                          "type": "string",
                          "example": "Signer 1",
                          "minLength": 1,
                          "description": "Recipient role assigned to the field."
                        },
                        "type": {
                          "type": "string",
                          "example": "text",
                          "minLength": 1,
                          "description": "Field type. For the payment request field, the `type` is `text`."
                        },
                        "width": {
                          "type": "number",
                          "example": 177,
                          "description": "Field width in pixels."
                        },
                        "height": {
                          "type": "number",
                          "example": 50,
                          "description": "Field height in pixels."
                        },
                        "required": {
                          "type": "boolean",
                          "description": "Indicates whether the field is required. The field **must** be set to required to use it for the payment request.\n\n"
                        },
                        "page_number": {
                          "type": "number",
                          "example": 0,
                          "description": "The page number where the field will be placed. Page numbering starts at 0 (corresponding to page 1)."
                        },
                        "validator_id": {
                          "type": "string",
                          "example": "7ef095fd94ce63b670b52b2e83457d59ac796a39",
                          "minLength": 1,
                          "description": "A string that adds format validation. To use the field for the payment request, you **must** use the following validators:\n`7ef095fd94ce63b670b52b2e83457d59ac796a39` (currency amount format 1) - for European countries. Example: `8,100.00`;\n`824085fd04ce63b670b11b2e83457d59ac796a39` (currency amount format 2) - for the United States. Example: `8.100,00`\n"
                        },
                        "prefilled_text": {
                          "type": "string",
                          "example": "8100",
                          "description": "The amount in the specified format shown in the field when the signer opens the document. For the payment request field, only numbers should be used.\n\n",
                          "x-stoplight": {
                            "id": "u1mhkit828rse"
                          }
                        }
                      }
                    },
                    "minItems": 1,
                    "description": "Array of field objects to add to the document.",
                    "uniqueItems": true
                  }
                },
                "x-examples": {
                  "example-1": {
                    "fields": [
                      {
                        "x": 358,
                        "y": 171,
                        "name": "signature1",
                        "role": "Signer 1",
                        "type": "text",
                        "width": 177,
                        "height": 50,
                        "required": true,
                        "page_number": 0,
                        "validator_id": "{{number_validator_id}}",
                        "custom_defined_option": false
                      }
                    ],
                    "elements": [],
                    "client_timestamp": "timestamp"
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "fields": [
                      {
                        "x": 358,
                        "y": 171,
                        "name": "payment_field",
                        "role": "Signer 1",
                        "type": "text",
                        "width": 177,
                        "height": 50,
                        "required": true,
                        "page_number": 0,
                        "validator_id": "7ef095fd94ce63b670b52b2e83457d59ac796a39",
                        "prefilled_text": "8100"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-document",
        "summary": "Get document",
        "description": "This endpoint allows API users to retrieve the details of a document.\n\nThe **Document** object contains:\n* Metadata: file name, size, extension, and ID\n* Fields, texts, checks, and signatures\n* Invites and their statuses (available statuses are: `created`, `pending`, `fulfilled`, `canceled`, `skipped`)\n* Roles:\n  - Recipients with a sign action appear in the `roles` array.\n  - Recipients with an approve action appear in the `approver_roles` array.\n  - Recipients with a view action appear in the `viewer_roles` array.\n* Timestamps (date created, and date updated)\n* Document group information\n* Document group template information\n* Originator's organization-level settings\n* Integrations settings\n* Signing session settings\n* Share information\n  - `is_team_shared`: Returns `true`, if the file has been shared with a team. \n  - `role`: Indicates the user's access to the document: Allowed values are `sender`, `viewer`, or `owner`. \n  - `is_personally_shared_to_others`: Returns `true` if the template has been personally shared with other users (via the **Share** button). The attribute is visible to the template owner and users with access rights.\n\n\nDocument is a fundamental object of every eSignature workflow.\n\n* To send an invite, select or [upload a document](/docs/document/operations/upload-document).\n* When the document is signed, it can be [downloaded in PDF file format](/docs/document/operations/download-document).\n* Documents in SignNow can be [turned into templates](/docs/template/operations/create-template).\n* API also allows you to create [event subscriptions](/docs/basic-auth/operations/create-event-subscription) triggered by a specific document.",
        "parameters": [
          {
            "in": "query",
            "name": "include=integration_objects",
            "type": "string",
            "required": false,
            "description": "If used, the response will contain the list of smart fields."
          },
          {
            "in": "query",
            "name": "include=document_attributes",
            "type": "string",
            "required": false,
            "description": "If used, the response will contain document attributes."
          },
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Document ID."
          }
        ],
        "responses": {
          "200": {
            "description": "* Successful request.\r\n* Successful request with `include=integration_objects` (smart fields in the response).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the document."
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        }
                      },
                      "description": "List of tags assigned to the document."
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of line elements drawn on the document."
                    },
                    "owner": {
                      "type": "string",
                      "description": "Email address of the document owner."
                    },
                    "pages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "src": {
                            "type": "string"
                          },
                          "size": {
                            "type": "object",
                            "properties": {
                              "width": {
                                "type": "integer"
                              },
                              "height": {
                                "type": "integer"
                              }
                            }
                          }
                        }
                      },
                      "description": "List of document page images with size metadata."
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "unique_id": {
                            "type": "string"
                          },
                          "signing_order": {
                            "type": "string"
                          }
                        }
                      },
                      "description": "List of signer roles defined for the document."
                    },
                    "seals": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of applied seal elements on the document."
                    },
                    "texts": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of text elements added to the document."
                    },
                    "checks": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of checkmark elements added to the document."
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "role_id": {
                            "type": "string"
                          },
                          "field_id": {
                            "type": "string"
                          },
                          "fulfiller": {
                            "type": "string"
                          },
                          "element_id": {
                            "type": "string"
                          },
                          "originator": {
                            "type": "string"
                          },
                          "json_attributes": {
                            "type": "object",
                            "properties": {
                              "x": {
                                "type": "integer"
                              },
                              "y": {
                                "type": "integer"
                              },
                              "name": {
                                "type": "string"
                              },
                              "width": {
                                "type": "integer"
                              },
                              "height": {
                                "type": "integer"
                              },
                              "required": {
                                "type": "boolean"
                              },
                              "page_number": {
                                "type": "integer"
                              },
                              "lock_to_sign_prefill": {
                                "type": "boolean"
                              }
                            }
                          },
                          "field_request_id": {
                            "type": "string"
                          },
                          "template_field_id": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "field_request_canceled": {
                            "type": "string",
                            "x-nullable": true
                          }
                        }
                      },
                      "description": "List of fillable fields defined on the document."
                    },
                    "created": {
                      "type": "string",
                      "description": "Unix timestamp when the document was created."
                    },
                    "inserts": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of text inserts added to the document."
                    },
                    "updated": {
                      "type": "string",
                      "description": "Unix timestamp of the last document update."
                    },
                    "user_id": {
                      "type": "string",
                      "description": "Unique identifier of the document owner."
                    },
                    "payments": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of payment requests attached to the document."
                    },
                    "requests": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of document requests."
                    },
                    "settings": {
                      "type": "object",
                      "properties": {
                        "copy_export": {
                          "type": "boolean"
                        },
                        "upload_limit": {
                          "type": "boolean"
                        },
                        "document_guide": {
                          "type": "boolean"
                        },
                        "sso-only-login": {
                          "type": "boolean"
                        },
                        "mobileweb_option": {
                          "type": "boolean"
                        },
                        "cloud_auto_export": {
                          "type": "boolean"
                        },
                        "logout_on_signing": {
                          "type": "boolean"
                        },
                        "restrict_download": {
                          "type": "boolean"
                        },
                        "add_signature_stamp": {
                          "type": "boolean"
                        },
                        "cfr_title_21_part_11": {
                          "type": "boolean"
                        },
                        "require_email_subject": {
                          "type": "boolean"
                        },
                        "no_document_attachment": {
                          "type": "boolean"
                        },
                        "electronic_consent_text": {
                          "type": "boolean"
                        },
                        "org_allowed_team_admins": {
                          "type": "boolean"
                        },
                        "document_schema_extended": {
                          "type": "boolean"
                        },
                        "front_end_session_length": {
                          "type": "boolean"
                        },
                        "no_user_signature_return": {
                          "type": "boolean"
                        },
                        "require_drawn_signatures": {
                          "type": "boolean"
                        },
                        "cloud_export_with_history": {
                          "type": "boolean"
                        },
                        "enable_full_story_tracker": {
                          "type": "boolean"
                        },
                        "require_login_for_signing": {
                          "type": "boolean"
                        },
                        "disable_email_notifications": {
                          "type": "boolean"
                        },
                        "electronic_consent_required": {
                          "type": "boolean"
                        },
                        "email_admin_on_banned_login": {
                          "type": "boolean"
                        },
                        "enable_hyperlink_protection": {
                          "type": "boolean"
                        },
                        "invite_decline_redirect_url": {
                          "type": "boolean"
                        },
                        "emailed_docs_include_history": {
                          "type": "boolean"
                        },
                        "no_document_file_attachments": {
                          "type": "boolean"
                        },
                        "add_signature_stamp_with_name": {
                          "type": "boolean"
                        },
                        "digitally_sign_dowloaded_docs": {
                          "type": "boolean"
                        },
                        "watermark_downloaded_document": {
                          "type": "boolean"
                        },
                        "invite_completion_redirect_url": {
                          "type": "boolean"
                        },
                        "required_preset_signature_name": {
                          "type": "boolean"
                        },
                        "signing_link_document_download": {
                          "type": "boolean"
                        },
                        "block_login_via_social_networks": {
                          "type": "boolean"
                        },
                        "enable_advanced_threat_protection": {
                          "type": "boolean"
                        },
                        "document_completion_retention_days": {
                          "type": "boolean"
                        },
                        "require_authentication_for_invites": {
                          "type": "boolean"
                        },
                        "document_attachment_only_for_signer": {
                          "type": "boolean"
                        },
                        "unsuccessful_logout_attempts_allowed": {
                          "type": "boolean"
                        },
                        "audit_trail_completion_retention_days": {
                          "type": "boolean"
                        },
                        "pending_invite_document_view_notification": {
                          "type": "boolean"
                        },
                        "only_administrator_is_able_to_invite_to_the_team": {
                          "type": "boolean"
                        },
                        "block_export_options_when_credit_card_validation_is_used": {
                          "type": "boolean"
                        },
                        "invite_update_notifications_for_all_invites_at_invite_create": {
                          "type": "boolean"
                        }
                      },
                      "description": "Document-level settings and feature flags."
                    },
                    "template": {
                      "type": "boolean",
                      "description": "Indicates whether the document is a template. `true` if it is a template, `false` otherwise."
                    },
                    "parent_id": {
                      "type": "string",
                      "description": "Identifier of the parent document."
                    },
                    "thumbnail": {
                      "type": "object",
                      "properties": {
                        "large": {
                          "type": "string"
                        },
                        "small": {
                          "type": "string"
                        },
                        "medium": {
                          "type": "string"
                        }
                      },
                      "description": "Links to the document thumbnail images in `small`, `medium`, and `large` sizes."
                    },
                    "hyperlinks": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of hyperlink elements on the document."
                    },
                    "owner_name": {
                      "type": "string",
                      "description": "Display name of the document owner."
                    },
                    "page_count": {
                      "type": "string",
                      "description": "Number of pages in the document, as a string."
                    },
                    "share_info": {
                      "type": "object",
                      "properties": {
                        "role": {
                          "type": "string"
                        },
                        "is_team_shared": {
                          "type": "boolean"
                        },
                        "is_personally_shared_to_others": {
                          "type": "boolean"
                        }
                      },
                      "description": "Document sharing information (team sharing and personal sharing)."
                    },
                    "signatures": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "string"
                          },
                          "y": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "data": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "width": {
                            "type": "string"
                          },
                          "height": {
                            "type": "string"
                          },
                          "created": {
                            "type": "string"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "page_number": {
                            "type": "string"
                          }
                        }
                      },
                      "description": "List of applied signature elements on the document."
                    },
                    "attachments": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of file attachments on the document."
                    },
                    "exported_to": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of destinations to which the document has been exported."
                    },
                    "integrations": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of third-party integrations associated with the document."
                    },
                    "radiobuttons": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of radio button groups on the document."
                    },
                    "version_time": {
                      "type": "string",
                      "description": "Unix timestamp of the document version."
                    },
                    "viewer_roles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "x-stoplight": {
                          "id": "6ftboaddm6opk"
                        }
                      },
                      "description": "List of viewer roles defined for the document.",
                      "x-stoplight": {
                        "id": "om4q3nh5hu360"
                      }
                    },
                    "document_name": {
                      "type": "string",
                      "description": "Name of the document."
                    },
                    "field_invites": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "pfrid": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "status": {
                            "type": "string"
                          },
                          "created": {
                            "type": "string"
                          },
                          "pfrtype": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "role_id": {
                            "type": "string"
                          },
                          "updated": {
                            "type": "string"
                          },
                          "declined": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "reassign": {
                            "type": "string"
                          },
                          "reminder": {
                            "type": "string"
                          },
                          "pframount": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "pfrstatus": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "pfrcreated": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "email_group": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          },
                          "id_verified": {
                            "type": "string"
                          },
                          "redirect_uri": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "password_type": {
                            "type": "string"
                          },
                          "email_statuses": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "enum": [
                                    "sent",
                                    "mail_open",
                                    "bounce",
                                    "mail_click",
                                    "reminder_sent",
                                    "undefined"
                                  ],
                                  "type": "string",
                                  "description": "Email delivery event status. Possible values: `sent` — email was successfully sent to the recipient; `mail_open` — email was opened by the recipient; `bounce` — email bounced, delivery failed (e.g. invalid address); `mail_click` — a link in the email was clicked by the recipient; `reminder_sent` — a reminder email was sent to the recipient; `undefined` — the event status is unknown."
                                },
                                "created_at": {
                                  "type": "integer",
                                  "description": "Unix timestamp when the event was recorded."
                                },
                                "last_reaction_at": {
                                  "type": "integer",
                                  "description": "Unix timestamp of the last status update."
                                }
                              }
                            },
                            "description": "List of email delivery events recorded for this invite. Each object represents one event. The array is empty (`[]`) if no email events have been recorded yet."
                          },
                          "pfrmerchant_id": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "expiration_time": {
                            "type": "string"
                          },
                          "password_method": {
                            "type": "string"
                          },
                          "payment_request": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "pfrcurrency_name": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "pfrmerchant_type": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "verification_type": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "is_document_locked": {
                            "type": "string"
                          },
                          "password_protected": {
                            "type": "string"
                          },
                          "pfrjson_attributes": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "force_new_signature": {
                            "type": "integer",
                            "x-nullable": true
                          },
                          "decline_by_signature": {
                            "type": "boolean",
                            "x-nullable": true
                          },
                          "signing_instructions": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "electronic_consent_id": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "prefill_signature_name": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "id_verification_required": {
                            "type": "string"
                          },
                          "pfrmerchant_account_name": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "pfrpayment_transaction_id": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "electronic_consent_required": {
                            "type": "integer"
                          },
                          "required_preset_signature_name": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "stripe_ach_bank_account_present": {
                            "type": "string"
                          },
                          "stripe_ach_bank_account_verified": {
                            "type": "string"
                          }
                        }
                      },
                      "description": "List of signer field invites for the document."
                    },
                    "approver_roles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "x-stoplight": {
                          "id": "arai495ar4gv8"
                        }
                      },
                      "description": "List of approver roles defined for the document.",
                      "x-stoplight": {
                        "id": "4tofxp1z7ohu5"
                      }
                    },
                    "notary_invites": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of notary invites on the document."
                    },
                    "origin_user_id": {
                      "type": "string",
                      "x-nullable": true,
                      "description": "Identifier of the user who owns the source document. Can be `null`."
                    },
                    "checkbox_groups": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of checkbox group definitions on the document."
                    },
                    "originator_logo": {
                      "type": "string",
                      "description": "URL reference to the document originator's logo."
                    },
                    "routing_details": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "cc": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "id": {
                            "type": "string"
                          },
                          "data": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "role_id": {
                                  "type": "string"
                                },
                                "inviter_role": {
                                  "type": "boolean"
                                },
                                "default_email": {
                                  "type": "string"
                                },
                                "signing_order": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "cc_step": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "created": {
                            "type": "string"
                          },
                          "updated": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "invite_link_instructions": {
                            "type": "string",
                            "x-nullable": true
                          }
                        }
                      },
                      "description": "Invite routing configuration, including signer order, `cc` recipients, and invite link instructions."
                    },
                    "field_validators": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of field validation rules."
                    },
                    "scheduled_invite": {
                      "type": "object",
                      "x-nullable": true,
                      "description": "Scheduled invite configuration. Can be `null` if no invite is scheduled."
                    },
                    "original_filename": {
                      "type": "string",
                      "description": "Original filename of the uploaded document."
                    },
                    "origin_document_id": {
                      "type": "string",
                      "x-nullable": true,
                      "description": "Identifier of the source document if this document was created as a copy. Can be `null`."
                    },
                    "document_attributes": {
                      "type": "object",
                      "properties": {
                        "from_name": {
                          "type": "string"
                        },
                        "from_email": {
                          "type": "string"
                        }
                      },
                      "description": "Additional document attributes such as `from_email` and `from_name`."
                    },
                    "document_group_info": {
                      "type": "object",
                      "properties": {
                        "invite_id": {
                          "type": "string",
                          "x-nullable": true
                        },
                        "invite_status": {
                          "type": "string",
                          "x-nullable": true
                        },
                        "document_group_id": {
                          "type": "string",
                          "x-nullable": true
                        },
                        "doc_count_in_group": {
                          "type": "integer"
                        },
                        "document_group_name": {
                          "type": "string",
                          "x-nullable": true
                        }
                      },
                      "description": "Document group information if this document belongs to a group."
                    },
                    "enumeration_options": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of enumeration options for dropdown fields."
                    },
                    "viewer_field_invites": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of viewer field invites for the document."
                    },
                    "approver_field_invites": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "List of approver field invites for the document."
                    },
                    "signing_session_settings": {
                      "type": "object",
                      "description": "Settings applied to the signing session, such as `welcome_message`."
                    },
                    "document_group_template_info": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "shared": {
                            "type": "integer",
                            "description": "Whether the document group template is shared with a team: `1` if shared, `0` if not."
                          },
                          "document_group_template_id": {
                            "type": "string",
                            "description": "ID of the document group template."
                          },
                          "document_group_template_name": {
                            "type": "string",
                            "description": "Name of the document group template."
                          }
                        }
                      },
                      "description": "Active document group templates that include this document. Empty if the document isn't part of any document group template."
                    },
                    "originator_organization_settings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "setting": {
                            "type": "string"
                          }
                        }
                      },
                      "description": "Organization-level settings that apply to the document's originator. Each item has a `setting` name and its `value`."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "tags": [
                        {
                          "name": "fields",
                          "type": "system"
                        }
                      ],
                      "lines": [],
                      "owner": "document_owner@email.com",
                      "pages": [
                        {
                          "src": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large&page=0",
                          "size": {
                            "width": 612,
                            "height": 792
                          }
                        }
                      ],
                      "roles": [
                        {
                          "name": "Signer 1",
                          "unique_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "signing_order": "1"
                        }
                      ],
                      "seals": [],
                      "texts": [],
                      "checks": [],
                      "fields": [
                        {
                          "id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "role": "Signer 1",
                          "type": "signature",
                          "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "field_id": "c2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "fulfiller": "signer@email.com",
                          "element_id": "26XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "originator": "document_owner@email.com",
                          "json_attributes": {
                            "x": 70,
                            "y": 362,
                            "name": "Signature_1",
                            "width": 83,
                            "height": 21,
                            "required": true,
                            "page_number": 0
                          },
                          "field_request_id": "c2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "template_field_id": null,
                          "field_request_canceled": null
                        },
                        {
                          "id": "791b763ccfcf431e8a52f267e7da74ee7de99974",
                          "role": "Signer 2",
                          "type": "text",
                          "role_id": "d01146c6310c4b138ad04be067b6518e125588a4",
                          "field_id": null,
                          "fulfiller": "signer2@email.com",
                          "element_id": null,
                          "originator": "document_owner@email.com",
                          "json_attributes": {
                            "x": 396,
                            "y": 142,
                            "bold": false,
                            "font": "Arial",
                            "name": "Text Field 1",
                            "size": 14,
                            "align": "left",
                            "color": "000000",
                            "width": 65,
                            "height": 12,
                            "italic": false,
                            "valign": "top",
                            "required": false,
                            "font_size": 10,
                            "max_chars": 0,
                            "max_lines": 0,
                            "underline": false,
                            "arrangement": "none",
                            "page_number": 0,
                            "stretch_mode": "fixed",
                            "prefilled_text": "1234",
                            "lock_to_sign_prefill": true
                          },
                          "field_request_id": null,
                          "template_field_id": null,
                          "field_request_canceled": null
                        }
                      ],
                      "created": "1565787561",
                      "inserts": [],
                      "updated": "1565858757",
                      "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "payments": [],
                      "requests": [],
                      "settings": {
                        "copy_export": false,
                        "upload_limit": false,
                        "document_guide": false,
                        "sso-only-login": false,
                        "mobileweb_option": false,
                        "cloud_auto_export": false,
                        "logout_on_signing": false,
                        "restrict_download": false,
                        "add_signature_stamp": false,
                        "cfr_title_21_part_11": false,
                        "require_email_subject": false,
                        "no_document_attachment": false,
                        "electronic_consent_text": false,
                        "org_allowed_team_admins": false,
                        "document_schema_extended": false,
                        "front_end_session_length": false,
                        "no_user_signature_return": false,
                        "require_drawn_signatures": false,
                        "cloud_export_with_history": false,
                        "enable_full_story_tracker": false,
                        "require_login_for_signing": false,
                        "disable_email_notifications": false,
                        "electronic_consent_required": false,
                        "email_admin_on_banned_login": false,
                        "enable_hyperlink_protection": false,
                        "invite_decline_redirect_url": false,
                        "emailed_docs_include_history": false,
                        "no_document_file_attachments": false,
                        "add_signature_stamp_with_name": false,
                        "digitally_sign_dowloaded_docs": false,
                        "watermark_downloaded_document": false,
                        "invite_completion_redirect_url": false,
                        "required_preset_signature_name": false,
                        "signing_link_document_download": false,
                        "block_login_via_social_networks": false,
                        "enable_advanced_threat_protection": false,
                        "document_completion_retention_days": false,
                        "require_authentication_for_invites": false,
                        "document_attachment_only_for_signer": false,
                        "unsuccessful_logout_attempts_allowed": false,
                        "audit_trail_completion_retention_days": false,
                        "pending_invite_document_view_notification": false,
                        "only_administrator_is_able_to_invite_to_the_team": false,
                        "block_export_options_when_credit_card_validation_is_used": false,
                        "invite_update_notifications_for_all_invites_at_invite_create": false
                      },
                      "template": false,
                      "parent_id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "thumbnail": {
                        "large": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                        "small": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                        "medium": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                      },
                      "hyperlinks": [],
                      "owner_name": "Document Owner",
                      "page_count": "1",
                      "share_info": {
                        "role": "owner",
                        "is_team_shared": true,
                        "is_personally_shared_to_others": false
                      },
                      "signatures": [
                        {
                          "x": "70",
                          "y": "362",
                          "id": "26XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": "some_data",
                          "email": "signer@email.com",
                          "width": "56",
                          "height": "21",
                          "created": "1565858757",
                          "user_id": "e9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "page_number": "0"
                        }
                      ],
                      "attachments": [],
                      "exported_to": [],
                      "integrations": [],
                      "radiobuttons": [],
                      "version_time": "1565858757",
                      "document_name": "Sample document",
                      "field_invites": [
                        {
                          "id": "37XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "role": "Signer 1",
                          "email": "signer@email.com",
                          "pfrid": null,
                          "status": "fulfilled",
                          "created": "1565858734",
                          "pfrtype": null,
                          "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "updated": "1565858757",
                          "declined": [],
                          "reassign": "0",
                          "reminder": "0",
                          "pframount": null,
                          "pfrstatus": null,
                          "pfrcreated": null,
                          "email_group": {
                            "id": "9dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "name": "Contact group"
                          },
                          "id_verified": "UNVERIFIED",
                          "redirect_uri": null,
                          "password_type": "",
                          "email_statuses": [
                            {
                              "status": "sent",
                              "created_at": 1776768376,
                              "last_reaction_at": 1776768376
                            },
                            {
                              "status": "mail_open",
                              "created_at": 1776850459,
                              "last_reaction_at": 1776850459
                            }
                          ],
                          "pfrmerchant_id": null,
                          "expiration_time": "1568450734",
                          "password_method": "",
                          "payment_request": null,
                          "pfrcurrency_name": null,
                          "pfrmerchant_type": null,
                          "verification_type": null,
                          "is_document_locked": "0",
                          "password_protected": "0",
                          "pfrjson_attributes": null,
                          "force_new_signature": null,
                          "decline_by_signature": null,
                          "signing_instructions": null,
                          "electronic_consent_id": null,
                          "prefill_signature_name": null,
                          "id_verification_required": "NO",
                          "pfrmerchant_account_name": null,
                          "pfrpayment_transaction_id": null,
                          "electronic_consent_required": 0,
                          "required_preset_signature_name": null,
                          "stripe_ach_bank_account_present": "0",
                          "stripe_ach_bank_account_verified": "0"
                        }
                      ],
                      "notary_invites": [],
                      "origin_user_id": null,
                      "checkbox_groups": [],
                      "originator_logo": "",
                      "routing_details": [
                        {
                          "cc": [],
                          "id": "98XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": [
                            {
                              "name": "Signer 1",
                              "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "inviter_role": false,
                              "default_email": "",
                              "signing_order": 1
                            }
                          ],
                          "cc_step": [],
                          "created": "1565858709",
                          "updated": null,
                          "invite_link_instructions": null
                        }
                      ],
                      "field_validators": [],
                      "scheduled_invite": null,
                      "original_filename": "sample_document.pdf",
                      "origin_document_id": null,
                      "document_attributes": {
                        "from_name": "Anna Green",
                        "from_email": "anna.green@email.com"
                      },
                      "document_group_info": {
                        "invite_id": null,
                        "invite_status": null,
                        "document_group_id": null,
                        "doc_count_in_group": 0,
                        "document_group_name": null
                      },
                      "enumeration_options": [],
                      "viewer_field_invites": [],
                      "approver_field_invites": [],
                      "signing_session_settings": {
                        "welcome_message": null
                      },
                      "document_group_template_info": [],
                      "originator_organization_settings": [
                        {
                          "value": "https://example.com",
                          "setting": "invite_completion_redirect_url"
                        },
                        {
                          "value": "",
                          "setting": "invite_decline_redirect_url"
                        },
                        {
                          "value": "0",
                          "setting": "required_preset_signature_name"
                        },
                        {
                          "value": "0",
                          "setting": "require_email_subject"
                        },
                        {
                          "value": "0",
                          "setting": "require_login_for_signing"
                        },
                        {
                          "value": "0",
                          "setting": "logout_on_signing"
                        },
                        {
                          "value": "0",
                          "setting": "front_end_session_length"
                        },
                        {
                          "value": "0",
                          "setting": "add_signature_stamp_with_name"
                        },
                        {
                          "value": "0",
                          "setting": "cfr_title_21_part_11"
                        },
                        {
                          "value": "0",
                          "setting": "require_authentication_for_invites"
                        },
                        {
                          "value": "1",
                          "setting": "document_guide"
                        },
                        {
                          "value": "no",
                          "setting": "block_export_options_when_credit_card_validation_is_used"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "tags": [
                        {
                          "name": "fields",
                          "type": "system"
                        }
                      ],
                      "lines": [],
                      "owner": "document_owner@email.com",
                      "pages": [
                        {
                          "src": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large&page=0",
                          "size": {
                            "width": 612,
                            "height": 792
                          }
                        }
                      ],
                      "roles": [
                        {
                          "name": "Signer 1",
                          "unique_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "signing_order": "1"
                        }
                      ],
                      "seals": [],
                      "texts": [],
                      "checks": [],
                      "fields": [
                        {
                          "id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "role": "Signer 1",
                          "type": "signature",
                          "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "field_id": "c2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "fulfiller": "signer@email.com",
                          "element_id": "26XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "originator": "document_owner@email.com",
                          "json_attributes": {
                            "x": 70,
                            "y": 362,
                            "name": "Signature_1",
                            "width": 83,
                            "height": 21,
                            "required": true,
                            "page_number": 0
                          },
                          "field_request_id": "c2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "template_field_id": null,
                          "field_request_canceled": null
                        },
                        {
                          "id": "791b763ccfcf431e8a52f267e7da74ee7de99974",
                          "role": "Signer 2",
                          "type": "text",
                          "role_id": "d01146c6310c4b138ad04be067b6518e125588a4",
                          "field_id": null,
                          "fulfiller": "signer2@email.com",
                          "element_id": null,
                          "originator": "document_owner@email.com",
                          "json_attributes": {
                            "x": 396,
                            "y": 142,
                            "bold": false,
                            "font": "Arial",
                            "name": "Text Field 1",
                            "size": 14,
                            "align": "left",
                            "color": "000000",
                            "width": 65,
                            "height": 12,
                            "italic": false,
                            "valign": "top",
                            "required": false,
                            "font_size": 10,
                            "max_chars": 0,
                            "max_lines": 0,
                            "underline": false,
                            "arrangement": "none",
                            "page_number": 0,
                            "stretch_mode": "fixed",
                            "prefilled_text": "1234",
                            "lock_to_sign_prefill": true
                          },
                          "field_request_id": null,
                          "template_field_id": null,
                          "field_request_canceled": null
                        }
                      ],
                      "created": "1565787561",
                      "inserts": [],
                      "updated": "1565858757",
                      "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "payments": [],
                      "requests": [],
                      "settings": {
                        "copy_export": false,
                        "upload_limit": false,
                        "document_guide": false,
                        "sso-only-login": false,
                        "mobileweb_option": false,
                        "cloud_auto_export": false,
                        "logout_on_signing": false,
                        "restrict_download": false,
                        "add_signature_stamp": false,
                        "cfr_title_21_part_11": false,
                        "require_email_subject": false,
                        "no_document_attachment": false,
                        "electronic_consent_text": false,
                        "org_allowed_team_admins": false,
                        "document_schema_extended": false,
                        "front_end_session_length": false,
                        "no_user_signature_return": false,
                        "require_drawn_signatures": false,
                        "cloud_export_with_history": false,
                        "enable_full_story_tracker": false,
                        "require_login_for_signing": false,
                        "disable_email_notifications": false,
                        "electronic_consent_required": false,
                        "email_admin_on_banned_login": false,
                        "enable_hyperlink_protection": false,
                        "invite_decline_redirect_url": false,
                        "emailed_docs_include_history": false,
                        "no_document_file_attachments": false,
                        "add_signature_stamp_with_name": false,
                        "digitally_sign_dowloaded_docs": false,
                        "watermark_downloaded_document": false,
                        "invite_completion_redirect_url": false,
                        "required_preset_signature_name": false,
                        "signing_link_document_download": false,
                        "block_login_via_social_networks": false,
                        "enable_advanced_threat_protection": false,
                        "document_completion_retention_days": false,
                        "require_authentication_for_invites": false,
                        "document_attachment_only_for_signer": false,
                        "unsuccessful_logout_attempts_allowed": false,
                        "audit_trail_completion_retention_days": false,
                        "pending_invite_document_view_notification": false,
                        "only_administrator_is_able_to_invite_to_the_team": false,
                        "block_export_options_when_credit_card_validation_is_used": false,
                        "invite_update_notifications_for_all_invites_at_invite_create": false
                      },
                      "template": false,
                      "parent_id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "thumbnail": {
                        "large": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                        "small": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                        "medium": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                      },
                      "hyperlinks": [],
                      "owner_name": "Document Owner",
                      "page_count": "1",
                      "share_info": {
                        "role": "owner",
                        "is_team_shared": true,
                        "is_personally_shared_to_others": false
                      },
                      "signatures": [
                        {
                          "x": "70",
                          "y": "362",
                          "id": "26XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": "some_data",
                          "email": "signer@email.com",
                          "width": "56",
                          "height": "21",
                          "created": "1565858757",
                          "user_id": "e9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "page_number": "0"
                        }
                      ],
                      "attachments": [],
                      "exported_to": [],
                      "integrations": [],
                      "radiobuttons": [],
                      "version_time": "1565858757",
                      "document_name": "Sample document",
                      "field_invites": [
                        {
                          "id": "37XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "role": "Signer 1",
                          "email": "signer@email.com",
                          "pfrid": null,
                          "status": "fulfilled",
                          "created": "1565858734",
                          "pfrtype": null,
                          "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "updated": "1565858757",
                          "declined": [],
                          "reassign": "0",
                          "reminder": "0",
                          "pframount": null,
                          "pfrstatus": null,
                          "pfrcreated": null,
                          "email_group": {
                            "id": "9dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "name": "Contact group"
                          },
                          "id_verified": "UNVERIFIED",
                          "redirect_uri": null,
                          "password_type": "",
                          "email_statuses": [
                            {
                              "status": "sent",
                              "created_at": 1776768376,
                              "last_reaction_at": 1776768376
                            },
                            {
                              "status": "mail_open",
                              "created_at": 1776850459,
                              "last_reaction_at": 1776850459
                            }
                          ],
                          "pfrmerchant_id": null,
                          "expiration_time": "1568450734",
                          "password_method": "",
                          "payment_request": null,
                          "pfrcurrency_name": null,
                          "pfrmerchant_type": null,
                          "verification_type": null,
                          "is_document_locked": "0",
                          "password_protected": "0",
                          "pfrjson_attributes": null,
                          "force_new_signature": null,
                          "decline_by_signature": null,
                          "signing_instructions": null,
                          "electronic_consent_id": null,
                          "prefill_signature_name": null,
                          "id_verification_required": "NO",
                          "pfrmerchant_account_name": null,
                          "pfrpayment_transaction_id": null,
                          "electronic_consent_required": 0,
                          "required_preset_signature_name": null,
                          "stripe_ach_bank_account_present": "0",
                          "stripe_ach_bank_account_verified": "0"
                        }
                      ],
                      "notary_invites": [],
                      "origin_user_id": null,
                      "checkbox_groups": [],
                      "originator_logo": "",
                      "routing_details": [
                        {
                          "cc": [],
                          "id": "98XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": [
                            {
                              "name": "Signer 1",
                              "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "inviter_role": false,
                              "default_email": "",
                              "signing_order": 1
                            }
                          ],
                          "cc_step": [],
                          "created": "1565858709",
                          "updated": null,
                          "invite_link_instructions": null
                        }
                      ],
                      "field_validators": [],
                      "scheduled_invite": null,
                      "original_filename": "sample_document.pdf",
                      "origin_document_id": null,
                      "document_attributes": {
                        "from_name": "Anna Green",
                        "from_email": "anna.green@email.com"
                      },
                      "document_group_info": {
                        "invite_id": null,
                        "invite_status": null,
                        "document_group_id": null,
                        "doc_count_in_group": 0,
                        "document_group_name": null
                      },
                      "enumeration_options": [],
                      "viewer_field_invites": [],
                      "approver_field_invites": [],
                      "signing_session_settings": {
                        "welcome_message": null
                      },
                      "document_group_template_info": [],
                      "originator_organization_settings": [
                        {
                          "value": "https://example.com",
                          "setting": "invite_completion_redirect_url"
                        },
                        {
                          "value": "",
                          "setting": "invite_decline_redirect_url"
                        },
                        {
                          "value": "0",
                          "setting": "required_preset_signature_name"
                        },
                        {
                          "value": "0",
                          "setting": "require_email_subject"
                        },
                        {
                          "value": "0",
                          "setting": "require_login_for_signing"
                        },
                        {
                          "value": "0",
                          "setting": "logout_on_signing"
                        },
                        {
                          "value": "0",
                          "setting": "front_end_session_length"
                        },
                        {
                          "value": "0",
                          "setting": "add_signature_stamp_with_name"
                        },
                        {
                          "value": "0",
                          "setting": "cfr_title_21_part_11"
                        },
                        {
                          "value": "0",
                          "setting": "require_authentication_for_invites"
                        },
                        {
                          "value": "1",
                          "setting": "document_guide"
                        },
                        {
                          "value": "no",
                          "setting": "block_export_options_when_credit_card_validation_is_used"
                        }
                      ]
                    }
                  },
                  "Successful request": {
                    "value": {
                      "id": "a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "tags": [
                        {
                          "name": "fields",
                          "type": "system"
                        }
                      ],
                      "lines": [],
                      "owner": "document_owner@email.com",
                      "pages": [
                        {
                          "src": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large&page=0",
                          "size": {
                            "width": 612,
                            "height": 792
                          }
                        }
                      ],
                      "roles": [
                        {
                          "name": "Signer 1",
                          "unique_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "signing_order": "1"
                        }
                      ],
                      "seals": [],
                      "texts": [],
                      "checks": [],
                      "fields": [
                        {
                          "id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "role": "Signer 1",
                          "type": "signature",
                          "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "field_id": "c2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "fulfiller": "signer@email.com",
                          "element_id": "26XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "originator": "document_owner@email.com",
                          "json_attributes": {
                            "x": 70,
                            "y": 362,
                            "name": "Signature_1",
                            "width": 83,
                            "height": 21,
                            "required": true,
                            "page_number": 0
                          },
                          "field_request_id": "c2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "template_field_id": null,
                          "field_request_canceled": null
                        },
                        {
                          "id": "791b763ccfcf431e8a52f267e7da74ee7de99974",
                          "role": "Signer 2",
                          "type": "text",
                          "role_id": "d01146c6310c4b138ad04be067b6518e125588a4",
                          "field_id": "b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "fulfiller": "signer2@email.com",
                          "element_id": "27XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "originator": "document_owner@email.com",
                          "json_attributes": {
                            "x": 396,
                            "y": 142,
                            "bold": false,
                            "font": "Arial",
                            "name": "Text Field 1",
                            "size": 14,
                            "align": "left",
                            "color": "000000",
                            "width": 65,
                            "height": 12,
                            "italic": false,
                            "valign": "top",
                            "required": false,
                            "font_size": 10,
                            "max_chars": 0,
                            "max_lines": 0,
                            "underline": false,
                            "arrangement": "none",
                            "page_number": 0,
                            "stretch_mode": "fixed",
                            "prefilled_text": "1234",
                            "lock_to_sign_prefill": true
                          },
                          "field_request_id": "a2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "template_field_id": null,
                          "field_request_canceled": null
                        }
                      ],
                      "created": "1565787561",
                      "inserts": [],
                      "updated": "1565858757",
                      "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "payments": [],
                      "requests": [],
                      "settings": {
                        "copy_export": false,
                        "upload_limit": false,
                        "document_guide": false,
                        "sso-only-login": false,
                        "mobileweb_option": false,
                        "cloud_auto_export": false,
                        "logout_on_signing": false,
                        "restrict_download": false,
                        "add_signature_stamp": false,
                        "cfr_title_21_part_11": false,
                        "require_email_subject": false,
                        "no_document_attachment": false,
                        "electronic_consent_text": false,
                        "org_allowed_team_admins": false,
                        "document_schema_extended": false,
                        "front_end_session_length": false,
                        "no_user_signature_return": false,
                        "require_drawn_signatures": false,
                        "cloud_export_with_history": false,
                        "enable_full_story_tracker": false,
                        "require_login_for_signing": false,
                        "disable_email_notifications": false,
                        "electronic_consent_required": false,
                        "email_admin_on_banned_login": false,
                        "enable_hyperlink_protection": false,
                        "invite_decline_redirect_url": false,
                        "emailed_docs_include_history": false,
                        "no_document_file_attachments": false,
                        "add_signature_stamp_with_name": false,
                        "digitally_sign_dowloaded_docs": false,
                        "watermark_downloaded_document": false,
                        "invite_completion_redirect_url": false,
                        "required_preset_signature_name": false,
                        "signing_link_document_download": false,
                        "block_login_via_social_networks": false,
                        "enable_advanced_threat_protection": false,
                        "document_completion_retention_days": false,
                        "require_authentication_for_invites": false,
                        "document_attachment_only_for_signer": false,
                        "unsuccessful_logout_attempts_allowed": false,
                        "audit_trail_completion_retention_days": false,
                        "pending_invite_document_view_notification": false,
                        "only_administrator_is_able_to_invite_to_the_team": false,
                        "block_export_options_when_credit_card_validation_is_used": false,
                        "invite_update_notifications_for_all_invites_at_invite_create": false
                      },
                      "template": false,
                      "parent_id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "thumbnail": {
                        "large": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                        "small": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                        "medium": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                      },
                      "hyperlinks": [],
                      "owner_name": "Document Owner",
                      "page_count": "1",
                      "share_info": {
                        "role": "owner",
                        "is_team_shared": true,
                        "is_personally_shared_to_others": false
                      },
                      "signatures": [
                        {
                          "x": "70",
                          "y": "362",
                          "id": "26XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": "some_data",
                          "email": "signer@email.com",
                          "width": "56",
                          "height": "21",
                          "created": "1565858757",
                          "user_id": "e9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "page_number": "0"
                        }
                      ],
                      "attachments": [],
                      "exported_to": [],
                      "integrations": [],
                      "radiobuttons": [],
                      "version_time": "1565858757",
                      "document_name": "Sample document",
                      "field_invites": [
                        {
                          "id": "37XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "role": "Signer 1",
                          "email": "signer@email.com",
                          "pfrid": null,
                          "status": "fulfilled",
                          "created": "1565858734",
                          "pfrtype": null,
                          "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "updated": "1565858757",
                          "declined": [],
                          "reassign": "0",
                          "reminder": "0",
                          "pframount": null,
                          "pfrstatus": null,
                          "pfrcreated": null,
                          "email_group": {
                            "id": "9dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "name": "Contact group"
                          },
                          "id_verified": "UNVERIFIED",
                          "redirect_uri": null,
                          "password_type": "",
                          "email_statuses": [
                            {
                              "status": "sent",
                              "created_at": 1776768376,
                              "last_reaction_at": 1776768376
                            },
                            {
                              "status": "mail_open",
                              "created_at": 1776850459,
                              "last_reaction_at": 1776850459
                            }
                          ],
                          "pfrmerchant_id": null,
                          "expiration_time": "1568450734",
                          "password_method": "",
                          "payment_request": null,
                          "pfrcurrency_name": null,
                          "pfrmerchant_type": null,
                          "verification_type": null,
                          "is_document_locked": "0",
                          "password_protected": "0",
                          "pfrjson_attributes": null,
                          "force_new_signature": null,
                          "decline_by_signature": null,
                          "signing_instructions": null,
                          "electronic_consent_id": null,
                          "prefill_signature_name": null,
                          "id_verification_required": "NO",
                          "pfrmerchant_account_name": null,
                          "pfrpayment_transaction_id": null,
                          "electronic_consent_required": 0,
                          "required_preset_signature_name": null,
                          "stripe_ach_bank_account_present": "0",
                          "stripe_ach_bank_account_verified": "0"
                        }
                      ],
                      "notary_invites": [],
                      "origin_user_id": null,
                      "checkbox_groups": [],
                      "originator_logo": "",
                      "routing_details": [
                        {
                          "cc": [],
                          "id": "98XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": [
                            {
                              "name": "Signer 1",
                              "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "inviter_role": false,
                              "default_email": "",
                              "signing_order": 1
                            }
                          ],
                          "cc_step": [],
                          "created": "1565858709",
                          "updated": null,
                          "invite_link_instructions": null
                        }
                      ],
                      "field_validators": [],
                      "scheduled_invite": null,
                      "original_filename": "sample_document.pdf",
                      "origin_document_id": null,
                      "document_attributes": {
                        "from_name": "Jane Doe",
                        "from_email": "sender@email.com"
                      },
                      "document_group_info": {
                        "invite_id": null,
                        "invite_status": null,
                        "document_group_id": null,
                        "doc_count_in_group": 0,
                        "document_group_name": null
                      },
                      "enumeration_options": [],
                      "viewer_field_invites": [],
                      "approver_field_invites": [],
                      "signing_session_settings": {
                        "welcome_message": null
                      },
                      "document_group_template_info": [],
                      "originator_organization_settings": [
                        {
                          "value": "https://example.com",
                          "setting": "invite_completion_redirect_url"
                        },
                        {
                          "value": "",
                          "setting": "invite_decline_redirect_url"
                        },
                        {
                          "value": "0",
                          "setting": "required_preset_signature_name"
                        },
                        {
                          "value": "0",
                          "setting": "require_email_subject"
                        },
                        {
                          "value": "0",
                          "setting": "require_login_for_signing"
                        },
                        {
                          "value": "0",
                          "setting": "logout_on_signing"
                        },
                        {
                          "value": "0",
                          "setting": "front_end_session_length"
                        },
                        {
                          "value": "0",
                          "setting": "add_signature_stamp_with_name"
                        },
                        {
                          "value": "0",
                          "setting": "cfr_title_21_part_11"
                        },
                        {
                          "value": "0",
                          "setting": "require_authentication_for_invites"
                        },
                        {
                          "value": "1",
                          "setting": "document_guide"
                        },
                        {
                          "value": "no",
                          "setting": "block_export_options_when_credit_card_validation_is_used"
                        }
                      ]
                    }
                  },
                  "Sucessful request with smart fields": {
                    "value": {
                      "id": "a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "tags": [
                        {
                          "name": "fields",
                          "type": "system"
                        }
                      ],
                      "owner": "document_owner@email.com",
                      "pages": [
                        {
                          "src": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large&page=0",
                          "size": {
                            "width": 612,
                            "height": 792
                          }
                        }
                      ],
                      "roles": [
                        {
                          "name": "Signer 1",
                          "unique_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "signing_order": "1"
                        }
                      ],
                      "seals": [],
                      "texts": [],
                      "checks": [],
                      "fields": [
                        {
                          "id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "role": "Signer 1",
                          "type": "signature",
                          "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "field_id": "c2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "fulfiller": "signer@email.com",
                          "element_id": "26XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "originator": "document_owner@email.com",
                          "json_attributes": {
                            "x": 70,
                            "y": 362,
                            "name": "Signature_1",
                            "width": 83,
                            "height": 21,
                            "required": true,
                            "page_number": 0
                          },
                          "field_request_id": "c2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "template_field_id": null,
                          "field_request_canceled": null
                        }
                      ],
                      "created": "1565787561",
                      "inserts": [],
                      "updated": "1565858757",
                      "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "payments": [],
                      "requests": [],
                      "settings": {
                        "copy_export": false,
                        "upload_limit": false,
                        "document_guide": false,
                        "sso-only-login": false,
                        "mobileweb_option": false,
                        "cloud_auto_export": false,
                        "logout_on_signing": false,
                        "restrict_download": false,
                        "add_signature_stamp": false,
                        "cfr_title_21_part_11": false,
                        "require_email_subject": false,
                        "no_document_attachment": false,
                        "electronic_consent_text": false,
                        "org_allowed_team_admins": false,
                        "document_schema_extended": false,
                        "front_end_session_length": false,
                        "no_user_signature_return": false,
                        "require_drawn_signatures": false,
                        "cloud_export_with_history": false,
                        "enable_full_story_tracker": false,
                        "require_login_for_signing": false,
                        "disable_email_notifications": false,
                        "electronic_consent_required": false,
                        "email_admin_on_banned_login": false,
                        "enable_hyperlink_protection": false,
                        "invite_decline_redirect_url": false,
                        "emailed_docs_include_history": false,
                        "no_document_file_attachments": false,
                        "add_signature_stamp_with_name": false,
                        "digitally_sign_dowloaded_docs": false,
                        "watermark_downloaded_document": false,
                        "invite_completion_redirect_url": false,
                        "required_preset_signature_name": false,
                        "signing_link_document_download": false,
                        "block_login_via_social_networks": false,
                        "enable_advanced_threat_protection": false,
                        "document_completion_retention_days": false,
                        "require_authentication_for_invites": false,
                        "document_attachment_only_for_signer": false,
                        "unsuccessful_logout_attempts_allowed": false,
                        "audit_trail_completion_retention_days": false,
                        "pending_invite_document_view_notification": false,
                        "only_administrator_is_able_to_invite_to_the_team": false,
                        "block_export_options_when_credit_card_validation_is_used": false,
                        "invite_update_notifications_for_all_invites_at_invite_create": false
                      },
                      "template": false,
                      "parent_id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "thumbnail": {
                        "large": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                        "small": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                        "medium": "https://example.com/document/a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                      },
                      "hyperlinks": [],
                      "owner_name": "Document Owner",
                      "page_count": "1",
                      "signatures": [
                        {
                          "x": "70",
                          "y": "362",
                          "id": "26XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": "some_data",
                          "email": "signer@email.com",
                          "width": "56",
                          "height": "21",
                          "created": "1565858757",
                          "user_id": "e9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "page_number": "0"
                        }
                      ],
                      "attachments": [],
                      "exported_to": [],
                      "integrations": [],
                      "radiobuttons": [],
                      "version_time": "1565858757",
                      "document_name": "Sample document",
                      "field_invites": [
                        {
                          "id": "37XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "role": "Signer 1",
                          "email": "signer@email.com",
                          "pfrid": null,
                          "status": "fulfilled",
                          "created": "1565858734",
                          "pfrtype": null,
                          "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "updated": "1565858757",
                          "declined": [],
                          "reassign": "0",
                          "reminder": "0",
                          "pframount": null,
                          "pfrstatus": null,
                          "pfrcreated": null,
                          "email_group": {
                            "id": "9dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "name": "Contact group"
                          },
                          "id_verified": "UNVERIFIED",
                          "redirect_uri": null,
                          "password_type": "",
                          "email_statuses": [
                            {
                              "status": "sent",
                              "created_at": 1776768376,
                              "last_reaction_at": 1776768376
                            },
                            {
                              "status": "mail_open",
                              "created_at": 1776850459,
                              "last_reaction_at": 1776850459
                            }
                          ],
                          "pfrmerchant_id": null,
                          "expiration_time": "1568450734",
                          "password_method": "",
                          "payment_request": null,
                          "pfrcurrency_name": null,
                          "pfrmerchant_type": null,
                          "verification_type": null,
                          "is_document_locked": "0",
                          "password_protected": "0",
                          "pfrjson_attributes": null,
                          "force_new_signature": null,
                          "decline_by_signature": null,
                          "signing_instructions": null,
                          "electronic_consent_id": null,
                          "prefill_signature_name": null,
                          "id_verification_required": "NO",
                          "pfrmerchant_account_name": null,
                          "pfrpayment_transaction_id": null,
                          "electronic_consent_required": 0,
                          "required_preset_signature_name": null,
                          "stripe_ach_bank_account_present": "0",
                          "stripe_ach_bank_account_verified": "0"
                        }
                      ],
                      "notary_invites": [],
                      "origin_user_id": null,
                      "checkbox_groups": [],
                      "originator_logo": "",
                      "routing_details": [
                        {
                          "cc": [],
                          "id": "98XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": [
                            {
                              "name": "Signer 1",
                              "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "inviter_role": false,
                              "default_email": "",
                              "signing_order": 1
                            }
                          ],
                          "cc_step": [],
                          "created": "1565858709",
                          "updated": null,
                          "invite_link_instructions": null
                        }
                      ],
                      "field_validators": [],
                      "scheduled_invite": null,
                      "original_filename": "sample_document.pdf",
                      "origin_document_id": null,
                      "document_group_info": {
                        "invite_id": null,
                        "invite_status": null,
                        "document_group_id": null,
                        "doc_count_in_group": 0,
                        "document_group_name": null
                      },
                      "enumeration_options": [],
                      "integration_objects": [
                        {
                          "x": "350",
                          "y": "32",
                          "id": "d0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": "Data2",
                          "font": "Arial",
                          "size": "12",
                          "email": "user@mail.com",
                          "created": "1707928083",
                          "user_id": "88XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "line_height": "13.00",
                          "page_number": "0",
                          "allow_editing": true,
                          "json_attributes": {
                            "bold": false,
                            "color": "646B63"
                          },
                          "api_integration_id": "c0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "x": "400",
                          "y": "32",
                          "id": "07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": "Data3",
                          "font": "Arial",
                          "size": "12",
                          "email": "user@mail.com",
                          "created": "1707928083",
                          "user_id": "88XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "line_height": "13.00",
                          "page_number": "0",
                          "allow_editing": true,
                          "json_attributes": {
                            "bold": false,
                            "color": "669E85",
                            "italic": false,
                            "underline": true
                          },
                          "api_integration_id": "c0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ],
                      "viewer_field_invites": [],
                      "approver_field_invites": [],
                      "signing_session_settings": {
                        "welcome_message": null
                      },
                      "document_group_template_info": [],
                      "originator_organization_settings": [
                        {
                          "value": "https://example.com",
                          "setting": "invite_completion_redirect_url"
                        },
                        {
                          "value": "",
                          "setting": "invite_decline_redirect_url"
                        },
                        {
                          "value": "0",
                          "setting": "required_preset_signature_name"
                        },
                        {
                          "value": "0",
                          "setting": "require_email_subject"
                        },
                        {
                          "value": "0",
                          "setting": "require_login_for_signing"
                        },
                        {
                          "value": "0",
                          "setting": "logout_on_signing"
                        },
                        {
                          "value": "0",
                          "setting": "front_end_session_length"
                        },
                        {
                          "value": "0",
                          "setting": "add_signature_stamp_with_name"
                        },
                        {
                          "value": "0",
                          "setting": "cfr_title_21_part_11"
                        },
                        {
                          "value": "0",
                          "setting": "require_authentication_for_invites"
                        },
                        {
                          "value": "1",
                          "setting": "document_guide"
                        },
                        {
                          "value": "no",
                          "setting": "block_export_options_when_credit_card_validation_is_used"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request  with incorrect document ID",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request  with incorrect document ID": {
                    "value": {
                      "404": "Unable to find a route to match the URI: document/123test"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-document",
        "summary": "Delete document",
        "description": "Deletes a document from user's account",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/fieldextract": {
      "post": {
        "operationId": "upload-document-with-text-tags",
        "summary": "Upload document with tags",
        "description": "This endpoint allows users to upload a document with text tags. \n\nText tags can be of two types: simple and complex. **Simple text tags** use curly brackets and a notation system to define fields. **Complex text tags** use only field names on a document; field details are provided separately in the `Tags` array. \n> Only .doc, .docx, and .pdf formats are supported.\n\n**Additional parameters**\n\n`parse_type`: determines how the document text tags are parsed. \n\nPossible values:\n\n- `tag`: parse only simple tags. All Adobe (fillable) fields will be removed from the document without saving.\n\n- `adobe`: parse only Adobe (fillable) fields. All simple tags will be removed from the document without saving.\n\n- `all`: parse both simple tags and Adobe (fillable) fields. Also parses simple tags added inside Adobe fields as their content.\n\n- `default` (or if `parse_type` not specified): parse simple and complex tags and Adobe (fillable) fields. Simple tags added as the content of Adobe fields will not be parsed.\n\nFor more information, see the [Text tags](/docs/text-tags) guide or check out our video tutorials:\n\n<details open>\n\n**<summary>Simple text tags video tutorial</summary>**\n\n<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>\n\n[Simple text tags video tutorial](https://www.youtube.com/watch?v=iopDT5_4-Co)\n\n</details>\n<br>\n\n<details open>\n\n**<summary>Complex text tags video tutorial</summary>**\n\n<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>\n\n[Complex text tags video tutorial](https://www.youtube.com/watch?v=V0YWL2T8F-o)\n\n</details>",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "3dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "@/path/to/your/file.pdf",
                    "format": "binary"
                  },
                  "Tags[]:": {
                    "type": "string",
                    "description": "A JSON array of complex text tags in the document. Example: {     \"tag_name\": \"EmployeeName\",     \"role\": \"Employee\",     \"label\": \"Your name\",     \"required\": true,     \"type\": \"text\",     \"width\": 100,     \"height\": 20 }"
                  },
                  "parse_type": {
                    "type": "string",
                    "description": "Determines the parse flow for document text tags. Possible values:  `tag`, `adobe`, `all`, `default`. "
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/document/merge": {
      "post": {
        "operationId": "document-merge",
        "summary": "Merge documents",
        "description": "Merges existing documents into one.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "document_id": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "document_id": "9c95ef588b109c988595018543aec8885390a5c8"
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "document_id": "9cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "the name of the merged document"
                  },
                  "document_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "IDs of the documents to be merged"
                  },
                  "upload_document": {
                    "type": "boolean",
                    "default": false,
                    "description": "If false returns the merged document without further uploading into documents list.\nIf true returns the merged document id with further uploading into documents list."
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "name": "the merged doc",
                    "document_ids": [
                      "84XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "a7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    ],
                    "upload_document": false
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/documents/{document_id}/fields": {
      "get": {
        "operationId": "get-v2-documents-document-unique-id-fields",
        "summary": "Get fields data from completed document",
        "description": "Retrieve contents from the fields completed by the signer.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document."
          }
        ],
        "responses": {
          "200": {
            "description": "* Correct request for a document with fields filled in \n* If there are no fields in the document\n* If there are non-filled fields in the document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "If there are no fields in document": {
                    "value": {
                      "data": [],
                      "meta": {
                        "pagination": {
                          "count": 4,
                          "links": [],
                          "total": 4,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "If there are non-filled fields in the document": {
                    "value": {
                      "data": [
                        {
                          "id": "88XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "TextName",
                          "type": "text",
                          "value": null
                        },
                        {
                          "id": "93XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "datetime",
                          "type": "text",
                          "value": "10/11/2021"
                        },
                        {
                          "id": "c9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "CalculatedName",
                          "type": "text",
                          "value": "25"
                        },
                        {
                          "id": "11XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Dropdown_1",
                          "type": "enumeration",
                          "value": "aa"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 4,
                          "links": [],
                          "total": 4,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Correct request for a document with fields filled in ": {
                    "value": {
                      "data": [
                        {
                          "id": "350b5dce53694e2eb17b432ad75cc1d288827831",
                          "name": "TextName",
                          "type": "text",
                          "value": "dev test search"
                        },
                        {
                          "id": "9320dbacf5cf4d208deabd62dd1a7b4f0b9eed68",
                          "name": "datetime",
                          "type": "text",
                          "value": "10/11/2021"
                        },
                        {
                          "id": "c9f7c33cf3734572bb94352a5157bd6f40db4ba8",
                          "name": "CalculatedName",
                          "type": "text",
                          "value": "25"
                        },
                        {
                          "id": "11a1b00380044b86b346da6c6fbc4dd7eb2c9cb0",
                          "name": "Dropdown_1",
                          "type": "enumeration",
                          "value": "aa"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 4,
                          "links": [],
                          "total": 4,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n* Document with this `document_id` doesn't exist\n* This user has no rights to access the document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "document_id doesn't exist": {
                    "value": {
                      "code": 65544,
                      "message": "internal api error"
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "User has no rights for this document": {
                    "value": {
                      "code": 65610,
                      "message": "not readable"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "If user's email is not verified",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "If user's email is not verified": {
                    "value": {
                      "code": 9001,
                      "message": "Email verification required"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* If the document has been deleted or is in the trash bin \n* If {document_id} has incorrect format (too many or not enough symbols)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "If the document has been deleted or is in the trash bin ": {
                    "value": {
                      "404": "Document not found"
                    }
                  },
                  "If {document_id} has incorrect format (too many or not enough symbols)": {
                    "value": {
                      "_message": {
                        "404": "Unable to find a route to match the URI: v2/documents/bade662638c640b5b7b712cf4fbec9afd5ffc0a/fields"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/documents/{document_id}/prefill-texts": {
      "put": {
        "operationId": "put-v2-documents-document-id-prefill-texts",
        "summary": "Prefill text fields",
        "description": "This endpoint allows users to prefill text fields that signers can edit. Only fields of type `text` can be prefilled.\r\n\r\n**Example**\r\n\r\n<img src=\"/reference-assets/images/Screenshots with attribute explanations/Prefill_text_example.png\" alt=\"Prefilled text\">\r\n",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": " ID of the requested document."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns 204: Success, no content, when the text fields have been successfully prefilled. Returns an error when the request is sent with an invalid ID, or the added value doesn't pass the field validation setting.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "Status": "204 Success, no content"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fields"
                ],
                "properties": {
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "field_name",
                        "prefilled_text"
                      ],
                      "properties": {
                        "field_name": {
                          "type": "string",
                          "minLength": 1,
                          "description": "The unique field name that identifies the field. Can be found in the `name` parameter of the field in response from `GET /document/{document_id}`."
                        },
                        "prefilled_text": {
                          "type": "string",
                          "minLength": 1,
                          "description": "The value that should appear on the document."
                        }
                      }
                    },
                    "minItems": 1,
                    "description": "The array that contains field objects to add values to. Each field object is identified by the `field_name`.",
                    "uniqueItems": true
                  }
                },
                "x-examples": {
                  "example-1": {
                    "fields": [
                      {
                        "field_name": "first_name",
                        "prefilled_text": "Jane"
                      },
                      {
                        "field_name": "last_name",
                        "prefilled_text": "Mitchell"
                      }
                    ]
                  }
                },
                "description": ""
              },
              "examples": {
                "example-1": {
                  "value": {
                    "fields": [
                      {
                        "field_name": "first_name",
                        "prefilled_text": "Jane"
                      },
                      {
                        "field_name": "last_name",
                        "prefilled_text": "Doe"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/documents/url": {
      "post": {
        "operationId": "post-v2-documents-url",
        "summary": "Upload document from URL",
        "description": "This endpoint allows users to upload a document to their SignNow account.\n\nAccepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx, .ps, and .eps file types.\n\nMaximum file size per upload is 50 MB.\n\n> The link to the document must be publicly accessible.",
        "responses": {
          "200": {
            "description": "Success: ID of the uploaded document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "4c8ddf3fe55e496bb332b4cc98c513b18903c048"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "4c8ddf3fe55e496bb332b4cc98c513b18903c048"
                    }
                  },
                  "Document ID ": {
                    "value": {
                      "id": "ccXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "\t\nSomething wrong with generating document dimensions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 21004000,
                          "message": "Error during upload"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 21004000,
                          "message": "Error during upload"
                        }
                      ]
                    }
                  },
                  "Upload error": {
                    "value": {
                      "errors": [
                        {
                          "code": 21004000,
                          "message": "Error during upload"
                        }
                      ]
                    }
                  },
                  "Restricted URL": {
                    "value": {
                      "code": 21004004,
                      "message": "Restricted url"
                    }
                  },
                  "Parameter name is too long": {
                    "value": {
                      "code": 65581,
                      "message": "Document name is too long. Max size is 255 symbols"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "example": "https://example.com/path/to/your/document.{file_extension}",
                    "description": "URL with the file to upload. The link to the file must be publicly accessible.",
                    "x-stoplight": {
                      "id": "mrvqtsr47wvwh"
                    }
                  },
                  "check_fields": {
                    "type": "boolean",
                    "description": "If true, you can upload a document with simple text tags. For more information, see [Upload document with tags](/docs/document/operations/upload-document-with-text-tags).",
                    "x-stoplight": {
                      "id": "08br87vyow68f"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "url": "https://example.com/path/to/your/document.{file_extension}",
                    "check_fields": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/faxes/send": {
      "post": {
        "operationId": "post-v2-faxes-send",
        "summary": "Send fax",
        "description": "This endpoint allows users to send one or several documents by fax.",
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\r\n* No access to the document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "No access to document": {
                    "value": {
                      "code": 20003014,
                      "message": "Not readable."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "recipient_number",
                  "documents"
                ],
                "properties": {
                  "message": {
                    "type": "string",
                    "description": "Fax message"
                  },
                  "subject": {
                    "type": "string",
                    "description": "Fax subject"
                  },
                  "documents": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Array holding one or more document IDs"
                  },
                  "recipient_name": {
                    "type": "string",
                    "description": "Recipient's name"
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "description": "UNIX timestamp"
                  },
                  "recipient_number": {
                    "type": "string",
                    "description": "Recipient's fax number"
                  },
                  "recipient_company": {
                    "type": "string",
                    "description": "Recipient's company name"
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "message": "Custom message",
                    "subject": "Custom subject",
                    "documents": [
                      "19bef1ba082840888a460c2a4512823114cc2759"
                    ],
                    "recipient_name": "Some recipient name",
                    "client_timestamp": 1715265630,
                    "recipient_number": "+11231231231",
                    "recipient_company": "Company"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "message": "Please send this back by email when signed.",
                    "subject": "Non-Disclosure Agreement",
                    "documents": [
                      "28cda1ba082840888a460c2a4512823114cc2759"
                    ],
                    "recipient_name": "John Doe",
                    "client_timestamp": 1715583814,
                    "recipient_number": "+11231231231",
                    "recipient_company": "Documents Inc."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/document/{document_id}/custom_history_event": {
      "post": {
        "operationId": "add-document-custom-history-event",
        "summary": "Add custom history event",
        "description": "Allows third party developers to add custom events to the audit log. For example, if you are using a single SignNow account to make API calls but authenticating multiple people, use this call to add a record to the audit log for that specific document that references the authentication method.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event_type": {
                    "type": "string"
                  },
                  "client_timestamp": {
                    "type": "integer"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "event_type": "test_event",
                    "client_timestamp": 1460739202
                  }
                }
              }
            }
          }
        }
      }
    },
    "/document/{document_id}/historyfull": {
      "get": {
        "operationId": "get-document-historyfull",
        "summary": "Get document history",
        "description": "Returns the history of a document.\n\nFor the events: \n\n* `signer_authentication_success` \n* `signer_authentication_failure` \n\nthe response may contain an additional parameter `phone_number_2fa` which shows the signer's phone number used for authentication method `phone` or `sms`.\n\nFor the event: \n\n* `signer_authentication_success` \n\nthe response may contain an additional parameter `authentication_code` which shows the code used for authentication method `sms`. The signer receives a code by SMS and enters this code to access the opened document.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully get history of a document:\n* without email history events\n* with email history events.\n* for the event `signer_authentication_success`\n* for the event `signer_authentication_failure`",
            "content": {
              "application/json": {
                "schema": {
                  "type": [
                    "object",
                    "array"
                  ],
                  "properties": {
                    "document_history": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "email": {
                            "type": "string"
                          },
                          "event": {
                            "type": "string"
                          },
                          "origin": {
                            "type": "string"
                          },
                          "created": {
                            "type": "integer"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "field_id": {
                            "type": "string"
                          },
                          "unique_id": {
                            "type": "string"
                          },
                          "element_id": {
                            "type": "string"
                          },
                          "ip_address": {
                            "type": "string"
                          },
                          "document_id": {
                            "type": "string"
                          },
                          "client_app_name": {
                            "type": "string"
                          },
                          "json_attributes": {
                            "type": "string"
                          },
                          "client_timestamp": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "email_history_events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "created": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          },
                          "subject": {
                            "type": "string"
                          },
                          "event_type": {
                            "type": "string"
                          },
                          "json_attributes": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "document_history": [
                        {
                          "email": "johndoe@email.com",
                          "event": "create_document",
                          "origin": "original",
                          "created": 1622029581,
                          "user_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "field_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "element_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "1X.XX.XX.XX",
                          "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "client_app_name": "Sample Application",
                          "json_attributes": "{\"some\":\"data\"}",
                          "client_timestamp": 1622029581
                        }
                      ],
                      "email_history_events": [
                        {
                          "created": 1622029581,
                          "message": "Some message",
                          "subject": "Some subject",
                          "event_type": "document_created",
                          "json_attributes": "{\"some\":\"data\"}"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "document_history": [
                        {
                          "email": "johndoe@email.com",
                          "event": "create_document",
                          "origin": "original",
                          "created": 1622029581,
                          "user_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "field_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "element_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "1X.XX.XX.XX",
                          "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "client_app_name": "Sample Application",
                          "json_attributes": "{\"some\":\"data\"}",
                          "client_timestamp": 1622029581
                        }
                      ],
                      "email_history_events": [
                        {
                          "created": 1622029581,
                          "message": "Some message",
                          "subject": "Some subject",
                          "event_type": "document_created",
                          "json_attributes": "{\"some\":\"data\"}"
                        }
                      ]
                    }
                  },
                  "with email history events": {
                    "value": {
                      "document_history": [
                        {
                          "email": "johndoe@email.com",
                          "event": "create_document",
                          "origin": "original",
                          "created": 1622029581,
                          "user_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "field_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "element_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "1X.XX.XX.XX",
                          "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "client_app_name": "Sample Application",
                          "json_attributes": "{\"some\":\"data\"}",
                          "client_timestamp": 1622029581
                        }
                      ],
                      "email_history_events": [
                        {
                          "created": 1622029581,
                          "message": "Some message",
                          "subject": "Some subject",
                          "event_type": "document_created",
                          "json_attributes": "{\"some\":\"data\"}"
                        }
                      ]
                    }
                  },
                  "without email history events": {
                    "value": {
                      "email": "johndoe@email.com",
                      "event": "created_document",
                      "origin": "original",
                      "created": 1622029581,
                      "user_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "field_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "unique_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "element_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "ip_address": "1X.XX.XX.XX",
                      "document_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "client_app_name": "Sample Application",
                      "json_attributes": "{\"some\":\"data\"}",
                      "client_timestamp": 1622029581
                    }
                  },
                  "for the event `signer_authentication_failure`": {
                    "value": [
                      {
                        "email": "owner_document@email.com",
                        "event": "created_document",
                        "origin": "original",
                        "created": 1672751407,
                        "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "02XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "5X.XX.XX.XX",
                        "document_id": "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample application",
                        "json_attributes": null,
                        "client_timestamp": null
                      },
                      {
                        "email": "owner_document@email.com",
                        "event": "document_signing_session_completed",
                        "created": 1672751421,
                        "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "5X.XX.XX.XX",
                        "document_id": "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample application",
                        "json_attributes": null,
                        "client_timestamp": 1672751421
                      },
                      {
                        "email": "owner_document@email.com",
                        "event": "document_invite_sent",
                        "created": 1672751636,
                        "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "93XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "5X.XX.XX.XX",
                        "document_id": "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample application",
                        "json_attributes": {
                          "signers": [
                            "signer1@email.com",
                            "signer2@email.com"
                          ],
                          "viewers": []
                        },
                        "client_timestamp": null
                      },
                      {
                        "email": "signer1@email.com",
                        "event": "signer_authentication_failure",
                        "created": 1672751775,
                        "user_id": "6aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "73XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "5X.XX.XX.XX",
                        "document_id": "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample Application",
                        "json_attributes": {
                          "phone_number_2fa": "+1XXX-XXXXXXX",
                          "authentication_type": "sms"
                        },
                        "client_timestamp": 1672751775
                      },
                      {
                        "email": "signer2@email.com",
                        "event": "signer_authentication_failure",
                        "created": 1672751811,
                        "user_id": "83XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "14XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "5X.XX.XX.XX",
                        "document_id": "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample Application",
                        "json_attributes": {
                          "phone_number_2fa": "+1XXX-XXXXXXX",
                          "authentication_type": "phone_call"
                        },
                        "client_timestamp": 1672751811
                      }
                    ]
                  },
                  "for the event `signer_authentication_success`": {
                    "value": [
                      {
                        "email": "document_owner@email.com",
                        "event": "created_document",
                        "origin": "original",
                        "created": "1672128416",
                        "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "f3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "35.263.222.70",
                        "document_id": "bbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample application",
                        "json_attributes": null,
                        "client_timestamp": null
                      },
                      {
                        "email": "owner_document@email.com",
                        "event": "document_signing_session_completed",
                        "created": "1672128418",
                        "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "b1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "35.263.222.70",
                        "document_id": "bbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample application",
                        "json_attributes": null,
                        "client_timestamp": "1672128418"
                      },
                      {
                        "email": "owner_document1@email.com",
                        "event": "document_invite_sent",
                        "created": "1672128439",
                        "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "ceXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "35.263.222.70",
                        "document_id": "bbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample application",
                        "json_attributes": {
                          "signers": [
                            "signer1@email.com",
                            "signer2@email.com"
                          ],
                          "viewers": []
                        },
                        "client_timestamp": null
                      },
                      {
                        "email": "signer1@email.com",
                        "event": "signer_authentication_success",
                        "created": "1672128445",
                        "user_id": "6aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "6dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "35.263.222.70",
                        "document_id": "bbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Signer Application",
                        "json_attributes": {
                          "phone_number_2fa": "+1XXX-XXXXXXX",
                          "authentication_code": "57329",
                          "authentication_type": "sms"
                        },
                        "client_timestamp": "1672128445"
                      },
                      {
                        "email": "owner_document@email.com",
                        "event": "document_invite_sent",
                        "created": "1672128446",
                        "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "00XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "3X.XX.XX.XX",
                        "document_id": "bbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample Application",
                        "json_attributes": {
                          "signers": [
                            "signer2@email.com"
                          ],
                          "viewers": []
                        },
                        "client_timestamp": null
                      },
                      {
                        "email": "signer1@email.com",
                        "event": "added_signature",
                        "created": "1672128446",
                        "user_id": "6aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": "6bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "unique_id": "40XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": "79XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "ip_address": "3X.XX.XX.XX",
                        "document_id": "bbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample Application",
                        "json_attributes": null,
                        "client_timestamp": "1672128446"
                      },
                      {
                        "email": "signer2@email.com",
                        "event": "signer_authentication_success",
                        "created": "1672128452",
                        "user_id": "83XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": null,
                        "unique_id": "acXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": null,
                        "ip_address": "3X.XX.XX.XX",
                        "document_id": "bbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample Application",
                        "json_attributes": {
                          "phone_number_2fa": "+1XXX-XXXXXXX",
                          "authentication_type": "phone_call"
                        },
                        "client_timestamp": "1672128452"
                      },
                      {
                        "email": "signer2@email.com",
                        "event": "added_signature",
                        "created": "1672128453",
                        "user_id": "83XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "field_id": "f5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "unique_id": "0eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "element_id": "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "ip_address": "3X.XX.XX.XX",
                        "document_id": "bbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "client_app_name": "Sample Application",
                        "json_attributes": null,
                        "client_timestamp": "1672128453"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "- Request with any of cases:\n\n* invalid token \n* expired token \n* empty header\n* authorization = null\n* authorization without value\n\n\t\n- User does not have access to this document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid token": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "No access to this document": {
                    "value": {
                      "code": 65610,
                      "message": "not readable"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/{document_id}/attachment/{attachment_id}/download": {
      "get": {
        "operationId": "download-document-attachment",
        "summary": "Download document attachment",
        "description": "Downloads a file attached to the document by signer",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Unique document id "
          },
          {
            "in": "path",
            "name": "attachment_id",
            "type": "string",
            "required": true,
            "description": "unique id of the attachment.\n\ncan be found in the response to `GET /document/{docuument_id}` request"
          }
        ],
        "responses": {
          "200": {
            "description": "Attachment file is returned in the response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/{document_id}/download": {
      "get": {
        "operationId": "download-document",
        "summary": "Download document",
        "description": "Downloads a document.\n\nPossible values for `type` query param are `collapsed`, `zip` and `email`. \n\n`Collapsed` returns the raw data of the pdf document that can be written to a blank .pdf file. \n\n`Zip` returns the raw data of a zip file containing the pdf and any attachments on that document that can be written to blank a .zip file. \n\n`Email` returns zip file with document that have ID on each page, attachments and history file in case history has been requested. ",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "query",
            "name": "type",
            "type": "string",
            "required": true,
            "description": "Types of document to download"
          },
          {
            "in": "query",
            "name": "with_history",
            "type": "string",
            "required": false,
            "description": "downloads collapsed document with a table containing the document's history if with_history=1"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/{document_id}/download/link": {
      "post": {
        "operationId": "get-document-download-link",
        "summary": "Get document download link",
        "description": "Returns a one-time use URL for anyone to download the document as a PDF.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "link": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "link": "https://example.com/document_download_id=67XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/{document_id}/metadata": {
      "get": {
        "operationId": "get-document-document-id-metadata",
        "summary": "Get metadata of a document",
        "description": "This endpoint allows users to retrieve metadata for a selected document.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document."
          }
        ],
        "responses": {
          "200": {
            "description": "Correct request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Correct request": {
                    "value": {
                      "content": {
                        "key1": "value",
                        "key2": "value",
                        "key3": "value",
                        "source": "webhook"
                      },
                      "updated": "0",
                      "application_id": "application_id"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with bearer token from another user\n* Invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Request with bearer token from another user": {
                    "value": {
                      "errors": [
                        {
                          "code": 65610,
                          "message": "not readable"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Request with `document_id` that doesn’t match the pattern `[a-z0-9]{40}`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with `document_id` that doesn’t match the pattern `[a-z0-9]{40}`": {
                    "value": {
                      "errors": [
                        {
                          "404": "Unable to find a route to match the URI: document/{incorrect_document_id}/metadata"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "put-document-document-id-metadata",
        "summary": "Add metadata to a document",
        "description": "This endpoint allows users to add metadata to the selected document. All added metadata will be linked to the document during the [invite to sign](/docs/document-field-invite/operations/post-field-invite). Also, if you'd like to use this metadata in any event subscription, you can add upon [creating a webhook](/docs/basic-auth/operations/create-event-subscription).",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document."
          }
        ],
        "responses": {
          "200": {
            "description": "Correct request",
            "content": {
              "application/json": {
                "examples": {
                  "Correct request": {
                    "value": {
                      "success": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n* Request with bearer token from another user\n* Request without `source` key\n* `source` is not a string",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "source not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 65916,
                          "message": "Source must be a string"
                        }
                      ]
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "errors": [
                        {
                          "code": 65610,
                          "message": "not readable"
                        }
                      ]
                    }
                  },
                  "Request without source": {
                    "value": {
                      "errors": [
                        {
                          "code": 65916,
                          "message": "Source must not be empty"
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "source"
                ],
                "properties": {
                  "key": {
                    "type": "string",
                    "description": "Any type of metadata that should be added to the document. For example,`signer_id`."
                  },
                  "key1": {
                    "type": "string",
                    "description": "Any type of metadata that should be added to the document. For example, `timestamp`."
                  },
                  "key2": {
                    "type": "string",
                    "description": "Any type of metadata that should be added to the document. For example, `document_owner_id`."
                  },
                  "source": {
                    "type": "string",
                    "description": "The object that uses this metadata. Allowed values: `webhook`."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "key": "value",
                    "key1": "value",
                    "key2": "value",
                    "source": "webhook"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "key": "value",
                    "key1": "value",
                    "key2": "value",
                    "source": "webhook"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/document/{document_id}/move": {
      "post": {
        "operationId": "move-document",
        "summary": "Move document",
        "description": "Moves a document into specified folder.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "folder_id": {
                    "type": "string",
                    "description": "ID of the folder where you'd like to keep this document"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "folder_id": "d3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/folder/{folder_unique_id}/documents": {
      "put": {
        "operationId": "put-folder-folder-unique-id-documents",
        "summary": "Move documents in bulk",
        "description": "This endpoint allows users to move their documents in bulk to the specified folder.",
        "parameters": [
          {
            "in": "path",
            "name": "folder_unique_id",
            "type": "string",
            "required": true,
            "description": "ID of the target folder to move documents"
          }
        ],
        "responses": {
          "200": {
            "description": "Documents moved successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "status": "success"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "status": "success"
                    }
                  },
                  "Documents moved successfully ": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- Document limit (maximum: 25) is exceeded.\n- Bad request, including:\n  - Document does not exist;\n  - Operation is not allowed (user tries to move Document into Template folder etc.);\n  - User does not have rights to move the Document.\n- Target folder does not exist.\n- Invalid document ID.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload length"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload length"
                        }
                      ]
                    }
                  },
                  "Bad request": {
                    "value": {
                      "code": 160,
                      "errors": [
                        {
                          "code": 75,
                          "message": "Resource doesn't exist",
                          "unique_id": "abc42eecf4sc41aabe1803280d379562930a1964"
                        },
                        {
                          "code": 79,
                          "message": "operation not allowed",
                          "unique_id": "b605d4d971cd48d1ba3af6b15eaa467aa091e282"
                        },
                        {
                          "code": 74,
                          "message": "not readable",
                          "unique_id": "398392b4f4ac421c92bbffa74a04d706a75fc969"
                        }
                      ],
                      "message": "Bad request"
                    }
                  },
                  "Invalid document ID": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid unique id"
                        }
                      ]
                    }
                  },
                  "Document limit exceeded": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload length"
                        }
                      ]
                    }
                  },
                  "Target folder does not exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 65611,
                          "message": "folder Resource doesn't exist"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "unique_id"
                  ],
                  "properties": {
                    "unique_id": {
                      "type": "string",
                      "description": "ID of moving documents. Limit: 25 documents."
                    }
                  }
                },
                "x-examples": {
                  "Example 1": [
                    {
                      "unique_id": "abc42eecf44c41aabe1803280d379562930a1964"
                    },
                    {
                      "unique_id": "ebe10d8381b34fca86ed09d87b8a4130b146e80d"
                    }
                  ]
                }
              },
              "examples": {
                "Request moving two documents": {
                  "value": [
                    {
                      "unique_id": "abc42eecf44c41aabe1803280d379562930a1964"
                    },
                    {
                      "unique_id": "ebe10d8381b34fca86ed09d87b8a4130b146e80d"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/v2/documents/{document_id}/roles": {
      "get": {
        "operationId": "get-document-roles",
        "summary": "Get document users",
        "description": "This endpoint allows API users to retrieve a paginated list of users who have access to the document, including their emails, roles, names, and avatars.\n\n**Notes**\n\n* The owner sees all users with roles (including themselves as `owner`).\n* A non-owner (shared user) sees only the owner and themselves.",
        "parameters": [
          {
            "in": "query",
            "name": "per_page",
            "type": "integer",
            "required": false,
            "description": "Number of items per page. Min: `1`, Max: `100`. Default: `15`."
          },
          {
            "in": "query",
            "name": "page",
            "type": "integer",
            "required": false,
            "description": "Page number. Min: `1`. Default: `1`."
          },
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Document ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Returns a paginated list of users with access to the document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier of the user."
                          },
                          "role": {
                            "type": "string",
                            "description": "User's role in the document (`owner`, `viewer`, or `sender`)."
                          },
                          "email": {
                            "type": "string",
                            "description": "Email address of the user."
                          },
                          "full_name": {
                            "type": "string",
                            "description": "Full name of the user."
                          },
                          "avatar_url": {
                            "type": "string",
                            "x-nullable": true,
                            "description": "URL of the user's avatar image."
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          },
                          "description": "Pagination details for the response."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "abc123def456abc123def456abc123def456abc1",
                          "role": "owner",
                          "email": "owner@example.com",
                          "full_name": "John Doe",
                          "avatar_url": "https://example.com/avatars/abc123/download"
                        },
                        {
                          "id": "def456abc123def456abc123def456abc123def4",
                          "role": "viewer",
                          "email": "viewer@example.com",
                          "full_name": "Jane Smith",
                          "avatar_url": null
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "abc123def456abc123def456abc123def456abc1",
                          "role": "owner",
                          "email": "owner@example.com",
                          "full_name": "John Doe",
                          "avatar_url": "https://example.com/avatars/abc123/download"
                        },
                        {
                          "id": "def456abc123def456abc123def456abc123def4",
                          "role": "viewer",
                          "email": "viewer@example.com",
                          "full_name": "Jane Smith",
                          "avatar_url": null
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "application/json": {
                    "value": {
                      "data": [
                        {
                          "id": "abc123def456abc123def456abc123def456abc1",
                          "role": "owner",
                          "email": "owner@example.com",
                          "full_name": "John Doe",
                          "avatar_url": "https://example.com/avatars/abc123/download"
                        },
                        {
                          "id": "def456abc123def456abc123def456abc123def4",
                          "role": "viewer",
                          "email": "viewer@example.com",
                          "full_name": "Jane Smith",
                          "avatar_url": null
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document not found.\n* You don't have access to the entity.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029021,
                          "message": "Document not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029021,
                          "message": "Document not found."
                        }
                      ]
                    }
                  },
                  "Document not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029021,
                          "message": "Document not found."
                        }
                      ]
                    }
                  },
                  "No access to entity": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Incorrect document ID.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "404": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "404": "Unable to find a route to match the URI: V2/documents/a8a70c6f26744bcfa6f03abfb5ae00694fed5d73/roles"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "404": "Unable to find a route to match the URI: V2/documents/a8a70c6f26744bcfa6f03abfb5ae00694fed5d73/roles"
                    }
                  },
                  "Incorrect document ID": {
                    "value": {
                      "404": "Unable to find a route to match the URI: V2/documents/{document_id}/roles"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "unshare-document-all",
        "summary": "Unshare document from all users",
        "description": "This endpoint allows API users to remove sharing access for all users from the document.\n\n**Notes**\n\n* Only the owner of the document can perform this action.\n* All shared users are removed.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Document ID."
          }
        ],
        "responses": {
          "204": {
            "description": "All users successfully unshared. No content returned."
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 12029021,
                      "message": "Document not found."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 12029021,
                      "message": "Document not found."
                    }
                  },
                  "Document not found": {
                    "value": {
                      "code": 12029021,
                      "message": "Document not found."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User is not the document owner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 12029012,
                      "message": "You don't have access to the entity."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 12029012,
                      "message": "You don't have access to the entity."
                    }
                  },
                  "Not an owner": {
                    "value": {
                      "code": 12029012,
                      "message": "You don't have access to the entity."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/documents/{document_id}/roles/{user_id}": {
      "delete": {
        "operationId": "unshare-document-from-user",
        "summary": "Unshare document from user",
        "description": "This endpoint allows API users to remove sharing access for a specific user from the document.\n\n**Notes**\n\n* The owner can unshare any user except themselves.\n* A shared user can unshare only themselves (self-unshare).",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Document ID."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the user to unshare."
          }
        ],
        "responses": {
          "204": {
            "description": "User successfully unshared. No content returned."
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document not found.\n* User role not found.\n* Managing user not found.\n* Entity owner can't unshare it from himself.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029021,
                          "message": "Document not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029021,
                          "message": "Document not found."
                        }
                      ]
                    }
                  },
                  "Document not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029021,
                          "message": "Document not found."
                        }
                      ]
                    }
                  },
                  "User role not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029011,
                          "message": "User role not found."
                        }
                      ]
                    }
                  },
                  "Managing user not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029023,
                          "message": "Managing user not found."
                        }
                      ]
                    }
                  },
                  "Owner can't unshare themselves": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029022,
                          "message": "Entity owner can't unshare it from himself."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "You don't have access to the entity.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 12029012,
                      "message": "You don't have access to the entity."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 12029012,
                      "message": "You don't have access to the entity."
                    }
                  },
                  "Forbidden": {
                    "value": {
                      "code": 12029012,
                      "message": "You don't have access to the entity."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/shared-entities": {
      "post": {
        "operationId": "share-document",
        "summary": "Share document",
        "description": "This endpoint allows API users to share documents with one or more users. For each document-email pair, assign a `viewer` or `sender` role.\n\n**Notes**\n\n* **Viewer** - can view and download the document; **sender** - can view, download, invite to sign, and manage document invites.\n* Only documents owned by the authenticated user may be shared.\n* If the recipient already has access, their role is updated to the value sent in the request.\n* The recipient receives an email notification with a link to the shared document.\n* If the recipient does not exist in the system, a new account is created automatically.\n* The document owner's email must not appear among the recipients.\n* Documents belonging to a document group cannot be shared individually.\n* Documents created from a template already shared with the target user are rejected with a conflict error.\n\n**Request limits:** At most **100 distinct recipient emails** and **20 distinct documents** per request.",
        "responses": {
          "200": {
            "description": "Document successfully shared.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier of the recipient user."
                          },
                          "email": {
                            "type": "string",
                            "description": "Email address of the recipient."
                          },
                          "entities": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "role": {
                                  "type": "string"
                                },
                                "entity_id": {
                                  "type": "string"
                                },
                                "entity_type": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "def456abc123def456abc123def456abc123def4",
                          "email": "user1@email.com",
                          "entities": [
                            {
                              "role": "viewer",
                              "entity_id": "aaa111bbb222aaa111bbb222aaa111bbb222aaa1",
                              "entity_type": "document"
                            }
                          ]
                        },
                        {
                          "id": "bf567a8af1b544afa55b40c40063652891ffcd31",
                          "email": "user2@email.com",
                          "entities": [
                            {
                              "role": "sender",
                              "entity_id": "bbb222ccc333bbb222ccc333bbb222ccc333bbb2",
                              "entity_type": "document"
                            }
                          ]
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "def456abc123def456abc123def456abc123def4",
                          "email": "user1@email.com",
                          "entities": [
                            {
                              "role": "viewer",
                              "entity_id": "aaa111bbb222aaa111bbb222aaa111bbb222aaa1",
                              "entity_type": "document"
                            }
                          ]
                        },
                        {
                          "id": "bf567a8af1b544afa55b40c40063652891ffcd31",
                          "email": "user2@email.com",
                          "entities": [
                            {
                              "role": "sender",
                              "entity_id": "bbb222ccc333bbb222ccc333bbb222ccc333bbb2",
                              "entity_type": "document"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  "application/json": {
                    "value": {
                      "data": [
                        {
                          "id": "def456abc123def456abc123def456abc123def4",
                          "email": "user1@email.com",
                          "entities": [
                            {
                              "role": "viewer",
                              "entity_id": "aaa111bbb222aaa111bbb222aaa111bbb222aaa1",
                              "entity_type": "document"
                            }
                          ]
                        },
                        {
                          "id": "bf567a8af1b544afa55b40c40063652891ffcd31",
                          "email": "user2@email.com",
                          "entities": [
                            {
                              "role": "sender",
                              "entity_id": "bbb222ccc333bbb222ccc333bbb222ccc333bbb2",
                              "entity_type": "document"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Data is null.\n* Data is not an array.\n* Data array is empty.\n* `entity_type` is not a string or is empty.\n* `entity_type` value is not `document`.\n* `entity_id` is not a string or is empty.\n* `email` is not a string, is empty, or is not a valid email.\n* `role` is not a string, is empty, or is not `viewer` or `sender`.\n* Duplicate `email` and `entity_id` pair.\n* Cannot share entity with the same owner.\n* `message` field errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12030002,
                          "message": "Data should not be null, value: [null] given."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030002,
                          "message": "Data should not be null, value: [null] given."
                        }
                      ]
                    }
                  },
                  "Data is null": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030002,
                          "message": "Data should not be null, value: [null] given."
                        }
                      ]
                    }
                  },
                  "role is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030013,
                          "message": "Field role should not be empty."
                        }
                      ]
                    }
                  },
                  "email is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030010,
                          "message": "Field email should not be empty."
                        }
                      ]
                    }
                  },
                  "message is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030021,
                          "message": "Field message must not be empty."
                        }
                      ]
                    }
                  },
                  "message too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030023,
                          "message": "Field message should not exceed 10000 characters."
                        }
                      ]
                    }
                  },
                  "message too short": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030023,
                          "message": "Field message should be not less than 1 characters."
                        }
                      ]
                    }
                  },
                  "Invalid role value": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030014,
                          "message": "Field role value should be one of [\"viewer\", \"sender\"], value: [admin] given."
                        }
                      ]
                    }
                  },
                  "email is not valid": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030011,
                          "message": "Field email should be valid email."
                        }
                      ]
                    }
                  },
                  "entity_id is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030008,
                          "message": "Field entity_id should not be empty."
                        }
                      ]
                    }
                  },
                  "Data array is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030024,
                          "message": "The data field should not be an empty array."
                        }
                      ]
                    }
                  },
                  "Data is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030001,
                          "message": "The data field must be an array."
                        }
                      ]
                    }
                  },
                  "entity_type is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030005,
                          "message": "Field entity_type should not be empty."
                        }
                      ]
                    }
                  },
                  "role is not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030012,
                          "message": "Field role should be string, value: [1] given."
                        }
                      ]
                    }
                  },
                  "email is not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030009,
                          "message": "Field email should be string, value: [1] given."
                        }
                      ]
                    }
                  },
                  "Cannot share with owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030016,
                          "message": "Cannot share entity with the same owner."
                        }
                      ]
                    }
                  },
                  "message is not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030022,
                          "message": "Field message should be string, value: [...] given."
                        }
                      ]
                    }
                  },
                  "Invalid entity_type value": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030006,
                          "message": "Field entity_type value should be one of [\"document\"], value: [group] given."
                        }
                      ]
                    }
                  },
                  "entity_id is not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030007,
                          "message": "Field entity_id should be string, value: [1] given."
                        }
                      ]
                    }
                  },
                  "entity_type is not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030004,
                          "message": "Field entity_type should be string, value: [1] given."
                        }
                      ]
                    }
                  },
                  "Duplicate email and entity_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030015,
                          "message": "Duplicated fields email and entity_id."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. Possible errors:\n\n* User is not the owner of the shared entity.\n* Document already shared with target user.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12030017,
                          "message": "User is not owner of shared entity."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030017,
                          "message": "User is not owner of shared entity."
                        }
                      ]
                    }
                  },
                  "User is not owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030017,
                          "message": "User is not owner of shared entity."
                        }
                      ]
                    }
                  },
                  "Parent entity already shared": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030020,
                          "message": "Sharing entity conflict: parent entity already shared."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The document is part of a group and cannot be shared separately.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12030025,
                          "message": "Sharing entity conflict: not allowed to share separately a document that is part of a group."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030025,
                          "message": "Sharing entity conflict: not allowed to share separately a document that is part of a group."
                        }
                      ]
                    }
                  },
                  "Document is part of a group": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030025,
                          "message": "Sharing entity conflict: not allowed to share separately a document that is part of a group."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "entity_type",
                        "entity_id",
                        "email",
                        "role"
                      ],
                      "properties": {
                        "role": {
                          "type": "string",
                          "example": "viewer",
                          "description": "Role to assign. Allowed values: `viewer`, `sender`."
                        },
                        "email": {
                          "type": "string",
                          "example": "user@email.com",
                          "description": "Valid email address of the recipient."
                        },
                        "message": {
                          "type": "string",
                          "example": "Please review the document.",
                          "description": "Custom message to include in the notification email."
                        },
                        "entity_id": {
                          "type": "string",
                          "example": "abc123def456abc123def456abc123def456abc1",
                          "description": "Document unique ID."
                        },
                        "entity_type": {
                          "type": "string",
                          "example": "document",
                          "description": "Type of the entity to share. Allowed value: `document`."
                        }
                      }
                    },
                    "description": "Non-empty array of share requests."
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "data": [
                      {
                        "role": "viewer",
                        "email": "user1@email.com",
                        "message": "Please review the document.",
                        "entity_id": "aaa111bbb222aaa111bbb222aaa111bbb222aaa1",
                        "entity_type": "document"
                      },
                      {
                        "role": "sender",
                        "email": "user2@email.com",
                        "message": "Sending this document for your attention.",
                        "entity_id": "bbb222ccc333bbb222ccc333bbb222ccc333bbb2",
                        "entity_type": "document"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-generations/{process_id}/status": {
      "get": {
        "operationId": "get-v2-document-generations-process-id-status",
        "summary": "Get document generation status",
        "description": "This endpoint allows API users to get the status of a document generation process.\n\nLearn more about [document generation](/docs/document-generations).",
        "parameters": [
          {
            "in": "path",
            "name": "process_id",
            "type": "string",
            "required": true,
            "description": "ID of the document generation process."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            "in_progress",
                            "completed",
                            "failed"
                          ],
                          "type": "string",
                          "description": "Current status of the document generation process."
                        },
                        "entity_id": {
                          "type": "string",
                          "x-nullable": true,
                          "description": "ID of the generated entity. Returns `null` while the process is in progress or failed."
                        },
                        "process_id": {
                          "type": "string",
                          "description": "ID of the document generation process."
                        },
                        "entity_type": {
                          "enum": [
                            "document",
                            "document_group",
                            null
                          ],
                          "type": "string",
                          "x-nullable": true,
                          "description": "Type of the generated entity. Returns `null` while the process is in progress or failed."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "status": "in_progress",
                        "entity_id": null,
                        "process_id": "48bc7836-194a-11f1-a657-0a39a0b006c0",
                        "entity_type": null
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Document generation not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Document generation not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008006,
                          "message": "Document generation not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-generations/upload": {
      "post": {
        "operationId": "post-v2-document-generations-upload",
        "summary": "Generate document from uploaded file",
        "description": "This endpoint allows API users to generate a PDF document by uploading a `.docx` file with tags.\n\n> In development mode, downloaded generated documents will include a watermark.\n\nLearn more about [document generation](/docs/document-generations).",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            "in_progress",
                            "completed",
                            "failed"
                          ],
                          "type": "string",
                          "description": "Current status of the document generation process."
                        },
                        "process_id": {
                          "type": "string",
                          "description": "ID of the document generation process."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "status": "in_progress",
                        "process_id": "348bf62a-1c97-11f1-a071-5a78fa528452"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* `data` is empty.\n* `single_document` is not a boolean.\n* Uploaded file is empty.\n* Uploaded file exceeds 10 MB.\n* `data` is not an array.\n* Uploaded file is not a `.docx`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Empty data": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008003,
                          "message": "The `data` field must not be empty."
                        }
                      ]
                    }
                  },
                  "data is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008007,
                          "message": "The `data` field must be an array."
                        }
                      ]
                    }
                  },
                  "Uploaded file is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008004,
                          "message": "The uploaded file must not be empty."
                        }
                      ]
                    }
                  },
                  "Uploaded file is not a .docx": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008009,
                          "message": "The uploaded file must have a .docx extension."
                        }
                      ]
                    }
                  },
                  "single_document is not a boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008008,
                          "message": "The `single_document` field must be a boolean."
                        }
                      ]
                    }
                  },
                  "Uploaded file exceeds maximum size": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008005,
                          "message": "The uploaded file exceeds the maximum allowed size of 10 MB."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "The `.docx` file to upload. Maximum size: 10 MB.",
                    "format": "binary"
                  },
                  "data": {
                    "type": "string",
                    "description": "A JSON string containing variable mappings. Keys correspond to tag names in the `.docx` template; values are the pre-filled text for each tag. Supports arrays of objects for repeating sections, such as tables and lists. Example for a document with a Products table: `{\"Products\": [{\"ItemPrice\": \"8\", \"ItemName\": \"T-shirt\", \"ItemQuantity\": \"10\"}, {\"ItemPrice\": \"4\", \"ItemName\": \"Belt\", \"ItemQuantity\": \"5\"}, {\"ItemPrice\": \"20\", \"ItemName\": \"Dress\", \"ItemQuantity\": \"2\"}]}`."
                  },
                  "single_document": {
                    "type": "boolean",
                    "description": "If `true`, a single document is generated. If `false`, a document group is generated."
                  }
                },
                "required": [
                  "file",
                  "data"
                ]
              }
            }
          }
        }
      }
    },
    "/v2/document-generations/url": {
      "post": {
        "operationId": "post-v2-document-generations-url",
        "summary": "Generate document from URL",
        "description": "This endpoint allows API users to generate a PDF document by providing a publicly accessible URL to a `.docx` file with tags.\n\n> In development mode, downloaded generated documents will include a watermark.\n\nLearn more about [document generation](/docs/document-generations).",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            "in_progress",
                            "completed",
                            "failed"
                          ],
                          "type": "string",
                          "description": "Current status of the document generation process."
                        },
                        "process_id": {
                          "type": "string",
                          "description": "ID of the document generation process."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "status": "in_progress",
                        "process_id": "348bf62a-1c97-11f1-a071-5a78fa528452"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* `docx_url` is not a valid URL.\n* `docx_url` is an empty string.\n* `data` is empty.\n* `single_document` is not a boolean.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Empty data": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008003,
                          "message": "The `data` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Empty docx_url": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008002,
                          "message": "The `docx_url` field must not be empty."
                        }
                      ]
                    }
                  },
                  "docx_url is not a valid URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008001,
                          "message": "The `docx_url` must be a valid URL."
                        }
                      ]
                    }
                  },
                  "single_document is not a boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 21008008,
                          "message": "The `single_document` field must be a boolean."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "docx_url",
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "example": {
                      "Products": [
                        {
                          "ItemName": "T-shirt",
                          "ItemPrice": "8",
                          "ItemQuantity": "10"
                        },
                        {
                          "ItemName": "Belt",
                          "ItemPrice": "4",
                          "ItemQuantity": "5"
                        },
                        {
                          "ItemName": "Dress",
                          "ItemPrice": "20",
                          "ItemQuantity": "2"
                        }
                      ]
                    },
                    "description": "An object containing variable mappings. Keys correspond to tag names in the `.docx` template; values are the pre-filled text for each tag. Supports arrays of objects for repeating sections (e.g., tables, lists)."
                  },
                  "docx_url": {
                    "type": "string",
                    "example": "https://example.com/template.docx",
                    "description": "Publicly accessible URL to the `.docx` file."
                  },
                  "single_document": {
                    "type": "boolean",
                    "default": false,
                    "description": "If `true`, a single document is generated. If `false`, a document group is generated."
                  }
                },
                "x-examples": {
                  "Request example for generating a document with a Products table": {
                    "data": {
                      "Products": [
                        {
                          "ItemName": "T-shirt",
                          "ItemPrice": "8",
                          "ItemQuantity": "10"
                        },
                        {
                          "ItemName": "Belt",
                          "ItemPrice": "4",
                          "ItemQuantity": "5"
                        },
                        {
                          "ItemName": "Dress",
                          "ItemPrice": "20",
                          "ItemQuantity": "2"
                        }
                      ]
                    },
                    "docx_url": "https://example.com/template.docx",
                    "single_document": true
                  }
                }
              },
              "examples": {
                "Request example for generating a document with a Products table": {
                  "value": {
                    "data": {
                      "Products": [
                        {
                          "ItemName": "T-shirt",
                          "ItemPrice": "8",
                          "ItemQuantity": "10"
                        },
                        {
                          "ItemName": "Belt",
                          "ItemPrice": "4",
                          "ItemQuantity": "5"
                        },
                        {
                          "ItemName": "Dress",
                          "ItemPrice": "20",
                          "ItemQuantity": "2"
                        }
                      ]
                    },
                    "docx_url": "https://example.com/template.docx",
                    "single_document": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/documentgroup": {
      "post": {
        "operationId": "create-document-group",
        "summary": "Create document group",
        "description": "Creates a document group from a list of document ids\n\nAll documents:\n* Must be owned by the person creating the document group.\n* Cannot be templates.\n* Cannot already be a part of another document group (delete document group first to add them).\n* Cannot have active or fulfilled invites.\n\nFor more information, check out our video tutorial.\n\n<details open>\n\n**<summary>Video tutorial</summary>**\n\n<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>\n\n[Video tutorial](https://www.youtube.com/watch?v=5WJYRz6Szk0)\n\n</details>\n",
        "responses": {
          "200": {
            "description": "Document group successfully created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "68XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "68XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  },
                  "application/json": {
                    "value": {
                      "id": "68XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "\t\nRequest with incorrect authorization:\n\n* incorrect token\n* expired token\n* empty authorization header\n* authorization = null\n* authorization header without value\n\nOther errors:\n* Incorrect payload\n* Incorrect `document_ids` property\n* `document_ids` array not containing documents\n* Document not found\n* Document not found or belongs to another user\n* Document is a template\n* Document already part of another document group\n* Missing `group_name` property\n* Document has active or fulfilled invites",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Incorrect token": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "Document not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Document \"{document_id}\" could not be found, make sure the id is correct and the user owns the document"
                        }
                      ]
                    }
                  },
                  "document_ids empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "No documents provided"
                        }
                      ]
                    }
                  },
                  "Document has invites": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Document {document_id} already has active or fulfilled invites."
                        }
                      ]
                    }
                  },
                  "Document is template": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Document {template_id} is a template"
                        }
                      ]
                    }
                  },
                  "Incorrect document_ids": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "document_ids property is missing, empty, or not an array"
                        }
                      ]
                    }
                  },
                  "Missing group_name property": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "group_name property is empty"
                        }
                      ]
                    }
                  },
                  "Document is part of another document group": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Document {document_id} is already part of a document group"
                        }
                      ]
                    }
                  },
                  "Document not found or belongs to another user": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Document \"{document_id}\" could not be found, make sure the id is correct and the user owns the document"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "document_ids",
                  "group_name"
                ],
                "properties": {
                  "group_name": {
                    "type": "string"
                  },
                  "document_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "group_name": "Document Group 1",
                    "document_ids": [
                      "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/documentgroup/{document_group_id}": {
      "delete": {
        "operationId": "delete-documentgroup",
        "summary": "Delete document group",
        "description": "Deletes a document group. Documents within the group are not deleted. Document groups cannot be deleted while they have a group invite",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "operationId": "get-documentgroup",
        "summary": "Get document group",
        "description": "This endpoint allows API users to retrieve details about a specific document group, including its documents, assigned roles, and any FreeForm or field invites. \n \nThe `invite_id` property indicates the group invite if it exists, or is null if no invite has been created.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "* Success\n* Success with email_group block",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the document group."
                    },
                    "state": {
                      "enum": [
                        "created",
                        "pending",
                        "canceled",
                        "completed",
                        "declined",
                        "correction"
                      ],
                      "type": "string",
                      "description": "Current state of the document group. Possible values: `created` — the document group has been created; `pending` — an invite has been sent and is awaiting signing; `canceled` — the document group invite was canceled; `completed` — all signing steps are completed; `declined` — one of the signers declined to sign; `correction` — the document group is in correction mode."
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "settings": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "thumbnail": {
                            "type": "object",
                            "properties": {
                              "large": {
                                "type": "string"
                              },
                              "small": {
                                "type": "string"
                              },
                              "medium": {
                                "type": "string"
                              }
                            }
                          },
                          "document_name": {
                            "type": "string"
                          },
                          "field_invites": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "short_link_url": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "signature_type": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "payment_request": {
                                  "type": "string",
                                  "x-nullable": true
                                }
                              }
                            }
                          },
                          "allowed_to_remove": {
                            "type": "boolean"
                          },
                          "origin_document_id": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "has_unassigned_field": {
                            "type": "boolean"
                          },
                          "has_credit_card_number": {
                            "type": "boolean"
                          }
                        }
                      },
                      "description": "List of documents in the document group."
                    },
                    "folder_id": {
                      "type": "string",
                      "x-nullable": true,
                      "description": "Unique identifier of the folder that contains the document group, or `null` if the group is not in a folder."
                    },
                    "invite_id": {
                      "type": "string",
                      "description": "Unique identifier of the active group invite, or `null` if no invite has been created."
                    },
                    "group_name": {
                      "type": "string",
                      "description": "Display name of the document group."
                    },
                    "share_info": {
                      "type": "object",
                      "properties": {
                        "role": {
                          "type": "string"
                        },
                        "is_personally_shared_to_others": {
                          "type": "boolean"
                        }
                      },
                      "description": "Sharing information for the document group, including the requesting user's role."
                    },
                    "mail_provider": {
                      "type": "null",
                      "description": "Mail provider used for sending invite emails. `null` if the default provider is used."
                    },
                    "freeform_invite": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "x-nullable": true
                        }
                      },
                      "description": "Information about the FreeForm invite associated with this document group. The `id` is `null` if no FreeForm invite has been created."
                    },
                    "scheduled_invite": {
                      "type": "null",
                      "description": "Information about a scheduled invite for the document group, or `null` if no invite is scheduled."
                    },
                    "email_action_on_complete": {
                      "type": "null",
                      "description": "Specifies how documents are emailed when the document group invite is completed. `null` if no action is configured."
                    },
                    "document_group_attributes": {
                      "type": "object",
                      "properties": {
                        "from_name": {
                          "type": "string"
                        },
                        "from_email": {
                          "type": "string"
                        }
                      },
                      "description": "Custom attributes for the document group, such as the sender email and sender name used for invites."
                    },
                    "originator_organization_settings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {}
                      },
                      "description": "Organization-level settings inherited from the document group owner's organization."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "state": "completed",
                      "documents": [
                        {
                          "id": "19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "roles": [
                            "Signer 1"
                          ],
                          "thumbnail": {
                            "large": "https://example.com/document/19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                            "small": "https://example.com/document/19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                            "medium": "https://example.com/document/19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                          },
                          "document_name": "Sample document",
                          "origin_document_id": "73XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "has_unassigned_field": false,
                          "has_credit_card_number": false
                        },
                        {
                          "id": "6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "roles": [
                            "Employer Representative"
                          ],
                          "thumbnail": {
                            "large": "https://example.com/document/6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                            "small": "https://example.com/document/6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                            "medium": "https://example.com/document/6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                          },
                          "document_name": "Sample document 1",
                          "field_invites": [],
                          "origin_document_id": "76XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "has_unassigned_field": false,
                          "has_credit_card_number": false
                        }
                      ],
                      "invite_id": "47XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "group_name": "Sample document group",
                      "project_id": null,
                      "share_info": {
                        "role": "owner",
                        "is_personally_shared_to_others": false
                      },
                      "mail_provider": null,
                      "scheduled_invite": null,
                      "email_action_on_complete": null,
                      "document_group_attributes": {
                        "from_name": "Jane Doe",
                        "from_email": "sender@email.com"
                      },
                      "originator_organization_settings": []
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "id": "d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "state": "pending",
                      "documents": [
                        {
                          "id": "d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "roles": [
                            "Candidate",
                            "HR manager",
                            "Viewer 2",
                            "Viewer 3"
                          ],
                          "settings": [],
                          "thumbnail": {
                            "large": "https://api.signnow.com/document/d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                            "small": "https://api.signnow.com/document/d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                            "medium": "https://api.signnow.com/document/d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                          },
                          "document_name": "Offerletter",
                          "field_invites": [
                            {
                              "id": "5aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "short_link_url": null,
                              "signature_type": null,
                              "payment_request": null
                            }
                          ],
                          "allowed_to_remove": true,
                          "origin_document_id": "7cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "has_unassigned_field": false,
                          "has_credit_card_number": false
                        },
                        {
                          "id": "d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "roles": [
                            "CEO",
                            "Employee",
                            "HR manager",
                            "Viewer 1"
                          ],
                          "settings": [],
                          "thumbnail": {
                            "large": "https://api.signnow.com/document/d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                            "small": "https://api.signnow.com/document/d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                            "medium": "https://api.signnow.com/document/d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                          },
                          "document_name": "EMPLOYMENTCONTRACT",
                          "field_invites": [
                            {
                              "id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "short_link_url": null,
                              "signature_type": null,
                              "payment_request": null
                            },
                            {
                              "id": "14XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "short_link_url": null,
                              "signature_type": null,
                              "payment_request": null
                            }
                          ],
                          "allowed_to_remove": true,
                          "origin_document_id": "2dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "has_unassigned_field": false,
                          "has_credit_card_number": false
                        }
                      ],
                      "folder_id": "edXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "invite_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "group_name": "Jessica Moore onboarding package",
                      "share_info": {
                        "role": "owner",
                        "is_personally_shared_to_others": false
                      },
                      "mail_provider": null,
                      "freeform_invite": {
                        "id": null
                      },
                      "scheduled_invite": null,
                      "email_action_on_complete": null,
                      "document_group_attributes": {
                        "from_name": "Sample Sender",
                        "from_email": "owner@email.com"
                      },
                      "originator_organization_settings": [
                        {
                          "value": "0",
                          "setting": "no_user_signature_return"
                        },
                        {
                          "value": "https://app.signnow.com/webapp/",
                          "setting": "invite_completion_redirect_url"
                        },
                        {
                          "value": "https://app.signnow.com/webapp/",
                          "setting": "invite_decline_redirect_url"
                        },
                        {
                          "value": "0",
                          "setting": "required_preset_signature_name"
                        },
                        {
                          "value": "0",
                          "setting": "require_email_subject"
                        },
                        {
                          "value": "0",
                          "setting": "require_login_for_signing"
                        },
                        {
                          "value": "0",
                          "setting": "logout_on_signing"
                        },
                        {
                          "value": "0",
                          "setting": "front_end_session_length"
                        },
                        {
                          "value": "0",
                          "setting": "add_signature_stamp_with_name"
                        },
                        {
                          "value": "0",
                          "setting": "cfr_title_21_part_11"
                        },
                        {
                          "value": "0",
                          "setting": "require_authentication_for_invites"
                        },
                        {
                          "value": "1",
                          "setting": "document_guide"
                        },
                        {
                          "value": "0",
                          "setting": "disable_email_notifications"
                        },
                        {
                          "value": "no",
                          "setting": "block_login_via_social_networks"
                        },
                        {
                          "value": "1",
                          "setting": "common_experiments"
                        },
                        {
                          "value": "0",
                          "setting": "hide_decline_to_sign_option_in_signing_session"
                        },
                        {
                          "value": "0",
                          "setting": "hide_upgrade_subscription_button"
                        },
                        {
                          "value": "",
                          "setting": "do_no_consent_redirect_url"
                        },
                        {
                          "value": "0",
                          "setting": "lock_signing_date_by_default"
                        },
                        {
                          "value": "0",
                          "setting": "allow_download_certificate"
                        },
                        {
                          "value": "0",
                          "setting": "have_merged_document_group_option"
                        },
                        {
                          "value": "1",
                          "setting": "guide_signers_only_through_required_fields"
                        },
                        {
                          "value": "30",
                          "setting": "invite_expiration_days"
                        },
                        {
                          "value": "0",
                          "setting": "allow_big_attachment_file"
                        },
                        {
                          "value": "0",
                          "setting": "allow_big_count_of_attachment_fields_per_document"
                        },
                        {
                          "value": "0",
                          "setting": "enable_hyperlink_field"
                        },
                        {
                          "value": "0",
                          "setting": "disable_download_action_in_editor"
                        },
                        {
                          "value": "bottom",
                          "setting": "signature_stamp_position"
                        },
                        {
                          "value": "0",
                          "setting": "enable_pki"
                        },
                        {
                          "value": "1",
                          "setting": "save_signer_signature_and_initials"
                        },
                        {
                          "value": "1",
                          "setting": "auto_apply_signatures_and_initials_to_document_fields"
                        },
                        {
                          "value": "0",
                          "setting": "receive_signer_email_after_sent_field_invite_to_yourself"
                        },
                        {
                          "value": "0",
                          "setting": "allow_edit_document_after_signing"
                        },
                        {
                          "value": "off",
                          "setting": "every_signature_and_initials_field_requires_user_authentication"
                        },
                        {
                          "value": "0",
                          "setting": "enable_render_pages_in_editor_as_images"
                        },
                        {
                          "value": "0",
                          "setting": "enable_team_admin_move_docs"
                        },
                        {
                          "value": "0",
                          "setting": "disable_email_recipients"
                        },
                        {
                          "value": "0",
                          "setting": "allow_team_admin_rename_docs"
                        },
                        {
                          "value": "0",
                          "setting": "allow_qes"
                        },
                        {
                          "value": "0",
                          "setting": "enable_qes"
                        },
                        {
                          "value": "https://www.signnow.com/",
                          "setting": "invite_canceled_redirect_url"
                        },
                        {
                          "value": "https://app.signnow.com/webapp/",
                          "setting": "save_draft_redirect_url"
                        },
                        {
                          "value": "0",
                          "setting": "add_signers_name_to_document_history_header"
                        }
                      ]
                    }
                  },
                  "Example 1": {
                    "value": {
                      "id": "bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "state": "completed",
                      "documents": [
                        {
                          "id": "19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "roles": [
                            "Signer 1"
                          ],
                          "thumbnail": {
                            "large": "https://example.com/document/19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                            "small": "https://example.com/document/19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                            "medium": "https://example.com/document/19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                          },
                          "document_name": "Sample document",
                          "origin_document_id": "73XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "has_unassigned_field": false,
                          "has_credit_card_number": false
                        },
                        {
                          "id": "6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "roles": [
                            "Employer Representative"
                          ],
                          "thumbnail": {
                            "large": "https://example.com/document/6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                            "small": "https://example.com/document/6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                            "medium": "https://example.com/document/6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                          },
                          "document_name": "Sample document 1",
                          "field_invites": [],
                          "origin_document_id": "76XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "has_unassigned_field": false,
                          "has_credit_card_number": false
                        }
                      ],
                      "invite_id": "47XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "group_name": "Sample document group",
                      "project_id": null,
                      "share_info": {
                        "role": "owner",
                        "is_personally_shared_to_others": false
                      },
                      "mail_provider": null,
                      "scheduled_invite": null,
                      "email_action_on_complete": null,
                      "document_group_attributes": {
                        "from_name": "Jane Doe",
                        "from_email": "sender@email.com"
                      },
                      "originator_organization_settings": []
                    }
                  },
                  "Success with email_group block": {
                    "value": {
                      "id": "02XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "state": "pending",
                      "documents": [
                        {
                          "id": "07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "roles": [
                            "Signer 1"
                          ],
                          "settings": [],
                          "thumbnail": {
                            "large": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                            "small": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                            "medium": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                          },
                          "document_name": "Sample document",
                          "field_invites": [
                            {
                              "id": "2bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email_group": {
                                "id": "3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "name": "Sample group name"
                              },
                              "short_link_url": null,
                              "signature_type": null,
                              "payment_request": null
                            }
                          ],
                          "allowed_to_remove": true,
                          "origin_document_id": null,
                          "has_unassigned_field": false,
                          "has_credit_card_number": false
                        }
                      ],
                      "folder_id": "11XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "invite_id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "group_name": "Group with email_group invite",
                      "share_info": {
                        "role": "owner",
                        "is_personally_shared_to_others": false
                      },
                      "mail_provider": null,
                      "freeform_invite": {
                        "id": null
                      },
                      "scheduled_invite": null,
                      "email_action_on_complete": null,
                      "document_group_attributes": {
                        "from_name": "Sample Sender",
                        "from_email": "owner@email.com"
                      },
                      "originator_organization_settings": []
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/documentgroup/{document_group_id}/downloadall": {
      "post": {
        "operationId": "post-documentgroup-document-group-id-downloadall",
        "summary": "Download document group",
        "description": "This endpoint allows users to download all documents of the document group.\n",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "200": {
            "description": "Zipped binary file (application/zip content)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "Request with any of these cases:\n\n* invalid token \n* expired token \n* empty header\n* authorization = null",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Authorization error": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "type",
                  "with_history"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "Type of the download format. Allowed values: `zip`, `merged`, `certificate`, `email`."
                  },
                  "with_history": {
                    "type": "string",
                    "description": "Whether or not to attach document history to the download. Allowed values: `no`, `after_each_document`, `after_merged_pdf`."
                  },
                  "document_order": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The order of documents in the merged file."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "type": "merged",
                    "with_history": "after_merged_pdf",
                    "document_order": [
                      "2731940ca423d065d99833df3dacf359a94e3e33",
                      "4f46709eecac1f77e69deb5d4dd8cc9167356954"
                    ]
                  }
                }
              },
              "examples": {
                "Download merged document group with history ": {
                  "value": {
                    "type": "merged",
                    "with_history": "after_merged_pdf",
                    "document_order": [
                      "27XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "4fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}": {
      "put": {
        "operationId": "put-document-group-v2",
        "summary": "Rename document group",
        "description": "Renames document group",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "The ID of a Document Group"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "group_name"
                ],
                "properties": {
                  "group_name": {
                    "type": "string"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "group_name": "Group name"
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "patch-v2-document-groups-document-group-id",
        "summary": "Edit document group",
        "description": "This endpoint allows users to reorder documents and update the action performed upon document group completion.\n> Document group should not have pending or fulfilled signature invites.\n",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "204": {
            "description": "Success."
          },
          "400": {
            "description": "**Authorization errors**\n\n**Validation errors:**\n- `order` type is incorrect.\n- Document ID is incorrect. Document IDs must follow the regex [a-z0-9] and be 40 characters long.\n- Document IDs are not unique.\n- `email_action_on_complete` value is incorrect.\n\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Authorization error": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Document IDs not unique": {
                    "value": {
                      "code": 46,
                      "message": "The order array must include unique document ids."
                    }
                  },
                  "Order type is incorrect": {
                    "value": {
                      "code": 46,
                      "message": "The order field must be an array"
                    }
                  },
                  "Document ID is incorrect": {
                    "value": {
                      "code": 46,
                      "message": "The order array must include valid unique document ids"
                    }
                  },
                  "email_action_on_complete is incorrect": {
                    "value": {
                      "code": 13022001,
                      "message": "The email_action_on_complete value you selected is not a valid choice."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Document group not found.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "message": "Document group `{uid}` not found"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `{uid}` not found"
                        }
                      ]
                    }
                  },
                  "DG not found": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `{uid}` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "- User is not the owner of the document group.\n- Payload documents do not match the group.\n- Document group has pending or fulfilled invites.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 65536,
                      "message": "You has not such DocumentGroup"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 65536,
                      "message": "You has not such DocumentGroup"
                    }
                  },
                  "User is not owner": {
                    "value": {
                      "code": 65536,
                      "message": "You do not have this DocumentGroup"
                    }
                  },
                  "Pending or fulfilled invites": {
                    "value": {
                      "code": 65594,
                      "message": "DocumentGroup has incorrect status"
                    }
                  },
                  "Documents do not match the group": {
                    "value": {
                      "code": 65585,
                      "message": "Documents in order are not equal to existing documents in the document group"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "order": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "List of document IDs in the group.\n"
                  },
                  "email_action_on_complete": {
                    "type": "string",
                    "example": "documents_and_attachments_only_to_recipients",
                    "description": "Specifies the action to be taken upon invite completion. Allowed values: \n`documents_and_attachments`: Email documents and attachments to all parties.\n`documents_and_attachments_only_to_recipients`: Email documents and attachments only to recipients.\n`without_documents_and_attachments`: Do not email documents or any attachments."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "order": [
                      "ffa1e7109013c26d5a706d34a9d0ad598f95afff",
                      "06d34a9d0ad598f95afa1ffa1e7109013c26d555"
                    ],
                    "email_action_on_complete": "documents_and_attachments_only_to_recipients"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "order": [
                      "ffa1e7109013c26d5a706d34a9d0ad598f95afff",
                      "06d34a9d0ad598f95afa1ffa1e7109013c26d555"
                    ],
                    "email_action_on_complete": "documents_and_attachments_only_to_recipients"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-document-group-info-v2",
        "summary": "Get document group info (v.2)",
        "description": "This endpoint allows API users to retrieve detailed information about a specific document group, including its documents, assigned roles, field and FreeForm invites, share info, owner details, and originator organization settings.\n\nAvailable to the document group owner and to any user invited on any step, regardless of the current invite or step status.\n\n**Notes**\n\n* Use the `include` query parameter to add optional data to the response. To request several values, separate them with commas, for example `?include=documents.fields,reminder`. Unknown values are ignored.\n* With `?include=documents.fields`, each item in `documents` contains a `fields` array. Without it, the response doesn't include `fields`, so existing integrations are not affected.\n* The objects in `fields` have the same format as the `fields` array of [`GET /document/{document_id}`](/docs/document/operations/get-document) and cover all field types it returns.\n* The response doesn't include dropdown options (`enumeration_options`) or checkbox groups (`checkbox_groups`). [`GET /document/{document_id}`](/docs/document/operations/get-document) returns them at the document level, so call it for each document that needs them.\n* To add or update fields, call [`PUT /document/{document_id}`](/docs/document/operations/edit-document) for each document.",
        "parameters": [
          {
            "in": "query",
            "name": "include=document_group_attributes",
            "type": "string",
            "required": false,
            "description": "If used, the response will contain document group attributes."
          },
          {
            "in": "query",
            "name": "include=reminder",
            "type": "string",
            "required": false,
            "description": "If used, the response includes `general_expiration_time`, `general_expiration_days`, and `general_reminder` — defaults applied to all recipients in the invite."
          },
          {
            "in": "query",
            "name": "include=documents.fields",
            "type": "string",
            "required": false,
            "description": "If used, each item in `documents` contains a `fields` array with the fields of that document."
          },
          {
            "in": "query",
            "name": "include=documents.freeform_invites",
            "type": "string",
            "required": false,
            "description": "If used, each item in `documents` contains a `freeform_invites` array with the FreeForm invites sent for that document."
          },
          {
            "in": "query",
            "name": "include=documents.signatures",
            "type": "string",
            "required": false,
            "description": "If used, each item in `documents` contains a `signatures` array with the signatures added to that document."
          },
          {
            "in": "query",
            "name": "include=entity_labels",
            "type": "string",
            "required": false,
            "description": "If used, the response contains `entity_labels`: the labels assigned to the document group."
          },
          {
            "in": "query",
            "name": "include=origin_dgt",
            "type": "string",
            "required": false,
            "description": "If used, the response contains `origin_dgt`: the document group template the document group was created from."
          },
          {
            "in": "query",
            "name": "include=recently_used",
            "type": "string",
            "required": false,
            "description": "If used, the response contains `recently_used`: the Unix timestamp of the last activity on the document group."
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "200": {
            "description": "- Request with correct token\n- Request with email group\n- Request with FreeForm invite\n- Request with `include=documents.fields`\n- Request with `include=documents.signatures,entity_labels,origin_dgt,recently_used`\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier of the document group."
                        },
                        "name": {
                          "type": "string",
                          "description": "Display name of the document group."
                        },
                        "owner": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "email": {
                              "type": "string"
                            },
                            "organization": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "description": "Information about the document group owner, including organization details."
                        },
                        "state": {
                          "enum": [
                            "created",
                            "pending",
                            "canceled",
                            "completed",
                            "declined",
                            "correction"
                          ],
                          "type": "string",
                          "description": "Current state of the document group. Possible values: `created` — the document group has been created; `pending` — an invite has been sent and is awaiting signing; `canceled` — the document group invite was canceled; `completed` — all signing steps are completed; `declined` — one of the signers declined to sign; `correction` — the document group is in correction mode."
                        },
                        "created": {
                          "type": "integer",
                          "description": "Unix timestamp when the document group was created."
                        },
                        "updated": {
                          "type": "integer",
                          "description": "Unix timestamp of the last update to the document group."
                        },
                        "cc_emails": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "List of email addresses to be CC'd on invite emails."
                        },
                        "documents": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "owner": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "email": {
                                    "type": "string"
                                  }
                                }
                              },
                              "roles": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "fields": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier of the field."
                                    },
                                    "role": {
                                      "type": "string",
                                      "description": "Name of the role the field is assigned to."
                                    },
                                    "type": {
                                      "enum": [
                                        "text",
                                        "signature",
                                        "checkbox",
                                        "initials",
                                        "enumeration",
                                        "attachment",
                                        "radiobutton",
                                        "hyperlink",
                                        "stamp"
                                      ],
                                      "type": "string",
                                      "description": "Field type."
                                    },
                                    "radio": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "integer",
                                            "description": "Horizontal position of the button, in pixels."
                                          },
                                          "y": {
                                            "type": "integer",
                                            "description": "Vertical position of the button, in pixels."
                                          },
                                          "value": {
                                            "type": "string",
                                            "description": "Value of the button."
                                          },
                                          "width": {
                                            "type": "integer",
                                            "description": "Width of the button, in pixels."
                                          },
                                          "height": {
                                            "type": "integer",
                                            "description": "Height of the button, in pixels."
                                          },
                                          "checked": {
                                            "type": "integer",
                                            "description": "`1` if the button is selected, `0` otherwise."
                                          },
                                          "created": {
                                            "type": "integer",
                                            "description": "Unix timestamp when the button was created."
                                          },
                                          "radio_id": {
                                            "type": "string",
                                            "description": "Unique identifier of the radio button."
                                          },
                                          "page_number": {
                                            "type": "integer",
                                            "description": "Zero-based number of the page the button is on."
                                          },
                                          "json_attributes": {
                                            "type": "array",
                                            "items": {},
                                            "description": "Additional button attributes. Empty array if none."
                                          }
                                        }
                                      },
                                      "description": "For `radiobutton` fields only: the buttons in the radio group."
                                    },
                                    "role_id": {
                                      "type": "string",
                                      "description": "Unique identifier of the role the field is assigned to. Role IDs are unique per document: a role with the same name has a different `role_id` in each document of the group. To match roles across documents, use `role`."
                                    },
                                    "field_id": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Same value as `field_request_id`. Kept for compatibility with `GET /document/{document_id}`."
                                    },
                                    "fulfiller": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Email address of the recipient the field is assigned to through an invite. `null` if no invite has been sent for the field."
                                    },
                                    "element_id": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Unique identifier of the value the recipient entered in the field. `null` until the field is filled in."
                                    },
                                    "originator": {
                                      "type": "string",
                                      "description": "Email address of the document owner."
                                    },
                                    "json_attributes": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "integer",
                                          "description": "Horizontal position of the field on the page, in pixels."
                                        },
                                        "y": {
                                          "type": "integer",
                                          "description": "Vertical position of the field on the page, in pixels."
                                        },
                                        "bold": {
                                          "type": "boolean",
                                          "description": "`true` if the text is bold."
                                        },
                                        "font": {
                                          "type": "string",
                                          "description": "Font name, for example `Arial`."
                                        },
                                        "name": {
                                          "type": "string",
                                          "description": "Name of the field."
                                        },
                                        "size": {
                                          "type": "number",
                                          "description": "Font size in the SignNow editor scale, where the page is rendered `890` pixels wide. From `8` to `72`."
                                        },
                                        "align": {
                                          "enum": [
                                            "left",
                                            "center",
                                            "right"
                                          ],
                                          "type": "string",
                                          "description": "Horizontal text alignment."
                                        },
                                        "color": {
                                          "type": "string",
                                          "description": "Text color as a 6-character hex code without `#`, for example `000000`."
                                        },
                                        "label": {
                                          "type": "string",
                                          "description": "Label of the field shown to the recipient. Returned only if a label is set."
                                        },
                                        "value": {
                                          "type": "string",
                                          "description": "For `checkbox` fields: the checkbox label."
                                        },
                                        "width": {
                                          "type": "integer",
                                          "description": "Width of the field, in pixels."
                                        },
                                        "height": {
                                          "type": "integer",
                                          "description": "Height of the field, in pixels."
                                        },
                                        "italic": {
                                          "type": "boolean",
                                          "description": "`true` if the text is italic."
                                        },
                                        "valign": {
                                          "enum": [
                                            "top",
                                            "middle",
                                            "bottom"
                                          ],
                                          "type": "string",
                                          "description": "Vertical text alignment."
                                        },
                                        "required": {
                                          "type": "boolean",
                                          "description": "`true` if the recipient must fill in the field."
                                        },
                                        "font_size": {
                                          "type": "number",
                                          "description": "Font size on the document page, in PDF points. The same size as `size`, converted to the page scale."
                                        },
                                        "max_chars": {
                                          "type": "integer",
                                          "description": "Maximum number of characters the recipient can enter. From `0` to `999`; `0` means no limit."
                                        },
                                        "max_lines": {
                                          "type": "integer",
                                          "description": "Maximum number of lines the recipient can enter. From `0` to `99`; `0` means no limit."
                                        },
                                        "underline": {
                                          "type": "boolean",
                                          "description": "`true` if the text is underlined."
                                        },
                                        "arrangement": {
                                          "enum": [
                                            "none",
                                            "cells"
                                          ],
                                          "type": "string",
                                          "description": "How the text is laid out in the field. `none`: regular text. `cells`: one character per cell; `max_lines` is then `1`."
                                        },
                                        "page_number": {
                                          "type": "integer",
                                          "description": "Zero-based number of the page the field is on."
                                        },
                                        "allowed_types": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          },
                                          "description": "For `signature` fields: the ways the recipient can add a signature. Possible values: `type`, `draw`, `upload`."
                                        },
                                        "prefilled_text": {
                                          "type": "string",
                                          "description": "For `checkbox` fields: `\"0\"` if the checkbox is not checked by default. For `text` fields: the prefilled value, if set."
                                        },
                                        "custom_defined_option": {
                                          "type": "string",
                                          "description": "For `enumeration` (dropdown) fields: whether the recipient can enter their own value instead of choosing a listed option. An empty string or `false` means they can't."
                                        }
                                      },
                                      "description": "Position, size, and settings of the field. The set of keys depends on the field type."
                                    },
                                    "field_request_id": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Unique identifier of the field request created when the invite was sent. If the field has several field requests, the fulfilled one is returned, otherwise the one for the requesting user or the first one. `null` if no invite has been sent for the field."
                                    },
                                    "template_field_id": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Unique identifier of the template field this field was created from. `null` if the field was not created from a template."
                                    },
                                    "field_request_canceled": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Always `null`. Kept for compatibility with `GET /document/{document_id}`."
                                    }
                                  }
                                },
                                "description": "Fields in the document. Returned only with `?include=documents.fields`. An empty array if the document has no fields. Each object has the same format as an item of the `fields` array returned by [`GET /document/{document_id}`](/docs/document/operations/get-document)."
                              },
                              "updated": {
                                "type": "integer"
                              },
                              "settings": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {}
                                }
                              },
                              "folder_id": {
                                "type": "string",
                                "x-nullable": true
                              },
                              "thumbnail": {
                                "type": "object",
                                "properties": {
                                  "large": {
                                    "type": "string"
                                  },
                                  "small": {
                                    "type": "string"
                                  },
                                  "medium": {
                                    "type": "string"
                                  }
                                }
                              },
                              "has_fields": {
                                "type": "boolean"
                              },
                              "page_count": {
                                "type": "integer"
                              },
                              "signatures": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier of the signature."
                                    },
                                    "created": {
                                      "type": "string",
                                      "description": "Unix timestamp when the signature was added, as a string."
                                    },
                                    "user_id": {
                                      "type": "string",
                                      "description": "Unique identifier of the user who added the signature."
                                    }
                                  }
                                },
                                "description": "Signatures added to the document. Returned only with `?include=documents.signatures`."
                              },
                              "document_name": {
                                "type": "string"
                              },
                              "field_invites": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "role": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string"
                                    },
                                    "status": {
                                      "type": "string"
                                    },
                                    "created": {
                                      "type": "integer"
                                    },
                                    "message": {
                                      "type": "string",
                                      "x-nullable": true
                                    },
                                    "updated": {
                                      "type": "integer"
                                    },
                                    "language": {
                                      "type": "string",
                                      "x-nullable": true
                                    },
                                    "compliance": {
                                      "type": "object",
                                      "properties": {
                                        "cfr": {
                                          "type": "string",
                                          "x-nullable": true
                                        }
                                      }
                                    },
                                    "email_group": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "x-nullable": true
                                        },
                                        "name": {
                                          "type": "string",
                                          "x-nullable": true
                                        }
                                      }
                                    },
                                    "signer_email": {
                                      "type": "string"
                                    },
                                    "signing_order": {
                                      "type": "integer"
                                    },
                                    "email_statuses": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "status": {
                                            "enum": [
                                              "sent",
                                              "mail_open",
                                              "bounce",
                                              "mail_click",
                                              "reminder_sent",
                                              "undefined"
                                            ],
                                            "type": "string",
                                            "description": "Email delivery event status. Possible values: `sent` — email was successfully sent to the recipient; `mail_open` — email was opened by the recipient; `bounce` — email bounced, delivery failed (e.g. invalid address); `mail_click` — a link in the email was clicked by the recipient; `reminder_sent` — a reminder email was sent to the recipient; `undefined` — the event status is unknown."
                                          },
                                          "created_at": {
                                            "type": "integer",
                                            "description": "Unix timestamp when the event was recorded."
                                          },
                                          "last_reaction_at": {
                                            "type": "integer",
                                            "description": "Unix timestamp of the last status update."
                                          }
                                        }
                                      },
                                      "description": "List of email delivery events recorded for this invite. Each object represents one event. The array is empty (`[]`) if no email events have been recorded yet."
                                    },
                                    "short_link_url": {
                                      "type": "string",
                                      "x-nullable": true
                                    },
                                    "signature_type": {
                                      "type": "string",
                                      "x-nullable": true
                                    },
                                    "expiration_days": {
                                      "type": "integer"
                                    },
                                    "expiration_time": {
                                      "type": "integer",
                                      "x-nullable": true
                                    },
                                    "payment_request": {
                                      "type": "string",
                                      "x-nullable": true
                                    },
                                    "is_full_declined": {
                                      "type": "boolean"
                                    },
                                    "next_reminder_at": {
                                      "type": "integer",
                                      "x-nullable": true
                                    },
                                    "sms_sent_statuses": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {}
                                      }
                                    },
                                    "password_protected": {
                                      "type": "string"
                                    },
                                    "signer_phone_invite": {
                                      "type": "string",
                                      "x-nullable": true
                                    }
                                  }
                                }
                              },
                              "allow_to_remove": {
                                "type": "boolean"
                              },
                              "freeform_invites": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier of the FreeForm invite (signature request)."
                                    },
                                    "email": {
                                      "type": "string",
                                      "description": "Email address of the recipient."
                                    },
                                    "status": {
                                      "type": "string",
                                      "description": "Status of the invite, for example `pending` or `fulfilled`."
                                    },
                                    "language": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Language of the invite email, for example `en`. `null` if not set."
                                    },
                                    "email_statuses": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "status": {
                                            "enum": [
                                              "sent",
                                              "mail_open",
                                              "bounce",
                                              "mail_click",
                                              "undefined"
                                            ],
                                            "type": "string",
                                            "description": "Email delivery event status for this FreeForm invite. Possible values: `sent` — email was successfully sent to the recipient; `mail_open` — email was opened by the recipient; `bounce` — email bounced, delivery failed (e.g. invalid address); `mail_click` — a link in the email was clicked by the recipient; `undefined` — the event status is unknown."
                                          },
                                          "created_at": {
                                            "type": "integer",
                                            "description": "Unix timestamp when the event was recorded."
                                          },
                                          "last_reaction_at": {
                                            "type": "integer",
                                            "description": "Unix timestamp of the last status update."
                                          }
                                        }
                                      },
                                      "description": "List of email delivery events recorded for this FreeForm invite. Each object represents one event. The array is empty (`[]`) if no email events have been recorded yet."
                                    }
                                  }
                                },
                                "description": "FreeForm invites sent for the document. Returned only with `?include=documents.freeform_invites`. Canceled invites are not returned."
                              },
                              "shared_with_team": {
                                "type": "string",
                                "x-nullable": true
                              },
                              "origin_document_id": {
                                "type": "string",
                                "x-nullable": true
                              },
                              "has_unassigned_field": {
                                "type": "boolean"
                              },
                              "has_credit_card_number": {
                                "type": "boolean"
                              }
                            }
                          },
                          "description": "List of documents in the document group."
                        },
                        "folder_id": {
                          "type": "string",
                          "x-nullable": true,
                          "description": "Unique identifier of the folder that contains the document group, or `null` if the group is not in a folder."
                        },
                        "invite_id": {
                          "type": "string",
                          "x-nullable": true,
                          "description": "Unique identifier of the active group invite, or `null` if no invite has been created."
                        },
                        "expires_at": {
                          "type": "integer",
                          "x-nullable": true,
                          "description": "Unix timestamp (Unix time, seconds) of the soonest expiration among pending field invites, including embedded invites, while the document group is in the `pending` or `correction` state. Unlike `general_expiration_time`, it is returned without `?include=reminder`. `null` for FreeForm invites, for document groups in the `completed`, `canceled`, or `declined` state, and when no pending invite has an expiration time yet, for example an embedded invite before its signing link is generated."
                        },
                        "origin_dgt": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier of the document group template."
                            },
                            "owner_id": {
                              "type": "string",
                              "description": "Unique identifier of the template owner."
                            },
                            "template_group_name": {
                              "type": "string",
                              "description": "Name of the document group template."
                            }
                          },
                          "x-nullable": true,
                          "description": "Document group template the document group was created from. Returned only with `?include=origin_dgt`. `null` if the group was not created from a template."
                        },
                        "share_info": {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string"
                            },
                            "is_team_shared": {
                              "type": "boolean"
                            },
                            "is_personally_shared_to_others": {
                              "type": "boolean"
                            }
                          },
                          "description": "Sharing information for the document group, including team-level and personal sharing flags and the requesting user's role."
                        },
                        "owner_email": {
                          "type": "string",
                          "description": "Email address of the document group owner."
                        },
                        "sender_name": {
                          "type": "string",
                          "x-nullable": true,
                          "description": "Display name of the user who sent the most recent invite for this document group."
                        },
                        "completed_at": {
                          "type": "integer",
                          "x-nullable": true,
                          "description": "Unix timestamp (Unix time, seconds) when the document group reached the `completed` state. `null` in any other state."
                        },
                        "sender_email": {
                          "type": "string",
                          "x-nullable": true,
                          "description": "Email address of the user who sent the most recent invite for this document group."
                        },
                        "entity_labels": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "updated": {
                                "type": "integer",
                                "description": "Unix timestamp (seconds) when the label was last updated."
                              },
                              "is_system": {
                                "type": "boolean",
                                "description": "`true` if SignNow assigned the label automatically."
                              },
                              "label_name": {
                                "type": "string",
                                "description": "Name of the label, for example `undelivered` or `declined`."
                              }
                            }
                          },
                          "description": "Active labels assigned to the document group, for example when an invite email can't be delivered or a recipient declines to sign. Returned only with `?include=entity_labels`. An empty array if the group has no labels."
                        },
                        "mail_provider": {
                          "type": "string",
                          "x-nullable": true,
                          "description": "Mail provider used for sending invite emails. `null` if the default provider is used."
                        },
                        "recently_used": {
                          "type": "integer",
                          "description": "Unix timestamp of the last activity on the document group in the owner's folder. If not available, the same value as `updated`. Returned only with `?include=recently_used`."
                        },
                        "last_invite_id": {
                          "type": "string",
                          "x-nullable": true,
                          "description": "Unique identifier of the most recent invite sent for this document group."
                        },
                        "sign_as_merged": {
                          "type": "boolean",
                          "description": "`true` if the documents in the group are signed as a single merged document; `false` if signed individually."
                        },
                        "freeform_invite": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "x-nullable": true
                            },
                            "last_id": {
                              "type": "string",
                              "x-nullable": true
                            },
                            "message": {
                              "type": "string",
                              "x-nullable": true
                            }
                          },
                          "description": "Information about the FreeForm invite associated with this document group. The `id`, `last_id`, and `message` are `null` if no FreeForm invite has been created."
                        },
                        "pending_step_id": {
                          "type": "string",
                          "x-nullable": true,
                          "description": "Unique identifier of the current pending step in the signing flow, or `null` if no step is pending."
                        },
                        "general_reminder": {
                          "type": "object",
                          "properties": {
                            "remind_after": {
                              "type": "integer",
                              "description": "Days after invite is sent before a reminder is delivered."
                            },
                            "remind_before": {
                              "type": "integer",
                              "description": "Days before expiration when a reminder is delivered."
                            },
                            "remind_repeat": {
                              "type": "integer",
                              "description": "Days between repeated reminders."
                            }
                          },
                          "x-nullable": true,
                          "description": "Default `reminder` applied to all recipients in the invite. Returned only with `?include=reminder`."
                        },
                        "scheduled_invite": {
                          "type": "string",
                          "x-nullable": true,
                          "description": "Information about a scheduled invite for the document group, or `null` if no invite is scheduled."
                        },
                        "general_expiration_days": {
                          "type": "integer",
                          "x-nullable": true,
                          "description": "Default `expiration_days` applied to all recipients in the invite. Returned only with `?include=reminder`."
                        },
                        "general_expiration_time": {
                          "type": "integer",
                          "x-nullable": true,
                          "description": "Default expiration timestamp (Unix time, seconds) applied to all recipients in the invite. Returned only with `?include=reminder`."
                        },
                        "email_action_on_complete": {
                          "type": "string",
                          "x-nullable": true,
                          "description": "Specifies how documents are emailed when the document group invite is completed. `null` if no action is configured."
                        },
                        "document_group_attributes": {
                          "type": "object",
                          "properties": {
                            "from_name": {
                              "type": "string"
                            },
                            "from_email": {
                              "type": "string"
                            }
                          },
                          "description": "Custom attributes for the document group, such as the sender email and sender name used for invites."
                        },
                        "originator_organization_settings": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {}
                          },
                          "description": "Organization-level settings inherited from the document group owner's organization."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "id": "b8002b2cdbb34b0195415b69e903be6daf6931b8",
                        "name": "Test Document group 1673439682",
                        "owner": {
                          "id": "34d03c52ebcd4157a28eed0c750ed59aed9c0e65",
                          "email": "owner@email.com",
                          "organization": {
                            "id": "37dfe4bf310affafa9ce60591b1019e20f27a63b"
                          }
                        },
                        "state": "pending",
                        "created": 1673439682,
                        "cc_emails": [
                          "signer1@email.com",
                          "signer2@email.com"
                        ],
                        "documents": [],
                        "folder_id": null,
                        "invite_id": "7f1f0e1aac0d4b27a6f47228c28c0eec8c02f738",
                        "owner_email": "owner@email.com",
                        "last_invite_id": "7f1f0e1aac0d4b27a6f47228c28c0eec8c02f738",
                        "freeform_invite": {
                          "id": null,
                          "last_id": null
                        },
                        "pending_step_id": "zzzz2626fabd4319a4eb321e904c8f4272876d88",
                        "general_reminder": {
                          "remind_after": 3,
                          "remind_before": 5,
                          "remind_repeat": 7
                        },
                        "general_expiration_days": 30,
                        "general_expiration_time": null
                      }
                    }
                  }
                },
                "examples": {
                  "Field invite": {
                    "value": {
                      "data": {
                        "id": "d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "name": "Sample document group",
                        "owner": {
                          "id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "owner@email.com",
                          "organization": {
                            "id": "1eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          }
                        },
                        "state": "pending",
                        "created": 1774375376,
                        "updated": 1777288567,
                        "cc_emails": [],
                        "documents": [
                          {
                            "id": "d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "owner": {
                              "id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email": "owner@email.com"
                            },
                            "roles": [
                              "Candidate",
                              "HR manager",
                              "Viewer 2",
                              "Viewer 3"
                            ],
                            "updated": 1777288568,
                            "settings": [],
                            "folder_id": "edXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "thumbnail": {
                              "large": "https://api.signnow.com/document/d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                              "small": "https://api.signnow.com/document/d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                              "medium": "https://api.signnow.com/document/d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                            },
                            "has_fields": true,
                            "page_count": 1,
                            "document_name": "Offerletter",
                            "field_invites": [
                              {
                                "id": "c9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "HR manager",
                                "action": "approve",
                                "status": "pending",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer1@email.com",
                                "signing_order": 1,
                                "email_statuses": [
                                  {
                                    "status": "sent",
                                    "created_at": 1777288569,
                                    "last_reaction_at": 1777288569
                                  },
                                  {
                                    "status": "mail_open",
                                    "created_at": 1777289723,
                                    "last_reaction_at": 1777289723
                                  }
                                ],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": 1779880568,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              },
                              {
                                "id": "5aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Candidate",
                                "action": "sign",
                                "status": "created",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer2@email.com",
                                "signing_order": 2,
                                "email_statuses": [],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": null,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              },
                              {
                                "id": "54XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Viewer 2",
                                "action": "view",
                                "status": "created",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer3@email.com",
                                "signing_order": 3,
                                "email_statuses": [],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": null,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              },
                              {
                                "id": "f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Viewer 3",
                                "action": "view",
                                "status": "created",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer4@email.com",
                                "signing_order": 4,
                                "email_statuses": [],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": null,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              }
                            ],
                            "allow_to_remove": true,
                            "shared_with_team": null,
                            "origin_document_id": "7cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "owner": {
                              "id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email": "owner@email.com"
                            },
                            "roles": [
                              "CEO",
                              "Employee",
                              "HR manager",
                              "Viewer 1"
                            ],
                            "updated": 1777288568,
                            "settings": [],
                            "folder_id": "edXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "thumbnail": {
                              "large": "https://api.signnow.com/document/d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                              "small": "https://api.signnow.com/document/d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                              "medium": "https://api.signnow.com/document/d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                            },
                            "has_fields": true,
                            "page_count": 1,
                            "document_name": "EMPLOYMENTCONTRACT",
                            "field_invites": [
                              {
                                "id": "fbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "HR manager",
                                "action": "approve",
                                "status": "pending",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer1@email.com",
                                "signing_order": 1,
                                "email_statuses": [
                                  {
                                    "status": "sent",
                                    "created_at": 1777288569,
                                    "last_reaction_at": 1777288569
                                  },
                                  {
                                    "status": "mail_open",
                                    "created_at": 1777289723,
                                    "last_reaction_at": 1777289723
                                  }
                                ],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": 1779880568,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              },
                              {
                                "id": "20XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Viewer 1",
                                "action": "view",
                                "status": "created",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer3@email.com",
                                "signing_order": 2,
                                "email_statuses": [],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": null,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              },
                              {
                                "id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "CEO",
                                "action": "sign",
                                "status": "created",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer2@email.com",
                                "signing_order": 3,
                                "email_statuses": [],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": null,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              },
                              {
                                "id": "14XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Employee",
                                "action": "sign",
                                "status": "created",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer4@email.com",
                                "signing_order": 4,
                                "email_statuses": [],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": null,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              }
                            ],
                            "allow_to_remove": true,
                            "shared_with_team": null,
                            "origin_document_id": "2dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          }
                        ],
                        "folder_id": "edXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "invite_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "expires_at": 1779880568,
                        "share_info": {
                          "role": "owner",
                          "is_team_shared": false,
                          "is_personally_shared_to_others": false
                        },
                        "owner_email": "owner@email.com",
                        "sender_name": "Sample Sender",
                        "completed_at": null,
                        "sender_email": "owner@email.com",
                        "mail_provider": null,
                        "last_invite_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "sign_as_merged": true,
                        "freeform_invite": {
                          "id": null,
                          "last_id": null,
                          "message": null
                        },
                        "pending_step_id": "acXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "general_reminder": {
                          "remind_after": 3,
                          "remind_before": 5,
                          "remind_repeat": 7
                        },
                        "scheduled_invite": null,
                        "general_expiration_days": 30,
                        "general_expiration_time": null,
                        "email_action_on_complete": null,
                        "document_group_attributes": {
                          "from_name": "Sample Sender",
                          "from_email": "owner@email.com"
                        },
                        "originator_organization_settings": [
                          {
                            "value": "no",
                            "setting": "digitally_sign_dowloaded_docs"
                          },
                          {
                            "value": "no",
                            "setting": "electronic_consent_required"
                          },
                          {
                            "value": "0",
                            "setting": "require_email_subject"
                          },
                          {
                            "value": "0",
                            "setting": "require_authentication_for_invites"
                          },
                          {
                            "value": "https://www.signnow.com/",
                            "setting": "invite_canceled_redirect_url"
                          },
                          {
                            "value": "https://app.signnow.com/webapp/",
                            "setting": "invite_completion_redirect_url"
                          },
                          {
                            "value": "https://app.signnow.com/webapp/",
                            "setting": "invite_decline_redirect_url"
                          },
                          {
                            "value": "https://app.signnow.com/webapp/",
                            "setting": "save_draft_redirect_url"
                          },
                          {
                            "value": "0",
                            "setting": "disable_branding_setup"
                          },
                          {
                            "value": "1",
                            "setting": "guide_signers_only_through_required_fields"
                          },
                          {
                            "value": "1",
                            "setting": "document_guide"
                          },
                          {
                            "value": "0",
                            "setting": "required_preset_signature_name"
                          },
                          {
                            "value": "0",
                            "setting": "require_login_for_signing"
                          },
                          {
                            "value": "0",
                            "setting": "logout_on_signing"
                          },
                          {
                            "value": "0",
                            "setting": "front_end_session_length"
                          },
                          {
                            "value": "0",
                            "setting": "add_signature_stamp_with_name"
                          },
                          {
                            "value": "0",
                            "setting": "cfr_title_21_part_11"
                          },
                          {
                            "value": "0",
                            "setting": "no_user_signature_return"
                          },
                          {
                            "value": "0",
                            "setting": "disable_email_notifications"
                          },
                          {
                            "value": "no",
                            "setting": "block_login_via_social_networks"
                          },
                          {
                            "value": "0",
                            "setting": "hide_upgrade_subscription_button"
                          },
                          {
                            "value": "0",
                            "setting": "hide_decline_to_sign_option_in_signing_session"
                          },
                          {
                            "value": "1",
                            "setting": "common_experiments"
                          },
                          {
                            "value": "0",
                            "setting": "have_merged_document_group_option"
                          },
                          {
                            "value": "0",
                            "setting": "allow_download_certificate"
                          },
                          {
                            "value": "30",
                            "setting": "invite_expiration_days"
                          },
                          {
                            "value": "0",
                            "setting": "allow_big_count_of_attachment_fields_per_document"
                          },
                          {
                            "value": "0",
                            "setting": "allow_big_attachment_file"
                          },
                          {
                            "value": "0",
                            "setting": "enable_hyperlink_field"
                          },
                          {
                            "value": "0",
                            "setting": "disable_download_action_in_editor"
                          },
                          {
                            "value": "bottom",
                            "setting": "signature_stamp_position"
                          },
                          {
                            "value": "1",
                            "setting": "save_signer_signature_and_initials"
                          },
                          {
                            "value": "1",
                            "setting": "auto_apply_signatures_and_initials_to_document_fields"
                          },
                          {
                            "value": "0",
                            "setting": "receive_signer_email_after_sent_field_invite_to_yourself"
                          },
                          {
                            "value": "0",
                            "setting": "allow_edit_document_after_signing"
                          },
                          {
                            "value": "0",
                            "setting": "enable_render_pages_in_editor_as_images"
                          },
                          {
                            "value": "off",
                            "setting": "every_signature_and_initials_field_requires_user_authentication"
                          },
                          {
                            "value": "0",
                            "setting": "enable_team_admin_move_docs"
                          },
                          {
                            "value": "0",
                            "setting": "allow_team_admin_rename_docs"
                          },
                          {
                            "value": "0",
                            "setting": "disable_email_recipients"
                          },
                          {
                            "value": "0",
                            "setting": "allow_qes"
                          },
                          {
                            "value": "0",
                            "setting": "enable_qes"
                          },
                          {
                            "value": "0",
                            "setting": "add_signers_name_to_document_history_header"
                          }
                        ]
                      }
                    }
                  },
                  "Freeform invite": {
                    "value": {
                      "data": {
                        "id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "name": "Sample document group with freeform invite",
                        "owner": {
                          "id": "f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "owner@email.com",
                          "organization": {
                            "id": "e0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          }
                        },
                        "state": "pending",
                        "created": 1686312228,
                        "updated": 1686312300,
                        "cc_emails": [],
                        "documents": [
                          {
                            "id": "07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "owner": {
                              "id": "f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email": "owner@email.com"
                            },
                            "roles": [
                              "Signer 1"
                            ],
                            "updated": 1686312233,
                            "settings": [],
                            "folder_id": null,
                            "thumbnail": {
                              "large": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                              "small": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                              "medium": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                            },
                            "has_fields": false,
                            "page_count": 1,
                            "document_name": "Sample document",
                            "field_invites": [],
                            "allow_to_remove": true,
                            "freeform_invites": [
                              {
                                "id": "ffXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "email": "signer@email.com",
                                "status": "pending",
                                "language": null,
                                "email_statuses": [
                                  {
                                    "status": "sent",
                                    "created_at": 1686312234,
                                    "last_reaction_at": 1686312234
                                  },
                                  {
                                    "status": "mail_open",
                                    "created_at": 1686398634,
                                    "last_reaction_at": 1686398634
                                  }
                                ]
                              }
                            ],
                            "shared_with_team": null,
                            "origin_document_id": null,
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          }
                        ],
                        "folder_id": null,
                        "invite_id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "expires_at": null,
                        "share_info": {
                          "role": "owner",
                          "is_team_shared": false,
                          "is_personally_shared_to_others": false
                        },
                        "owner_email": "owner@email.com",
                        "sender_name": "Sample Sender",
                        "completed_at": null,
                        "sender_email": "owner@email.com",
                        "mail_provider": null,
                        "last_invite_id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "sign_as_merged": false,
                        "freeform_invite": {
                          "id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "last_id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "message": null
                        },
                        "pending_step_id": null,
                        "general_reminder": null,
                        "scheduled_invite": null,
                        "general_expiration_days": null,
                        "general_expiration_time": null,
                        "email_action_on_complete": null,
                        "document_group_attributes": {
                          "from_name": "Sample Sender",
                          "from_email": "owner@email.com"
                        },
                        "originator_organization_settings": []
                      }
                    }
                  },
                  "Signing completed": {
                    "value": {
                      "data": {
                        "id": "02XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "name": "Group with email_group invite",
                        "owner": {
                          "id": "f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "owner@email.com",
                          "organization": {
                            "id": "e0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          }
                        },
                        "state": "completed",
                        "created": 1686312228,
                        "updated": 1777375000,
                        "cc_emails": [],
                        "documents": [
                          {
                            "id": "07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "owner": {
                              "id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email": "owner@email.com"
                            },
                            "roles": [
                              "Signer 1"
                            ],
                            "updated": 1777288568,
                            "settings": [],
                            "folder_id": "edXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "thumbnail": {
                              "large": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                              "small": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                              "medium": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                            },
                            "has_fields": true,
                            "page_count": 1,
                            "document_name": "Sample document",
                            "field_invites": [
                              {
                                "id": "2bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "action": "sign",
                                "status": "fulfilled",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": "3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "name": "Sample group name"
                                },
                                "signer_email": "signer1@email.com",
                                "signing_order": 1,
                                "email_statuses": [
                                  {
                                    "status": "sent",
                                    "created_at": 1777288569,
                                    "last_reaction_at": 1777288569
                                  },
                                  {
                                    "status": "mail_open",
                                    "created_at": 1777289723,
                                    "last_reaction_at": 1777289723
                                  }
                                ],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": 1779880568,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              }
                            ],
                            "allow_to_remove": true,
                            "shared_with_team": null,
                            "origin_document_id": null,
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          }
                        ],
                        "folder_id": null,
                        "invite_id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "expires_at": null,
                        "share_info": {
                          "role": "owner",
                          "is_team_shared": false,
                          "is_personally_shared_to_others": false
                        },
                        "owner_email": "owner@email.com",
                        "sender_name": "Sample Sender",
                        "completed_at": 1777375000,
                        "sender_email": "owner@email.com",
                        "mail_provider": null,
                        "last_invite_id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "sign_as_merged": false,
                        "freeform_invite": {
                          "id": null,
                          "last_id": null,
                          "message": null
                        },
                        "pending_step_id": null,
                        "general_reminder": null,
                        "scheduled_invite": null,
                        "general_expiration_days": null,
                        "general_expiration_time": null,
                        "email_action_on_complete": null,
                        "document_group_attributes": {
                          "from_name": "Sample Sender",
                          "from_email": "owner@email.com"
                        },
                        "originator_organization_settings": []
                      }
                    }
                  },
                  "With document fields": {
                    "value": {
                      "data": {
                        "id": "49XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "name": "Sample document group",
                        "owner": {
                          "id": "99XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "owner@email.com",
                          "organization": {
                            "id": "78XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          }
                        },
                        "state": "pending",
                        "created": 1777288000,
                        "updated": 1777288567,
                        "cc_emails": [],
                        "documents": [
                          {
                            "id": "f4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "owner": {
                              "id": "99XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email": "owner@email.com"
                            },
                            "roles": [
                              "Signer 1",
                              "Signer 2"
                            ],
                            "fields": [
                              {
                                "id": "a9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "type": "text",
                                "role_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "field_id": "a5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "fulfiller": "signer1@email.com",
                                "element_id": null,
                                "originator": "owner@email.com",
                                "json_attributes": {
                                  "x": 84,
                                  "y": 485,
                                  "bold": false,
                                  "font": "Arial",
                                  "name": "Text Field 5",
                                  "size": 12,
                                  "align": "left",
                                  "color": "000000",
                                  "width": 207,
                                  "height": 21,
                                  "italic": false,
                                  "valign": "top",
                                  "required": true,
                                  "font_size": 8,
                                  "max_chars": 0,
                                  "max_lines": 0,
                                  "underline": false,
                                  "arrangement": "none",
                                  "page_number": 0
                                },
                                "field_request_id": "a5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "template_field_id": null,
                                "field_request_canceled": null
                              },
                              {
                                "id": "64XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 2",
                                "type": "text",
                                "role_id": "3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "field_id": "bdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "fulfiller": "signer2@email.com",
                                "element_id": null,
                                "originator": "owner@email.com",
                                "json_attributes": {
                                  "x": 321,
                                  "y": 485,
                                  "bold": false,
                                  "font": "Arial",
                                  "name": "Text Field 7",
                                  "size": 12,
                                  "align": "left",
                                  "color": "000000",
                                  "width": 208,
                                  "height": 21,
                                  "italic": false,
                                  "valign": "top",
                                  "required": true,
                                  "font_size": 8,
                                  "max_chars": 0,
                                  "max_lines": 0,
                                  "underline": false,
                                  "arrangement": "none",
                                  "page_number": 0
                                },
                                "field_request_id": "bdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "template_field_id": null,
                                "field_request_canceled": null
                              },
                              {
                                "id": "caXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "type": "signature",
                                "role_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "field_id": "90XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "fulfiller": "signer1@email.com",
                                "element_id": null,
                                "originator": "owner@email.com",
                                "json_attributes": {
                                  "x": 83,
                                  "y": 444,
                                  "name": "Signature 1",
                                  "width": 208,
                                  "height": 25,
                                  "required": true,
                                  "page_number": 0,
                                  "allowed_types": [
                                    "type",
                                    "draw",
                                    "upload"
                                  ]
                                },
                                "field_request_id": "90XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "template_field_id": null,
                                "field_request_canceled": null
                              },
                              {
                                "id": "9bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 2",
                                "type": "signature",
                                "role_id": "3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "field_id": "88XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "fulfiller": "signer2@email.com",
                                "element_id": null,
                                "originator": "owner@email.com",
                                "json_attributes": {
                                  "x": 321,
                                  "y": 444,
                                  "name": "Signature 3",
                                  "width": 208,
                                  "height": 24,
                                  "required": true,
                                  "page_number": 0,
                                  "allowed_types": [
                                    "type",
                                    "draw",
                                    "upload"
                                  ]
                                },
                                "field_request_id": "88XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "template_field_id": null,
                                "field_request_canceled": null
                              }
                            ],
                            "updated": 1777288568,
                            "settings": [],
                            "folder_id": "d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "thumbnail": {
                              "large": "https://api.signnow.com/document/f4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                              "small": "https://api.signnow.com/document/f4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                              "medium": "https://api.signnow.com/document/f4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                            },
                            "has_fields": true,
                            "page_count": 1,
                            "document_name": "Subcontract agreement",
                            "field_invites": [
                              {
                                "id": "ffXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "action": "sign",
                                "status": "pending",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer1@email.com",
                                "signing_order": 1,
                                "email_statuses": [
                                  {
                                    "status": "sent",
                                    "created_at": 1777288569,
                                    "last_reaction_at": 1777288569
                                  }
                                ],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": 1779880568,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              },
                              {
                                "id": "4cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 2",
                                "action": "sign",
                                "status": "pending",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer2@email.com",
                                "signing_order": 1,
                                "email_statuses": [
                                  {
                                    "status": "sent",
                                    "created_at": 1777288569,
                                    "last_reaction_at": 1777288569
                                  }
                                ],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": 1779880568,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              }
                            ],
                            "allow_to_remove": true,
                            "shared_with_team": null,
                            "origin_document_id": null,
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "83XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "owner": {
                              "id": "99XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email": "owner@email.com"
                            },
                            "roles": [
                              "Signer 1",
                              "Viewer 1"
                            ],
                            "fields": [
                              {
                                "id": "18XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "type": "checkbox",
                                "role_id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "field_id": "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "fulfiller": "signer1@email.com",
                                "element_id": null,
                                "originator": "owner@email.com",
                                "json_attributes": {
                                  "x": 253,
                                  "y": 687,
                                  "name": "Checkbox 1",
                                  "value": "Age 15-20",
                                  "width": 11,
                                  "height": 11,
                                  "required": false,
                                  "page_number": 0,
                                  "prefilled_text": "0"
                                },
                                "field_request_id": "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "template_field_id": null,
                                "field_request_canceled": null
                              },
                              {
                                "id": "13XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "type": "checkbox",
                                "role_id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "field_id": "33XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "fulfiller": "signer1@email.com",
                                "element_id": null,
                                "originator": "owner@email.com",
                                "json_attributes": {
                                  "x": 253,
                                  "y": 704,
                                  "name": "Checkbox 2",
                                  "value": "Age 20-30",
                                  "width": 11,
                                  "height": 11,
                                  "required": false,
                                  "page_number": 0,
                                  "prefilled_text": "0"
                                },
                                "field_request_id": "33XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "template_field_id": null,
                                "field_request_canceled": null
                              },
                              {
                                "id": "43XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "type": "checkbox",
                                "role_id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "field_id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "fulfiller": "signer1@email.com",
                                "element_id": null,
                                "originator": "owner@email.com",
                                "json_attributes": {
                                  "x": 253,
                                  "y": 720,
                                  "name": "Checkbox 3",
                                  "value": "Age 30-40",
                                  "width": 11,
                                  "height": 11,
                                  "required": false,
                                  "page_number": 0,
                                  "prefilled_text": "0"
                                },
                                "field_request_id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "template_field_id": null,
                                "field_request_canceled": null
                              },
                              {
                                "id": "c9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "type": "enumeration",
                                "role_id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "field_id": "9cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "fulfiller": "signer1@email.com",
                                "element_id": null,
                                "originator": "owner@email.com",
                                "json_attributes": {
                                  "x": 402,
                                  "y": 682,
                                  "bold": false,
                                  "font": "Arial",
                                  "name": "Dropdown 1",
                                  "size": 14,
                                  "align": "left",
                                  "color": "000000",
                                  "label": "Vacation type",
                                  "width": 103,
                                  "height": 12,
                                  "italic": false,
                                  "required": true,
                                  "font_size": 10,
                                  "underline": false,
                                  "page_number": 0,
                                  "custom_defined_option": ""
                                },
                                "field_request_id": "9cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "template_field_id": null,
                                "field_request_canceled": null
                              },
                              {
                                "id": "45XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "type": "radiobutton",
                                "radio": [
                                  {
                                    "x": 100,
                                    "y": 671,
                                    "value": "Red",
                                    "width": 23,
                                    "height": 23,
                                    "checked": 0,
                                    "created": 1777288560,
                                    "radio_id": "bdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "page_number": 0,
                                    "json_attributes": []
                                  },
                                  {
                                    "x": 100,
                                    "y": 701,
                                    "value": "Green",
                                    "width": 23,
                                    "height": 23,
                                    "checked": 0,
                                    "created": 1777288560,
                                    "radio_id": "f4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "page_number": 0,
                                    "json_attributes": []
                                  },
                                  {
                                    "x": 100,
                                    "y": 730,
                                    "value": "Black",
                                    "width": 23,
                                    "height": 23,
                                    "checked": 0,
                                    "created": 1777288560,
                                    "radio_id": "c0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "page_number": 0,
                                    "json_attributes": []
                                  }
                                ],
                                "role_id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "field_id": "abXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "fulfiller": "signer1@email.com",
                                "element_id": null,
                                "originator": "owner@email.com",
                                "json_attributes": {
                                  "x": 100,
                                  "y": 671,
                                  "name": "Radio Group 1",
                                  "width": 23,
                                  "height": 23,
                                  "required": true,
                                  "page_number": 0
                                },
                                "field_request_id": "abXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "template_field_id": null,
                                "field_request_canceled": null
                              }
                            ],
                            "updated": 1777288568,
                            "settings": [],
                            "folder_id": "d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "thumbnail": {
                              "large": "https://api.signnow.com/document/83XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                              "small": "https://api.signnow.com/document/83XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                              "medium": "https://api.signnow.com/document/83XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                            },
                            "has_fields": true,
                            "page_count": 1,
                            "document_name": "Employment agreement",
                            "field_invites": [
                              {
                                "id": "ccXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "action": "sign",
                                "status": "pending",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer1@email.com",
                                "signing_order": 1,
                                "email_statuses": [
                                  {
                                    "status": "sent",
                                    "created_at": 1777288569,
                                    "last_reaction_at": 1777288569
                                  }
                                ],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": 1779880568,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              },
                              {
                                "id": "e2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Viewer 1",
                                "action": "view",
                                "status": "fulfilled",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": null,
                                  "name": null
                                },
                                "signer_email": "signer2@email.com",
                                "signing_order": 1,
                                "email_statuses": [
                                  {
                                    "status": "sent",
                                    "created_at": 1777288569,
                                    "last_reaction_at": 1777288569
                                  }
                                ],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": null,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              }
                            ],
                            "allow_to_remove": true,
                            "shared_with_team": null,
                            "origin_document_id": null,
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          }
                        ],
                        "folder_id": "d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "invite_id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "expires_at": 1779880568,
                        "share_info": {
                          "role": "owner",
                          "is_team_shared": false,
                          "is_personally_shared_to_others": false
                        },
                        "owner_email": "owner@email.com",
                        "sender_name": "",
                        "completed_at": null,
                        "sender_email": "owner@email.com",
                        "mail_provider": null,
                        "last_invite_id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "sign_as_merged": true,
                        "freeform_invite": {
                          "id": null,
                          "last_id": null,
                          "message": null
                        },
                        "pending_step_id": "c7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "scheduled_invite": null,
                        "email_action_on_complete": null,
                        "originator_organization_settings": [
                          {
                            "value": "1",
                            "setting": "document_guide"
                          },
                          {
                            "value": "30",
                            "setting": "invite_expiration_days"
                          }
                        ]
                      }
                    }
                  },
                  "Field invite with email group": {
                    "value": {
                      "data": {
                        "id": "02XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "name": "Group with email_group invite",
                        "owner": {
                          "id": "f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "owner@email.com",
                          "organization": {
                            "id": "e0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          }
                        },
                        "state": "pending",
                        "created": 1686312228,
                        "updated": 1686312300,
                        "cc_emails": [],
                        "documents": [
                          {
                            "id": "07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "owner": {
                              "id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email": "owner@email.com"
                            },
                            "roles": [
                              "Signer 1"
                            ],
                            "updated": 1777288568,
                            "settings": [],
                            "folder_id": "edXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "thumbnail": {
                              "large": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                              "small": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                              "medium": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                            },
                            "has_fields": true,
                            "page_count": 1,
                            "document_name": "Sample document",
                            "field_invites": [
                              {
                                "id": "2bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "action": "sign",
                                "status": "pending",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": "3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "name": "Sample group name"
                                },
                                "signer_email": "signer1@email.com",
                                "signing_order": 1,
                                "email_statuses": [
                                  {
                                    "status": "sent",
                                    "created_at": 1777288569,
                                    "last_reaction_at": 1777288569
                                  },
                                  {
                                    "status": "mail_open",
                                    "created_at": 1777289723,
                                    "last_reaction_at": 1777289723
                                  }
                                ],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": 1779880568,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              }
                            ],
                            "allow_to_remove": true,
                            "shared_with_team": null,
                            "origin_document_id": null,
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          }
                        ],
                        "folder_id": null,
                        "invite_id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "expires_at": 1779880568,
                        "share_info": {
                          "role": "owner",
                          "is_team_shared": false,
                          "is_personally_shared_to_others": false
                        },
                        "owner_email": "owner@email.com",
                        "sender_name": "Sample Sender",
                        "completed_at": null,
                        "sender_email": "owner@email.com",
                        "mail_provider": null,
                        "last_invite_id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "sign_as_merged": false,
                        "freeform_invite": {
                          "id": null,
                          "last_id": null,
                          "message": null
                        },
                        "pending_step_id": "fdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "general_reminder": null,
                        "scheduled_invite": null,
                        "general_expiration_days": null,
                        "general_expiration_time": null,
                        "email_action_on_complete": null,
                        "document_group_attributes": {
                          "from_name": "Sample Sender",
                          "from_email": "owner@email.com"
                        },
                        "originator_organization_settings": []
                      }
                    }
                  },
                  "With signatures and origin template": {
                    "value": {
                      "data": {
                        "id": "02XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "name": "Group with email_group invite",
                        "owner": {
                          "id": "f7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "owner@email.com",
                          "organization": {
                            "id": "e0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          }
                        },
                        "state": "completed",
                        "created": 1686312228,
                        "updated": 1777375000,
                        "cc_emails": [],
                        "documents": [
                          {
                            "id": "07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "owner": {
                              "id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email": "owner@email.com"
                            },
                            "roles": [
                              "Signer 1"
                            ],
                            "updated": 1777288568,
                            "settings": [],
                            "folder_id": "edXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "thumbnail": {
                              "large": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                              "small": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                              "medium": "https://api.signnow.com/document/07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                            },
                            "has_fields": true,
                            "page_count": 1,
                            "signatures": [
                              {
                                "id": "5aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "created": "1777374900",
                                "user_id": "b0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                              }
                            ],
                            "document_name": "Sample document",
                            "field_invites": [
                              {
                                "id": "2bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "role": "Signer 1",
                                "action": "sign",
                                "status": "fulfilled",
                                "created": 1777288568,
                                "message": "Sample document group needs your signature.",
                                "updated": 1777288568,
                                "language": null,
                                "compliance": {
                                  "cfr": null
                                },
                                "email_group": {
                                  "id": "3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "name": "Sample group name"
                                },
                                "signer_email": "signer1@email.com",
                                "signing_order": 1,
                                "email_statuses": [
                                  {
                                    "status": "sent",
                                    "created_at": 1777288569,
                                    "last_reaction_at": 1777288569
                                  },
                                  {
                                    "status": "mail_open",
                                    "created_at": 1777289723,
                                    "last_reaction_at": 1777289723
                                  }
                                ],
                                "short_link_url": null,
                                "signature_type": null,
                                "expiration_days": 30,
                                "expiration_time": 1779880568,
                                "payment_request": null,
                                "is_full_declined": false,
                                "next_reminder_at": null,
                                "sms_sent_statuses": [],
                                "password_protected": "0",
                                "signer_phone_invite": null
                              }
                            ],
                            "allow_to_remove": true,
                            "shared_with_team": null,
                            "origin_document_id": null,
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          }
                        ],
                        "folder_id": null,
                        "invite_id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "expires_at": null,
                        "origin_dgt": {
                          "id": "e1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner_id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "template_group_name": "Sample document group template"
                        },
                        "share_info": {
                          "role": "owner",
                          "is_team_shared": false,
                          "is_personally_shared_to_others": false
                        },
                        "owner_email": "owner@email.com",
                        "sender_name": "Sample Sender",
                        "completed_at": 1777375000,
                        "sender_email": "owner@email.com",
                        "entity_labels": [],
                        "mail_provider": null,
                        "recently_used": 1777375000,
                        "last_invite_id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "sign_as_merged": false,
                        "freeform_invite": {
                          "id": null,
                          "last_id": null,
                          "message": null
                        },
                        "pending_step_id": null,
                        "general_reminder": null,
                        "scheduled_invite": null,
                        "general_expiration_days": null,
                        "general_expiration_time": null,
                        "email_action_on_complete": null,
                        "document_group_attributes": {
                          "from_name": "Sample Sender",
                          "from_email": "owner@email.com"
                        },
                        "originator_organization_settings": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- Request with Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Request with Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "- Request with token that belongs to a user who is not the document group owner, was not invited to the group, and has no shared access to it",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  },
                  "Access denied": {
                    "value": {
                      "errors": [
                        {
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "- id does not exist\n- id is not active",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "message": "Document group `<group id>` not found"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `<group id>` not found"
                        }
                      ]
                    }
                  },
                  "id is not active": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `<group id>` not found"
                        }
                      ]
                    }
                  },
                  "id does not exist": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `<group id>` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-groups/{document_group_id}/copy": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-id-copy",
        "summary": "Create a copy of doc group",
        "description": "This endpoint allows users to copy a document group in any status and set a new name to it.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "202": {
            "description": "The document group copy has been scheduled.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value\n* Incorrect type of `document_group_name` field\n* Incorrect type of `client_timestamp field`, not integer\n* `client_timestamp field` length limits",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "`client_timestamp field` length limits": {
                    "value": {
                      "code": 13020000,
                      "message": "The client_timestamp should be between 0 and 4294967295"
                    }
                  },
                  "Incorrect type of document_group_name field": {
                    "value": {
                      "code": 13020000,
                      "message": "The document_group_name field must be string type"
                    }
                  },
                  "Incorrect type of `client_timestamp` field, not integer": {
                    "value": {
                      "code": 13020000,
                      "message": "The client_timestamp field must be an integer"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "document_group_name"
                ],
                "properties": {
                  "client_timestamp": {
                    "type": "integer",
                    "description": "The timestamp in UNIX code."
                  },
                  "document_group_name": {
                    "type": "string",
                    "description": "The name of the new document group copy."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "client_timestamp": 1635953805,
                    "document_group_name": "New name of Document Group"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "client_timestamp": 1635953805,
                    "document_group_name": "New name of Document Group"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/move": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-id-move",
        "summary": "Move document group",
        "description": "This endpoint allows users to move a document group to another folder. When a document group is moved, all its documents are moved to the same folder except documents in the Deleted folder (Deleted from Trash) and documents that are located in the Shared folders.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group"
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* `folder_id` is not a string\n* Incorrect `folder_id`\n* Empty `folder_id`\n* The user does not have a folder with this ID\n* `with_shared_documents` is not a boolean\n* `with_shared_documents` is TRUE and the folder is not Trash ",
            "content": {
              "application/json": {
                "examples": {
                  "Empty folder_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009019,
                          "message": "The `folder_id` field must not be empty. "
                        }
                      ]
                    }
                  },
                  "Folder not Trash": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009026,
                          "message": "The `7c5409cce69843e698e793162d103e2b79a0bcf0` folder is not support shared documents."
                        }
                      ]
                    }
                  },
                  "No such folder_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009017,
                          "message": "User folder `4ab6ea1d58a84bc085b3ef2c880w78d35e4881b5` is not found."
                        }
                      ]
                    }
                  },
                  "Incorrect folder_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009003,
                          "message": "The `folder_id` field value is invalid."
                        }
                      ]
                    }
                  },
                  "folder_id not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009002,
                          "message": "The `folder_id` field must be a string."
                        }
                      ]
                    }
                  },
                  "with_shared_documents not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009025,
                          "message": "The `with_shared_documents` field must be a bool."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is not an owner of the document group.\n* The folder is not owned by or shared with the user's team.\n* The user does not have permissions to move document groups to this folder.\n* To move a document group, a user must be its owner. To move a document group that is located in the Shared folder, a user must be a team admin.\n* This folder does not support document groups in correction state.\n* It is forbidden to move this document group to the Deleted folder.",
            "content": {
              "application/json": {
                "examples": {
                  "Team issue": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009029,
                          "message": "The `%s` folder is not owned folder or shared folder of Team where user is member."
                        }
                      ]
                    }
                  },
                  "Ownership issue": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009028,
                          "message": "Only owner of document group or Team admin (if document group is located in Shared Folder) can move document group."
                        }
                      ]
                    }
                  },
                  "Permission error": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009018,
                          "message": "User Folder permissions is not executable."
                        }
                      ]
                    }
                  },
                  "User doesn't own DG": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009006,
                          "message": "User is not owner of `64cfc09a50c6852e5cc4bb427c33cf9b5ee4620a` document group."
                        }
                      ]
                    }
                  },
                  "Moving to Deleted forbidden": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009030,
                          "message": "Move to `Deleted` folder is not allowed"
                        }
                      ]
                    }
                  },
                  "Document group in correction state": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009031,
                          "message": "The `%s` folder does not support document group in correction state."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "folder_id"
                ],
                "properties": {
                  "folder_id": {
                    "type": "string",
                    "example": "2cb6ea1d58a84bc085b3ef2c880378d35e4881b5",
                    "description": "ID of the folder to move the document group to. Allowed folder types: \r\n\r\n* Documents and custom folders\r\n* Archive and its custom folders\r\n* Shared Documents folders ",
                    "x-stoplight": {
                      "id": "97neqkaeuy8wm"
                    }
                  },
                  "with_shared_documents": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether to move shared documents that are in this document group. With this parameter, a document group can only be moved to trash.",
                    "x-stoplight": {
                      "id": "qf1kwsujca7vi"
                    }
                  }
                }
              },
              "examples": {
                "Correct request": {
                  "value": {
                    "folder_id": "2cb6ea1d58a84bc085b3ef2c880378d35e4881b5"
                  }
                },
                "Correct request to move DG to trash": {
                  "value": {
                    "folder_id": "2cb6ea1d58a84bc085b3ef2c880378d35e4881b5",
                    "with_shared_documents": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/user/documentgroup/templates": {
      "get": {
        "operationId": "get-user-documentgroup-templates",
        "summary": "Get doc group templates",
        "description": "This endpoint is used for getting document group templates.\n",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "query",
            "name": "limit",
            "type": "string",
            "required": true,
            "description": "The number of templates to get"
          },
          {
            "in": "query",
            "name": "offset",
            "type": "string",
            "default": "0",
            "required": false,
            "description": "The number of templates to skip from the first one."
          }
        ],
        "responses": {
          "200": {
            "description": "Correct request with limit = 2",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "document_group_templates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "folder_id": {
                            "type": "null"
                          },
                          "templates": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "roles": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "thumbnail": {
                                  "type": "object",
                                  "properties": {
                                    "large": {
                                      "type": "string"
                                    },
                                    "small": {
                                      "type": "string"
                                    },
                                    "medium": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "is_prepared": {
                            "type": "boolean"
                          },
                          "owner_email": {
                            "type": "string"
                          },
                          "last_updated": {
                            "type": "string"
                          },
                          "routing_details": {
                            "type": "object",
                            "properties": {
                              "invite_steps": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "order": {
                                      "type": "integer"
                                    },
                                    "invite_emails": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "email": {
                                            "type": "string"
                                          },
                                          "message": {
                                            "type": "string"
                                          },
                                          "subject": {
                                            "type": "string"
                                          },
                                          "reminder": {
                                            "type": "object",
                                            "properties": {
                                              "remind_after": {
                                                "type": "integer"
                                              },
                                              "remind_before": {
                                                "type": "integer"
                                              },
                                              "remind_repeat": {
                                                "type": "integer"
                                              }
                                            }
                                          },
                                          "expiration_days": {
                                            "type": "integer"
                                          },
                                          "has_sign_actions": {
                                            "type": "boolean"
                                          }
                                        }
                                      }
                                    },
                                    "invite_actions": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "uuid": {
                                            "type": "string"
                                          },
                                          "email": {
                                            "type": "string"
                                          },
                                          "action": {
                                            "type": "string"
                                          },
                                          "role_name": {
                                            "type": "string"
                                          },
                                          "document_id": {
                                            "type": "string"
                                          },
                                          "document_name": {
                                            "type": "string"
                                          },
                                          "allow_reassign": {
                                            "type": "integer"
                                          },
                                          "authentication": {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "null"
                                              }
                                            }
                                          },
                                          "decline_by_signature": {
                                            "type": "integer"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "sign_as_merged": {
                                "type": "boolean"
                              },
                              "include_email_attachments": {
                                "type": "null"
                              }
                            }
                          },
                          "template_group_id": {
                            "type": "string"
                          },
                          "template_group_name": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "document_group_template_total_count": {
                      "type": "integer"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "document_group_templates": [
                        {
                          "folder_id": null,
                          "templates": [
                            {
                              "id": "a8f84795001f4add81dc8efc45d97fdeed9a00aa",
                              "name": "Test_PDF 1 T",
                              "roles": [
                                "Signer 1",
                                "Signer 2"
                              ],
                              "thumbnail": {
                                "large": "https://app.signnow.com/api/document/a8f84795001f4add81dc8efc45d97fdeed9a00aa/thumbnail?size=large",
                                "small": "https://app.signnow.com/api/document/a8f84795001f4add81dc8efc45d97fdeed9a00aa/thumbnail?size=small",
                                "medium": "https://app.signnow.com/api/document/a8f84795001f4add81dc8efc45d97fdeed9a00aa/thumbnail?size=medium"
                              }
                            },
                            {
                              "id": "40179e8d7f684f07a7fef04719e8a2ff0d18a1a0",
                              "name": "Test_PDF 1 Template SalesForce 2",
                              "roles": [
                                "Igor",
                                "Signer 1"
                              ],
                              "thumbnail": {
                                "large": "https://app.signnow.com/api/document/40179e8d7f684f07a7fef04719e8a2ff0d18a1a0/thumbnail?size=large",
                                "small": "https://app.signnow.com/api/document/40179e8d7f684f07a7fef04719e8a2ff0d18a1a0/thumbnail?size=small",
                                "medium": "https://app.signnow.com/api/document/40179e8d7f684f07a7fef04719e8a2ff0d18a1a0/thumbnail?size=medium"
                              }
                            }
                          ],
                          "is_prepared": false,
                          "owner_email": "kulygin.denys@pdffiller.team",
                          "last_updated": "1634828541",
                          "routing_details": {
                            "invite_steps": [
                              {
                                "order": 1,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "46f82586-c16b-463d-8835-52ce5c552e08",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Signer 1",
                                    "document_id": "5507722db6654b11bd2223b83655443813f2013c",
                                    "document_name": "Test_PDF 1 from templ 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 2,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "070a1fe5-d0c6-41d9-800d-9ce14c6ba24f",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Signer 2",
                                    "document_id": "5507722db6654b11bd2223b83655443813f2013c",
                                    "document_name": "Test_PDF 1 from templ 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 3,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "b9b6bc5d-8788-4cb2-95d3-84bfb069cf38",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Signer 1",
                                    "document_id": "a8f84795001f4add81dc8efc45d97fdeed9a00aa",
                                    "document_name": "Test_PDF 1 T",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 4,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "2fdf4838-4937-43e0-8859-aa082efa53f6",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Signer 2",
                                    "document_id": "a8f84795001f4add81dc8efc45d97fdeed9a00aa",
                                    "document_name": "Test_PDF 1 T",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 5,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "6e437866-ca76-473f-9094-38e116dbdbc5",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Signer 1",
                                    "document_id": "40179e8d7f684f07a7fef04719e8a2ff0d18a1a0",
                                    "document_name": "Test_PDF 1 Template SalesForce 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 6,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "4f50d474-c62d-4620-9858-529b5fd8204d",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Igor",
                                    "document_id": "40179e8d7f684f07a7fef04719e8a2ff0d18a1a0",
                                    "document_name": "Test_PDF 1 Template SalesForce 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              }
                            ],
                            "sign_as_merged": true,
                            "include_email_attachments": null
                          },
                          "template_group_id": "31706abc6e50c977af03c1cacd3875a44fb679b9",
                          "template_group_name": "DGT test"
                        }
                      ],
                      "document_group_template_total_count": 1
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "document_group_templates": [
                        {
                          "folder_id": null,
                          "templates": [
                            {
                              "id": "a8f84795001f4add81dc8efc45d97fdeed9a00aa",
                              "name": "Test_PDF 1 T",
                              "roles": [
                                "Signer 1",
                                "Signer 2"
                              ],
                              "thumbnail": {
                                "large": "https://app.signnow.com/api/document/a8f84795001f4add81dc8efc45d97fdeed9a00aa/thumbnail?size=large",
                                "small": "https://app.signnow.com/api/document/a8f84795001f4add81dc8efc45d97fdeed9a00aa/thumbnail?size=small",
                                "medium": "https://app.signnow.com/api/document/a8f84795001f4add81dc8efc45d97fdeed9a00aa/thumbnail?size=medium"
                              }
                            },
                            {
                              "id": "40179e8d7f684f07a7fef04719e8a2ff0d18a1a0",
                              "name": "Test_PDF 1 Template SalesForce 2",
                              "roles": [
                                "Igor",
                                "Signer 1"
                              ],
                              "thumbnail": {
                                "large": "https://app.signnow.com/api/document/40179e8d7f684f07a7fef04719e8a2ff0d18a1a0/thumbnail?size=large",
                                "small": "https://app.signnow.com/api/document/40179e8d7f684f07a7fef04719e8a2ff0d18a1a0/thumbnail?size=small",
                                "medium": "https://app.signnow.com/api/document/40179e8d7f684f07a7fef04719e8a2ff0d18a1a0/thumbnail?size=medium"
                              }
                            }
                          ],
                          "is_prepared": false,
                          "owner_email": "kulygin.denys@pdffiller.team",
                          "last_updated": "1634828541",
                          "routing_details": {
                            "invite_steps": [
                              {
                                "order": 1,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "46f82586-c16b-463d-8835-52ce5c552e08",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Signer 1",
                                    "document_id": "5507722db6654b11bd2223b83655443813f2013c",
                                    "document_name": "Test_PDF 1 from templ 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 2,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "070a1fe5-d0c6-41d9-800d-9ce14c6ba24f",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Signer 2",
                                    "document_id": "5507722db6654b11bd2223b83655443813f2013c",
                                    "document_name": "Test_PDF 1 from templ 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 3,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "b9b6bc5d-8788-4cb2-95d3-84bfb069cf38",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Signer 1",
                                    "document_id": "a8f84795001f4add81dc8efc45d97fdeed9a00aa",
                                    "document_name": "Test_PDF 1 T",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 4,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "2fdf4838-4937-43e0-8859-aa082efa53f6",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Signer 2",
                                    "document_id": "a8f84795001f4add81dc8efc45d97fdeed9a00aa",
                                    "document_name": "Test_PDF 1 T",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 5,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "6e437866-ca76-473f-9094-38e116dbdbc5",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Signer 1",
                                    "document_id": "40179e8d7f684f07a7fef04719e8a2ff0d18a1a0",
                                    "document_name": "Test_PDF 1 Template SalesForce 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 6,
                                "invite_emails": [
                                  {
                                    "email": "mail+1@gmail.com",
                                    "message": "kulygin.denys@pdffiller.team invited you to sign some documents.",
                                    "subject": "DGT test: Signature Request from kulygin.denys",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "4f50d474-c62d-4620-9858-529b5fd8204d",
                                    "email": "mail+1@gmail.com",
                                    "action": "sign",
                                    "role_name": "Igor",
                                    "document_id": "40179e8d7f684f07a7fef04719e8a2ff0d18a1a0",
                                    "document_name": "Test_PDF 1 Template SalesForce 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              }
                            ],
                            "sign_as_merged": true,
                            "include_email_attachments": null
                          },
                          "template_group_id": "31706abc6e50c977af03c1cacd3875a44fb679b9",
                          "template_group_name": "DGT test"
                        }
                      ],
                      "document_group_template_total_count": 1
                    }
                  },
                  "Correct request with limit = 2": {
                    "value": {
                      "document_group_templates": [
                        {
                          "folder_id": null,
                          "templates": [
                            {
                              "id": "a8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "Sample template name",
                              "roles": [
                                "Signer 1",
                                "Signer 2"
                              ],
                              "thumbnail": {
                                "large": "https://sample.com/thumbnail?size=large",
                                "small": "https://sample.com/thumbnail?size=small",
                                "medium": "https://sample.com/thumbnail?size=medium"
                              }
                            },
                            {
                              "id": "40XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "Sample template name 2",
                              "roles": [
                                "Signer",
                                "Signer 1"
                              ],
                              "thumbnail": {
                                "large": "https://sample.com/thumbnail?size=large",
                                "small": "https://sample.com/thumbnail?size=small",
                                "medium": "https://sample.com/thumbnail?size=medium"
                              }
                            }
                          ],
                          "is_prepared": false,
                          "owner_email": "owner@email.com",
                          "last_updated": "1634828541",
                          "routing_details": {
                            "invite_steps": [
                              {
                                "order": 1,
                                "invite_emails": [
                                  {
                                    "email": "signer1@email.com",
                                    "message": "owner@email.com invited you to sign some documents.",
                                    "subject": "Signature Request from owner",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "46XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "email": "signer1@email.com",
                                    "action": "sign",
                                    "role_name": "Signer 1",
                                    "document_id": "55XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "document_name": "Sample name 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 2,
                                "invite_emails": [
                                  {
                                    "email": "signer1@email.com",
                                    "message": "owner@email.com invited you to sign some documents.",
                                    "subject": "Signature Request from owner",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "email": "signer1@email.com",
                                    "action": "sign",
                                    "role_name": "Signer 2",
                                    "document_id": "55XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "document_name": "Sample name 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 3,
                                "invite_emails": [
                                  {
                                    "email": "signer1@email.com",
                                    "message": "owner@email.com invited you to sign some documents.",
                                    "subject": "Signature Request from owner",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "b9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "email": "signer1@email.com",
                                    "action": "sign",
                                    "role_name": "Signer 1",
                                    "document_id": "a8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "document_name": "Sample name 1",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 4,
                                "invite_emails": [
                                  {
                                    "email": "signer1@email.com",
                                    "message": "owner@email.com invited you to sign some documents.",
                                    "subject": "Signature Request from owner",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "2fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "email": "signer1@email.com",
                                    "action": "sign",
                                    "role_name": "Signer 2",
                                    "document_id": "a8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "document_name": "Sample name 1",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 5,
                                "invite_emails": [
                                  {
                                    "email": "signer1@email.com",
                                    "message": "owner@email.com invited you to sign some documents.",
                                    "subject": "Signature Request from owner",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "6eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "email": "signer1@email.com",
                                    "action": "sign",
                                    "role_name": "Signer 1",
                                    "document_id": "40XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "document_name": "Sample name 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              },
                              {
                                "order": 6,
                                "invite_emails": [
                                  {
                                    "email": "signer1@email.com",
                                    "message": "owner@email.com invited you to sign some documents.",
                                    "subject": "Signature Request from owner",
                                    "reminder": {
                                      "remind_after": 0,
                                      "remind_before": 0,
                                      "remind_repeat": 0
                                    },
                                    "expiration_days": 30,
                                    "has_sign_actions": true
                                  }
                                ],
                                "invite_actions": [
                                  {
                                    "uuid": "4fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "email": "signer1@email.com",
                                    "action": "sign",
                                    "role_name": "Signer",
                                    "document_id": "40XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "document_name": "Sample name 2",
                                    "allow_reassign": 0,
                                    "authentication": {
                                      "type": null
                                    },
                                    "decline_by_signature": 0
                                  }
                                ]
                              }
                            ],
                            "sign_as_merged": true,
                            "include_email_attachments": null
                          },
                          "template_group_id": "31XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "template_group_name": "Sample name"
                        }
                      ],
                      "document_group_template_total_count": 1
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request without limit parameter, or not in range (1, 50)\n* Incorrect offset parameter\n* Invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The limit query parameter is required and must be between 1 and 50"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The limit query parameter is required and must be between 1 and 50"
                        }
                      ]
                    }
                  },
                  "Invalid token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Incorrect offset parameter": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The offset query parameter is required and must be 0 or greater"
                        }
                      ]
                    }
                  },
                  "Without limit or not in range": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "The limit query parameter is required and must be between 1 and 50"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/v2/document-group-templates": {
      "post": {
        "operationId": "post-v2-document-group-templates",
        "summary": "Create doc group template",
        "description": "This endpoint allows users to create an empty document group template. Once the document group template is created, users can add one or more templates or documents to this document group template.\n\nA successful request returns a document group template ID.\n",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "ID of the document group template."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7412"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a7412"
                      }
                    }
                  },
                  "Successful request": {
                    "value": {
                      "data": {
                        "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013abbbb"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- `name` is empty.\n- `name` is not a string.\n- `name` has unsupported symbols.\n- `name` length is too long.\n- Authorization is required.\n- `folder_id` is empty.\n- `folder_id` is not a string.\n- `folder_id` is incorrect.\n- `folder_id`is not a folder of templates.\n- `folder_id` is not accessible.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 13024001,
                          "message": "The `name` value should not be blank."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 13024001,
                          "message": "The `name` value should not be blank."
                        }
                      ]
                    }
                  },
                  "name is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 13024001,
                          "message": "The `name` value should not be blank."
                        }
                      ]
                    }
                  },
                  "name too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 13024004,
                          "message": "The `name` value is too long. It should have 255 characters or less."
                        }
                      ]
                    }
                  },
                  "Empty folder_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 13024005,
                          "message": "The `folder_id` value should not be blank."
                        }
                      ]
                    }
                  },
                  "name not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13024002,
                          "message": "The `name` value should be of type string."
                        }
                      ]
                    }
                  },
                  "folder_id not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13024006,
                          "message": "The `folder_id` value should be of type string."
                        }
                      ]
                    }
                  },
                  "Authorization required": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "folder_id is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 13024007,
                          "message": "The `folder_id` value is invalid unique id."
                        }
                      ]
                    }
                  },
                  "folder_id not accessible": {
                    "value": {
                      "errors": [
                        {
                          "code": 13029002,
                          "message": "User folder is not accessible."
                        }
                      ]
                    }
                  },
                  "name has unsupported symbols": {
                    "value": {
                      "errors": [
                        {
                          "code": 13024003,
                          "message": "The `name` value is not valid."
                        }
                      ]
                    }
                  },
                  "folder_id not templates folder": {
                    "value": {
                      "errors": [
                        {
                          "code": 13029001,
                          "message": "Folder of Templates available only."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "example": "Test document group template",
                    "description": "Document group template name.\n"
                  },
                  "folder_id": {
                    "type": "string",
                    "example": "5fcac949dce4e1d23e54ea5751dd649a947abbbb",
                    "description": "ID of the templates folder that will be used to create a document group template. If provided, must refer to a valid and accessible folder of templates."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "name": "Document group template name",
                    "folder_id": "5fcac949dce4e1d23e54ea5751dd649a947abbbb"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "name": "Document group template name",
                    "folder_id": "5fcac949dce4e1d23e54ea5751dd649a947abbbb"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-group-templates/{doc_group_template_id}": {
      "patch": {
        "operationId": "patch-v2-document-group-templates-doc-group-template-id",
        "summary": "Edit doc group template",
        "description": "This endpoint allows users to reorder documents, rename the document group template, and update the action performed upon completion of the document group template.",
        "parameters": [
          {
            "in": "path",
            "name": "doc_group_template_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group template."
          }
        ],
        "responses": {
          "204": {
            "description": "Success."
          },
          "400": {
            "description": "**Authorization errors**\n\n**Validation errors:**\n- `order` type is incorrect.\n- Document IDs are not unique.\n- Document ID type is incorrect.\n- Document ID is incorrect.\n- `template_group_name` type is incorrect.\n- `template_group_name` has unsupported symbols.\n- `template_group_name` is too long. Max length is 255 symbols.\n- `email_action_on_complete` value type is incorrect.\n-  `email_action_on_complete` is incorrect. ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 13022003,
                          "message": "The order field must be an array"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022003,
                          "message": "The order field must be an array"
                        }
                      ]
                    }
                  },
                  "DGT name too long": {
                    "value": {
                      "code": 13022009,
                      "message": "Incorrect Length of document group template name"
                    }
                  },
                  "Authorization error": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Document ID incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022006,
                          "message": "The order array must include valid unique document ids"
                        }
                      ]
                    }
                  },
                  "Document IDs not unique": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022004,
                          "message": "The order array must include unique document ids"
                        }
                      ]
                    }
                  },
                  "Order type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022003,
                          "message": "The order field must be an array"
                        }
                      ]
                    }
                  },
                  "DGT name type is incorrect": {
                    "value": {
                      "code": 13022007,
                      "message": "Incorrect type of document group template name"
                    }
                  },
                  "Document ID type incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022005,
                          "message": "The order array must include string type of document ids"
                        }
                      ]
                    }
                  },
                  "DGT name has unsupported symbols": {
                    "value": {
                      "code": 13022008,
                      "message": "Incorrect document group template name"
                    }
                  },
                  "email_action_on_complete is incorrect": {
                    "value": {
                      "code": 13022014,
                      "message": "The email_action_on_complete value you selected is not a valid choice."
                    }
                  },
                  "email_action_on_complete type is incorrect": {
                    "value": {
                      "code": 13022013,
                      "message": "Incorrect type of document group template email_action_on_complete"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Access to document group template denied.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 13022001,
                          "message": "Access to DocumentGroupTemplate is denied"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022001,
                          "message": "Access to DocumentGroupTemplate is denied"
                        }
                      ]
                    }
                  },
                  "Access denied": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022001,
                          "message": "Access to DocumentGroupTemplate is denied"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`doc_group_template_id` is incorrect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "404": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "404": "Unable to find a route to match the URI: v2/document-group-templates/1d33671c3c8741ce9dbbd8e106f3a6bb2842b4f"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/document-group-templates/1d33671c3c8741ce9dbbd8e106f3a6bb2842b4f"
                    }
                  },
                  "DGT id is incorrect": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/document-group-templates/1d33671c3c8741ce9dbbd8e106f3a6bb284XXXX"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Payload documents do not match the document group template.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 13022002,
                          "message": "Documents in order are not equal to existing documents in DocumentGroupTemplate"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022002,
                          "message": "Documents in order are not equal to existing documents in DocumentGroupTemplate"
                        }
                      ]
                    }
                  },
                  "Documents do not match DGT": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022002,
                          "message": "Documents in order are not equal to existing documents in DocumentGroupTemplate"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "order": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "List of document IDs in the document group template."
                  },
                  "template_group_name": {
                    "type": "string",
                    "example": "HR documents",
                    "description": "Name of the document group template."
                  },
                  "email_action_on_complete": {
                    "type": "string",
                    "example": "documents_and_attachments",
                    "description": "Specifies the action to be taken upon invite completion. Allowed values: `documents_and_attachments`: Email documents and attachments to all parties. `documents_and_attachments_only_to_recipients`: Email documents and attachments only to recipients. `without_documents_and_attachments`: Do not email documents or any attachments."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "order": [
                      "ffa1e7109013c26d5a706d34a9d0ad598f95afa1",
                      "06d34a9d0ad598f95afa1ffa1e7109013c26d5a7"
                    ],
                    "template_group_name": "Document group template name",
                    "email_action_on_complete": "documents_and_attachments"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "order": [
                      "ffa1e7109013c26d5a706d34a9d0ad598f95afa1",
                      "06d34a9d0ad598f95afa1ffa1e7109013c26d5a7"
                    ],
                    "template_group_name": "Document group template name",
                    "email_action_on_complete": "documents_and_attachments"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-group-templates/{doc_group_template_id}/copies": {
      "get": {
        "operationId": "get-v2-document-group-templates-doc-group-template-id-copies",
        "summary": "Get doc groups created from template",
        "description": "This endpoint allows users to retrieve a list of all document groups created and sent from a specific document group template. Use query parameters to filter, sort, paginate the results, or search for specific search keys.",
        "parameters": [
          {
            "in": "path",
            "name": "doc_group_template_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group template"
          },
          {
            "in": "query",
            "name": "sort_by",
            "type": "string",
            "default": "updated",
            "required": false,
            "description": "Sort results by the date of the last update, the creation date, or the document group name. Possible values: `updated`, `created`, and `document_group_name`."
          },
          {
            "in": "query",
            "name": "sort_order",
            "type": "string",
            "default": "desc",
            "required": false,
            "description": "Sort results in descending or ascending order. Possible values: `asc`, `desc`."
          },
          {
            "in": "query",
            "name": "page",
            "type": "integer",
            "default": 1,
            "required": false,
            "description": "Page number to display in the results. For example, if `page=2` and `per_page=10`, you'll get results from 11 to 20."
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "integer",
            "default": 15,
            "required": false,
            "description": "Number of document groups displayed per page."
          },
          {
            "in": "query",
            "name": "filters[signing_status]",
            "type": "string",
            "required": false,
            "description": "Filter results by document group template signing status. Possible values: `waiting-for-me`, `waiting-for-others`, `signed`, `pending`, `has-invites`, `expired`."
          },
          {
            "in": "query",
            "name": "search_key",
            "type": "string",
            "required": false,
            "description": "Search by key (word, part of word, or phrase)."
          },
          {
            "in": "query",
            "name": "search_by",
            "type": "string",
            "required": false,
            "description": "Specify where to look for the `search_key`. Possible values: `document-name`, `signer-email`, `inviter-email`, `document-text`, and `document-id`."
          },
          {
            "in": "query",
            "name": "filters[entity_labels]",
            "type": "string",
            "required": false,
            "description": "Filter results by declined or undelivered document group templates. Possible values: `declined`, `undelivered`."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "owner": {
                            "type": "string"
                          },
                          "state": {
                            "type": "string"
                          },
                          "created": {
                            "type": "integer"
                          },
                          "invites": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "updated": {
                            "type": "integer"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "documents": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "roles": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          },
                          "invite_id": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "parent_id": {
                            "type": "string"
                          },
                          "freeform_actions": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "freeform_invite_id": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "document_group_name": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "links": {
                              "type": "object"
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "8a8bc73bd272439e853e8d0faf892d4107287c8a",
                          "owner": "owner@email.com",
                          "state": "created",
                          "created": 1688481787,
                          "invites": [],
                          "updated": 1688481787,
                          "user_id": "121c6015e26440c48adbafb720f52007c15c6b0d",
                          "documents": [
                            {
                              "id": "01bc639a1d81408b91df6cb62edd1c9874c46b83",
                              "name": "NDA agreement",
                              "roles": [
                                "Recipient 1"
                              ]
                            }
                          ],
                          "invite_id": null,
                          "parent_id": "1f982fea8633418494b622ba7ba07bc476ee94ec",
                          "freeform_actions": [],
                          "freeform_invite_id": null,
                          "document_group_name": "Onboarding documents"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "8a8bc73bd272439e853e8d0faf892d4107287c8a",
                          "owner": "owner@email.com",
                          "state": "created",
                          "created": 1688481787,
                          "invites": [],
                          "updated": 1688481787,
                          "user_id": "121c6015e26440c48adbafb720f52007c15c6b0d",
                          "documents": [
                            {
                              "id": "01bc639a1d81408b91df6cb62edd1c9874c46b83",
                              "name": "NDA agreement",
                              "roles": [
                                "Recipient 1"
                              ]
                            }
                          ],
                          "invite_id": null,
                          "parent_id": "1f982fea8633418494b622ba7ba07bc476ee94ec",
                          "freeform_actions": [],
                          "freeform_invite_id": null,
                          "document_group_name": "Onboarding documents"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Success (no query parameters)": {
                    "value": {
                      "data": [
                        {
                          "id": "8a8bc73bd272439e853e8d0faf892d4107287c8a",
                          "owner": "owner@email.com",
                          "state": "created",
                          "created": 1688481787,
                          "invites": [],
                          "updated": 1688481787,
                          "user_id": "121c6015e26440c48adbafb720f52007c15c6b0d",
                          "documents": [
                            {
                              "id": "01bc639a1d81408b91df6cb62edd1c9874c46b83",
                              "name": "NDA agreement",
                              "roles": [
                                "Recipient 1"
                              ]
                            }
                          ],
                          "invite_id": null,
                          "parent_id": "1f982fea8633418494b622ba7ba07bc476ee94ec",
                          "freeform_actions": [],
                          "freeform_invite_id": null,
                          "document_group_name": "Onboarding documents"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": {},
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Success (request with filters)": {
                    "value": {
                      "data": [
                        {
                          "id": "8a8bc73bd272439e853e8d0faf892d4107287c8a",
                          "owner": "owner@mail.com",
                          "state": "pending",
                          "created": 1688644119,
                          "invites": [
                            {
                              "email": "recipient@mail.com",
                              "order": 1,
                              "action": "sign",
                              "status": "pending",
                              "document_id": "01bc639a1d81408b91df6cb62edd1c9874c46b83",
                              "email_group": {
                                "id": null,
                                "name": null
                              },
                              "document_name": "NDA agreement",
                              "authentication": null,
                              "expiration_time": 1691236121,
                              "is_draft_exists": false,
                              "password_method": "",
                              "payment_request": null,
                              "is_full_declined": false,
                              "is_document_locked": "0",
                              "password_protected": "0",
                              "email_sent_statuses": [
                                {
                                  "status": "sent",
                                  "created_at": 1688644121,
                                  "last_reaction_at": 1688644121
                                }
                              ]
                            }
                          ],
                          "updated": 1688644120,
                          "user_id": "121c6015e26440c48adbafb720f52007c15c6b0d",
                          "documents": [
                            {
                              "id": "01bc639a1d81408b91df6cb62edd1c9874c46b83",
                              "name": "NDA agreement",
                              "roles": [
                                "Recipient 1"
                              ]
                            }
                          ],
                          "invite_id": null,
                          "parent_id": "1f982fea8633418494b622ba7ba07bc476ee94ec",
                          "freeform_actions": [],
                          "freeform_invite_id": null,
                          "document_group_name": "Onboarding documents"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 15,
                          "links": {
                            "next": "https://api.signnow.com/v2/document-group-templates/987187758253e554be162001fecbf5ea19298b30/copies?filters%5Bsigning_status%5D=waiting-for-others&page=2"
                          },
                          "total": 50,
                          "per_page": 15,
                          "total_pages": 4,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* The Bearer token is incorrect.\n* The `page` parameter type is incorrect.\n* The `page` parameter value is incorrect.\n* The `per_page` parameter type is incorrect.\n* The `per_page` parameter value is incorrect.\n* The `sort_by` parameter value is incorrect.\n* The `sort_order` parameter value is incorrect.\n* The `filters[signing_status]` parameter value or format is incorrect.\n* The `filters` field value is incorrect.\n* The `per_page` parameter exceeds the maximum allowed value.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 27003002,
                          "message": "Query parameter `page` must be a digit."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003002,
                          "message": "Query parameter `page` must be a digit."
                        }
                      ]
                    }
                  },
                  "page cannot be 0": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003003,
                          "message": "Query parameter `page` must be more than 0."
                        }
                      ]
                    }
                  },
                  "Incorrect sort_by": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003007,
                          "message": "Query parameter `sort_by` must be a value of (`updated`, `created` or `document_group_name`)."
                        }
                      ]
                    }
                  },
                  "page is not digit": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003002,
                          "message": "Query parameter `page` must be a digit."
                        }
                      ]
                    }
                  },
                  "Incorrect sort_order": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003008,
                          "message": "Query parameter `sort_order` must be a value of (`desc` or `asc`)."
                        }
                      ]
                    }
                  },
                  "per_page cannot be 0": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003005,
                          "message": "Query parameter `per_page` must be more than 0."
                        }
                      ]
                    }
                  },
                  "per_page is not digit": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003004,
                          "message": "Query parameter `per_page` must be a digit."
                        }
                      ]
                    }
                  },
                  "Incorrect Bearer token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "per_page exceeds the limit": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003006,
                          "message": "Query parameter `per_page` must be less than or equal 100."
                        }
                      ]
                    }
                  },
                  "Incorrect filter in filters field": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003010,
                          "message": "The `filters` field supports only `signing_status`, `entity_labels`."
                        }
                      ]
                    }
                  },
                  "Incorrect filters[signing_status] value": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003011,
                          "message": "The `filters.signing_status` field value must be `waiting-for-me`, `has-invites`, `waiting-for-others`, `pending`, `signed`, `expired`."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The user is not the document group template owner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 27003009,
                          "message": "The user has no access to the document group template `429e5182341946bd9600aa71394c265776114c61`."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003009,
                          "message": "The user has no access to the document group template `429e5182341946bd9600aa71394c265776114c61`."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Document group template ID doesn't exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 27003001,
                          "message": "Document group template `46e29eee369e0f6dece756d0f26a1f06775e7c52` is not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 27003001,
                          "message": "Document group template `46e29eee369e0f6dece756d0f26a1f06775e7c52` is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-group-templates/{doc_group_template_id}/copy": {
      "post": {
        "operationId": "post-v2-document-group-templates-doc-group-template-id-copy",
        "summary": "Copy doc group template",
        "description": "This endpoint allows users to copy the document group template. As a result, users get a copy of the doc group template and copies of all the templates in it.",
        "parameters": [
          {
            "in": "path",
            "name": "doc_group_template_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group template"
          }
        ],
        "responses": {
          "202": {
            "description": "Successfully copied document group template",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of cases:\n\n- invalid token of user\n- expired token of user\n- empty header\n- authorization = null\n- authorization without value\n\n* Invalid payload\n* Incorrect `name` attribute\n* Empty `name` attribute\n* Unsupported symbol in the `name` value\n* `name` value length limits\n* Incorrect `folder_id` data type\n* Invalid ID in `folder_id`\n* Not available type of a folder given\n* Not available name of new document group template",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Empty `name` attribute": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003011,
                          "message": "The `name` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Invalid ID in `folder_id`": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003015,
                          "message": "The `folder_id` field value must be valid unique_id."
                        }
                      ]
                    }
                  },
                  "`name` value length limits": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003013,
                          "message": "The `name` must not exceed 255 chars."
                        }
                      ]
                    }
                  },
                  "Incorrect `folder_id` data type": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003014,
                          "message": "The `folder_id` field must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect data type for `name` ": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003010,
                          "message": "The `name` field must be a string."
                        }
                      ]
                    }
                  },
                  "Not available type of a folder given": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003019,
                          "message": "Document Group Template could be created in folder or sub-folders of Templates only."
                        }
                      ]
                    }
                  },
                  "Unsupported symbol in the `name` value": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003012,
                          "message": "Unsupported symbol at `name` field value. Allowed name can only include letters, numbers, and (_ - . & ; ` ' ” ” () ¿ ¡) characters"
                        }
                      ]
                    }
                  },
                  "Not available name of new document group template": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003021,
                          "message": "The name of new document group template must not be empty."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* User is not owner of the doc group template\n* Document group template not active\n* User is not owner of the folder",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User is not owner of the folder": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003018,
                          "message": "Access denied to the folder."
                        }
                      ]
                    }
                  },
                  "Document group template not active": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003020,
                          "message": "Access denied to the document group template."
                        }
                      ]
                    }
                  },
                  "User is not owner of the doc group template": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003016,
                          "message": "The user is not owner of the `%s` document group template."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Document group template not found.\n* Not permitted document group template",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Document group template not found.": {
                    "value": {
                      "errors": [
                        {
                          "code": 23001014,
                          "message": "Document Group Template `%s` not found"
                        }
                      ]
                    }
                  },
                  "Not permitted document group template": {
                    "value": {
                      "errors": [
                        {
                          "code": 23003017,
                          "message": "User folder is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the new document group template copy.",
                    "x-stoplight": {
                      "id": "qj0g6c506l39t"
                    }
                  },
                  "folder_id": {
                    "type": "string",
                    "description": "ID of the folder where the new doc group template copy must be saved. Must be saved to a Templates folder or any of its sub-folders.",
                    "x-stoplight": {
                      "id": "v1rh5s6bmvr64"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-group-templates/{doc_group_template_id}/move": {
      "patch": {
        "operationId": "patch-v2-document-group-templates-doc-group-template-id-move",
        "summary": "Move doc group template",
        "description": "This endpoint allows API users to move a document group template (DGT) between personal and team folders, including nested subfolders within the team hierarchy. It is the primary method for placing a DGT into the team space or removing it from the team space.",
        "parameters": [
          {
            "in": "path",
            "name": "doc_group_template_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group template"
          }
        ],
        "responses": {
          "204": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Authorization issues\n* Incorrect payload\n* Empty folder_id\n* Incorrect folder_id value\n* Incorrect with_templates property\n* User doesn't own the document group template\n* Shared document group templates cannot be moved\n* User doesn't have access to folder\n* Folders in Templates and Trash bin available only\n* Document group template not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 23002002,
                          "message": "The `folder_id` field value is invalid."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 23002002,
                          "message": "The `folder_id` field value is invalid."
                        }
                      ]
                    }
                  },
                  "Empty folder_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 23002010,
                          "message": "The `folder_id` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "Incorrect folder_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 23002002,
                          "message": "The `folder_id` field value is invalid."
                        }
                      ]
                    }
                  },
                  "No access to folder": {
                    "value": {
                      "errors": [
                        {
                          "code": 23002005,
                          "message": "User dont have access to folder."
                        }
                      ]
                    }
                  },
                  "Authorization issues": {
                    "value": {
                      "errors": [
                        {
                          "code": 1537,
                          "message": "invalid_token"
                        }
                      ]
                    }
                  },
                  "folder_id not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 23002001,
                          "message": "The `folder_id` field must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect with_templates": {
                    "value": {
                      "errors": [
                        {
                          "code": 23002003,
                          "message": "The `with_templates` field must be a boolean."
                        }
                      ]
                    }
                  },
                  "User doesn't own the DGT": {
                    "value": {
                      "errors": [
                        {
                          "code": 23002009,
                          "message": "Document group template is not readable by the user."
                        }
                      ]
                    }
                  },
                  "Shared DGT cannot be moved": {
                    "value": {
                      "errors": [
                        {
                          "code": 23002007,
                          "message": "Move is not allowed for shared document group templates."
                        }
                      ]
                    }
                  },
                  "Doc group template not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 23001014,
                          "message": "Document Group Template <doc_group_template_id> not found"
                        }
                      ]
                    }
                  },
                  "Use folders in Templates and Trash only": {
                    "value": {
                      "errors": [
                        {
                          "code": 23002006,
                          "message": "Folder of Templates and Trash bin available only."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "folder_id"
                ],
                "properties": {
                  "folder_id": {
                    "type": "string",
                    "description": "ID of the destination folder. Accepts any folder within the team hierarchy (including nested subfolders), a personal `Templates` folder or subfolder, or the `Trash` folder.",
                    "x-stoplight": {
                      "id": "gx57gm0382ieo"
                    }
                  },
                  "with_templates": {
                    "type": "boolean",
                    "default": false,
                    "description": "Whether to move active document groups that are based on the template.",
                    "x-stoplight": {
                      "id": "9518g0g4n41xj"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "folder_id": "ddc7ce43dfc5ad3b2f0fdb1db36889ce53f00777",
                    "with_templates": false
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-group-templates/{doc_group_template_id}/recipients": {
      "get": {
        "operationId": "get-v2-document-group-templates-doc-group-template-id-recipients",
        "summary": "Get doc group template recipients",
        "description": "This endpoint allows users to get a list of the document group template recipients.\n",
        "parameters": [
          {
            "in": "path",
            "name": "doc_group_template_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group template"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "cc": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "order_type": {
                          "enum": [
                            "at_the_same_time",
                            "recipient_order",
                            "advanced_order",
                            null
                          ],
                          "type": "string",
                          "x-nullable": true,
                          "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
                        },
                        "recipients": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "email": {
                                "type": "string"
                              },
                              "order": {
                                "type": "integer"
                              },
                              "documents": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "role": {
                                      "type": "string"
                                    },
                                    "action": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {}
                              },
                              "email_group": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "null"
                                  }
                                }
                              },
                              "phone_invite": {
                                "type": "null"
                              }
                            }
                          }
                        },
                        "general_reminder": {
                          "type": "object",
                          "properties": {
                            "remind_after": {
                              "type": "integer",
                              "description": "Days after invite is sent before a reminder is delivered."
                            },
                            "remind_before": {
                              "type": "integer",
                              "description": "Days before expiration when a reminder is delivered."
                            },
                            "remind_repeat": {
                              "type": "integer",
                              "description": "Days between repeated reminders."
                            }
                          },
                          "x-nullable": true,
                          "description": "Default `reminder` applied to all recipients in the invite."
                        },
                        "unmapped_documents": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "role": {
                                "type": "string"
                              },
                              "action": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "general_expiration_days": {
                          "type": "integer",
                          "x-nullable": true,
                          "description": "Default `expiration_days` applied to all recipients in the invite."
                        },
                        "allowed_unmapped_sign_documents": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {}
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "cc": [
                          "email1@email.com",
                          "email2@email.com"
                        ],
                        "order_type": null,
                        "recipients": [
                          {
                            "name": "Approver",
                            "email": "approver@email.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "XXXXX89f5da14abfb3e4d6cccc2437570e69920b",
                                "role": "Approver",
                                "action": "approve"
                              },
                              {
                                "id": "YYYYYd101a9047f9bb24636bb81ac2e74bed7789",
                                "role": "Approver",
                                "action": "approve"
                              }
                            ],
                            "attributes": {},
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Signer",
                            "email": "signer@email.com",
                            "order": 2,
                            "documents": [
                              {
                                "id": "XXXXX89f5da14abfb3e4d6cccc2437570e69920b",
                                "role": "Signer",
                                "action": "sign"
                              },
                              {
                                "id": "YYYYYd101a9047f9bb24636bb81ac2e74bed7789",
                                "role": "Signer",
                                "action": "sign"
                              }
                            ],
                            "attributes": {},
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          },
                          {
                            "name": "Viewer",
                            "email": "viewer@email.com",
                            "order": 3,
                            "documents": [
                              {
                                "id": "XXXXX89f5da14abfb3e4d6cccc2437570e69920b",
                                "role": "Viewer_viewer_role_id_c359239b-5f4c-426c-a7e2-62df3409e0c4",
                                "action": "view"
                              },
                              {
                                "id": "XXXXX89f5da14abfb3e4d6cccc2437570e69920b",
                                "role": "Viewer_viewer_role_id_47031559-baf5-488f-a6b9-eeb132281fc7",
                                "action": "view"
                              }
                            ],
                            "attributes": {},
                            "email_group": {
                              "id": null
                            },
                            "phone_invite": null
                          }
                        ],
                        "general_reminder": {
                          "remind_after": 3,
                          "remind_before": 5,
                          "remind_repeat": 7
                        },
                        "unmapped_documents": [
                          {
                            "id": "XXXXX89f5da14abfb3e4d6cccc2437570e69920b",
                            "role": "Viewer",
                            "action": "view"
                          },
                          {
                            "id": "YYYYYd101a9047f9bb24636bb81ac2e74bed7789",
                            "role": "Viewer",
                            "action": "view"
                          }
                        ],
                        "general_expiration_days": 30,
                        "allowed_unmapped_sign_documents": []
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "cc": [
                          "copy_receiver1@mail.com",
                          "copy_receiver2@test.com"
                        ],
                        "order_type": null,
                        "recipients": [
                          {
                            "name": "Recipient 1",
                            "email": "recipient@mail.com",
                            "order": 1,
                            "documents": [
                              {
                                "id": "d04e4a885b513a6d9c4c2e7c2b7fa06a013a7412",
                                "role": "Actor name",
                                "action": "sign"
                              },
                              {
                                "id": "d04e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
                                "role": "Viewer name",
                                "action": "view"
                              }
                            ],
                            "attributes": {
                              "message": "Message text",
                              "subject": "Subject",
                              "reminder": {
                                "remind_after": 10,
                                "remind_before": 10,
                                "remind_repeat": 10
                              },
                              "authentication": {
                                "type": "type",
                                "phone": "phone number",
                                "value": "value for the paas protection",
                                "method": "method name"
                              },
                              "i_am_recipient": true,
                              "expiration_days": 10,
                              "allow_forwarding": true
                            }
                          }
                        ],
                        "general_reminder": {
                          "remind_after": 3,
                          "remind_before": 5,
                          "remind_repeat": 7
                        },
                        "unmapped_documents": [
                          {
                            "id": "d04e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
                            "role": "Actor name",
                            "action": "sign"
                          }
                        ],
                        "general_expiration_days": 30,
                        "allowed_unmapped_sign_documents": [
                          {
                            "id": "d04e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
                            "role": "Actor name",
                            "recipient": "Recipient 1"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect Bearer token\n* No access to the document group template",
            "content": {
              "application/json": {
                "examples": {
                  "Access denied": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022001,
                          "message": "Access to DocumentGroupTemplate is denied"
                        }
                      ]
                    }
                  },
                  "Incorrect Bearer token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Document group template ID not found",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "DocumentGroupTemplate `d04e4a885b513a6d9c4c2e7c2b7fa06a013a749f` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "put-v2-document-group-templates-document-group-template-id-recipients",
        "summary": "Edit doc group template recipients",
        "description": "This endpoint allows users to edit the recipients of the document group template. Users can edit recipients' emails, roles, signing order, document attributes, signature invite email attributes, and authentication settings.",
        "parameters": [
          {
            "in": "path",
            "name": "doc_group_template_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group template."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cc": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "order_type": {
                      "enum": [
                        "at_the_same_time",
                        "recipient_order",
                        "advanced_order",
                        null
                      ],
                      "type": "string",
                      "x-nullable": true,
                      "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
                    },
                    "recipients": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "order": {
                            "type": "integer"
                          },
                          "documents": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "role": {
                                  "type": "string"
                                },
                                "action": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "attributes": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string"
                              },
                              "subject": {
                                "type": "string"
                              },
                              "reminder": {
                                "type": "object",
                                "properties": {
                                  "remind_after": {
                                    "type": "integer"
                                  },
                                  "remind_before": {
                                    "type": "integer"
                                  },
                                  "remind_repeat": {
                                    "type": "integer"
                                  }
                                }
                              },
                              "authentication": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                }
                              },
                              "i_am_recipient": {
                                "type": "boolean"
                              },
                              "expiration_days": {
                                "type": "integer"
                              }
                            }
                          },
                          "authentication": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string"
                              },
                              "phone": {
                                "type": "string"
                              },
                              "method": {
                                "type": "string"
                              },
                              "sms_message": {
                                "type": "string"
                              }
                            }
                          },
                          "i_am_recipient": {
                            "type": "boolean"
                          },
                          "allow_forwarding": {
                            "type": "boolean"
                          },
                          "show_decline_button": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "general_reminder": {
                      "type": "object",
                      "properties": {
                        "remind_after": {
                          "type": "integer",
                          "description": "Days after invite is sent before a reminder is delivered."
                        },
                        "remind_before": {
                          "type": "integer",
                          "description": "Days before expiration when a reminder is delivered."
                        },
                        "remind_repeat": {
                          "type": "integer",
                          "description": "Days between repeated reminders."
                        }
                      },
                      "x-nullable": true,
                      "description": "Default `reminder` applied to all recipients in the invite."
                    },
                    "general_expiration_days": {
                      "type": "integer",
                      "x-nullable": true,
                      "description": "Default `expiration_days` applied to all recipients in the invite."
                    },
                    "allowed_unmapped_sign_documents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "recipient": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "cc": [
                        "test@test.com",
                        "test2@test.com"
                      ],
                      "order_type": null,
                      "recipients": [
                        {
                          "name": "Jane Doe",
                          "email": "jane.doe@email.com",
                          "order": 1,
                          "documents": [
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                              "role": "Signer",
                              "action": "sign"
                            },
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
                              "role": "Signer",
                              "action": "sign"
                            }
                          ],
                          "attributes": {
                            "message": "test message 1",
                            "subject": "test subject 1",
                            "reminder": {
                              "remind_after": 10,
                              "remind_before": 10,
                              "remind_repeat": 10
                            },
                            "expiration_days": 20
                          },
                          "authentication": {
                            "type": "phone",
                            "phone": "+1234567",
                            "method": "sms",
                            "sms_message": "Your password is {123456}."
                          },
                          "i_am_recipient": false,
                          "allow_forwarding": false,
                          "show_decline_button": true
                        },
                        {
                          "name": "Jack Finkelstein",
                          "email": "jack.finkelstein@email.com",
                          "order": 2,
                          "documents": [
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                              "role": "Approver",
                              "action": "approve"
                            },
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
                              "role": "Approver",
                              "action": "approve"
                            }
                          ],
                          "attributes": {
                            "message": "test message 2",
                            "subject": "test subject 2",
                            "authentication": {
                              "type": "password",
                              "value": "123456"
                            },
                            "i_am_recipient": false,
                            "expiration_days": 20
                          }
                        }
                      ],
                      "general_reminder": {
                        "remind_after": 3,
                        "remind_before": 5,
                        "remind_repeat": 7
                      },
                      "general_expiration_days": 30,
                      "allowed_unmapped_sign_documents": [
                        {
                          "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
                          "role": "Signer",
                          "recipient": "Recipient 1"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "cc": [
                        "test@test.com",
                        "test2@test.com"
                      ],
                      "order_type": null,
                      "recipients": [
                        {
                          "name": "Jane Doe",
                          "email": "jane.doe@email.com",
                          "order": 1,
                          "documents": [
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                              "role": "Signer",
                              "action": "sign"
                            },
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
                              "role": "Signer",
                              "action": "sign"
                            }
                          ],
                          "attributes": {
                            "message": "test message 1",
                            "subject": "test subject 1",
                            "reminder": {
                              "remind_after": 10,
                              "remind_before": 10,
                              "remind_repeat": 10
                            },
                            "expiration_days": 20
                          },
                          "authentication": {
                            "type": "phone",
                            "phone": "+1234567",
                            "method": "sms",
                            "sms_message": "Your password is {123456}."
                          },
                          "i_am_recipient": false,
                          "allow_forwarding": false,
                          "show_decline_button": true
                        },
                        {
                          "name": "Jack Finkelstein",
                          "email": "jack.finkelstein@email.com",
                          "order": 2,
                          "documents": [
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                              "role": "Approver",
                              "action": "approve"
                            },
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
                              "role": "Approver",
                              "action": "approve"
                            }
                          ],
                          "attributes": {
                            "message": "test message 2",
                            "subject": "test subject 2",
                            "authentication": {
                              "type": "password",
                              "value": "123456"
                            },
                            "i_am_recipient": false,
                            "expiration_days": 20
                          }
                        }
                      ],
                      "general_reminder": {
                        "remind_after": 3,
                        "remind_before": 5,
                        "remind_repeat": 7
                      },
                      "general_expiration_days": 30,
                      "allowed_unmapped_sign_documents": [
                        {
                          "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
                          "role": "Signer",
                          "recipient": "Recipient 1"
                        }
                      ]
                    }
                  },
                  "Successful response": {
                    "value": {
                      "cc": [
                        "test@test.com",
                        "test2@test.com"
                      ],
                      "order_type": null,
                      "recipients": [
                        {
                          "name": "Jane Doe",
                          "email": "jane.doe@email.com",
                          "order": 1,
                          "documents": [
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                              "role": "Signer",
                              "action": "sign"
                            },
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
                              "role": "Signer",
                              "action": "sign"
                            }
                          ],
                          "attributes": {
                            "message": "test message 1",
                            "subject": "test subject 1",
                            "reminder": {
                              "remind_after": 10,
                              "remind_before": 10,
                              "remind_repeat": 10
                            },
                            "expiration_days": 20
                          },
                          "authentication": {
                            "type": "phone",
                            "phone": "+1234567",
                            "method": "sms",
                            "sms_message": "Your password is {123456}."
                          },
                          "i_am_recipient": false,
                          "allow_forwarding": false,
                          "show_decline_button": true
                        },
                        {
                          "name": "Jack Finkelstein",
                          "email": "jack.finkelstein@email.com",
                          "order": 2,
                          "documents": [
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                              "role": "Approver",
                              "action": "approve"
                            },
                            {
                              "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
                              "role": "Approver",
                              "action": "approve"
                            }
                          ],
                          "attributes": {
                            "message": "test message 2",
                            "subject": "test subject 2",
                            "authentication": {
                              "type": "password",
                              "value": "123456"
                            },
                            "i_am_recipient": false,
                            "expiration_days": 20
                          }
                        }
                      ],
                      "general_reminder": {
                        "remind_after": 3,
                        "remind_before": 5,
                        "remind_repeat": 7
                      },
                      "general_expiration_days": 30,
                      "allowed_unmapped_sign_documents": [
                        {
                          "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
                          "role": "Signer",
                          "recipient": "Recipient 1"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- `document_group_template_id` is incorrect.\n- The access token is incorrect.\n**Validation errors**:\n- Recipient-specific validation errors:\n    - `recipients` type is incorrect.\n    - `recipients` is empty.\n    - `recipients` should contain at least one element.\n- Document-specific validation errors:\n    - Document `id` is not part of the document group template.\n    - `documents` type is incorrect.\n    - `documents` value is empty.\n- Allowed_unmapped_sign_documents validation errors. Examples:\n    - `allowed_unmapped_sign_documents` type is incorrect.\n    - `allowed_unmapped_sign_documents` recipients or documents are not in the document group template.\n- CC field validation errors. Examples:\n    - `cc` type is incorrect.\n    - `cc` contains too many elements.\n    - `cc` element value is not a valid email address.\n\n\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 13022001,
                          "message": "Access to DocumentGroupTemplate is denied"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022001,
                          "message": "Access to DocumentGroupTemplate is denied"
                        }
                      ]
                    }
                  },
                  "DGT id is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 13022001,
                          "message": "Access to DocumentGroupTemplate is denied"
                        }
                      ]
                    }
                  },
                  "Access token is incorrect": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "CC field validation errors": {
                    "value": {
                      "errors": [
                        {
                          "code": 13023007,
                          "message": "The `cc` value should contain 100 element or less."
                        }
                      ]
                    }
                  },
                  "Document-specific validation errors": {
                    "value": {
                      "errors": [
                        {
                          "code": 13023022,
                          "message": "The `recipient` element `documents` value should be of type array."
                        }
                      ]
                    }
                  },
                  "Recipient-specific validation errors": {
                    "value": {
                      "errors": [
                        {
                          "code": 13023001,
                          "message": "The `recipients` value should be of type array."
                        }
                      ]
                    }
                  },
                  "Allowed_unmapped_sign_documents validation errors": {
                    "value": {
                      "errors": [
                        {
                          "code": 13023035,
                          "message": "The `allowed_unmapped_sign_document` element `id` value should not be blank."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "recipients"
                ],
                "properties": {
                  "cc": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "test1@email.com, test2@email.com"
                    },
                    "maxItems": 100,
                    "description": "List of cc recipient emails."
                  },
                  "order_type": {
                    "enum": [
                      "at_the_same_time",
                      "recipient_order",
                      "advanced_order",
                      null
                    ],
                    "type": "string",
                    "x-nullable": true,
                    "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
                  },
                  "recipients": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "order",
                        "documents"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "Jane Doe",
                          "description": "Recipient's name."
                        },
                        "email": {
                          "type": "string",
                          "example": "signer@email.com",
                          "description": "Recipient's email address."
                        },
                        "order": {
                          "type": "integer",
                          "example": 1,
                          "description": "Recipient's order of signing."
                        },
                        "documents": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                                "description": "Document ID."
                              },
                              "role": {
                                "type": "string",
                                "example": "Signer",
                                "description": "Recipient's role name.\n"
                              },
                              "action": {
                                "type": "string",
                                "description": "Allowed action with a document. Possible values: `view`, `sign`, `approve`."
                              }
                            }
                          },
                          "description": "List of documents, recipient roles, and allowed actions.\nShould contain at least one document."
                        },
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "message": {
                              "type": "string",
                              "example": "test message",
                              "description": "Invite email message. "
                            },
                            "subject": {
                              "type": "string",
                              "example": "test subject",
                              "description": "Invite email subject. "
                            },
                            "reminder": {
                              "type": "object",
                              "properties": {
                                "remind_after": {
                                  "type": "integer",
                                  "example": 10,
                                  "description": "Send the reminder email to the recipient after the set amount of days.`remind_after` must be less than `expiration_days`.\n"
                                },
                                "remind_before": {
                                  "type": "integer",
                                  "example": 5,
                                  "description": "Send the reminder email to the recipient in a set amount of days before the invite expiration.`remind_before` must be less than `expiration_days`.\n"
                                },
                                "remind_repeat": {
                                  "type": "integer",
                                  "example": 5,
                                  "description": "Send the reminder email to the recipient every set amount of days.`remind_repeat` must be less than `attributes.expiration_days`.\n"
                                }
                              },
                              "description": "Reminder email settings. Available for `sign` action."
                            },
                            "redirect_uri": {
                              "type": "string",
                              "example": "https://www.signnow.com/",
                              "description": "The URL that opens after the recipient completes the document.",
                              "x-stoplight": {
                                "id": "umhswj8fdrrxq"
                              }
                            },
                            "authentication": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "example": "phone",
                                  "description": "Type of the recipient authentication. Can be `phone` or `password`.\n"
                                },
                                "phone": {
                                  "type": "string",
                                  "example": "+12345678",
                                  "description": "The phone number for the recipient's authentication. Used with type `phone`.\n"
                                },
                                "value": {
                                  "type": "string",
                                  "example": "123456",
                                  "description": "The password to unlock the document group template. Used with type `password`.\n"
                                },
                                "method": {
                                  "type": "string",
                                  "example": "sms",
                                  "description": "Authentication method. Used with type `phone`. Should be `sms` or `phone_call`.\n"
                                },
                                "sms_message": {
                                  "type": "string",
                                  "example": "Enter the password {password} to unlock your document.",
                                  "description": "Custom SMS message sent to the recipient, containing the {password} placeholder. Used with the `sms` method. Without this parameter, the signer receives a default SMS with an autogenerated password (unlock code): “SignNow document invite unlock code: 123456.”"
                                }
                              },
                              "description": "Recipient authentication settings. Available for recipients with `sign` and `approve` actions. Can not be used when `allow_forwarding` is set to `true`."
                            },
                            "i_am_recipient": {
                              "type": "boolean",
                              "description": "Set to `true` if the document sender is also a recipient. Available for `sign` action."
                            },
                            "expiration_days": {
                              "type": "integer",
                              "example": 20,
                              "maximum": 180,
                              "minimum": 3,
                              "description": "Days until the invite expires. Available for `sign`and `approve` actions."
                            },
                            "redirect_target": {
                              "type": "string",
                              "example": "blank",
                              "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                              "x-stoplight": {
                                "id": "30rvyfzrgkx7k"
                              }
                            },
                            "allow_forwarding": {
                              "type": "boolean",
                              "description": "Whether recipients are allowed to reassign the invite to a different email address. Available for `sign` action."
                            },
                            "close_redirect_uri": {
                              "type": "string",
                              "example": "https://www.signnow.com/",
                              "description": "The link that opens when a signer clicks **Save Progress and Finish Later** during a signing session or **Close** in view mode. Available for `sign` action.",
                              "x-stoplight": {
                                "id": "0srtnucjz3tia"
                              }
                            },
                            "show_decline_button": {
                              "type": "boolean",
                              "description": "Whether to show the Decline button on signature fields. Available for `sign` action."
                            },
                            "decline_redirect_uri": {
                              "type": "string",
                              "example": "https://www.signnow.com/",
                              "description": "The URL that opens after the recipient declines the document. Available for `sign` action.",
                              "x-stoplight": {
                                "id": "sg8obh2zcvrlp"
                              }
                            }
                          },
                          "description": "Signature invite attributes."
                        }
                      }
                    },
                    "description": "List of document group template recipients.\nShould contain at least one recipient."
                  },
                  "general_reminder": {
                    "type": "object",
                    "properties": {
                      "remind_after": {
                        "type": "integer",
                        "description": "Days after invite is sent before a reminder is delivered. Must be less than `general_expiration_days`."
                      },
                      "remind_before": {
                        "type": "integer",
                        "description": "Days before expiration when a reminder is delivered. Must be less than `general_expiration_days`."
                      },
                      "remind_repeat": {
                        "type": "integer",
                        "description": "Days between repeated reminders."
                      }
                    },
                    "x-nullable": true,
                    "description": "Default `reminder` applied to all recipients in the invite."
                  },
                  "unmapped_documents": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                          "description": "Document ID."
                        },
                        "role": {
                          "type": "string",
                          "example": "Signer",
                          "description": "Recipient's role name."
                        },
                        "action": {
                          "type": "string",
                          "example": "sign",
                          "description": "Allowed action with a document. Possible values: `view`, `sign`, `approve`."
                        }
                      }
                    },
                    "description": "List of recipients that are not assigned to documents in the document group template."
                  },
                  "general_expiration_days": {
                    "type": "integer",
                    "maximum": 180,
                    "minimum": 1,
                    "x-nullable": true,
                    "description": "Default `expiration_days` applied to all recipients in the invite. Min: `1`, Max: `180`. Default: `30`."
                  },
                  "allowed_unmapped_sign_documents": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aYYYY",
                          "description": "Document ID."
                        },
                        "role": {
                          "type": "string",
                          "example": "Signer",
                          "description": "Recipient's role name."
                        },
                        "recipient": {
                          "type": "string",
                          "example": "Jack Finkelstein",
                          "description": "Recipient's name."
                        }
                      }
                    },
                    "description": "List of recipients with unassigned documents that need to be filled out and completed."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "cc": [
                      "test@test.com",
                      "test2@test.com"
                    ],
                    "recipients": [
                      {
                        "name": "Jane Doe",
                        "email": "jane.doe@email.com",
                        "order": 1,
                        "documents": [
                          {
                            "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                            "role": "Signer",
                            "action": "sign"
                          },
                          {
                            "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
                            "role": "Signer",
                            "action": "sign"
                          }
                        ],
                        "attributes": {
                          "message": "test message 1",
                          "subject": "test subject 1",
                          "reminder": {
                            "remind_after": 10,
                            "remind_before": 10,
                            "remind_repeat": 10
                          },
                          "authentication": {
                            "type": "phone",
                            "phone": "+1234567",
                            "method": "sms",
                            "sms_message": "Your password is {123456}."
                          },
                          "i_am_recipient": false,
                          "expiration_days": 20,
                          "allow_forwarding": false,
                          "show_decline_button": true
                        }
                      },
                      {
                        "name": "Jack Finkelstein",
                        "email": "jack.finkelstein@email.com",
                        "order": 2,
                        "documents": [
                          {
                            "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                            "role": "Approver",
                            "action": "approve"
                          },
                          {
                            "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a74aa",
                            "role": "Approver",
                            "action": "approve"
                          }
                        ],
                        "attributes": {
                          "message": "test message 2",
                          "subject": "test subject 2",
                          "authentication": {
                            "type": "password",
                            "value": "123456"
                          },
                          "i_am_recipient": false,
                          "expiration_days": 20
                        }
                      }
                    ],
                    "unmapped_documents": [
                      {
                        "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
                        "role": "Signer",
                        "action": "sign"
                      }
                    ],
                    "allowed_unmapped_sign_documents": [
                      {
                        "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013a749f",
                        "role": "Signer",
                        "recipient": "Recipient 1"
                      }
                    ]
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "cc": [
                      "test1@email.com, test2@email.com"
                    ],
                    "order_type": "recipient_order",
                    "recipients": [
                      {
                        "name": "Jane Doe",
                        "email": "signer@email.com",
                        "order": 1,
                        "documents": [
                          {
                            "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                            "role": "Signer",
                            "action": "string"
                          }
                        ],
                        "attributes": {
                          "message": "test message",
                          "subject": "test subject",
                          "reminder": {
                            "remind_after": 10,
                            "remind_before": 5,
                            "remind_repeat": 5
                          },
                          "authentication": {
                            "type": "phone",
                            "phone": "+12345678",
                            "value": "123456",
                            "method": "sms",
                            "sms_message": "Your password is {123456}."
                          },
                          "i_am_recipient": true,
                          "expiration_days": 20,
                          "allow_forwarding": true,
                          "show_decline_button": true
                        }
                      }
                    ],
                    "general_reminder": {
                      "remind_after": 3,
                      "remind_before": 5,
                      "remind_repeat": 7
                    },
                    "unmapped_documents": [
                      {
                        "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aXXXX",
                        "role": "Signer",
                        "action": "sign"
                      }
                    ],
                    "general_expiration_days": 30,
                    "allowed_unmapped_sign_documents": [
                      {
                        "id": "b12e4a885b513a6d9c4c2e7c2b7fa06a013aYYYY",
                        "role": "Signer",
                        "recipient": "Jack Finkelstein"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-group-templates/{doc_group_template_id}/templates": {
      "post": {
        "operationId": "post-v2-document-group-templates-document-group-template-id-templates",
        "summary": "Add template to doc group template",
        "description": "This endpoint allows users to add a document or template to the specific document group template.\n\n**Note**: Uploaded documents are automatically converted to templates. Templates or documents added to the document group template are accessible only from the document group template management page.\n\nThe successful request returns an ID of the template added to the document group template.\n",
        "parameters": [
          {
            "in": "path",
            "name": "doc_group_template_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group template."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "ID of the template."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "id": "d7c1697249214e33be1ef5e968822c6d2d505555"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "id": "d7c1697249214e33be1ef5e968822c6d2d505555"
                      }
                    }
                  },
                  "Successful request": {
                    "value": {
                      "data": {
                        "id": "d7c1697249214e33be1ef5e968822c6d2d505555"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- Only one of `document_id` or `template_id` can be used.\n- `document_id` is not a string.\n- `document_id` or `template_id` is required.\n- Incorrect `document_id`.\n- User is not the owner of the document group template.\n- User is not the document owner.\n- Authorization is required.\n- Document has active signature invites.\n- Document is in the document group.\n- Document is in the document group template.\n- User is not the template owner.\n- Template is in the document group template.\n- `template_id` is not a string.\n- Incorrect `template_id`.\n- Document not found.\n- Template not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 13025006,
                          "message": "Invalid payload. Only one of `document_id` or `template_id` parameters should be used."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 13025006,
                          "message": "Invalid payload. Only one of `document_id` or `template_id` parameters should be used."
                        }
                      ]
                    }
                  },
                  "Document in DGT": {
                    "value": {
                      "code": 13026009,
                      "message": "Document is contained in document group template."
                    }
                  },
                  "Template in DGT": {
                    "value": {
                      "code": 13026010,
                      "message": "Template is contained in document group template."
                    }
                  },
                  "Document not found": {
                    "value": {
                      "code": 13026006,
                      "message": "Document 0aa11112b0ed4aaaaaaaaaaaaaaaaaaaaeea07f1111e not found."
                    }
                  },
                  "Template not found": {
                    "value": {
                      "code": 13026007,
                      "message": "Template not found."
                    }
                  },
                  "User not DGT owner": {
                    "value": {
                      "code": 13026003,
                      "message": "User is not document group template owner."
                    }
                  },
                  "Incorrect document_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 13025003,
                          "message": "The `document_id` value is not valid."
                        }
                      ]
                    }
                  },
                  "Incorrect template_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 13025005,
                          "message": "The `template_id` value is not valid."
                        }
                      ]
                    }
                  },
                  "Authorization required": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "document_id not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13025002,
                          "message": "The `document_id` value should be of type string."
                        }
                      ]
                    }
                  },
                  "template_id not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13025004,
                          "message": "The `template_id` value should be of type string."
                        }
                      ]
                    }
                  },
                  "User not document owner": {
                    "value": {
                      "code": 13026001,
                      "message": "User is not document owner."
                    }
                  },
                  "User not template owner": {
                    "value": {
                      "code": 13026008,
                      "message": "User is not template owner."
                    }
                  },
                  "Document in document group": {
                    "value": {
                      "code": 13026005,
                      "message": "Document in document group."
                    }
                  },
                  "Document has active signature invites": {
                    "value": {
                      "code": 13026004,
                      "message": "Document with active invites."
                    }
                  },
                  "Only one of document_id or template_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 13025006,
                          "message": "Invalid payload. Only one of `document_id` or `template_id` parameters should be used."
                        }
                      ]
                    }
                  },
                  "document_id or template_id is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 13025001,
                          "message": "One of `document_id` or `template_id` value should not be blank."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "- Document group template not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 13026006,
                      "message": "Document 0aa11112b0ed4aaaaaaaaaaaaaaaaaaaaeea07f1111e not found"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 13026006,
                      "message": "Document 0aa11112b0ed4aaaaaaaaaaaaaaaaaaaaeea07f1111e not found"
                    }
                  },
                  "DGT not found": {
                    "value": {
                      "code": 23001014,
                      "message": "Document Group Template 0aa11112b0ed4aaaaaaaaaaaaaaaaaaaaeea07f1111e not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "document_id",
                  "template_id"
                ],
                "properties": {
                  "document_id": {
                    "type": "string",
                    "example": "0aa11112b0ed40aab8cab111a76a6eea07f0000e",
                    "description": "ID of the document to be added to the document group template. Only one parameter (`document_id` or `template_id`) should be provided per request."
                  },
                  "template_id": {
                    "type": "string",
                    "example": "0bb21112b0ed40aab8cab111a76a6eea07f0000e",
                    "description": "ID of the template to be added to the document group template. Only one parameter (`document_id` or `template_id`) should be provided per request.",
                    "x-stoplight": {
                      "id": "xdtovbjnskdp4"
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "document_id": "0aa11112b0ed40aab8cab111a76a6eea07f0000e"
                  }
                }
              },
              "examples": {
                "Add document": {
                  "value": {
                    "document_id": "0aa11112b0ed40aab8cab111a76a6eea07f0000e"
                  }
                },
                "Add template": {
                  "value": {
                    "template_id": "0aa44442b0ed40aab8cab111a76a6eea07f0000e"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-group-templates/{document_group_template_id}": {
      "get": {
        "operationId": "get-document-group-template-info",
        "summary": "Get doc group template info",
        "description": "This endpoint allows API users to retrieve information about a specific document group template, including its documents, the roles assigned to each document, and, optionally, the fields in each document.\n\nAvailable to the document group template owner and to users the template is shared with.\n\n**Notes**\n\n* Use the `include` query parameter to add optional data to the response. Unknown values are ignored.\n* With `?include=documents.fields`, each item in `documents` contains a `fields` array. Without it, the response doesn't include `fields`.\n* The objects in `fields` have the same format as the `fields` array of [`GET /document/{document_id}`](/docs/document/operations/get-document). Template fields don't contain a `data` key. Default values set in the template, such as `prefilled_text` for text fields, are returned inside `json_attributes`.\n* The response doesn't include dropdown options (`enumeration_options`) or checkbox groups (`checkbox_groups`). [`GET /document/{document_id}`](/docs/document/operations/get-document) returns them at the document level, so call it for each document that needs them.\n* `roles` contains role names only. To get the signing order and other recipient settings, call [`GET /v2/document-group-templates/{document_group_template_id}/recipients`](/docs/document-group-template/operations/get-v2-document-group-templates-doc-group-template-id-recipients).\n* To add or update fields, call [`PUT /document/{document_id}`](/docs/document/operations/edit-document) for each document.\n* To work with a document in the template, call this endpoint to get the current document IDs right before you use them.\n* For document groups, use [`GET /v2/document-groups/{document_group_id}`](/docs/document-group/operations/get-document-group-info-v2).",
        "parameters": [
          {
            "in": "query",
            "name": "include=documents.fields",
            "type": "string",
            "required": false,
            "description": "If used, each item in `documents` contains a `fields` array with the fields of that document."
          },
          {
            "in": "path",
            "name": "document_group_template_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group template."
          }
        ],
        "responses": {
          "200": {
            "description": "- Request with correct token\n- Request with `include=documents.fields`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier of the document group template."
                        },
                        "name": {
                          "type": "string",
                          "description": "Name of the document group template."
                        },
                        "owner": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Unique identifier of the owner."
                            },
                            "email": {
                              "type": "string",
                              "description": "Email address of the owner."
                            }
                          },
                          "description": "Owner of the document group template."
                        },
                        "created": {
                          "type": "integer",
                          "description": "Unix timestamp (seconds) when the document group template was created."
                        },
                        "updated": {
                          "type": "integer",
                          "description": "Unix timestamp (seconds) of the last update to the document group template."
                        },
                        "documents": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "description": "Unique identifier of the document. Can change when the template is converted, so don't store it as a permanent key."
                              },
                              "roles": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "description": "Name of the role, for example `Signer 1`."
                                    }
                                  }
                                },
                                "description": "Active roles assigned to the document. An empty array if the document has no roles."
                              },
                              "fields": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Unique identifier of the field."
                                    },
                                    "role": {
                                      "type": "string",
                                      "description": "Name of the role the field is assigned to."
                                    },
                                    "type": {
                                      "enum": [
                                        "text",
                                        "signature",
                                        "checkbox",
                                        "initials",
                                        "enumeration",
                                        "attachment",
                                        "radiobutton",
                                        "hyperlink",
                                        "stamp"
                                      ],
                                      "type": "string",
                                      "description": "Field type."
                                    },
                                    "radio": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "integer",
                                            "description": "Horizontal position of the button, in pixels."
                                          },
                                          "y": {
                                            "type": "integer",
                                            "description": "Vertical position of the button, in pixels."
                                          },
                                          "value": {
                                            "type": "string",
                                            "description": "Value of the button."
                                          },
                                          "width": {
                                            "type": "integer",
                                            "description": "Width of the button, in pixels."
                                          },
                                          "height": {
                                            "type": "integer",
                                            "description": "Height of the button, in pixels."
                                          },
                                          "checked": {
                                            "type": "integer",
                                            "description": "`1` if the button is selected, `0` otherwise."
                                          },
                                          "created": {
                                            "type": "integer",
                                            "description": "Unix timestamp when the button was created."
                                          },
                                          "radio_id": {
                                            "type": "string",
                                            "description": "Unique identifier of the radio button."
                                          },
                                          "page_number": {
                                            "type": "integer",
                                            "description": "Zero-based number of the page the button is on."
                                          },
                                          "json_attributes": {
                                            "type": "array",
                                            "items": {},
                                            "description": "Additional button attributes. Empty array if none."
                                          }
                                        }
                                      },
                                      "description": "For `radiobutton` fields only: the buttons in the radio group."
                                    },
                                    "role_id": {
                                      "type": "string",
                                      "description": "Unique identifier of the role the field is assigned to. Role IDs are unique per document: a role with the same name has a different `role_id` in each document of the template. To match roles across documents, use `role`."
                                    },
                                    "field_id": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Always `null` for a document group template field. Kept for compatibility with `GET /document/{document_id}`."
                                    },
                                    "fulfiller": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Always `null` for a document group template field. Kept for compatibility with `GET /document/{document_id}`."
                                    },
                                    "element_id": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Always `null` for a document group template field. Kept for compatibility with `GET /document/{document_id}`."
                                    },
                                    "originator": {
                                      "type": "string",
                                      "description": "Email address of the document group template owner."
                                    },
                                    "json_attributes": {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "integer",
                                          "description": "Horizontal position of the field on the page, in pixels."
                                        },
                                        "y": {
                                          "type": "integer",
                                          "description": "Vertical position of the field on the page, in pixels."
                                        },
                                        "bold": {
                                          "type": "boolean",
                                          "description": "`true` if the text is bold."
                                        },
                                        "font": {
                                          "type": "string",
                                          "description": "Font name, for example `Arial`."
                                        },
                                        "name": {
                                          "type": "string",
                                          "description": "Name of the field."
                                        },
                                        "size": {
                                          "type": "number",
                                          "description": "Font size in the SignNow editor scale, where the page is rendered `890` pixels wide. From `8` to `72`."
                                        },
                                        "align": {
                                          "enum": [
                                            "left",
                                            "center",
                                            "right"
                                          ],
                                          "type": "string",
                                          "description": "Horizontal text alignment."
                                        },
                                        "color": {
                                          "type": "string",
                                          "description": "Text color as a 6-character hex code without `#`, for example `000000`."
                                        },
                                        "label": {
                                          "type": "string",
                                          "description": "Label of the field shown to the recipient. Returned only if a label is set."
                                        },
                                        "value": {
                                          "type": "string",
                                          "description": "For `checkbox` fields: the checkbox label."
                                        },
                                        "width": {
                                          "type": "integer",
                                          "description": "Width of the field, in pixels."
                                        },
                                        "height": {
                                          "type": "integer",
                                          "description": "Height of the field, in pixels."
                                        },
                                        "italic": {
                                          "type": "boolean",
                                          "description": "`true` if the text is italic."
                                        },
                                        "valign": {
                                          "enum": [
                                            "top",
                                            "middle",
                                            "bottom"
                                          ],
                                          "type": "string",
                                          "description": "Vertical text alignment."
                                        },
                                        "required": {
                                          "type": "boolean",
                                          "description": "`true` if the recipient must fill in the field."
                                        },
                                        "font_size": {
                                          "type": "number",
                                          "description": "Font size on the document page, in PDF points. The same size as `size`, converted to the page scale."
                                        },
                                        "max_chars": {
                                          "type": "integer",
                                          "description": "Maximum number of characters the recipient can enter. From `0` to `999`; `0` means no limit."
                                        },
                                        "max_lines": {
                                          "type": "integer",
                                          "description": "Maximum number of lines the recipient can enter. From `0` to `99`; `0` means no limit."
                                        },
                                        "underline": {
                                          "type": "boolean",
                                          "description": "`true` if the text is underlined."
                                        },
                                        "arrangement": {
                                          "enum": [
                                            "none",
                                            "cells"
                                          ],
                                          "type": "string",
                                          "description": "How the text is laid out in the field. `none`: regular text. `cells`: one character per cell; `max_lines` is then `1`."
                                        },
                                        "page_number": {
                                          "type": "integer",
                                          "description": "Zero-based number of the page the field is on."
                                        },
                                        "allowed_types": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          },
                                          "description": "For `signature` fields: the ways the recipient can add a signature. Possible values: `type`, `draw`, `upload`."
                                        },
                                        "prefilled_text": {
                                          "type": "string",
                                          "description": "Default value of the field, set in the template. For `text` fields: the default text, returned only if set. For `checkbox` fields: `\"0\"` if the checkbox is not checked by default."
                                        },
                                        "custom_defined_option": {
                                          "type": "string",
                                          "description": "For `enumeration` (dropdown) fields: whether the recipient can enter their own value instead of choosing a listed option. An empty string or `false` means they can't."
                                        }
                                      },
                                      "description": "Position, size, and settings of the field. The set of keys depends on the field type."
                                    },
                                    "field_request_id": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Always `null` for a document group template field. Kept for compatibility with `GET /document/{document_id}`."
                                    },
                                    "template_field_id": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Always `null` for a document group template field. Kept for compatibility with `GET /document/{document_id}`."
                                    },
                                    "field_request_canceled": {
                                      "type": "string",
                                      "x-nullable": true,
                                      "description": "Always `null` for a document group template field. Kept for compatibility with `GET /document/{document_id}`."
                                    }
                                  }
                                },
                                "description": "Fields in the document. Returned only with `?include=documents.fields`. An empty array if the document has no fields. Each object has the same format as an item of the `fields` array returned by [`GET /document/{document_id}`](/docs/document/operations/get-document). Fields are listed by type in this order: `text`, `signature`, `checkbox`, `initials`, `enumeration`, `attachment`, `radiobutton`, `hyperlink`, `stamp`."
                              },
                              "document_name": {
                                "type": "string",
                                "description": "Name of the document."
                              }
                            }
                          },
                          "description": "Active documents in the template, in template order."
                        }
                      },
                      "description": "Information about the document group template."
                    }
                  }
                },
                "examples": {
                  "Basic": {
                    "value": {
                      "data": {
                        "id": "1adf85e869f45799558ab737df1cff93bad1cd4e",
                        "name": "Employee onboarding",
                        "owner": {
                          "id": "579233b2c479241523cba5e3af55d0f50f2d6414",
                          "email": "owner@example.com"
                        },
                        "created": 1791365561,
                        "updated": 1791366293,
                        "documents": [
                          {
                            "id": "ee17560c8b77385b5bb8d8687820f9b82f3fdcdf",
                            "roles": [
                              {
                                "name": "Signer 1"
                              },
                              {
                                "name": "Signer 2"
                              }
                            ],
                            "document_name": "Employment Agreement"
                          },
                          {
                            "id": "ce9ed66d82df7ce028a8623498350e2fb4412132",
                            "roles": [
                              {
                                "name": "Signer 2"
                              }
                            ],
                            "document_name": "Payroll Details"
                          },
                          {
                            "id": "7cfd024b513673d9b90b6432f97d06812fec5f2b",
                            "roles": [],
                            "document_name": "Company Logo"
                          }
                        ]
                      }
                    }
                  },
                  "With document fields": {
                    "value": {
                      "data": {
                        "id": "1adf85e869f45799558ab737df1cff93bad1cd4e",
                        "name": "Employee onboarding",
                        "owner": {
                          "id": "579233b2c479241523cba5e3af55d0f50f2d6414",
                          "email": "owner@example.com"
                        },
                        "created": 1791365561,
                        "updated": 1791366293,
                        "documents": [
                          {
                            "id": "ee17560c8b77385b5bb8d8687820f9b82f3fdcdf",
                            "roles": [
                              {
                                "name": "Signer 1"
                              },
                              {
                                "name": "Signer 2"
                              }
                            ],
                            "fields": [
                              {
                                "id": "c09bb890b096f7306f688cc6d1dad34e7e52a223",
                                "role": "Signer 1",
                                "type": "text",
                                "role_id": "956998ca9bda000121215a6242b5659c8b86915a",
                                "field_id": null,
                                "fulfiller": null,
                                "element_id": null,
                                "originator": "owner@example.com",
                                "json_attributes": {
                                  "x": 219,
                                  "y": 123,
                                  "bold": false,
                                  "font": "Arial",
                                  "name": "Employee name",
                                  "size": 12,
                                  "align": "left",
                                  "color": "000000",
                                  "width": 328,
                                  "height": 21,
                                  "italic": false,
                                  "valign": "top",
                                  "required": true,
                                  "font_size": 8,
                                  "max_chars": 0,
                                  "max_lines": 0,
                                  "underline": false,
                                  "arrangement": "none",
                                  "page_number": 0,
                                  "prefilled_text": "Enter employee name here"
                                },
                                "field_request_id": null,
                                "template_field_id": null,
                                "field_request_canceled": null
                              },
                              {
                                "id": "cf1126f67238bf3e85fcc8c8737b72e80ddcfddb",
                                "role": "Signer 1",
                                "type": "signature",
                                "role_id": "956998ca9bda000121215a6242b5659c8b86915a",
                                "field_id": null,
                                "fulfiller": null,
                                "element_id": null,
                                "originator": "owner@example.com",
                                "json_attributes": {
                                  "x": 54,
                                  "y": 531,
                                  "name": "Employee signature",
                                  "width": 231,
                                  "height": 27,
                                  "required": true,
                                  "page_number": 0,
                                  "allowed_types": [
                                    "type",
                                    "draw",
                                    "upload"
                                  ]
                                },
                                "field_request_id": null,
                                "template_field_id": null,
                                "field_request_canceled": null
                              },
                              {
                                "id": "619aae029dda528253a6af0ba619b45baa1df115",
                                "role": "Signer 2",
                                "type": "text",
                                "role_id": "27563652e18222021d20bf272406dcbdab76bbeb",
                                "field_id": null,
                                "fulfiller": null,
                                "element_id": null,
                                "originator": "owner@example.com",
                                "json_attributes": {
                                  "x": 218,
                                  "y": 243,
                                  "bold": false,
                                  "font": "Arial",
                                  "name": "Manager name",
                                  "size": 12,
                                  "align": "left",
                                  "color": "000000",
                                  "width": 328,
                                  "height": 21,
                                  "italic": false,
                                  "valign": "top",
                                  "required": true,
                                  "font_size": 8,
                                  "max_chars": 0,
                                  "max_lines": 0,
                                  "underline": false,
                                  "arrangement": "none",
                                  "page_number": 0
                                },
                                "field_request_id": null,
                                "template_field_id": null,
                                "field_request_canceled": null
                              }
                            ],
                            "document_name": "Employment Agreement"
                          },
                          {
                            "id": "ce9ed66d82df7ce028a8623498350e2fb4412132",
                            "roles": [
                              {
                                "name": "Signer 2"
                              }
                            ],
                            "fields": [
                              {
                                "id": "adfec5772ae8932aa10896037b0779bec915015b",
                                "role": "Signer 2",
                                "type": "text",
                                "role_id": "5ebd260849efd1ba3d6ff32b61753b3a8df6d693",
                                "field_id": null,
                                "fulfiller": null,
                                "element_id": null,
                                "originator": "owner@example.com",
                                "json_attributes": {
                                  "x": 218,
                                  "y": 141,
                                  "bold": false,
                                  "font": "Arial",
                                  "name": "Bank account",
                                  "size": 12,
                                  "align": "left",
                                  "color": "000000",
                                  "width": 330,
                                  "height": 21,
                                  "italic": false,
                                  "valign": "top",
                                  "required": true,
                                  "font_size": 8,
                                  "max_chars": 0,
                                  "max_lines": 0,
                                  "underline": false,
                                  "arrangement": "none",
                                  "page_number": 0
                                },
                                "field_request_id": null,
                                "template_field_id": null,
                                "field_request_canceled": null
                              },
                              {
                                "id": "547cd2ba3a17b483651496c5ba8c78f1789b5cbd",
                                "role": "Signer 2",
                                "type": "signature",
                                "role_id": "5ebd260849efd1ba3d6ff32b61753b3a8df6d693",
                                "field_id": null,
                                "fulfiller": null,
                                "element_id": null,
                                "originator": "owner@example.com",
                                "json_attributes": {
                                  "x": 52,
                                  "y": 549,
                                  "name": "Manager signature",
                                  "width": 231,
                                  "height": 27,
                                  "required": true,
                                  "page_number": 0,
                                  "allowed_types": [
                                    "type",
                                    "draw",
                                    "upload"
                                  ]
                                },
                                "field_request_id": null,
                                "template_field_id": null,
                                "field_request_canceled": null
                              }
                            ],
                            "document_name": "Payroll Details"
                          },
                          {
                            "id": "7cfd024b513673d9b90b6432f97d06812fec5f2b",
                            "roles": [],
                            "fields": [],
                            "document_name": "Company Logo"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- Request with incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Invalid token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "- Document group template ID does not exist\n- Document group template is not active\n- User has no access to the document group template",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Not found or no access": {
                    "value": {
                      "errors": [
                        {
                          "code": 23001014,
                          "message": "Document Group Template `c3d8d1f0e1a24b6e9f2a7b5c4d3e2f1a0b9c8d7e` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-group-templates/{unique_id}/document-group": {
      "post": {
        "operationId": "post-v2-document-group-templates-unique-id-document-group",
        "summary": "Create doc group from template",
        "description": "This endpoint allows API users to create a document group from a document group template.\n\nThe new document group is a signable copy: the template stays untouched as the master version. The documents in the group have new IDs that differ from the ones in the template, so build any invite from the IDs returned by this request. For the full flow, from preparing the documents to sending the group for signature, see [Documents, doc groups, and templates](/docs/entities). To let recipients sign the group inside your own site or app, see [Embedded signing](/docs/guides-embedded-signing).",
        "parameters": [
          {
            "in": "path",
            "name": "unique_id",
            "type": "string",
            "required": true,
            "description": "Document group template unique ID"
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully created document group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "owner": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "email": {
                              "type": "string"
                            },
                            "organization": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "null"
                                }
                              }
                            }
                          }
                        },
                        "state": {
                          "type": "string"
                        },
                        "created": {
                          "type": "integer"
                        },
                        "documents": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "roles": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "thumbnail": {
                                "type": "object",
                                "properties": {
                                  "large": {
                                    "type": "string"
                                  },
                                  "small": {
                                    "type": "string"
                                  },
                                  "medium": {
                                    "type": "string"
                                  }
                                }
                              },
                              "document_name": {
                                "type": "string"
                              },
                              "origin_document_id": {
                                "type": "string"
                              },
                              "has_unassigned_field": {
                                "type": "boolean"
                              },
                              "has_credit_card_number": {
                                "type": "boolean"
                              }
                            }
                          }
                        },
                        "invite_id": {
                          "type": "string",
                          "x-nullable": true
                        },
                        "unique_id": {
                          "type": "string"
                        },
                        "owner_email": {
                          "type": "string"
                        },
                        "last_invite_id": {
                          "type": "string",
                          "x-nullable": true
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "name": "Marvel group",
                        "owner": {
                          "id": "d611277a2fdb429baea8220cd945975342ff7ab7",
                          "email": "mila.s.nikitenko@gmail.com",
                          "organization": {
                            "id": null
                          }
                        },
                        "state": "created",
                        "created": 1675344851,
                        "documents": [
                          {
                            "id": "0ca8b738e9e94feca4d73cfe96aebd737e2867f0",
                            "roles": [],
                            "thumbnail": {
                              "large": "https://api.signnow-dev.xyz/document/0ca8b738e9e94feca4d73cfe96aebd737e2867f0/thumbnail?size=large",
                              "small": "https://api.signnow-dev.xyz/document/0ca8b738e9e94feca4d73cfe96aebd737e2867f0/thumbnail?size=small",
                              "medium": "https://api.signnow-dev.xyz/document/0ca8b738e9e94feca4d73cfe96aebd737e2867f0/thumbnail?size=medium"
                            },
                            "document_name": "Doc without fields should_delete_document true",
                            "origin_document_id": "996575737c6148b78e1576520c9a9395798e34b7",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "2303d8a403aa4044800db4c7f793c1eb717d5f20",
                            "roles": [],
                            "thumbnail": {
                              "large": "https://api.signnow-dev.xyz/document/2303d8a403aa4044800db4c7f793c1eb717d5f20/thumbnail?size=large",
                              "small": "https://api.signnow-dev.xyz/document/2303d8a403aa4044800db4c7f793c1eb717d5f20/thumbnail?size=small",
                              "medium": "https://api.signnow-dev.xyz/document/2303d8a403aa4044800db4c7f793c1eb717d5f20/thumbnail?size=medium"
                            },
                            "document_name": "Doc without fields should_delete_document true",
                            "origin_document_id": "b9d692fe4c244090b9a568710ec856ba114c0b53",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "b9510bc52b6844718f35dc68c44a99f9242c5cab",
                            "roles": [],
                            "thumbnail": {
                              "large": "https://api.signnow-dev.xyz/document/b9510bc52b6844718f35dc68c44a99f9242c5cab/thumbnail?size=large",
                              "small": "https://api.signnow-dev.xyz/document/b9510bc52b6844718f35dc68c44a99f9242c5cab/thumbnail?size=small",
                              "medium": "https://api.signnow-dev.xyz/document/b9510bc52b6844718f35dc68c44a99f9242c5cab/thumbnail?size=medium"
                            },
                            "document_name": "RELEASE",
                            "origin_document_id": "72598958d80d4bb0bbb2937b9b6ffe04da4dbea3",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "b6575aacaef143959ff08d9b9145229f0bcf308f",
                            "roles": [
                              "Signer 1"
                            ],
                            "thumbnail": {
                              "large": "https://api.signnow-dev.xyz/document/b6575aacaef143959ff08d9b9145229f0bcf308f/thumbnail?size=large",
                              "small": "https://api.signnow-dev.xyz/document/b6575aacaef143959ff08d9b9145229f0bcf308f/thumbnail?size=small",
                              "medium": "https://api.signnow-dev.xyz/document/b6575aacaef143959ff08d9b9145229f0bcf308f/thumbnail?size=medium"
                            },
                            "document_name": "without fields",
                            "origin_document_id": "bcb6496ffbbb43c5ba55d8bab5710d3c00477d62",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          }
                        ],
                        "invite_id": null,
                        "unique_id": "92679f664b4b4c0a85521337d70f0a94c7898285",
                        "owner_email": "mila.s.nikitenko@gmail.com",
                        "last_invite_id": null
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "name": "Marvel group",
                        "owner": {
                          "id": "d611277a2fdb429baea8220cd945975342ff7ab7",
                          "email": "mila.s.nikitenko@gmail.com",
                          "organization": {
                            "id": null
                          }
                        },
                        "state": "created",
                        "created": 1675344851,
                        "documents": [
                          {
                            "id": "0ca8b738e9e94feca4d73cfe96aebd737e2867f0",
                            "roles": [],
                            "thumbnail": {
                              "large": "https://api.signnow-dev.xyz/document/0ca8b738e9e94feca4d73cfe96aebd737e2867f0/thumbnail?size=large",
                              "small": "https://api.signnow-dev.xyz/document/0ca8b738e9e94feca4d73cfe96aebd737e2867f0/thumbnail?size=small",
                              "medium": "https://api.signnow-dev.xyz/document/0ca8b738e9e94feca4d73cfe96aebd737e2867f0/thumbnail?size=medium"
                            },
                            "document_name": "Doc without fields should_delete_document true",
                            "origin_document_id": "996575737c6148b78e1576520c9a9395798e34b7",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "2303d8a403aa4044800db4c7f793c1eb717d5f20",
                            "roles": [],
                            "thumbnail": {
                              "large": "https://api.signnow-dev.xyz/document/2303d8a403aa4044800db4c7f793c1eb717d5f20/thumbnail?size=large",
                              "small": "https://api.signnow-dev.xyz/document/2303d8a403aa4044800db4c7f793c1eb717d5f20/thumbnail?size=small",
                              "medium": "https://api.signnow-dev.xyz/document/2303d8a403aa4044800db4c7f793c1eb717d5f20/thumbnail?size=medium"
                            },
                            "document_name": "Doc without fields should_delete_document true",
                            "origin_document_id": "b9d692fe4c244090b9a568710ec856ba114c0b53",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "b9510bc52b6844718f35dc68c44a99f9242c5cab",
                            "roles": [],
                            "thumbnail": {
                              "large": "https://api.signnow-dev.xyz/document/b9510bc52b6844718f35dc68c44a99f9242c5cab/thumbnail?size=large",
                              "small": "https://api.signnow-dev.xyz/document/b9510bc52b6844718f35dc68c44a99f9242c5cab/thumbnail?size=small",
                              "medium": "https://api.signnow-dev.xyz/document/b9510bc52b6844718f35dc68c44a99f9242c5cab/thumbnail?size=medium"
                            },
                            "document_name": "RELEASE",
                            "origin_document_id": "72598958d80d4bb0bbb2937b9b6ffe04da4dbea3",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "b6575aacaef143959ff08d9b9145229f0bcf308f",
                            "roles": [
                              "Signer 1"
                            ],
                            "thumbnail": {
                              "large": "https://api.signnow-dev.xyz/document/b6575aacaef143959ff08d9b9145229f0bcf308f/thumbnail?size=large",
                              "small": "https://api.signnow-dev.xyz/document/b6575aacaef143959ff08d9b9145229f0bcf308f/thumbnail?size=small",
                              "medium": "https://api.signnow-dev.xyz/document/b6575aacaef143959ff08d9b9145229f0bcf308f/thumbnail?size=medium"
                            },
                            "document_name": "without fields",
                            "origin_document_id": "bcb6496ffbbb43c5ba55d8bab5710d3c00477d62",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          }
                        ],
                        "invite_id": null,
                        "unique_id": "92679f664b4b4c0a85521337d70f0a94c7898285",
                        "owner_email": "mila.s.nikitenko@gmail.com",
                        "last_invite_id": null
                      }
                    }
                  },
                  "Successfully created Document Group": {
                    "value": {
                      "data": {
                        "name": "Sample group",
                        "owner": {
                          "id": "d6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "owner@email.com",
                          "organization": {
                            "id": null
                          }
                        },
                        "state": "created",
                        "created": 1675344851,
                        "documents": [
                          {
                            "id": "0cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "roles": [],
                            "thumbnail": {
                              "large": "https://sample.com/thumbnail?size=large",
                              "small": "https://sample.com/thumbnail?size=small",
                              "medium": "https://sample.com/thumbnail?size=medium"
                            },
                            "document_name": "Sample document name 1",
                            "origin_document_id": "99XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "23XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "roles": [],
                            "thumbnail": {
                              "large": "https://sample.com/thumbnail?size=large",
                              "small": "https://sample.com/thumbnail?size=small",
                              "medium": "https://sample.com/thumbnail?size=medium"
                            },
                            "document_name": "Sample document name 2",
                            "origin_document_id": "b9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "b9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "roles": [],
                            "thumbnail": {
                              "large": "https://sample.com/thumbnail?size=large",
                              "small": "https://sample.com/thumbnail?size=small",
                              "medium": "https://sample.com/thumbnail?size=medium"
                            },
                            "document_name": "Sample document name 3",
                            "origin_document_id": "72XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          },
                          {
                            "id": "b6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "roles": [
                              "Signer 1"
                            ],
                            "thumbnail": {
                              "large": "https://sample.com/thumbnail?size=large",
                              "small": "https://sample.com/thumbnail?size=small",
                              "medium": "https://sample.com/thumbnail?size=medium"
                            },
                            "document_name": "Sample document name 4",
                            "origin_document_id": "bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                            "has_unassigned_field": false,
                            "has_credit_card_number": false
                          }
                        ],
                        "invite_id": null,
                        "unique_id": "92XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "owner_email": "owner@email.com",
                        "last_invite_id": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- Invalid token:\n  - invalid token of user\n  - expired token of user\n  - empty header\n  - authorization = null\n  - authorization without value\n- Invalid payload\n- Incorrect folder_id property\n- Incorrect client_timestamp property\n- folder_id not found or deleted\n- group_name property is empty\n- Folder does not have enough permissions\n- Folder does not exist\n- Something happened during copying file\n- User doesn't have rights to write into folder",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Invalid token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Invalid payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "Folder does not exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020002,
                          "message": "Document folder is not found. Folder ID: `{folder_id}`."
                        }
                      ]
                    }
                  },
                  "Error copying Template": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020007,
                          "message": "Error Copying Template. ID: {document_id}. Error: {error}"
                        }
                      ]
                    }
                  },
                  "Folder without permissions": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020003,
                          "message": "Not enough permissions to add document group into the folder `{folder_id}`."
                        }
                      ]
                    }
                  },
                  "Incorrect folder_id property": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020008,
                          "message": "`folder_id` must be string"
                        },
                        {
                          "code": 13020009,
                          "message": "`folder_id` must match with pattern `[a-z0-9]{40}`"
                        }
                      ]
                    }
                  },
                  "group_name property is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020010,
                          "message": "group_name property is empty"
                        }
                      ]
                    }
                  },
                  "No rights to write into folder": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020003,
                          "message": "Not enough permissions to add document group into the folder `{folder_id}`."
                        }
                      ]
                    }
                  },
                  "folder_id not found or deleted": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020002,
                          "message": "Document folder is not found. Folder ID: {folder_id}."
                        }
                      ]
                    }
                  },
                  "Incorrect client_timestamp property": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020012,
                          "message": "`client_timestamp` must be string"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "group_name"
                ],
                "properties": {
                  "folder_id": {
                    "type": "string",
                    "description": "ID of the folder"
                  },
                  "group_name": {
                    "type": "string",
                    "description": "Name of the Document Group"
                  },
                  "client_timestamp": {
                    "type": "string",
                    "description": "Timestamp of client"
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "folder_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                    "group_name": "Sample group",
                    "client_timestamp": "4562325644"
                  }
                }
              },
              "examples": {
                "Example of the request body": {
                  "value": {
                    "folder_id": "ddXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                    "group_name": "Sample group",
                    "client_timestamp": "4562325644"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{doc_group_id}/document-group-template": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-uid-document-group-template",
        "summary": "Create doc group template from doc group",
        "description": "This endpoint allows API users to create a new document group template from a document group in any status.\n\nAs a result, user gets one document group template and separate templates from each document in the document group.\n\nTo collect signatures, create a document group from the template with [Create doc group from template](/docs/document-group-template/operations/post-v2-document-group-templates-unique-id-document-group), then send that group. For the full flow, see [Documents, doc groups, and templates](/docs/entities).",
        "parameters": [
          {
            "in": "path",
            "name": "doc_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "202": {
            "description": "Document group template copy has been scheduled",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Authorization issues: invalid token of user, expired token of user, empty header, authorization = null, authorization without value\n* Incorrect type of name field\n* Unsupported symbols in the name field\n* Length of the name field is too long\n* Incorrect type of folder_id field\n* Incorrect value of folder_id field\n* Empty name field\n* With non-Template(or its sub-folder) folder_id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty name field": {
                    "value": {
                      "code": 23003006,
                      "message": "The `name` field must not be empty."
                    }
                  },
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Incorrect type of name field": {
                    "value": {
                      "code": 23003003,
                      "message": "The `name` field must be a string."
                    }
                  },
                  "Incorrect type of folder_id field": {
                    "value": {
                      "code": 23003001,
                      "message": "The `folder_id` field must be a string."
                    }
                  },
                  "Incorrect value of folder_id field": {
                    "value": {
                      "code": 23003001,
                      "message": "The `folder_id` field value must be valid unique_id."
                    }
                  },
                  "Length of the name field is too long": {
                    "value": {
                      "code": 23003005,
                      "message": "The `name` must not exceed 255 chars."
                    }
                  },
                  "Unsupported symbols in the name field": {
                    "value": {
                      "code": 23003004,
                      "message": "Unsupported symbol at `name` field value. Allowed symbols: A-Z, a-z, 0-9, '_', '.', '-', ' '."
                    }
                  },
                  "With non-Template(or its sub-folder) folder_id": {
                    "value": {
                      "code": 23003009,
                      "message": "Document Group Template could be create in folder or sub-folders of Templates only."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Forbidden access to the Document Group\n* Forbidden access to the provided folder",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Forbidden access to the Document Group": {
                    "value": {
                      "code": 13020001,
                      "message": "You do not own this DocumentGroup"
                    }
                  },
                  "Forbidden access to the provided folder": {
                    "value": {
                      "code": 23003008,
                      "message": "User don`t have access to folder."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Folder does not exist\n* Document Group does not exist or is deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Folder does not exist": {
                    "value": {
                      "code": 23003007,
                      "message": "User folder not found."
                    }
                  },
                  "Document Group does not exist or deleted": {
                    "value": {
                      "code": 23001015,
                      "message": "Document Group `{dg_uid}` not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name for a new Document group template.",
                    "x-stoplight": {
                      "id": "8k87jesg0p3i6"
                    }
                  },
                  "folder_id": {
                    "type": "string",
                    "description": "The folder where to save the new Document group template. Must be saved to a Templates folder or any of its sub-folders.",
                    "x-stoplight": {
                      "id": "9265xix62sar1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/documents/{document_id}/embedded-invites": {
      "post": {
        "operationId": "create-embedded-signing-invite",
        "summary": "Create embedded invite",
        "description": "This endpoint allows users to create an embedded signing invite for a document. Once the invite is created, generate an embedded signing link using [`POST v2/documents/{{document_id}}/embedded-invites/{{embedded_invite_id}}/link`](/docs/document-embedded-signing/operations/generate-link-for-embedded-invite) with the ID you got in the response.\n\n\nBefore sending your request, ensure the following:\n- You are the owner of the document to be signed.\n- The invite is being created for a document (not a template).\n- Your document contains fields.\n- The document is not part of any other invite (pending or signed).\n- Signers' email addresses are unique and do not exceed 150 characters.\n- All roles or role IDs in the document are included in the invite (specifying extra roles will result in an error).\n- The document owner cannot be assigned as a signer.\n\n\nYou can also include `approvers`. These recipients review the document without signing or filling fields. Each approver requires `email`, `role`, `order`, and `auth_method`. Note that `order` values must be unique across `invites` and `approvers`.\n\nParameters `role` and `role_id` can be retrieved from the response from [`GET /document/{{document_id}}`](/docs/document/operations/get-document). Specify a role either by `role` (unique role name, e.g. “Signer 1”), `role_id` (unique role identifier), or both `role` and `role_id`. Ensure they correspond to each other.\n\nUse these parameters to customize the request:\n\n<details>\n<summary><b>Recipient authentication for the signing session</b></summary>\n\nUse the `authentication` object to set up the signer's authentication for the signing session.\n\n* Authentication type: `phone`, method: `sms`. Note that `sms_message` parameter must contain `{password}` placeholder.\nThis method is used to authenticate the signer using a password sent via SMS.\n\n```json\n\"authentication\": {\n    \"type\": \"phone\",\n    \"method\": \"sms\",\n    \"phone\": \"+1XXXXXXXXX\",\n    \"sms_message\": \"Custom test message with {password}\"\n}\n```\n\n* Authentication type: `phone`,  method: `phone_call`\nThis method is used to authenticate the signer with a password delivered via a phone call.\n\n```json\n\"authentication\": {\n    \"type\": \"phone\",\n    \"method\": \"phone_call\",\n    \"phone\": \"+1XXXXXXXXX\"\n}\n```\n* Authentication type: `password`\nThis method is used to authenticate the signer using a pre-set password.\n\n```json\n\"authentication\": {\n    \"type\": \"password\",\n    \"password\": \"123456\"\n}\n```\n</details>\n<br>\n\n<details>\n\n<summary><b>name_formula</b> parameter</summary>\n\nUse the `name_formula` parameter to generate a completed document name based on the `text_prefix` (can be any text) and fillable field data.\n\nFor example, let's set the first part of the completed document name as `Contract` and use data from two document fields (we can use up to five fields):\n* `signer_name` (filled as `John Smith`)\n* `signed_date` (filled as `20.01.2023`)\n\nAfter the signer completes the document, the document will have the name `Contract John Smith 20.01.2023`.\n\nNote that you can not use signature fields for `name_formula`.\n\n</details>\n<br>\n\n<details>\n\n<summary><b>auth_method</b> used in the integrated application</summary>\n\nThe `auth_method` parameter is defined by the application owner to specify the method used to authenticate the signer within the integrated application.\nPossible values are: `password`, `email`, `social`, `mfa`, `biometric`, `other`, `none`.\n\n**Note**: The `auth_method` parameter does not influence the signer's authentication method during the signing session. Use the `authentication` object to configure authentication for the signing session.\n\n</details>\n<br>\n\n<details>\n\n<summary><b>from_email, from_name</b></summary>\n\nUse `from_email` and `from_name` parameters to customize the appearance of the sender's email address and name. \n\nNote that both parameters are optional and applicable only when `delivery_type`=`email`.\n\nExplore the three scenarios of passing the from_name and from_email parameters:\n\n**When both `from_email` and `from_name` are passed:**\n\nThe custom `from_name` appears:\n\n- in email subject of the invite, reassign, reminder, and completed emails.\n\nThe custom `from_email` appears:\n\n- in email body of the invite, reassign, reminder, and completed emails.\n- when clicking **Contact Sender** and in **Reply-to** in the emails.\n- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.\n\n---\n\n**When only `from_email` is passed:**\n\nThe local part of `from_email` (before `@`) appears:\n\n- in email subject of the invite, reassign, reminder, and completed emails.\n\nThe custom `from_email` appears:\n\n- in email body of the invite, reassign, reminder, and completed emails.\n- when clicking **Contact Sender** and in **Reply-to** in the emails.\n- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.\n\n---\n\n**When only `from_name` is passed:**\n\nThe custom `from_name` appears:\n\n- in email subject of the invite, reassign, reminder, and completed emails.\n\nThe default (owner’s) `from_email` appears:\n\n- in email body of the invite, reassign, reminder, and completed emails.\n- when clicking **Contact Sender** and in **Reply-to** in the emails.\n- in the signing session: when clicking **Contact Sender** in the **More Actions** menu.\n\n</details>\n\nLearn more about [embedded signing](/docs/guides-embedded-signing).\n",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Document ID."
          }
        ],
        "responses": {
          "201": {
            "description": "* Response to a correct request\n* Response to a correct request with `name_formula` parameter to change the completed document name.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "ID of the created embedded invite."
                          },
                          "email": {
                            "type": "string"
                          },
                          "order": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string"
                          },
                          "role_id": {
                            "type": "string"
                          }
                        }
                      },
                      "description": "Data object with the embedded invite info."
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "data": [
                        {
                          "id": "03XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "signer1@email.com",
                          "order": 1,
                          "status": "pending",
                          "role_id": "33XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "id": "b9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "signer2@email.com",
                          "order": 1,
                          "status": "pending",
                          "role_id": "88XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "id": "c7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "signer3@email.com",
                          "order": 1,
                          "status": "pending",
                          "role_id": "99XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "id": "a4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "approver1@email.com",
                          "order": 4,
                          "status": "created",
                          "role_id": "44XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "id": "a5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "approver2@email.com",
                          "order": 5,
                          "status": "created",
                          "role_id": "55XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ]
                    }
                  },
                  "Response to a correct request": {
                    "value": {
                      "data": [
                        {
                          "id": "13XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "link": "https://example.com",
                          "email": "signer@email.com",
                          "order": 1,
                          "status": "pending",
                          "role_id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "expires_at": 1589546224,
                          "redirect_uri": "https://example.com",
                          "redirect_target": "blank",
                          "decline_redirect_uri": "https://signnow.com"
                        },
                        {
                          "id": "a7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "approver@email.com",
                          "order": 2,
                          "status": "created",
                          "role_id": "44XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ]
                    }
                  },
                  "With \"name_formula\" parameter ": {
                    "value": {
                      "data": [
                        {
                          "id": "5fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "signer@email.com",
                          "order": 1,
                          "status": "pending",
                          "role_id": "58XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Document has active invites.\n* Email addresses in embedded invites are not unique.\n* Document has no active fields.\n* The role doesn't exist in the document.\n* Document owner's email was used as a signer's email.\n* Not all of the document roles were used.\n* Invite for the role already exists.\n\n\n**Validation errors**:\n* The `prefill_signature_name` contains unsupported characters.\n* The `authentication.type` is not a string.\n* The `authentication.type` is not valid. Possible values: `phone`, `password`.\n* The `phone` is not a string.\n* The `phone` format is not valid.\n* The `phone` field is required when `authentication.type` = `phone`.\n* The `method` is not valid. Possible values: `sms`, `phone_call`.\n* The`method` parameter can be used if `authentication.type` = `phone`.\n* The `password` is not a string.\n* The `password` parameter is required when `authentication.type` = `password`.\n* The `sms_message` is not a string.\n* The `sms_message` value is empty.\n* The `sms_message` value is too long (must have 154 characters or less).\n* The `sms_message` contains unsupported characters.\n* The `phone` parameter is required when `authentication.type` = `phone`.\n* The `method` parameter is required when `authentication.type` = `phone`.  \n* The `sms_message` parameter can be used only when `authentication.type` = `phone` and `method` = `sms`. \n* The `password` field is required when `authentication.type` = `password`.\n* The `method` field is not a string.\n* The `authentication.type` is empty.\n* The `name_formula` field is not a string.\n* The `name_formula` value is empty.\n* The `name_formula` contains unsupported characters.\n* The `name_formula` contains more than 5 fields.\n* The `name_formula` have `{field_name}` that does not exist in document or field type is not text.\n* The `name_formula` have duplicate `{field_name}` values.\n* The `required_preset_signature_name` is not a string.\n* The `required_preset_signature_name` value is empty.\n* The `required_preset_signature_name` is too long (must not exceed 255 characters).\n* The `required_preset_signature_name` contains unsupported characters.\n* Parameter `required_preset_signature_name` is used with `prefill_signature_name` for the same role.\n* Parameter `required_preset_signature_name` is used with `force_new_signature` for the same role.\n* The `language` is not a string.\n* The`language` is incorrect. Possible values: `en`, `fr`, `es`.\n* The `decline_redirect_uri` is not a string.\n* The `decline_redirect_uri` is empty.\n* The`decline_redirect_uri` is not a correct URL.\n* The`redirect_target` is not a string.\n* The`redirect_target` is incorrect. Possible values: self, blank.\n* One of `redirect_uri` fields is required when `redirect_target` is added.\n* The `redirect_uri` is too long (must not exceed 2048 characters).\n* The `decline_redirect_uri` is too long (must not exceed 2048 characters).\n* The `delivery_type` is not a string.\n* Incorrect `delivery_type`. Possible values: `email`, `link`.\n* The `link_expiration` is not an integer.\n* The `link_expiration` is incorrect (must be 15 or more).\n* The `link_expiration` is incorrect (must be 45 or less).\n* The `link_expiration` can only be used if `delivery_type=email`.\n* The `session_expiration` is not an integer.\n* The `session_expiration` is out of range.\n* The `session_expiration` can only be used if `delivery_type=email`.\n* Parameter `subject` in `invites` is not a string.\n* Parameter `subject` in `invites` is empty.\n* Parameter `subject` in `invites` contains unsupported characters.\n* Parameter `subject` in `invites` is too long.\n* Parameter `subject` in `invites` is used when `delivery_type` is not `email`.\n* Parameter `message` in `invites` is not a string.\n* Parameter `message` in `invites` is empty.\n* Parameter `message` in `invites` contains unsupported characters.\n* Parameter `message` in `invites` is too long.\n* Parameter `message` in `invites` is used when `delivery_type` is not `email`.\n* Your subscription plan does not include email invite customization.\n\n\n**QES-specific errors**:\n\n* The organization has no advanced sign provider enabled.\n* The user is not part of the organization.\n* Multiple signers were found in a single step.\n* Different signature providers assigned to signers.\n* The `signature` field type is incorrect.\n* The `signature.type` value  is empty.\n* The `signature.type` value type is incorrect.\n* The `signature.type` value is not supported.\n\n\n**Approver-specific errors**:\n\n* The `approvers` field is not an array.\n* The `approvers` field items are not arrays.\n* In `approvers`, multiple approvers share the same `order`.\n* An approver's `order` is shared with another role.\n* In `approvers`, role names are not unique.\n* The `email` field in `approvers` is not a string / is blank / is not a valid email.\n* The `role` field in `approvers` is not a string / is blank / exceeds 255 characters / contains 4-byte characters.\n* The `order` field in `approvers` is not an integer / is blank / is not between 1 and 127.\n* The `auth_method` field in `approvers` is not a string / is blank / is not one of the allowed values.\n* The `first_name` field in `approvers` is not a string / contains 4-byte characters / exceeds the character limit.\n* The `last_name` field in `approvers` is not a string / contains 4-byte characters / exceeds the character limit.\n* The `language` field in `approvers` is not a string / is invalid (allowed: `en`, `fr`, `es`).\n* The `delivery_type` field in `approvers` is not a string / is invalid (allowed: `email`, `link`).\n* The `link_expiration` field in `approvers` is not an integer / is less than 15 minutes / is set when `delivery_type` is not `email`.\n* The `session_expiration` field in `approvers` is not an integer / is out of range / is set when `delivery_type` is not `email`.\n* The `subject` field in `approvers` is not a string / is blank / contains 4-byte characters / exceeds the character limit / is set when `delivery_type` is not `email`.\n* The `message` field in `approvers` is not a string / is blank / contains 4-byte characters / exceeds the character limit / is set when `delivery_type` is not `email`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": "19003095",
                          "message": "The `signature.type` attribute is not valid. Allowed values: “eideasy”, “nom151."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": "19003095",
                          "message": "The `signature.type` attribute is not valid. Allowed values: “eideasy”, “nom151."
                        }
                      ]
                    }
                  },
                  "Unused role": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002019,
                          "message": "Role {role_id} was not specified in any invite. All roles must be used."
                        }
                      ]
                    }
                  },
                  "Message is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003106,
                          "message": "The `message` field in `invites` must not be an empty string."
                        }
                      ]
                    }
                  },
                  "More than 1 step": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002004,
                          "message": "Can send an embedded invite with only one step."
                        }
                      ]
                    }
                  },
                  "No active fields": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002016,
                          "message": "Cannot send an invite. This document does not contain fields."
                        }
                      ]
                    }
                  },
                  "Subject is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003101,
                          "message": "The `subject` field in `invites` must not be an empty string."
                        }
                      ]
                    }
                  },
                  "Duplicated emails": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002005,
                          "message": "Emails in embedded invites must be unique."
                        }
                      ]
                    }
                  },
                  "Non-existent role": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002018,
                          "message": "Role {role_id} does not exist in the document."
                        }
                      ]
                    }
                  },
                  "Owner is a signer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002021,
                          "message": "The document owner cannot send invite to himself."
                        }
                      ]
                    }
                  },
                  "Approver role blank": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003123,
                          "message": "The `role` field in `approvers` must not be blank."
                        }
                      ]
                    }
                  },
                  "Different providers": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003096,
                          "message": "The `signature.type` fields must be the same for all signers."
                        }
                      ]
                    }
                  },
                  "Message is too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003108,
                          "message": "The `message` field in `invites` must not exceed 5000 characters."
                        }
                      ]
                    }
                  },
                  "Subject is too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003103,
                          "message": "The `subject` field in `invites` must not exceed 1000 characters."
                        }
                      ]
                    }
                  },
                  "Approver email blank": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003120,
                          "message": "The `email` field in `approvers` must not be blank."
                        }
                      ]
                    }
                  },
                  "Approver order blank": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003127,
                          "message": "The `order` field in `approvers` must not be blank."
                        }
                      ]
                    }
                  },
                  "Authentication errors": {
                    "value": {
                      "invites": [
                        {
                          "email": "signer1@email.com",
                          "order": 1,
                          "role_id": "role_id",
                          "last_name": "qwerty",
                          "first_name": "qwerty",
                          "auth_method": "email",
                          "authentication": {
                            "type": "phone",
                            "phone": "+1XXX-XXXXXXX",
                            "method": "sms",
                            "sms_message": "message"
                          }
                        },
                        {
                          "email": "signer2@email.com",
                          "order": 1,
                          "role_id": "role_id",
                          "last_name": "qwerty",
                          "first_name": "qwerty",
                          "auth_method": "email",
                          "authentication": {
                            "type": "password",
                            "password": "password"
                          }
                        }
                      ]
                    }
                  },
                  "Message is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003105,
                          "message": "The `message` field in `invites` must be a string."
                        }
                      ]
                    }
                  },
                  "Subject is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003100,
                          "message": "The `subject` field in `invites` must be a string."
                        }
                      ]
                    }
                  },
                  "Approver email invalid": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003121,
                          "message": "The `email` field in `approvers` must be a valid email."
                        }
                      ]
                    }
                  },
                  "Approver message empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003157,
                          "message": "The `message` field in `approvers` must not be an empty string."
                        }
                      ]
                    }
                  },
                  "Approver role too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003124,
                          "message": "The `role` field in `approvers` must contain no more than 255 characters."
                        }
                      ]
                    }
                  },
                  "Approver subject empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003152,
                          "message": "The `subject` field in `approvers` must not be an empty string."
                        }
                      ]
                    }
                  },
                  "approvers is not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003117,
                          "message": "The `approvers` field must be an array."
                        }
                      ]
                    }
                  },
                  "Incorrect delivery_type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003083,
                          "message": "The `delivery_type field` in `invites` is invalid, allowed values: email, link."
                        }
                      ]
                    }
                  },
                  "link_expiration too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19004009,
                          "message": "The `link_expiration` field in `invites` must be less than or equal to 45 minutes."
                        }
                      ]
                    }
                  },
                  "signature.type is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003094,
                          "message": "The `signature.type` cannot be null."
                        }
                      ]
                    }
                  },
                  "Approver role not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003122,
                          "message": "The `role` field in `approvers` must be a string."
                        }
                      ]
                    }
                  },
                  "Approver role not unique": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003134,
                          "message": "In the `approvers` field, each role name must be unique."
                        }
                      ]
                    }
                  },
                  "User not in organization": {
                    "value": {
                      "errors": [
                        {
                          "code": 19004011,
                          "message": "Organization is required to send an invite with advanced signing."
                        }
                      ]
                    }
                  },
                  "delivery_type not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003082,
                          "message": "The `delivery_type` field in `invites` must be a string."
                        }
                      ]
                    }
                  },
                  "Approver email not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003119,
                          "message": "The `email` field in `approvers` must be a string."
                        }
                      ]
                    }
                  },
                  "Approver language invalid": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003142,
                          "message": "The `language` field in `approvers` is invalid. Allowed values: en, fr, es."
                        }
                      ]
                    }
                  },
                  "Approver message too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003159,
                          "message": "The `message` field in `approvers` must not exceed 5000 characters."
                        }
                      ]
                    }
                  },
                  "Approver subject too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003154,
                          "message": "The `subject` field in `approvers` must not exceed 1000 characters."
                        }
                      ]
                    }
                  },
                  "No advanced sign provider": {
                    "value": {
                      "errors": [
                        {
                          "code": 19004012,
                          "message": "The sender organization’s advanced sign provider is not valid."
                        }
                      ]
                    }
                  },
                  "Redundant link_expiration": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003086,
                          "message": "In `invites`, the `link_expiration` field must be used if the `delivery_type` field contains `email`."
                        }
                      ]
                    }
                  },
                  "approvers items not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003118,
                          "message": "The `approvers` field items must be arrays."
                        }
                      ]
                    }
                  },
                  "Approver auth_method blank": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003130,
                          "message": "The `auth_method` field in `approvers` must not be blank."
                        }
                      ]
                    }
                  },
                  "Approver order not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003126,
                          "message": "The `order` field in `approvers` must be an integer."
                        }
                      ]
                    }
                  },
                  "link_expiration too little": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003085,
                          "message": "The `link_expiration` field in `invites` must be greater than or equal to 15 minutes."
                        }
                      ]
                    }
                  },
                  "Approver last_name too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003140,
                          "message": "The `last_name` field in `approvers` must not exceed 64 characters."
                        }
                      ]
                    }
                  },
                  "Approver message not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003156,
                          "message": "The `message` field in `approvers` must be a string."
                        }
                      ]
                    }
                  },
                  "Approver order out of range": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003128,
                          "message": "The `order` field in `approvers` must be between 1 and 127."
                        }
                      ]
                    }
                  },
                  "Approver subject not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003151,
                          "message": "The `subject` field in `approvers` must be a string."
                        }
                      ]
                    }
                  },
                  "Document has active invites": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002017,
                          "message": "An invite already exists for this document."
                        }
                      ]
                    }
                  },
                  "Signature type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003099,
                          "message": "The `signature` field in `invites` must be an array."
                        }
                      ]
                    }
                  },
                  "link_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003084,
                          "message": "The `link_expiration` field in `invites` must be an integer."
                        }
                      ]
                    }
                  },
                  "signature.type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003098,
                          "message": "The `signature.type` must be a string."
                        }
                      ]
                    }
                  },
                  "Approver auth_method invalid": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003131,
                          "message": "The `auth_method` field in `approvers` must be one of the allowed values."
                        }
                      ]
                    }
                  },
                  "Approver first_name too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003137,
                          "message": "The `first_name` field in `approvers` must not exceed 64 characters."
                        }
                      ]
                    }
                  },
                  "Approver language not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003141,
                          "message": "The `language` field in `approvers` must be a string."
                        }
                      ]
                    }
                  },
                  "Redundant session_expiration": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003093,
                          "message": "In `invites`, the `session_expiration` field must be used if the `delivery_type` field contains `email`."
                        }
                      ]
                    }
                  },
                  "Approver last_name not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003138,
                          "message": "The `last_name` field in `approvers` must be a string."
                        }
                      ]
                    }
                  },
                  "Approver message 4-byte chars": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003158,
                          "message": "UTF-8 4-byte characters in the `message` field in `approvers` are not supported."
                        }
                      ]
                    }
                  },
                  "Approver subject 4-byte chars": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003153,
                          "message": "UTF-8 4-byte characters in the `subject` field in `approvers` are not supported."
                        }
                      ]
                    }
                  },
                  "Multiple signers for one step": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003097,
                          "message": "Must have only one signer per step if a signature field exists."
                        }
                      ]
                    }
                  },
                  "Approver delivery_type invalid": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003144,
                          "message": "The `delivery_type` field in `approvers` is invalid. Allowed values: email, link."
                        }
                      ]
                    }
                  },
                  "Approver first_name not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003135,
                          "message": "The `first_name` field in `approvers` must be a string."
                        }
                      ]
                    }
                  },
                  "session_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003091,
                          "message": "The `session_expiration` field in `invites` must be an integer."
                        }
                      ]
                    }
                  },
                  "Approver auth_method not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003129,
                          "message": "The `auth_method` field in `approvers` must be a string."
                        }
                      ]
                    }
                  },
                  "Approver last_name 4-byte chars": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003139,
                          "message": "UTF-8 4-byte characters in the `last_name` field in `approvers` are not supported."
                        }
                      ]
                    }
                  },
                  "session_expiration out of range": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003092,
                          "message": "The `session_expiration` field in `invites` must be between 15 and 1440 minutes."
                        }
                      ]
                    }
                  },
                  "signature.type is not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003095,
                          "message": "The `signature.type` attribute is not valid. Allowed values: “eideasy”, “nom151."
                        }
                      ]
                    }
                  },
                  "Approver first_name 4-byte chars": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003136,
                          "message": "UTF-8 4-byte characters in the `first_name` field in `approvers` are not supported."
                        }
                      ]
                    }
                  },
                  "Approver delivery_type not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003143,
                          "message": "The `delivery_type` field in `approvers` must be a string."
                        }
                      ]
                    }
                  },
                  "Email customization not available": {
                    "value": {
                      "errors": [
                        {
                          "code": 19004014,
                          "message": "Upgrade your subscription plan to customize the invite subject and message."
                        }
                      ]
                    }
                  },
                  "Approver link_expiration too small": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003146,
                          "message": "The `link_expiration` field in `approvers` must be greater than or equal to 15 minutes."
                        }
                      ]
                    }
                  },
                  "Approver link_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003145,
                          "message": "The `link_expiration` field in `approvers` must be an integer."
                        }
                      ]
                    }
                  },
                  "Approver order shared with another role": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003133,
                          "message": "An approver's `order` must not be shared with other roles."
                        }
                      ]
                    }
                  },
                  "Approver session_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003148,
                          "message": "The `session_expiration` field in `approvers` must be an integer."
                        }
                      ]
                    }
                  },
                  "Message contains unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003107,
                          "message": "UTF-8 4-byte characters in the `message` field are not supported."
                        }
                      ]
                    }
                  },
                  "Subject contains unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003102,
                          "message": "UTF-8 4-byte characters in the `subject` field are not supported."
                        }
                      ]
                    }
                  },
                  "Approver order conflict within approvers": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003132,
                          "message": "In the `approvers` field, each `order` must have only one approver."
                        }
                      ]
                    }
                  },
                  "Approver role contains 4-byte characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003125,
                          "message": "The `role` field in `approvers` must not contain 4-byte characters."
                        }
                      ]
                    }
                  },
                  "Approver session_expiration out of range": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003149,
                          "message": "The `session_expiration` field in `approvers` must be between 15 and 1440 minutes."
                        }
                      ]
                    }
                  },
                  "Message is used with wrong delivery_type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003109,
                          "message": "The `message` field in `invites` must be used only if the `delivery_type` field is set to `email`."
                        }
                      ]
                    }
                  },
                  "Subject is used with wrong delivery_type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003104,
                          "message": "The `subject` field in `invites` must be used only if the `delivery_type` field is set to `email`."
                        }
                      ]
                    }
                  },
                  "Approver message with wrong delivery_type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003160,
                          "message": "The `message` field in `approvers` must be used only if the `delivery_type` field is set to `email`."
                        }
                      ]
                    }
                  },
                  "Approver subject with wrong delivery_type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003155,
                          "message": "The `subject` field in `approvers` must be used only if the `delivery_type` field is set to `email`."
                        }
                      ]
                    }
                  },
                  "Approver link_expiration with wrong delivery_type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003147,
                          "message": "The `link_expiration` field in `approvers` must be used only if the `delivery_type` field is set to `email`."
                        }
                      ]
                    }
                  },
                  "Approver session_expiration with wrong delivery_type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19003150,
                          "message": "The `session_expiration` field in `approvers` must be used only if the `delivery_type` field is set to `email`."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User doesn't own the document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 19001002,
                          "message": "User is not document owner."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001002,
                          "message": "User is not document owner."
                        }
                      ]
                    }
                  },
                  "User doesn't own the document": {
                    "value": {
                      "code": 19001002,
                      "message": "User is not document owner."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Document not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Document not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002001,
                          "message": "Document not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Document is template",
            "content": {
              "application/json": {
                "examples": {
                  "Document is template": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001003,
                          "message": "Cannot send invites for templates."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invites": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "email",
                        "role_id",
                        "order",
                        "auth_method"
                      ],
                      "properties": {
                        "role": {
                          "type": "string",
                          "example": "Recipient 1",
                          "description": "Recipient's role name."
                        },
                        "email": {
                          "type": "string",
                          "example": "signer@email.com",
                          "description": "Email address of the recipient."
                        },
                        "order": {
                          "type": "integer",
                          "example": 1,
                          "description": "The order of signing."
                        },
                        "message": {
                          "type": "string",
                          "example": "Please review the invoice and sign it at your earliest convenience.",
                          "maxLength": 5000,
                          "description": "Invite email message. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails.",
                          "x-stoplight": {
                            "id": "p6qdwelzotcow"
                          }
                        },
                        "subject": {
                          "type": "string",
                          "example": "Review and sign the invoice",
                          "maxLength": 1000,
                          "description": "Invite email subject. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails.",
                          "x-stoplight": {
                            "id": "hweqz6janu23i"
                          }
                        },
                        "language": {
                          "type": "string",
                          "example": "en",
                          "description": "Sets the language of the signing session for the recipient. Possible values: `en` for English, `es` for Spanish, `fr` for French."
                        },
                        "last_name": {
                          "type": "string",
                          "example": "Doe",
                          "description": "Signer's last name."
                        },
                        "signature": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "example": "eideasy",
                              "description": "Type of the QES. Allowed vaules are `eideasy`, `nom151`. For more information, see [QES user guide](/docs/qualified-electronic-signature).",
                              "x-stoplight": {
                                "id": "chg74gqg704ir"
                              }
                            }
                          },
                          "description": "This object is used to request QES signatures from signers. To create an embedded invite with QES, a user must be a member of an organization with QES settings enabled. If QES is specified, it must be used for all signers in the invite.",
                          "x-stoplight": {
                            "id": "i44p23xv82csv"
                          }
                        },
                        "first_name": {
                          "type": "string",
                          "example": "John",
                          "description": "Signer's first name."
                        },
                        "auth_method": {
                          "type": "string",
                          "example": "none",
                          "description": "Defines the method used to authenticate the recipient within the integrated application. Allowed values: `password`, `email`, `mfa`, `biometric`, `social`, `other`, `none`."
                        },
                        "redirect_uri": {
                          "type": "string",
                          "example": "https://example.com",
                          "description": "The link that opens after the signing session has been completed."
                        },
                        "authentication": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "example": "phone",
                              "description": "Authentication type used for the recipient authentication during the signing session. Required inside `authentication` object. Allowed values: `phone`, `password`."
                            },
                            "phone": {
                              "type": "string",
                              "example": "+1XXXXXXXXX",
                              "description": "Phone number used to authenticate the recipient. Required inside `authentication` object with the `phone` method."
                            },
                            "method": {
                              "type": "string",
                              "example": "sms",
                              "description": "Method of the `phone` authentication type. Required inside `authentication` object with the `phone` authentication type. Allowed values: `sms`, `phone_call`.\n"
                            },
                            "password": {
                              "type": "string",
                              "example": "123456",
                              "description": "Password set for the recipient authentication. Required inside the  `authentication`  object with the  `password`  authentication type."
                            },
                            "sms_message": {
                              "type": "string",
                              "example": "Enter the password {password} to unlock your document.",
                              "maxLength": 140,
                              "description": "Custom sms message sent to the recipient, containing the {password} placeholder. Used with the `sms` method. Without this parameter, the recipient receives a default sms with an autogenerated password (unlock code) - \"SignNow document invite unlock code: 123456\"."
                            }
                          },
                          "description": "Authentication settings used to verify the recipient identity."
                        },
                        "delivery_type ": {
                          "type": "string",
                          "default": "link",
                          "description": "Defines how the invite is sent. Allowed values: `email`, `link`.\n"
                        },
                        "redirect_target": {
                          "type": "string",
                          "default": "self",
                          "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab."
                        },
                        "link_expiration ": {
                          "type": "integer",
                          "maximum": 43200,
                          "minimum": 15,
                          "description": "In how many minutes the email invite expires. Can be used only if `delivery_type`=`email`."
                        },
                        "close_redirect_uri": {
                          "type": "string",
                          "example": "https://example.com",
                          "description": "The link that opens when a signer clicks **Save Progress and Finish Later** during a signing session or **Close** in view mode."
                        },
                        "session_expiration": {
                          "type": "integer",
                          "maximum": 1440,
                          "minimum": 15,
                          "description": "In how many minutes the signing session expires. If a link is generated for this invite, the session expiration is reset. Can be used only if `delivery_type=email`.",
                          "x-stoplight": {
                            "id": "2xz1y3kaq2nha"
                          }
                        },
                        "force_new_signature": {
                          "type": "integer",
                          "example": 0,
                          "description": "Defines whether the signer can use their saved signature or not. If set to `1`, the signer has to add a new signature. If set to `0`, the signer can use the saved signature.\n"
                        },
                        "decline_redirect_uri": {
                          "type": "string",
                          "example": "https://example.com",
                          "description": "The link that opens after the signing session has been declined by the signer."
                        },
                        "prefill_signature_name": {
                          "type": "string",
                          "example": "John Doe",
                          "maxLength": 255,
                          "description": "The text displayed in the Signature field. The signer can edit this value."
                        },
                        "required_preset_signature_name": {
                          "type": "string",
                          "example": "Jane Smith",
                          "description": "The text displayed in the Signature field. The signer cannot edit this value. Can not be used simultaneously with `prefill_signature_name` or `force_new_signature` for the same role."
                        }
                      }
                    },
                    "description": "The object that holds the attributes of the invite."
                  },
                  "approvers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "email",
                        "role",
                        "order",
                        "auth_method"
                      ],
                      "properties": {
                        "role": {
                          "type": "string",
                          "example": "Approver 1",
                          "maxLength": 255,
                          "description": "Approver's role name. Must be unique within `approvers`."
                        },
                        "email": {
                          "type": "string",
                          "example": "approver@email.com",
                          "description": "Email address of the approver."
                        },
                        "order": {
                          "type": "integer",
                          "example": 2,
                          "maximum": 127,
                          "minimum": 1,
                          "description": "The order of approval. Each `order` value in `approvers` must be unique within the array and must not be shared with signer roles."
                        },
                        "message": {
                          "type": "string",
                          "example": "Please review the invoice and approve it at your earliest convenience.",
                          "maxLength": 5000,
                          "description": "Invite email message. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails."
                        },
                        "subject": {
                          "type": "string",
                          "example": "Review and approve the invoice",
                          "maxLength": 1000,
                          "description": "Invite email subject. Available if the `delivery_type` = `email`. Overrides branding settings when sending emails."
                        },
                        "language": {
                          "type": "string",
                          "example": "en",
                          "description": "Sets the language of the approval session for the approver. Possible values: `en` for English, `es` for Spanish, `fr` for French."
                        },
                        "last_name": {
                          "type": "string",
                          "example": "Doe",
                          "description": "Approver's last name."
                        },
                        "first_name": {
                          "type": "string",
                          "example": "John",
                          "description": "Approver's first name."
                        },
                        "auth_method": {
                          "type": "string",
                          "example": "none",
                          "description": "Defines the method used to authenticate the approver within the integrated application. Allowed values: `password`, `email`, `mfa`, `biometric`, `social`, `other`, `none`."
                        },
                        "delivery_type": {
                          "type": "string",
                          "default": "link",
                          "description": "Defines how the invite is sent. Allowed values: `email`, `link`."
                        },
                        "authentication": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "example": "phone",
                              "description": "Authentication type used for the approver authentication during the approval session. Required inside `authentication` object. Allowed values: `phone`, `password`."
                            },
                            "phone": {
                              "type": "string",
                              "example": "+1XXXXXXXXX",
                              "description": "Phone number used to authenticate the approver. Required inside `authentication` object with the `phone` method."
                            },
                            "method": {
                              "type": "string",
                              "example": "sms",
                              "description": "Method of the `phone` authentication type. Required inside `authentication` object with the `phone` authentication type. Allowed values: `sms`, `phone_call`."
                            },
                            "password": {
                              "type": "string",
                              "example": "123456",
                              "description": "Password set for the approver authentication. Required inside the `authentication` object with the `password` authentication type."
                            },
                            "sms_message": {
                              "type": "string",
                              "example": "Enter the password {password} to unlock your document.",
                              "maxLength": 140,
                              "description": "Custom SMS message sent to the approver, containing the {password} placeholder. Used with the `sms` method."
                            }
                          },
                          "description": "Authentication settings used to verify the approver identity."
                        },
                        "link_expiration": {
                          "type": "integer",
                          "maximum": 43200,
                          "minimum": 15,
                          "description": "In how many minutes the email invite expires. Can be used only if `delivery_type`=`email`."
                        },
                        "session_expiration": {
                          "type": "integer",
                          "maximum": 1440,
                          "minimum": 15,
                          "description": "In how many minutes the approval session expires. If a link is generated for this invite, the session expiration is reset. Can be used only if `delivery_type=email`."
                        }
                      }
                    },
                    "description": "The object that holds the attributes of the approver. Approvers review the document but do not sign or fill in fields. `order` values must be unique across `invites` and `approvers`."
                  },
                  "from_name": {
                    "type": "string",
                    "example": "Jane Doe",
                    "maxLength": 300,
                    "description": "Use this attribute to customize the name that appears in email subject of the invite, reassign, reminder, and completed emails. Note: applicable when `delivery_type`=`email`."
                  },
                  "from_email": {
                    "type": "string",
                    "example": "sender@email.com",
                    "maxLength": 255,
                    "description": "Use this attribute to customize the email address that appears: 1) in the invite, reassign, reminder, and completed emails: in email subject (part before @) and email body; when clicking Contact Sender, and in Reply-to; 2) in the signing session: when clicking the Contact Sender button in the More Actions menu. Note: applicable when `delivery_type`=`email`."
                  },
                  "name_formula": {
                    "type": "string",
                    "example": "Contract|signer_name|signed_date",
                    "description": "Used to generate a completed document name based on `text_prefix` (can be any text) and field data (excluding signature fields). You can use up to 5 fields."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "invites": [
                      {
                        "role": "Recipient 1",
                        "email": "signer1@email.com",
                        "order": 1,
                        "language": "en",
                        "last_name": "Smith",
                        "first_name": "John",
                        "auth_method": "none",
                        "redirect_uri": "https://example.com/redirect",
                        "authentication": {
                          "type": "password",
                          "password": "password"
                        },
                        "prefill_signature_name": "Recipient signature"
                      },
                      {
                        "role": "Recipient 2",
                        "email": "signer2@email.com",
                        "order": 1,
                        "language": "en",
                        "last_name": "Johnson",
                        "first_name": "Emily",
                        "auth_method": "biometric",
                        "authentication": {
                          "type": "phone",
                          "phone": "+1111111111",
                          "method": "phone_call"
                        }
                      },
                      {
                        "role": "Recipient 3",
                        "email": "signer3@email.com",
                        "order": 2,
                        "language": "en",
                        "last_name": "Brown",
                        "first_name": "Michael",
                        "auth_method": "password",
                        "authentication": {
                          "type": "phone",
                          "phone": "+1111111111",
                          "method": "sms",
                          "sms_message": "Your custom test message with {password}"
                        }
                      }
                    ],
                    "approvers": [
                      {
                        "role": "Approver 1",
                        "email": "approver1@email.com",
                        "order": 3,
                        "message": "Review and approve the document.",
                        "subject": "Please approve the document",
                        "language": "en",
                        "last_name": "Williams",
                        "first_name": "Sarah",
                        "auth_method": "none",
                        "delivery_type": "email",
                        "authentication": {
                          "type": "phone",
                          "phone": "+1111111111",
                          "method": "phone_call"
                        },
                        "link_expiration": 15,
                        "session_expiration": 15
                      }
                    ],
                    "name_formula": "some text|field1_name|field2_name|field3_name|field4_name|field5_name"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "invites": [
                      {
                        "role": "Signer 1",
                        "email": "signer1@email.com",
                        "order": 1,
                        "language": "en",
                        "last_name": "Doe",
                        "signature": {
                          "type": "eideasy"
                        },
                        "first_name": "John",
                        "auth_method": "email",
                        "redirect_uri": "https://example.com",
                        "authentication": {
                          "type": "password",
                          "password": "12345"
                        },
                        "redirect_target": "blank",
                        "close_redirect_uri": "https://example.com/",
                        "decline_redirect_uri": "https://signnow.com",
                        "required_preset_signature_name": "Signer signature"
                      },
                      {
                        "role": "Signer 2",
                        "email": "signer2@email.com",
                        "order": 2,
                        "message": "Please review the invoice and sign it at your earliest convenience.",
                        "subject": "Sign the invoice",
                        "language": "en",
                        "signature": {
                          "type": "eideasy"
                        },
                        "auth_method": "email",
                        "delivery_type": "email",
                        "authentication": {
                          "type": "phone",
                          "phone": "+1234567890",
                          "method": "sms",
                          "sms_message": "Enter the password {password} to unlock your document."
                        },
                        "link_expiration": 15,
                        "session_expiration": 15,
                        "prefill_signature_name": "Recipient signature"
                      },
                      {
                        "role": "Signer 3",
                        "email": "signer3@email.com",
                        "order": 3,
                        "language": "en",
                        "signature": {
                          "type": "eideasy"
                        },
                        "auth_method": "email",
                        "delivery_type": "link",
                        "authentication": {
                          "type": "phone",
                          "phone": "+0987654321",
                          "method": "phone_call"
                        },
                        "force_new_signature": 0
                      }
                    ],
                    "approvers": [
                      {
                        "role": "Approver 1",
                        "email": "approver1@email.com",
                        "order": 4,
                        "message": "Review and approve the contract at your earliest convenience.",
                        "subject": "Please approve the contract",
                        "language": "en",
                        "last_name": "Roe",
                        "first_name": "Alex",
                        "auth_method": "email",
                        "delivery_type": "email",
                        "authentication": {
                          "type": "password",
                          "password": "12345"
                        },
                        "link_expiration": 15,
                        "session_expiration": 15
                      },
                      {
                        "role": "Approver 2",
                        "email": "approver2@email.com",
                        "order": 5,
                        "language": "es",
                        "last_name": "Lee",
                        "first_name": "Jamie",
                        "auth_method": "email",
                        "delivery_type": "link",
                        "authentication": {
                          "type": "phone",
                          "phone": "+1234567890",
                          "method": "sms",
                          "sms_message": "Enter the password {password} to unlock your document."
                        }
                      }
                    ],
                    "from_name": "Jane Doe",
                    "from_email": "sender@email.com",
                    "name_formula": "Contract|signer_name|signed_date"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-embedded-signing-invite",
        "summary": "Delete embedded invites",
        "description": "Deletes embedded invites for a document.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Document ID."
          }
        ],
        "responses": {
          "204": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Current user is not the document owner.",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001002,
                          "message": "User is not document owner."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Document not found.",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "errors": [
                        {
                          "code": 19000001,
                          "message": "Document not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The document has no active embedded invites.",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001006,
                          "message": "Document has no pending or created embedded invites."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/documents/{document_id}/embedded-invites/{embedded_invite_id}/link": {
      "post": {
        "operationId": "generate-link-for-embedded-invite",
        "summary": "Generate embedded invite link",
        "description": "This endpoint allows users to generate a link for the document embedded invite.\n\nRetrieve the field invite `id` from the response [`POST /v2/documents/{{document_id}}/embedded-invites`](/docs/document-embedded-signing/operations/create-embedded-signing-invite).\n\nIn your request specify: \n\n`auth_method`: Pre-defined in [`POST /v2/documents/{{document_id}}/embedded-invites`](/docs/document-embedded-signing/operations/create-embedded-signing-invite) request method used to authenticate a recipient within the integrated application.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Document ID."
          },
          {
            "in": "path",
            "name": "embedded_invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the embedded invite."
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Returns the generated embedded invite link for the document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "link": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "data": {
                        "link": "https://example.com/document/01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* `session_expiration` is not an integer.\r\n* `session_expiration` is out of range.\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "session_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19016006,
                          "message": "The `session_expiration` field must be an integer."
                        }
                      ]
                    }
                  },
                  "session_expiration out of range": {
                    "value": {
                      "errors": [
                        {
                          "code": 19016007,
                          "message": "The `session_expiration` field must be between 15 and 1440 minutes."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "auth_method"
                ],
                "properties": {
                  "auth_method": {
                    "type": "string",
                    "example": "none",
                    "description": "Defines the method used to authenticate the recipient within the integrated application. Allowed values: `password`, `email`, `mfa`, `social`, `biometric`, `other`, `none`. Must match the value specified when creating the embedded invite."
                  },
                  "link_expiration": {
                    "type": "integer",
                    "maximum": 45,
                    "minimum": 15,
                    "description": "Specifies how many minutes the link will remain active. The allowed range is 15 to 45 minutes."
                  },
                  "session_expiration": {
                    "type": "integer",
                    "maximum": 1440,
                    "minimum": 15,
                    "description": "Specifies how many minutes the signing session will remain active.",
                    "x-stoplight": {
                      "id": "xrygn5ah56dle"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "auth_method": "none",
                    "link_expiration": 15,
                    "session_expiration": 15
                  }
                }
              }
            }
          }
        }
      }
    },
    "/document/{doc_id_for_sms}/invite": {
      "post": {
        "operationId": "post-document-document-id-for-sms-invite-send-invite-via-sms",
        "summary": "Invite to sign via SMS",
        "description": "This endpoint allows users to send a document for signature via SMS. Recipients receive an SMS with a link to the document.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "doc_id_for_sms",
            "type": "string",
            "required": true,
            "description": "Document ID used for SMS invite."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns success if the request is correct.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "minLength": 1,
                      "description": "The result of the request. Returns `success` when the SMS invite is sent."
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "status": "success"
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect phone number\n\nAll standard responses for invite: \n\n* Incorrect access token, \"code\": 1537. Message: \"invalid_token\"\n* Incorrect \"to\" email, \"code\": 65536. Message: \"To must be a valid email.\"\n* Incorrect \"from\" email, \"code\": 65536. Message: \"From must be a valid email.\"\n* Wrong role, \"code\": 65536. Message: \"Role {{role_id_1}} does not exist on document\"\n* The document doesn’t contain field, \"code\": 65594. Message: \"Cannot send a field invite: This document does not contain fields.\"\n* Send the same field invite for the second time, \"code\": 65629. Message: \"Could not create duplicate field invite\"\n* Incorrect document, \"code\": 65582. Message: \"Document not found\"\n* Authentication type is missing, \"code\": 65536. Message: \"Authentication type must not be empty\"\n* The password or phone parameter for the authentication type is missing, \"code\": 65536. Message:  Both password and phone must not be empty\n\n* `sms_message` value is too long, code 65536. Message : \"SMS message should not exceed 140 characters\".\n* `sms_message` value is blank , code 65536. Message : \"SMS message must not be empty\".\n\n* `phone_invite` value is not valid, code 104833. Message: \"The phone_invite value is not valid.\"\n* `phone_invite` value is blank, code 104833. Message: \"The phone_invite must not be empty string.\"\n*  Phone number starts with ’+1 and contrains more than 10 digits, code 104833. Message: \"The phone_invite value is too long. It should have 12 characters.\"\n*  Phone number doesn't exist, code 104833. Message: \"The phone_invite value holds a non-existent phone number.\"\n*  Incorrect data in 'phone_invite', code 104833. Message: \"The phone_invite value should be of type string.\"\n*  Must be email or phone number, not both at the same time, code 65582. Message: \"The phone_invite or email is required. But you cannot use 2 parameters in one time\"\n*  Org setting ‘Require Login to Sign’ when the setting is ON, code 65582. Message: \"The phone_invite cannot be used with require_login_for_signing setting enabled.\"\n*  Org setting ‘Electronic Consent Required By Signers’ when the setting is ‘Required by all signers’ OR ‘Required by signers from outside of the organization’, code 65582. Message: “The phone_invite cannot be used with consent setting enabled.”\n*  Org setting 'Invites Must Use Two Factor Authentication' is enabled, code 65622. Message: \"The phone_invite must use two factor authentication.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "The selected phone number is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "phone_invite is not valid phone for the sms sent."
                        }
                      ]
                    }
                  },
                  "Could not create duplicate field invite": {
                    "value": {
                      "errors": [
                        {
                          "code": 65629,
                          "message": "Could not create duplicate field invite."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "from"
                ],
                "properties": {
                  "cc": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Email addresses of CC recipients."
                  },
                  "to": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "phone_invite",
                        "role",
                        "role_id"
                      ],
                      "properties": {
                        "role": {
                          "type": "string",
                          "example": "Recipient 1",
                          "description": "Recipient role. Optional if the `role_id` parameter is specified."
                        },
                        "order": {
                          "type": "integer",
                          "example": 1,
                          "description": "Order of signing. 1 - recipient has to sign the document first, then the document is sent to 2,3 etc. Several recipients can hold the same order of signing."
                        },
                        "phone": {
                          "type": "string",
                          "example": "+1XXXXXXXXXX",
                          "description": "Phone number used to authenticate the signer with the `phone` authentication type.",
                          "x-stoplight": {
                            "id": "m443bmkxk38qp"
                          }
                        },
                        "method": {
                          "type": "string",
                          "example": "sms",
                          "description": "Method of the `phone` authentication type. Allowed values: `sms`, `phone_call`."
                        },
                        "role_id": {
                          "type": "string",
                          "example": "eeee298633c4408da11e262ac601a9e3e33f1111",
                          "description": "Recipient role ID.  Optional if the `role` parameter is specified."
                        },
                        "language": {
                          "type": "string",
                          "example": "fr",
                          "description": "Sets the language of the signing session for the signer. Possible values: `en` for English, `es` for Spanish, and `fr` for French. If not set, the language defaults to user's account language.",
                          "x-stoplight": {
                            "id": "jnm5x8n1a3zd0"
                          }
                        },
                        "password": {
                          "type": "string",
                          "example": "123456",
                          "description": "Password set for the signer's authentication. Required with the `password` authentication `type`.",
                          "x-stoplight": {
                            "id": "e597npgqfsv3q"
                          }
                        },
                        "reassign": {
                          "type": "string",
                          "default": "0",
                          "description": "Specifies whether a recipient can forward the invite to another email address. `0` - recipient cannot forward the invite. `1` - recipient can forward the invite."
                        },
                        "reminder": {
                          "type": "object",
                          "properties": {
                            "remind_after": {
                              "type": "integer",
                              "example": 10,
                              "maximum": 179,
                              "minimum": 1,
                              "description": "Send the reminder email to the recipient after the set amount of days. `remind_after` must be less than `expiration_days`.",
                              "x-stoplight": {
                                "id": "epeykhqdtikln"
                              }
                            },
                            "remind_before": {
                              "type": "integer",
                              "example": 5,
                              "maximum": 179,
                              "minimum": 1,
                              "description": "Send the reminder email to the recipient a set number of days before the invite expires. `remind_before` must be less than `expiration_days`.",
                              "x-stoplight": {
                                "id": "qa70ieiuw9zcd"
                              }
                            },
                            "remind_repeat": {
                              "type": "integer",
                              "example": 5,
                              "maximum": 7,
                              "minimum": 1,
                              "description": "Send the reminder email to the recipient every set amount of days. `remind_repeat` must be less than `expiration_days`.",
                              "x-stoplight": {
                                "id": "3k11dhh882nxt"
                              }
                            }
                          },
                          "description": "Settings for reminder notifications.",
                          "x-stoplight": {
                            "id": "li2wy9xdvd4t3"
                          }
                        },
                        "sms_message": {
                          "type": "string",
                          "example": "Hi, here is a document for signature.",
                          "maxLength": 140,
                          "description": "Custom text of the SMS invite, max `140` characters. Supports the `{sender_email}` placeholder that is automatically replaced with the sender's email address. The link to the document and an opt-out notice are automatically added at the end of the SMS. Without this parameter, the recipient receives the default message: \"{sender email} has sent you a document. Follow the link to view the document\". Custom SMS messages require an API free trial, an active API subscription, or a Site License."
                        },
                        "phone_invite": {
                          "type": "string",
                          "example": "+1XXXXXXXXXX",
                          "description": "Phone number of the recipient."
                        },
                        "redirect_uri": {
                          "type": "string",
                          "example": "https://unique-solutions.com",
                          "description": "The link that opens after the signer completes the signing session.",
                          "x-stoplight": {
                            "id": "s41v8tsllvefr"
                          }
                        },
                        "expiration_days": {
                          "type": "integer",
                          "example": 27,
                          "maximum": 180,
                          "minimum": 3,
                          "description": "In how many days the invite expires."
                        },
                        "redirect_target": {
                          "type": "string",
                          "example": "blank",
                          "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                          "x-stoplight": {
                            "id": "ichhr1nqbgqq0"
                          }
                        },
                        "close_redirect_uri": {
                          "type": "string",
                          "example": "https://unique-solutions.com",
                          "description": "The link that opens when a recipient clicks **Save Progress and Finish Later** during a signing session or **Close** in view mode.",
                          "x-stoplight": {
                            "id": "lflmo6swpygw1"
                          }
                        },
                        "authentication_type": {
                          "type": "string",
                          "example": "phone",
                          "description": "Authentication type used for signer authentication during the signing session. Allowed values: `password`, `phone`.",
                          "x-stoplight": {
                            "id": "gbzp51s3jv7ct"
                          }
                        },
                        "decline_by_signature": {
                          "type": "string",
                          "default": "0",
                          "description": "Indicates whether a recipient can select Decline to Sign when clicking the signature field. `0` - recipient cannot decline to sign, `1` - recipient can decline to sign."
                        },
                        "decline_redirect_uri": {
                          "type": "string",
                          "example": "https://unique-solutions.com",
                          "description": "The link that opens after the signing session has been declined by the signer.",
                          "x-stoplight": {
                            "id": "q6wyo8e65ie68"
                          }
                        },
                        "authentication_sms_message": {
                          "type": "string",
                          "example": "Enter the password {password} to unlock your document.",
                          "maxLength": 140,
                          "description": "Custom sms message sent to the signer, containing the {password} placeholder. Used with the `sms`authentication method. Without this parameter, the signer receives a default sms with an autogenerated password (unlock code) - \"SignNow document invite unlock code: 123456\". Customizing the 2FA SMS message requires an API free trial, an active API subscription, or a Site License.",
                          "x-stoplight": {
                            "id": "jej4szt5biktb"
                          }
                        },
                        "is_close_redirect_canceled": {
                          "type": "boolean",
                          "default": false,
                          "description": "Specifies whether the save progress redirect setting is canceled for the organization.`true` – the redirect is canceled;`false` – the redirect remains active.",
                          "x-stoplight": {
                            "id": "0ujli8b4stlcp"
                          }
                        },
                        "is_finish_redirect_canceled": {
                          "type": "boolean",
                          "default": false,
                          "description": "Specifies whether the completion redirect setting is canceled for the organization.`true` – the redirect is canceled;`false` – the redirect remains active.",
                          "x-stoplight": {
                            "id": "0ujli8b4stlcp"
                          }
                        },
                        "is_decline_redirect_canceled": {
                          "type": "boolean",
                          "default": false,
                          "description": "Specifies whether the decline redirect setting is canceled for the organization.`true` – the redirect is canceled;`false` – the redirect remains active.",
                          "x-stoplight": {
                            "id": "0ujli8b4stlcp"
                          }
                        }
                      }
                    }
                  },
                  "from": {
                    "type": "string",
                    "example": "sender@email.com",
                    "description": "Sender's email address. You can only use the email address associated with your account (login email)."
                  },
                  "cc_step": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "CC 1",
                          "description": "Name of the step."
                        },
                        "step": {
                          "type": "integer",
                          "example": 1,
                          "description": "The order of sending, starts from 1."
                        },
                        "email": {
                          "type": "string",
                          "example": "cc_recipient1@email.com",
                          "description": "CC recipient's email address."
                        }
                      }
                    },
                    "description": "Order and settings for sending CC emails."
                  },
                  "message": {
                    "type": "string",
                    "example": "Please review and sign the invoice",
                    "description": "Email message for all recipients. Used when at least one receives the invite via email. Requires a paid API plan, an API free trial, or a Site License.",
                    "x-stoplight": {
                      "id": "1bde7qt8p99jm"
                    }
                  },
                  "subject": {
                    "type": "string",
                    "example": "New invoice to sign",
                    "description": "Email subject for all recipients. Used when at least one receives the invite via email. Requires a paid API plan, an API free trial, or a Site License.",
                    "x-stoplight": {
                      "id": "k3d218to03izb"
                    }
                  },
                  "viewers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "role": {
                          "type": "string",
                          "example": "Viewer 1",
                          "description": "Viewer's role name."
                        },
                        "email": {
                          "type": "string",
                          "example": "viewer@email.com",
                          "description": "Viewer's email address.\n"
                        },
                        "order": {
                          "type": "integer",
                          "example": 1,
                          "description": "The order of sending, starts from 1."
                        },
                        "message": {
                          "type": "string",
                          "example": "You’ve got a new document to review.",
                          "description": "Email message for a viewer. Requires a paid API plan, an API free trial, or a Site License."
                        },
                        "subject": {
                          "type": "string",
                          "example": "New document",
                          "description": "Email subject for a viewer. Requires a paid API plan, an API free trial, or a Site License."
                        },
                        "redirect_target": {
                          "type": "string",
                          "example": "blank",
                          "description": "Determines whether to open the redirect link in the new tab in the browser or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self `- opens the link in the same tab."
                        },
                        "close_redirect_uri": {
                          "type": "string",
                          "example": "https://unique-solutions.com",
                          "description": "The link that opens after a viewer clicks the Close button."
                        }
                      }
                    },
                    "description": "List of recipients with read-only access to the invite."
                  },
                  "cc_message": {
                    "type": "string",
                    "example": "cc Invoice request for Signer 1",
                    "description": "CC email message for all CC recipients."
                  },
                  "cc_subject": {
                    "type": "string",
                    "example": "cc Invoice request",
                    "description": "CC email subject for all CC recipients."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "cc": [
                      "cc_recipient1@email.com",
                      "cc_recipient2@email.com"
                    ],
                    "to": [
                      {
                        "role": "Signer 1",
                        "order": 1,
                        "method": "sms",
                        "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "reassign": "0",
                        "sms_message": "Hi, here is a document for signature",
                        "phone_invite": "+1XXXXXXXXXX",
                        "expiration_days": 27,
                        "decline_by_signature": "1"
                      }
                    ],
                    "from": "sender@some.email",
                    "cc_step": [
                      {
                        "name": "CC 1",
                        "step": 1,
                        "email": "cc_recipient1@email.com"
                      },
                      {
                        "name": "CC 2",
                        "step": 2,
                        "email": "cc_recipient2@email.com"
                      }
                    ],
                    "viewers": [
                      {
                        "role": "Viewer 1",
                        "email": "viewer@email.com",
                        "order": 1,
                        "message": "You’ve got a new document to review.",
                        "subject": "New document",
                        "redirect_target": "blank",
                        "close_redirect_uri": "https://unique-solutions.com"
                      }
                    ],
                    "cc_message": "cc Invoice request for Signer 1",
                    "cc_subject": "cc Invoice request"
                  }
                }
              },
              "examples": {
                "Invite to sign via SMS": {
                  "value": {
                    "cc": [
                      "cc_recipient1@email.com",
                      "cc_recipient2@email.com"
                    ],
                    "to": [
                      {
                        "role": "Signer 1",
                        "order": 1,
                        "phone": "+1XXXXXXXXXX",
                        "method": "sms",
                        "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "language": "fr",
                        "reassign": "1",
                        "reminder": 5,
                        "sms_message": "Hi, here is a document for signature from {sender_email}",
                        "phone_invite": "+1XXXXXXXXXX",
                        "redirect_uri": "https://unique-solutions.com",
                        "expiration_days": 27,
                        "redirect_target": "blank",
                        "close_redirect_uri": "https://unique-solutions.com",
                        "authentication_type": "phone",
                        "decline_by_signature": "1",
                        "decline_redirect_uri": "https://unique-solutions.com",
                        "authentication_sms_message": "Enter the password to unlock the document:{password}"
                      },
                      {
                        "role": "Signer 2",
                        "order": 2,
                        "phone": "+1XXXXXXXXXX",
                        "method": "phone_call",
                        "role_id": "49XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "reassign": "1",
                        "phone_invite": "+1XXXXXXXXXX",
                        "expiration_days": 27,
                        "authentication_type": "phone",
                        "decline_by_signature": "1"
                      },
                      {
                        "role": "Signer 3",
                        "order": 3,
                        "role_id": "48XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "password": "1234",
                        "reassign": "1",
                        "reminder": 5,
                        "phone_invite": "+1XXXXXXXXXX",
                        "expiration_days": 27,
                        "authentication_type": "password",
                        "decline_by_signature": "1"
                      }
                    ],
                    "from": "sender@email.com",
                    "cc_step": [
                      {
                        "name": "CC 1",
                        "step": 1,
                        "email": "cc_recipient1@email.com"
                      },
                      {
                        "name": "CC 2",
                        "step": 2,
                        "email": "cc_recipient2@email.com"
                      }
                    ],
                    "viewers": [
                      {
                        "role": "Viewer 1",
                        "email": "viewer@email.com",
                        "order": 1,
                        "message": "You've got a new document to review.",
                        "subject": "New document",
                        "redirect_target": "blank",
                        "close_redirect_uri": "https://unique-solutions.com"
                      }
                    ],
                    "cc_message": "cc Invoice request for Signer 1",
                    "cc_subject": "cc Invoice request"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/document/{document_id}/fieldinvitecancel": {
      "put": {
        "operationId": "put-document-document-id-fieldinvitecancel",
        "summary": "Cancel invite",
        "description": "Cancels an invite to a document.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested document."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns successful status if the request was correct. Returns an error when the request is sent with an incorrect document ID.\n\n* Incorrect access token, \"code\": 1537. Message: \"invalid_token\"\n* Incorrect document id, \"code\": 65582. Message: \"Document not found.\"\n* Reason not specified, \"code\": 65536. Message: \"The reason value must not be empty string.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "status": "success"
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The reason for cancellation."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "reason": "Cancellation reason"
                  }
                },
                "description": ""
              },
              "examples": {
                "example-1": {
                  "value": {
                    "reason": "Cancellation reason"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/fieldinvite/{field_request__id}/resend": {
      "put": {
        "operationId": "put-fieldinvite-field-request-unique-id-resend",
        "summary": "Resend email invite",
        "description": "Resends an invite to sign a document.",
        "parameters": [
          {
            "in": "path",
            "name": "field_request__id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Returns success if the request is correct. Returns an error when:\n\n* Incorrect access token, \"code\": 1537. Message: \"invalid_token\"\n* Send to a different email address, \"code\": 65536. Message: \"Could not resend: routing out of order.\"\n* The invite has expired, \"code\": 65536. Message: \"Could not resend expired invite.\"\n* Incorrect field invite id, \"code\": 65536. Message: \"could not resend\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "status": "success"
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/documents/{document_id}/field-invites/{field_invite_id}/full-decline": {
      "post": {
        "operationId": "post-v2-documents-document-id-field-invites-field-invite-id-full-decline",
        "summary": "Decline to sign a field invite",
        "description": "Allows API users to decline signing a field invite.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document."
          },
          {
            "in": "path",
            "name": "field_invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the field invite."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "The access token is incorrect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect access token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Requested document or field invite not found.\n* The document is in the Trash folder. This action is forbidden.\n* User does not have read access to this document.\n* Requested field invite not in pending status.\n* Document must not be part of a document group.\n* Invite has expired.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invite has expired": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001035,
                          "message": "Invite has expired."
                        }
                      ]
                    }
                  },
                  "Field invite does not belong to document": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001018,
                          "message": "Field invite does not belong to document"
                        }
                      ]
                    }
                  },
                  "Requested document or field invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002001,
                          "message": "Document not found"
                        }
                      ]
                    }
                  },
                  "Requested field invite not in pending status.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001030,
                          "message": "Requested field invite not in pending status."
                        }
                      ]
                    }
                  },
                  "Document must not be part of a document group.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001033,
                          "message": "Document must not be part of a document group."
                        }
                      ]
                    }
                  },
                  "User does not have read access to this document": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001031,
                          "message": "User does not have read access to this document"
                        }
                      ]
                    }
                  },
                  "Document is full declined. Please cancel the invite first.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001034,
                          "message": "Document is full declined. Please cancel the invite first."
                        }
                      ]
                    }
                  },
                  "The document is in the Trash folder. This action is forbidden.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001032,
                          "message": "The document is in the Trash folder. This action is forbidden."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reason"
                ],
                "properties": {
                  "reason": {
                    "type": "string",
                    "description": "The reason for decline."
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "description": "Unix timestamp of decline."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "reason": "decline reason",
                    "client_timestamp": 1586523305
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "reason": "decline reason",
                    "client_timestamp": 1586523305
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-documents-document-id-field-invites-field-invite-id-full-decline",
        "summary": "Get the declined invite",
        "description": "Allows document owners to retrieve the recipient who declined the invite, the time and reason for decline.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document."
          },
          {
            "in": "path",
            "name": "field_invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the field invite."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "text": "Decline reason text",
                        "email": "recipient@email.com",
                        "created": 1604418352
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The access token is incorrect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect access token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Is document owner",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Is document owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001002,
                          "message": "User is not document owner."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Requested document or field invite not found.\n* The document is in the Trash folder. This action is forbidden.\n* Field invite does not belong to document.\n* Requested field invite not in pending status.\n* Document field invite is not full declined.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Field invite does not belong to document": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001018,
                          "message": "Field invite does not belong to document"
                        }
                      ]
                    }
                  },
                  "Document field invite is not full declined.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19018001,
                          "message": "Document field invite is not full declined."
                        }
                      ]
                    }
                  },
                  "Requested document or field invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002001,
                          "message": "Document not found"
                        }
                      ]
                    }
                  },
                  "Requested field invite not in pending status.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001028,
                          "message": "Requested field invite not in pending status."
                        }
                      ]
                    }
                  },
                  "The document is in the Trash folder. This action is forbidden.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001030,
                          "message": "The document is in the Trash folder. This action is forbidden."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/{document_id}/trigger_fieldinvite": {
      "post": {
        "operationId": "post-document-document-id-trigger-fieldinvite",
        "summary": "Replace signer: Step 3 - Send",
        "description": "To replace a signer in the invite, API user should follow three steps: delete the invite to the current signer(1), replace a signer(2), and send the invite to the new signer(3). This endpoint allows you to send the invite to the new signer.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document in the invite."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns successful status if the request was correct. Returns an error when the request is sent with an incorrect document ID.\n\n* Incorrect access token, \"code\": 1537. Message: \"invalid_token\"\n* No field invite created for the document, \"code\": 65615. Message: \"Field invite missing on this document.\"\n* Incorrect document id, \"code\": 65582. Message: \"Document not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "status": "success"
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/field_invite": {
      "post": {
        "operationId": "post-field-invite",
        "summary": "Replace signer: Step 2 - Replace",
        "description": "To replace a signer in the invite, API user should follow three steps: delete the invite to the current signer(1), replace a signer(2), and send the invite to the new signer(3). This endpoint allows you to replace a signer in the invite.",
        "responses": {
          "200": {
            "description": "Returns a new invite ID if the request is successful. Returns an error when the request is sent with an incorrect email or role ID.\n\n* Incorrect access token, \"code\": 1537. Message: \"invalid_token\"\n* Incorrect email, \"code\": 65538. Message: \"Email must be a valid email.\"\n* Incorrect role id, \"code\": 65582. Message: \"Role does not exist.\"\n* Send correct request for the second time, \"code\": 65615. Message: \"Invite already exists.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "id": "30e0ffbfe8d344d2ac97e47726160e722397543f"
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "role_id",
                  "is_replace",
                  "password",
                  "phone"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "minLength": 1,
                    "description": "New signer's email address."
                  },
                  "phone": {
                    "type": "string",
                    "description": "required if `\"authentication_type\": \"phone\"`.\nPhone number requested for identity verification."
                  },
                  "role_id": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The role id for the new signer. You can find it in the response from `GET /document/{{document_id}}` request as the `role_id` parameter in the `field_invites` array."
                  },
                  "password": {
                    "type": "string",
                    "minLength": 1,
                    "description": "required if `\"authentication_type\": \"password\"`.\nPassword requested for identity verification."
                  },
                  "reminder": {
                    "type": "number",
                    "description": "In how many days to send a reminder to the signer; 30 days max."
                  },
                  "is_replace": {
                    "type": "boolean",
                    "description": "Boolean: determines whether to use the subject, message, and order of signing specified in the invite to the previous signer. Possible values: `\"true\"` - yes, keep the subject, message, and order of signing from the previous signer's invite; `\"false\"` - use the subject, message, and the order of signing from this payload."
                  },
                  "expiration_days": {
                    "type": "number",
                    "description": "In how many days the invite expires; 30 days max."
                  },
                  "authentication_type": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Type of recipient's identity verification. Possible values: `\"password\"` or `\"phone\"`."
                  },
                  "decline_by_signature": {
                    "type": "number",
                    "description": "Adds the `Decline` button to the Signature field for the signer. Possible values: 0 - no `Decline` button, 1- add the `Decline` button."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "email": "new_signer@email.com",
                    "role_id": "d9b491bd632e25cc5ec1a3b0b83dfccc164382bd",
                    "password": "123456",
                    "reminder": 0,
                    "is_replace": true,
                    "expiration_days": 30,
                    "authentication_type": "password",
                    "decline_by_signature": 0
                  }
                },
                "description": ""
              },
              "examples": {
                "example-1": {
                  "value": {
                    "email": "new_signer@email.com",
                    "role_id": "d9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                    "password": "123456",
                    "reminder": 0,
                    "is_replace": true,
                    "expiration_days": 30,
                    "authentication_type": "password",
                    "decline_by_signature": 0
                  }
                }
              }
            }
          }
        }
      }
    },
    "/field_invite/{field_invite_id}": {
      "delete": {
        "operationId": "delete-field-invite-field-invite-id",
        "summary": "Replace signer: Step 1 - Delete",
        "description": "To replace a signer in the invite, API user should follow three steps: delete the invite to the current signer(1), replace a signer(2), and send the invite to the new signer(3). This endpoint allows you to delete the invite to the current signer.",
        "parameters": [
          {
            "in": "path",
            "name": "field_invite_id",
            "type": "string",
            "required": true,
            "description": "Path parameter: ID of invite to sign the document. You can find it in the response from `GET /document/{{document_id}}` request as the `id` parameter in the `field_invites` array."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns success if the request is correct. Returns an error when:",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "status": "success"
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect access token, \"code\": 1537. Message: \"invalid_token\"\n* Send to a different email address, \"code\": 65536. Message: \"Could not resend: routing out of order.\"\n* The invite has expired, \"code\": 65536. Message: \"Could not resend expired invite.\"\n* Incorrect field invite id, \"code\": 65536. Message: \"could not resend\"\n* Forbidden to delete the field invite with email group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect access token": {
                    "value": {
                      "errors": [
                        {
                          "code": 1537,
                          "message": "invalid token"
                        }
                      ]
                    }
                  },
                  "The invite has expired": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Could not resend expired invite."
                        }
                      ]
                    }
                  },
                  "Incorrect field invite id": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "could not resend"
                        }
                      ]
                    }
                  },
                  "Send to a different email address": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Could not resend: routing out of order."
                        }
                      ]
                    }
                  },
                  "Forbidden to delete the field invite with email group": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Forbidden to delete the field invite with email group"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/signing-session-settings": {
      "post": {
        "operationId": "post-v2-signing-session-settings",
        "summary": "Customize welcome message",
        "description": "This endpoint allows users to add a welcome message to field invites sent from this application. A welcome message appears when a user clicks the welcome message button in the signing session.\r\n\r\n<img src=\"/reference-assets/images/Screenshots with attribute explanations/welcome_message.png\" alt=\"Welcome message example\">\r\n",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "201": {
            "description": "Success request.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "- Request with any of cases:\n\n    - incorrect token of user\n    - expired token of user\n    - empty header\n    - authorization = null\n    - authorization without value\n- Setting already exists\n- `welcome_message` not received\t\n- `welcome_message` received with empty value\n- `welcome_message` is not received as a string (it received like array or integer, etc.)\n- `welcome_message` value contains less than 3 symbols\n- `welcome_message` value contains more than 200 symbols\n- `welcome_message` value contains incorrect symbol(s)\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Incorrect access token": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Setting already exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Signing session setting already exists"
                        }
                      ]
                    }
                  },
                  "`welcome_message` < 3 symbols": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "`welcome_message` must be at least 3 characters long."
                        }
                      ]
                    }
                  },
                  "welcome_message > 200 symbols": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "`welcome_message` cannot be longer than 200 characters."
                        }
                      ]
                    }
                  },
                  "`welcome_message` isn't string": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "`welcome_message` field data must be a string"
                        }
                      ]
                    }
                  },
                  "`welcome_message` not received.": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "`welcome_message` field is required"
                        }
                      ]
                    }
                  },
                  "`welcome_message` with empty value": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "`welcome_message` must not be empty"
                        }
                      ]
                    }
                  },
                  "welcome_message with incorrect symbol(s)": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Unsupported symbol was met. Allowed symbols: A-Z, a-z, 0-9, plain brackets '()', dot '.', dash '-', space ' ' and comma ','"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "welcome_message"
                ],
                "properties": {
                  "welcome_message": {
                    "type": "string"
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "welcome_message": "Hi! Please sign this document."
                  }
                }
              },
              "examples": {
                "The new custom welcome message": {
                  "value": {
                    "welcome_message": "Please sign the document"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-signing-session-settings",
        "summary": "Get welcome message",
        "description": "This endpoint allows users to get information about the signing session settings (Custom signing welcome message).",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "200": {
            "description": "Success request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "welcome_message": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "welcome_message": "Hi! Please sign this document."
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "welcome_message": "Hi! Please sign this document."
                      }
                    }
                  },
                  "Success request": {
                    "value": {
                      "data": {
                        "welcome_message": "Hi! Please sign this document."
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "\t\nRequest with any of cases:\n\n- incorrect token of user\n- expired token of user\n- empty header\n- authorization = null\n- authorization without value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Incorrect access token": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-signing-session-settings",
        "summary": "Reset welcome message to default",
        "description": "This endpoint allow to reset signing session settings to default values (default signing welcome message).",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "204": {
            "description": "Signing session settings reset successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "Request with any of cases:\n\n- incorrect token of user\n- expired token of user\n- empty header\n- authorization = null\n- authorization without value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Incorrect access token": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Signing session settings have default values.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-groups/{dg_id}/invite/{dg_invite_id}": {
      "put": {
        "operationId": "put-v2-document-groups-document-group-id-invite-document-group-invite-id-correction",
        "summary": "Complete DG correction",
        "description": "This endpoint allows API users to complete a document group correction and apply the new signers, documents, and invite settings. With this endpoint, you can:\n\n* Change the signers and viewers of the document group\n* Update the invite settings\n* Reorder and remove documents that were not signed yet\n* Add new documents to the document group\n\nBefore completing the correction, [initiate](/docs/document-group/operations/post-v2-document-groups-document-group-id-invite-document-group-invite-id-correction) it.\n\n**Partially signed invites**\n\nA recipient counts as having signed once they complete their signing action or fill in at least one field on any document in the group. The document does not need to be fully completed.\n\nWhen some recipients have already signed:\n\n* Add new signers and viewers to the last step that was at least partially signed, or to any later step. Earlier steps are locked.\n* A recipient who already signed a document in the last signed step can be added to that step as a viewer of another document.\n* The role of a recipient who already signed keeps its email address.\n\nSteps that were cancelled when the correction started are recreated when you complete it:\n\n* If the last signed step is complete, the next step's invites are sent right away. Adding only viewers to the completed step does not change this.\n* If you add a signer to the last completed step, the step returns to pending. The next step's invites are sent once the new signer finishes.\n\n*For example*, an invite has three steps, and steps 1 and 2 are signed. You can add new signers to steps 2 and 3. If you add a signer to step 2, step 3's invites are sent after that signer completes step 2.",
        "parameters": [
          {
            "in": "path",
            "name": "dg_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          },
          {
            "in": "path",
            "name": "dg_invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group invite."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Document group is not in correction state.\r\n* All documents should be in the document group.\r\n* Role `role` does not exist.\r\n* Role `role` must be used in the invite.\r\n* Authentication is required for this organization.\r\n* Field `phone` is not a phone number.\r\n* Email subject must not be empty or default.\r\n* Phone authentication can't be used for user with trial or no subscription.\r\n* At least one document must contain fields.\r\n* Reassign is not allowed for viewers.\r\n* Authentication is not allowed for viewers.\r\n* Invite is not pending.\r\n* This user doesn't have an active mail provider.\r\n* Currency is not supported.\r\n* A short link invite is not in the first step (`order: 1`).\r\n* A short link invite contains an email address.\r\n* `is_short_link_invite` is not a boolean.\r\n* A signer has already completed a document on the last completed step and cannot be added as a signer of another document on this step.\r\n* A step is not the last completed step and cannot be edited.\r\n* The recipient with this role has already completed a document and cannot be edited.\r\n* `invites` is not an array.\r\n* `invites` value is not an array.\r\n* `cc` is not an array.\r\n* `cc` value is not an array.\r\n* `completion_emails` is not an array.\r\n* `completion_emails` value is not an array.\r\n* `order` is not an integer.\r\n* `signers` is not an array.\r\n* `signers` value is not an array.\r\n* `signers.email` is not a string.\r\n* `documents` is not an array.\r\n* `documents` value is not an array.\r\n* `message` is not a string.\r\n* `subject` is not a string.\r\n* `expiration_days` is not an integer.\r\n* `decline_by_signature` is not a boolean.\r\n* `reassign` is not a boolean.\r\n* `documents.id` is not a string.\r\n* `documents.role` is not a string.\r\n* `authentication.type` is not a string.\r\n* `authentication.phone` is not a string.\r\n* `authentication.method` is not a string.\r\n* `authentication.sms_message` is not a string.\r\n* `authentication.password` is not a string.\r\n* `cc.email` is not a string.\r\n* `completion_emails.email` is not a string.\r\n* `completion_emails.disabled` is not a boolean.\r\n* `completion_emails.disable_document_attachment` is not a boolean.\r\n* `authentication` is not an object.\r\n* `reminder` is not an object.\r\n* `redirect_uri` is not a string.\r\n* `decline_redirect_uri` is not a string.\r\n* `close_redirect_uri` is not a string.\r\n* `mail_provider` is not a string.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "cc not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067004,
                          "message": "Field `cc` should be of type array."
                        }
                      ]
                    }
                  },
                  "invites not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067002,
                          "message": "Field `invites` should be of type array."
                        }
                      ]
                    }
                  },
                  "order not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067009,
                          "message": "Field `order` in `invites` should be of type integer."
                        }
                      ]
                    }
                  },
                  "signers not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067012,
                          "message": "Field `signers` in `invites` should be of type array."
                        }
                      ]
                    }
                  },
                  "Invite not pending": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068012,
                          "message": "Invite should be pending"
                        }
                      ]
                    }
                  },
                  "Role doesn't exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068003,
                          "message": "Role `role` does not exist."
                        }
                      ]
                    }
                  },
                  "cc value not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067005,
                          "message": "Each element of array `cc` should be of type array."
                        }
                      ]
                    }
                  },
                  "message not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067024,
                          "message": "Field `message` in `invites.signers` should be of type string."
                        }
                      ]
                    }
                  },
                  "subject not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067028,
                          "message": "Field `subject` in `invites.signers` should be of type string."
                        }
                      ]
                    }
                  },
                  "Subscription needed": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068008,
                          "message": "Phone authentication can't be used for user with trial or no subscription."
                        }
                      ]
                    }
                  },
                  "cc.email not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067063,
                          "message": "Field `email` in `cc` should be of type string."
                        }
                      ]
                    }
                  },
                  "documents not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067022,
                          "message": "Field `documents` in `invites.signers` should be of type array."
                        }
                      ]
                    }
                  },
                  "reminder not object": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067075,
                          "message": "Field `reminder` in `invites.signers` should be of type object."
                        }
                      ]
                    }
                  },
                  "DG not in correction": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068001,
                          "message": "Document Group should be in correction state."
                        }
                      ]
                    }
                  },
                  "reassign not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067037,
                          "message": "Field `reassign` in `invites.signers` should be of type bool."
                        }
                      ]
                    }
                  },
                  "Missing email subject": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068007,
                          "message": "Cannot use empty or default email subject."
                        }
                      ]
                    }
                  },
                  "Step cannot be edited": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068014,
                          "message": "You could not add new invites to step that signed and it is not last step with signing. Step: 1. Email: signer@example.com. Doc Id: 2274bf62786844e981584543275cdc0c88d67d45"
                        }
                      ]
                    }
                  },
                  "Currency not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068017,
                          "message": "Currency not supported"
                        }
                      ]
                    }
                  },
                  "Existing role not used": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068004,
                          "message": "Role `role` is not specified."
                        }
                      ]
                    }
                  },
                  "Incorrect phone number": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068006,
                          "message": "Field `phone` is not valid phone number."
                        }
                      ]
                    }
                  },
                  "Authentication required": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068005,
                          "message": "Authentication is required for this organization."
                        }
                      ]
                    }
                  },
                  "No active mail provider": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068016,
                          "message": "The active mail provider does not exist for current user."
                        }
                      ]
                    }
                  },
                  "Viewers cannot reassign": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068010,
                          "message": "Reassign is not allowed for viewers."
                        }
                      ]
                    }
                  },
                  "documents.id not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067039,
                          "message": "Field `id` in `invites.signers.documents` should be of type string."
                        }
                      ]
                    }
                  },
                  "invites value not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067003,
                          "message": "Each element of array `invites` should be of type array."
                        }
                      ]
                    }
                  },
                  "redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067082,
                          "message": "Field `redirect_uri` in `invites.signers` should be of type string."
                        }
                      ]
                    }
                  },
                  "signers value not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067013,
                          "message": "Each element of array `signers` in `invites` should be of type array."
                        }
                      ]
                    }
                  },
                  "mail_provider not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067088,
                          "message": "The `mail_provider` field must be a string."
                        }
                      ]
                    }
                  },
                  "signers.email not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067018,
                          "message": "Field `email` in `invites.signers` should be of type string."
                        }
                      ]
                    }
                  },
                  "authentication not object": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067074,
                          "message": "Field `authentication` in `invites.signers` should be of type object."
                        }
                      ]
                    }
                  },
                  "documents value not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067023,
                          "message": "Each element of array `documents` in `invites.signers` should be of type array."
                        }
                      ]
                    }
                  },
                  "documents.role not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067042,
                          "message": "Field `role` in `invites.signers.documents` should be of type string."
                        }
                      ]
                    }
                  },
                  "No fields on the documents": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068009,
                          "message": "At least one document must contain fields."
                        }
                      ]
                    }
                  },
                  "Recipient cannot be edited": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068015,
                          "message": "Wrong signer's email who has already signed"
                        }
                      ]
                    }
                  },
                  "completion_emails not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067006,
                          "message": "Field `completion_emails` should be of type array."
                        }
                      ]
                    }
                  },
                  "expiration_days not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067033,
                          "message": "Field `expiration_days` in `invites.signers` should be of type integer."
                        }
                      ]
                    }
                  },
                  "No authentication for viewers": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068011,
                          "message": "Authentication is not allowed for viewers."
                        }
                      ]
                    }
                  },
                  "Signer action cannot be added": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068013,
                          "message": "You could not add new signer action to signed signers in last signed step. Step: 2. Email: signer@example.com. Doc Id: 2274bf62786844e981584543275cdc0c88d67d45"
                        }
                      ]
                    }
                  },
                  "close_redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067096,
                          "message": "The close_redirect_uri field in invites.signers must be a string."
                        }
                      ]
                    }
                  },
                  "Document not in document group": {
                    "value": {
                      "errors": [
                        {
                          "code": 19068002,
                          "message": "All documents should be part of the document group."
                        }
                      ]
                    }
                  },
                  "authentication.type not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067048,
                          "message": "Field `type` in `invites.signers.authentication` should be of type string."
                        }
                      ]
                    }
                  },
                  "authentication.phone not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067050,
                          "message": "Field `phone` in `invites.signers.authentication` should be of type string."
                        }
                      ]
                    }
                  },
                  "decline_redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067091,
                          "message": "The decline_redirect_uri field in invites.signers must be a string."
                        }
                      ]
                    }
                  },
                  "authentication.method not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067053,
                          "message": "Field `method` in `invites.signers.authentication` should be of type string."
                        }
                      ]
                    }
                  },
                  "decline_by_signature not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067036,
                          "message": "Field `decline_by_signature` in `invites.signers` should be of type bool."
                        }
                      ]
                    }
                  },
                  "is_short_link_invite not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067107,
                          "message": "The `is_short_link_invite` field must be true or false."
                        }
                      ]
                    }
                  },
                  "completion_emails value not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067007,
                          "message": "Each element of array `completion_emails` should be of type array."
                        }
                      ]
                    }
                  },
                  "authentication.password not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067060,
                          "message": "Field `password` in `invites.signers.authentication` should be of type string."
                        }
                      ]
                    }
                  },
                  "completion_emails.email not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067067,
                          "message": "Field `email` in `completion_emails` should be of type string."
                        }
                      ]
                    }
                  },
                  "Short link invite not in first step": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067105,
                          "message": "Only default ordering is allowed with short link invites."
                        }
                      ]
                    }
                  },
                  "authentication.sms_message not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067056,
                          "message": "Field `sms_message` in `invites.signers.authentication` should be of type string."
                        }
                      ]
                    }
                  },
                  "completion_emails.disabled not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067070,
                          "message": "Field `disabled` in `completion_emails` should be of type bool."
                        }
                      ]
                    }
                  },
                  "disable_document_attachment not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067071,
                          "message": "Field `disable_document_attachment` in `completion_emails` should be of type bool."
                        }
                      ]
                    }
                  },
                  "Email not allowed for short link invites": {
                    "value": {
                      "errors": [
                        {
                          "code": 19067106,
                          "message": "Short link invite cannot contain email field."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User is not a document group owner",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001010,
                          "message": "Current user is not document group owner."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Document group is not found.\n* Document group invite is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001011,
                          "message": "Document group `unique_id` not found."
                        }
                      ]
                    }
                  },
                  "Invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002005,
                          "message": "Document group invite `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0` not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "invites",
                  "client_timestamp"
                ],
                "properties": {
                  "cc": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "string",
                          "description": "An email address that should be in copy of the invite."
                        }
                      }
                    },
                    "description": "An array of email addresses that should be in copy of the invite email."
                  },
                  "invites": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "order",
                        "signers"
                      ],
                      "properties": {
                        "order": {
                          "type": "integer",
                          "maximum": 100,
                          "minimum": 1,
                          "description": "An order of a signing step: <br> 1 - the recipient(s) sign the document group first, then the document group is sent to 2 and so on."
                        },
                        "signers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "email",
                              "documents"
                            ],
                            "properties": {
                              "email": {
                                "type": "string",
                                "description": "Recipient's email address."
                              },
                              "message": {
                                "type": "string",
                                "maxLength": 4998,
                                "description": "Custom email message for the recipient."
                              },
                              "subject": {
                                "type": "string",
                                "maxLength": 1000,
                                "description": "Custom email subject for the recipient."
                              },
                              "reassign": {
                                "type": "boolean",
                                "description": "Whether or not to allow recipients to reassign this invite to another email address. Cannot be used along with authentication."
                              },
                              "reminder": {
                                "type": "object",
                                "properties": {
                                  "remind_after": {
                                    "type": "integer",
                                    "description": "In how many days after sending an invite to send a reminder."
                                  },
                                  "remind_before": {
                                    "type": "integer",
                                    "description": "In how many days before expiration to send a reminder."
                                  },
                                  "remind_repeat": {
                                    "type": "integer",
                                    "description": "In how many dates after reminder email to send another reminder."
                                  }
                                },
                                "description": "When to send a reminder email to the recipient."
                              },
                              "documents": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "id",
                                    "role",
                                    "action"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "ID of the document on which actions are required from this recipient."
                                    },
                                    "role": {
                                      "type": "string",
                                      "maxLength": 255,
                                      "description": "Recipient's role associated with one or more fields. Can be found in the response to the [Get document](/docs/document/operations/get-document) request."
                                    },
                                    "action": {
                                      "type": "string",
                                      "description": "What kind of action is required. Possible values `sign`,`view`, `approve`."
                                    }
                                  }
                                },
                                "description": "An array of objects with documents that require action from the recipient."
                              },
                              "redirect_uri": {
                                "type": "string",
                                "example": "https://www.signnow.com/",
                                "description": "When all the requested fields are completed and signed, the signer is redirected to this URI."
                              },
                              "authentication": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "Authentication type. Possible values: `password` or `phone`."
                                  },
                                  "phone": {
                                    "type": "string",
                                    "description": "Required if `type=phone`. User's phone number."
                                  },
                                  "method": {
                                    "type": "string",
                                    "description": "Required if `type=phone`. Possible values: `phone_call` or `sms`."
                                  },
                                  "password": {
                                    "type": "string",
                                    "description": "Required if `type=password`. The password for user authentication."
                                  },
                                  "sms_message": {
                                    "type": "string",
                                    "maxLength": 140,
                                    "description": "Use if `method=sms`. A custom SMS message.",
                                    "x-stoplight": {
                                      "id": "svya3n7ep65r3"
                                    }
                                  }
                                },
                                "description": "Object that contains the type of signer's identity verification: with password, phone call, or SMS."
                              },
                              "expiration_days": {
                                "type": "integer",
                                "maximum": 180,
                                "minimum": 3,
                                "description": "In how many days the invite expires."
                              },
                              "redirect_target": {
                                "type": "string",
                                "example": "blank",
                                "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                                "x-stoplight": {
                                  "id": "rx8g2k63dadna"
                                }
                              },
                              "close_redirect_uri": {
                                "type": "string",
                                "example": "https://www.signnow.com/",
                                "description": "The link that opens when a recipient clicks **Save Progress and Finish Later** during a signing session or **Close** in view mode."
                              },
                              "decline_by_signature": {
                                "type": "boolean",
                                "description": "Whether or not to allow recipients to decline the invite."
                              },
                              "decline_redirect_uri": {
                                "type": "string",
                                "example": "https://www.signnow.com/",
                                "description": "After declining the invite, the signer is redirected to this URI."
                              },
                              "is_close_redirect_canceled": {
                                "type": "boolean",
                                "default": false,
                                "description": "Specifies whether the save progress redirect setting is canceled for the organization.`true` – the redirect is canceled;`false` – the redirect remains active.",
                                "x-stoplight": {
                                  "id": "lkvpjp7wi7ujh"
                                }
                              },
                              "is_finish_redirect_canceled": {
                                "type": "boolean",
                                "default": false,
                                "description": "Specifies whether the completion redirect setting is canceled for the organization.`true` – the redirect is canceled;`false` – the  redirect remains active.",
                                "x-stoplight": {
                                  "id": "lkvpjp7wi7ujh"
                                }
                              },
                              "is_decline_redirect_canceled": {
                                "type": "boolean",
                                "default": false,
                                "description": "Specifies whether the decline redirect setting is canceled for the organization.`true` – the redirect is canceled;`false` – the redirect remains active.",
                                "x-stoplight": {
                                  "id": "lkvpjp7wi7ujh"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "description": "An array of objects with signing steps. Each step consists of an order number and a signers array with signers' email addresses and settings."
                  },
                  "order_type": {
                    "enum": [
                      "at_the_same_time",
                      "recipient_order",
                      "advanced_order",
                      null
                    ],
                    "type": "string",
                    "x-nullable": true,
                    "description": "Recipient routing rule applied to all recipients in the invite. `at_the_same_time` - all at once; `recipient_order` - sequential by `order` parameter; `advanced_order` - advanced rules."
                  },
                  "mail_provider": {
                    "type": "string",
                    "description": "Defines the `from` field of the invite to sign email and other emails that are connected to the invite (cc, reminder, forward, reassign, and cancel). Possible values: ‘default’ or an email address. To use an email address, first, you must connect it to the SignNow account at the UI. If set to ‘default’, the default email address that had been set up is used. "
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "description": "The timestamp of when the correction was completed.",
                    "x-stoplight": {
                      "id": "u4aeoi8st69oo"
                    }
                  },
                  "general_reminder": {
                    "type": "object",
                    "properties": {
                      "remind_after": {
                        "type": "integer",
                        "description": "Days after invite is sent before a reminder is delivered. Must be less than `general_expiration_days`."
                      },
                      "remind_before": {
                        "type": "integer",
                        "description": "Days before expiration when a reminder is delivered. Must be less than `general_expiration_days`."
                      },
                      "remind_repeat": {
                        "type": "integer",
                        "description": "Days between repeated reminders."
                      }
                    },
                    "x-nullable": true,
                    "description": "Default `reminder` applied to all recipients in the invite."
                  },
                  "completion_emails": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "string",
                          "description": "Email address of the completion email recipient."
                        },
                        "disabled": {
                          "type": "boolean",
                          "description": "Whether to send completion emails."
                        },
                        "disable_document_attachment": {
                          "type": "boolean",
                          "description": "Whether to send document attachments with the completion email."
                        }
                      }
                    },
                    "description": "An array of objects that contain email addresses and custom settings for sending emails about completing the invite."
                  },
                  "general_expiration_days": {
                    "type": "integer",
                    "maximum": 180,
                    "minimum": 1,
                    "x-nullable": true,
                    "description": "Default `expiration_days` applied to all recipients in the invite. Min: `1`, Max: `180`. Default: `30`."
                  },
                  "general_expiration_time": {
                    "type": "integer",
                    "x-nullable": true,
                    "description": "Default expiration timestamp (Unix time, seconds) applied to all recipients in the invite."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "cc": [
                      {
                        "email": "{{cc}}"
                      }
                    ],
                    "invites": [
                      {
                        "order": 1,
                        "signers": [
                          {
                            "email": "{{signer1}}",
                            "message": "message",
                            "subject": "subject",
                            "reassign": true,
                            "reminder": {
                              "remind_after": 2,
                              "remind_before": 3,
                              "remind_repeat": 5
                            },
                            "documents": [
                              {
                                "id": "{{document_id_01}}",
                                "role": "Signer 1",
                                "action": "sign"
                              }
                            ],
                            "redirect_uri": "https://redirect.com",
                            "authentication": {
                              "type": "phone",
                              "phone": "+12345",
                              "method": "sms"
                            },
                            "expiration_days": 30,
                            "close_redirect_uri": "https://close.com",
                            "decline_by_signature": true,
                            "decline_redirect_uri": "https://decline.com"
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "signers": [
                          {
                            "email": "{{signer2}}",
                            "documents": [
                              {
                                "id": "{{document_id_02}}",
                                "role": "Signer 1",
                                "action": "sign"
                              }
                            ],
                            "authentication": {
                              "type": "password",
                              "password": "12345"
                            }
                          },
                          {
                            "email": "{{signer1}}",
                            "documents": [
                              {
                                "id": "{{document_id_02}}",
                                "role": "Viewer",
                                "action": "view"
                              }
                            ]
                          }
                        ]
                      }
                    ],
                    "order_type": "recipient_order",
                    "mail_provider": "default",
                    "general_reminder": {
                      "remind_after": 3,
                      "remind_before": 5,
                      "remind_repeat": 7
                    },
                    "completion_emails": [
                      {
                        "email": "{{completion_email}}",
                        "disabled": false,
                        "disable_document_attachment": true
                      }
                    ],
                    "general_expiration_days": 30
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "cc": [
                      {
                        "email": "cc@email.com"
                      }
                    ],
                    "invites": [
                      {
                        "order": 1,
                        "signers": [
                          {
                            "email": "signer1@email.com",
                            "message": "Custom message",
                            "subject": "Custom subject",
                            "reassign": true,
                            "reminder": {
                              "remind_after": 2,
                              "remind_before": 3,
                              "remind_repeat": 5
                            },
                            "documents": [
                              {
                                "id": "2274bf62786844e981584543275cdc0c88d67d45",
                                "role": "Recipient",
                                "action": "sign"
                              }
                            ],
                            "redirect_uri": "https://redirect.com",
                            "expiration_days": 30,
                            "close_redirect_uri": "https://close.com",
                            "decline_by_signature": true,
                            "decline_redirect_uri": "https://decline.com"
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "signers": [
                          {
                            "email": "signer2@email.com",
                            "message": "Custom message",
                            "subject": "Custom subject",
                            "reminder": {
                              "remind_after": 2,
                              "remind_before": 3,
                              "remind_repeat": 5
                            },
                            "documents": [
                              {
                                "id": "d2d3c991cf574ef18e99c745e41bffa0985855e0",
                                "role": "Recipient",
                                "action": "sign"
                              }
                            ],
                            "redirect_uri": "https://redirect.com",
                            "authentication": {
                              "type": "password",
                              "password": "P@$$Word#123"
                            },
                            "expiration_days": 30,
                            "close_redirect_uri": "https://close.com",
                            "decline_by_signature": true,
                            "decline_redirect_uri": "https://decline.com"
                          }
                        ]
                      }
                    ],
                    "order_type": "recipient_order",
                    "mail_provider": "j.doe@email.com",
                    "client_timestamp": "1720428823",
                    "general_reminder": {
                      "remind_after": 3,
                      "remind_before": 5,
                      "remind_repeat": 7
                    },
                    "completion_emails": [
                      {
                        "email": "j.doe@email.com",
                        "disabled": false,
                        "disable_document_attachment": true
                      }
                    ],
                    "general_expiration_days": 30
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{dg_id}/invite/{dg_invite_id}/correction": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-id-invite-document-group-invite-id-correction",
        "summary": "Initiate DG correction",
        "description": "This endpoint allows API users to put a document group invite into correction mode. After that, [complete the correction](/docs/document-group/operations/put-v2-document-groups-document-group-id-invite-document-group-invite-id-correction) to change the signers, documents, and invite settings.\n\nA correction can be initiated after some recipients have already signed. When the correction starts:\n\n* Invites in steps that are not yet completed are cancelled. Pending recipients cannot access the documents until the correction is completed.\n* Completed steps and everything already signed are kept and locked.\n\n**Notes**\n\n* The invite must be in `pending` status.\n* A document group cannot be corrected if:\n    * the invite includes a guest signer who wasn't sent a short link, an approver, or an SMS invite,\n    * the invite is embedded or includes email groups,\n    * the document group was declined or is already in correction mode,\n    * the document group contains multirole or conditional fields,\n    * the document group is in a shared folder.",
        "parameters": [
          {
            "in": "path",
            "name": "dg_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          },
          {
            "in": "path",
            "name": "dg_invite_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group invite."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Group has a guest signer who wasn't sent a short link.\n* Group invite is not pending.\n* Group invite is embedded.\n* Document group is already in a correction state.\n* Document group contains multirole fields.\n* Field invites with email groups are present.\n* Document group is in a shared folder.\n* Document group has conditional fields.\n* Group invite includes approvers.\n* Group invite includes SMS invites.\n* Document group is declined.\n* `client_timestamp` is not an integer.\n* `client_timestamp` is out of the allowed range.\n* `client_timestamp` is null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Email group issue": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066007,
                          "message": "Field invites with emails groups are present"
                        }
                      ]
                    }
                  },
                  "DG in shared folder": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066008,
                          "message": "Cannot initiate correction for DG in the shared folder."
                        }
                      ]
                    }
                  },
                  "DG in declined state": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066012,
                          "message": "Do not allow initiate correction for document group in declined state"
                        }
                      ]
                    }
                  },
                  "Embedded group invite": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066004,
                          "message": "Invite should not be embedded"
                        }
                      ]
                    }
                  },
                  "DG in correction state": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066005,
                          "message": "Document Group is already in correction state"
                        }
                      ]
                    }
                  },
                  "DG with multirole fields": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066006,
                          "message": "Document Group contains multirole fields"
                        }
                      ]
                    }
                  },
                  "Group has a guest signer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066001,
                          "message": "Could not initiate correction mode when guest signer present"
                        }
                      ]
                    }
                  },
                  "Group invite not pending": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066003,
                          "message": "Invite should be pending"
                        }
                      ]
                    }
                  },
                  "client_timestamp is null": {
                    "value": {
                      "errors": [
                        {
                          "code": 19070003,
                          "message": "Client timestamp should not be null."
                        }
                      ]
                    }
                  },
                  "DG with conditional fields": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066009,
                          "message": "Document group should not have conditional fields."
                        }
                      ]
                    }
                  },
                  "client_timestamp not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19070001,
                          "message": "Client timestamp should be a integer."
                        }
                      ]
                    }
                  },
                  "client_timestamp out of range": {
                    "value": {
                      "errors": [
                        {
                          "code": 19070002,
                          "message": "The client timestamp should be between 0 and 4294967295."
                        }
                      ]
                    }
                  },
                  "Group invite includes approvers": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066010,
                          "message": "Do not allow initiate correction with approvers"
                        }
                      ]
                    }
                  },
                  "Group invite includes SMS invites": {
                    "value": {
                      "errors": [
                        {
                          "code": 19066011,
                          "message": "Do not allow initiate correction with invites with type sms"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User is not a document group owner",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User is not a document group owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001010,
                          "message": "Current user is not document group owner."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Document group is not found.\n* Document group invite is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002005,
                          "message": "Document group invite `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0` not found."
                        }
                      ]
                    }
                  },
                  "Invite doesn't belong to this group": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001011,
                          "message": "Document group `{uniqueId}` not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "client_timestamp"
                ],
                "properties": {
                  "client_timestamp": {
                    "type": "integer",
                    "description": "The timestamp of when the correction mode has been initiated.",
                    "x-stoplight": {
                      "id": "h5wjik7o8ikuv"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "client_timestamp": 1720428823
                  }
                }
              }
            }
          }
        }
      }
    },
    "/documentgroup/{document_group_id}/historyfull": {
      "get": {
        "operationId": "get-documentgroup-document-group-id-historyfull",
        "summary": "Get document group history",
        "description": "This endpoint allows users to retrieve full history for a specific Document Group. \n\nFor the events:\n\n* `document_group_authentication_success`\n* `document_group_authentication_failure`\n\nthe response may contain an additional parameter `phone_number_2fa` which shows the signer's phone number used for authentication method `phone` or `sms`. \n\nFor the event: \n\n* `document_group_authentication_success` \n\nthe response may contain an additional parameter `authentication_code` which shows the code used for authentication method `sms`. The signer receives a code by SMS and enters this code to access the opened document.\n\n<details>\n\n**<summary>View the complete list of document group events:</summary>**\n\n| **Event name** | **Meaning** |\n| --- | --- |\n| `document_group_created` | The document group was created. |\n| `document_group_user_logged_in` | A user logged in during interaction with the document group. |\n| `document_group_viewed` | The document group was viewed. |\n| `document_group_approved` | The document group was approved. |\n| `document_group_signed` | The document group was signed. |\n| `document_group_sign_owner_attachment_sent` | The completed document group was sent to the owner as an attachment. |\n| `document_group_sign_signer_attachment_sent` | The completed document group was sent to the signer as an attachment. |\n| `document_group_downloaded` | The document group was downloaded. |\n| `document_group_invite_sent` | The document group invite was sent. |\n| `document_group_invite_resend` | The document group invite was resent. |\n| `document_group_invite_completed` | The document group invite was completed. |\n| `document_group_invite_cancelled` | The document group invite was cancelled. |\n| `document_group_invite_full_declined` | The document group invite was declined by all recipients. |\n| `document_group_invite_approver_full_declined` | The document group invite was declined by all approvers. |\n| `document_group_fieldinvite_declined` | The document group field invite was declined. |\n| `document_group_freeform_invite_sent` | A FreeForm invite for the document group was sent. |\n| `document_group_freeform_invite_resend` | A FreeForm invite for the document group was resent. |\n| `document_group_freeform_invite_cancelled` | A FreeForm invite for the document group was cancelled. |\n| `document_group_freeform_invite_signed_by_user` | A recipient signed a FreeForm invite for the document group. |\n| `document_group_freeform_invite_completed` | A FreeForm invite for the document group was completed. |\n| `document_group_freeform_sign_owner_attachment_sent` | The document group signed in a FreeForm invite was sent to the owner. |\n| `document_group_freeform_sign_signer_attachment_sent` | The document group signed in a FreeForm invite was sent to the signer. |\n| `document_group_authentication_success` | A document group signer successfully passed authentication. |\n| `document_group_authentication_failure` | A document group signer failed to pass authentication. |\n| `document_group_approver_authentication_success` | A document group approver successfully passed authentication. |\n| `document_group_approver_authentication_failure` | A document group approver failed to pass authentication. |\n| `document_group_correction_start` | A correction process started for the document group. |\n| `document_group_correction_finish` | A correction process finished for the document group. |\n\n</details>",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully get history of a document group: \n  * with a group invite\n  * without invite\n  * for the event `document_group_authentication_success`\n  * for the event `document_group_authentication_failure`\n  \nNote, that the `id_address` attribute in the response body is now deprecated. Instead, the `ip_address` attribute is included.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "email": {
                            "type": "string"
                          },
                          "event": {
                            "type": "string"
                          },
                          "created": {
                            "type": "integer"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "unique_id": {
                            "type": "string"
                          },
                          "ip_address": {
                            "type": "string"
                          },
                          "session_id": {
                            "type": "integer",
                            "x-nullable": true
                          },
                          "client_app_name": {
                            "type": "string"
                          },
                          "json_attributes": {
                            "type": "object",
                            "x-nullable": true
                          },
                          "client_timestamp": {
                            "type": "integer",
                            "x-nullable": true
                          },
                          "document_group_id": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "summary": {
                          "type": "object",
                          "properties": {
                            "sender": {
                              "type": "string"
                            },
                            "created": {
                              "type": "integer"
                            },
                            "group_sent": {
                              "type": "integer"
                            },
                            "recipients": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "group_status": {
                              "type": "string"
                            },
                            "last_updated": {
                              "type": "integer"
                            },
                            "amount_of_pages": {
                              "type": "integer"
                            }
                          }
                        },
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              }
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "email": "sender@email.com",
                          "event": "document_group_downloaded",
                          "created": 1590054771,
                          "user_id": "ffXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "5aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "142.32.0.1",
                          "session_id": null,
                          "client_app_name": "Sample Application",
                          "json_attributes": null,
                          "client_timestamp": "1586165940,",
                          "document_group_id": "beXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ],
                      "meta": {
                        "summary": {
                          "sender": "sender@email.com",
                          "created": 1625136688,
                          "group_sent": 1622029581,
                          "recipients": [
                            "recipient1@email.com",
                            "recipient2@email.com"
                          ],
                          "group_status": "pending",
                          "last_updated": 1625233888,
                          "amount_of_pages": 11
                        },
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "email": "sender@email.com",
                          "event": "document_group_downloaded",
                          "created": 1590054771,
                          "user_id": "ffXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "5aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "142.32.0.1",
                          "session_id": null,
                          "client_app_name": "Sample Application",
                          "json_attributes": null,
                          "client_timestamp": "1586165940,",
                          "document_group_id": "beXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ],
                      "meta": {
                        "summary": {
                          "sender": "sender@email.com",
                          "created": 1625136688,
                          "group_sent": 1622029581,
                          "recipients": [
                            "recipient1@email.com",
                            "recipient2@email.com"
                          ],
                          "group_status": "pending",
                          "last_updated": 1625233888,
                          "amount_of_pages": 11
                        },
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "without invite": {
                    "value": {
                      "data": [
                        {
                          "email": "owner@email.com",
                          "event": "document_group_downloaded",
                          "created": 1590054771,
                          "user_id": "ffXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "5aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "00.00.00.00",
                          "session_id": null,
                          "client_app_name": "Sample Application",
                          "json_attributes": null,
                          "client_timestamp": 1586165940,
                          "document_group_id": "beXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ],
                      "meta": {
                        "summary": {
                          "created": 1625136688,
                          "amount_of_pages": 11
                        },
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "with a group invite": {
                    "value": {
                      "data": [
                        {
                          "email": "sender@email.com",
                          "event": "document_group_downloaded",
                          "created": 1590054771,
                          "user_id": "ffXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "5aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "142.32.0.1",
                          "session_id": null,
                          "client_app_name": "Sample Application",
                          "json_attributes": null,
                          "client_timestamp": 1586165940,
                          "document_group_id": "beXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ],
                      "meta": {
                        "summary": {
                          "sender": "sender@email.com",
                          "created": 1625136688,
                          "group_sent": 1622029581,
                          "recipients": [
                            "recipient1@email.com",
                            "recipient2@email.com"
                          ],
                          "group_status": "pending",
                          "last_updated": 1625233888,
                          "amount_of_pages": 11
                        },
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "document group authentication failure": {
                    "value": {
                      "data": [
                        {
                          "email": "owner_document_group@email.com",
                          "event": "document_group_created",
                          "created": 1672751428,
                          "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "95XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "00.00.00.00",
                          "client_app_name": "Sample application",
                          "json_attributes": null,
                          "client_timestamp": 0,
                          "document_group_id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "email": "owner_document_group@email.com",
                          "event": "document_group_invite_sent",
                          "created": 1672751636,
                          "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "c4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "00.00.00.00",
                          "client_app_name": "Sample application",
                          "json_attributes": {
                            "signers": [
                              "signer1@email.com",
                              "signer2@email.com"
                            ],
                            "viewers": [],
                            "document_unique_ids": [
                              "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                            ],
                            "group_invite_unique_id": "8dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "client_timestamp": 1745310494,
                          "document_group_id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "email": "signer1@email.com",
                          "event": "document_group_authentication_failure",
                          "created": 1672751775,
                          "user_id": "6aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "78XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "00.00.00.00",
                          "client_app_name": "Sample Application",
                          "json_attributes": {
                            "phone_number_2fa": "+1XXX-XXXXXXX",
                            "authentication_type": "sms",
                            "document_unique_ids": [
                              "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                            ],
                            "group_invite_unique_id": "8dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "client_timestamp": 1672751775,
                          "document_group_id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "email": "signer2@email.com",
                          "event": "document_group_authentication_failure",
                          "created": 1672751811,
                          "user_id": "83XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "0dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "00.00.00.00",
                          "client_app_name": "Sample Application",
                          "json_attributes": {
                            "phone_number_2fa": "+1XXX-XXXXXXX",
                            "authentication_type": "phone_call",
                            "document_unique_ids": [
                              "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                            ],
                            "group_invite_unique_id": "8dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "client_timestamp": 1672751811,
                          "document_group_id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ],
                      "meta": {
                        "summary": {
                          "sender": "owner_document_group@email.com",
                          "created": 1672751428,
                          "cc_emails": [
                            "cc-recipient1@email.com",
                            "cc-recipient2@email.com"
                          ],
                          "group_sent": 1672751635,
                          "recipients": [
                            "signer1@email.com",
                            "signer2@email.com"
                          ],
                          "group_status": "pending",
                          "last_updated": 1672751635,
                          "amount_of_pages": 2
                        }
                      }
                    }
                  },
                  "document group authentication success": {
                    "value": {
                      "data": [
                        {
                          "email": "owner_document_group@email.com",
                          "event": "document_group_created",
                          "created": 1672751428,
                          "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "95XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "00.00.00.00",
                          "client_app_name": "Sample application",
                          "json_attributes": null,
                          "client_timestamp": 0,
                          "document_group_id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "email": "owner_document_group@email.com",
                          "event": "document_group_invite_sent",
                          "created": 1672751636,
                          "user_id": "35XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "c4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "00.00.00.00",
                          "client_app_name": "Sample application",
                          "json_attributes": {
                            "signers": [
                              "signer1@email.com",
                              "signer2@email.com"
                            ],
                            "viewers": [],
                            "document_unique_ids": [
                              "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                            ],
                            "group_invite_unique_id": "8dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "client_timestamp": 1745310494,
                          "document_group_id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "email": "signer1@email.com",
                          "event": "document_group_authentication_failure",
                          "created": 1672751775,
                          "user_id": "6aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "78XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "00.00.00.00",
                          "client_app_name": "Sample Application",
                          "json_attributes": {
                            "phone_number_2fa": "+1XXX-XXXXXXX",
                            "authentication_type": "sms",
                            "document_unique_ids": [
                              "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                            ],
                            "group_invite_unique_id": "8dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "client_timestamp": 1672751775,
                          "document_group_id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        },
                        {
                          "email": "signer2@email.com",
                          "event": "document_group_authentication_failure",
                          "created": 1672751811,
                          "user_id": "83XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "unique_id": "0dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "ip_address": "00.00.00.00",
                          "client_app_name": "Sample Application",
                          "json_attributes": {
                            "phone_number_2fa": "+1XXX-XXXXXXX",
                            "authentication_type": "phone_call",
                            "document_unique_ids": [
                              "01XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                            ],
                            "group_invite_unique_id": "8dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          },
                          "client_timestamp": 1672751811,
                          "document_group_id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ],
                      "meta": {
                        "summary": {
                          "sender": "owner_document_group@email.com",
                          "created": 1672751428,
                          "cc_emails": [
                            "cc-recipient1@email.com",
                            "cc-recipient2@email.com"
                          ],
                          "group_sent": 1672751635,
                          "recipients": [
                            "signer1@email.com",
                            "signer2@email.com"
                          ],
                          "group_status": "pending",
                          "last_updated": 1672751635,
                          "amount_of_pages": 2
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "\t\nRequest with any of these cases:\n\n* The bearer token is incorrect.\n* The token has expired.\n* The authorization header is empty.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "400": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The user does not have access to the document group.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  },
                  "Document Group does not belong to user and user was not invited on any step": {
                    "value": {
                      "errors": [
                        {
                          "message": "Access to DocumentGroup denied"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Request with any of these cases:\n\n* The document group was not found.\n* The document group is not active.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "message": "Document group `1c25ec9af5a245efa233a2b657d84f8b2aa03529` not found"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `1c25ec9af5a245efa233a2b657d84f8b2aa03529` not found"
                        }
                      ]
                    }
                  },
                  "Document Group is not found or not active": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `ffXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/user/documentgroups": {
      "get": {
        "operationId": "get-user-documentgroups",
        "summary": "Get document groups",
        "description": "Returns back all document groups the user owns. \n\nThe call is paginated by last_updated, so offset and limit query parameters are required:\n1. Limit must be greater than 0 but less than or equal to 50.\n2. Offset must be 0 or greater.",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "type": "integer",
            "required": true,
            "description": ""
          },
          {
            "in": "query",
            "name": "offset",
            "type": "integer",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "document_groups": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "group_id": {
                            "type": "string"
                          },
                          "documents": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "roles": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "thumbnail": {
                                  "type": "object",
                                  "properties": {
                                    "large": {
                                      "type": "string"
                                    },
                                    "small": {
                                      "type": "string"
                                    },
                                    "medium": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "has_credit_card_number": {
                                  "type": "boolean"
                                }
                              }
                            }
                          },
                          "invite_id": {
                            "type": "string"
                          },
                          "group_name": {
                            "type": "string"
                          },
                          "last_updated": {
                            "type": "string"
                          },
                          "invite_status": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "document_group_total_count": {
                      "type": "integer"
                    },
                    "originator_organization_settings": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "document_groups": [
                        {
                          "group_id": "bcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "documents": [
                            {
                              "id": "19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "Sample document",
                              "roles": [
                                "Signer 1"
                              ],
                              "thumbnail": {
                                "large": "https://example.com/document/19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                                "small": "https://example.com/document/19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                                "medium": "https://example.com/document/19XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                              },
                              "has_credit_card_number": false
                            },
                            {
                              "id": "6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "Sample document 1",
                              "roles": [
                                "Employer Representative"
                              ],
                              "thumbnail": {
                                "large": "https://example.com/document/6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                                "small": "https://example.com/document/6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                                "medium": "https://example.com/document/6fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                              },
                              "has_credit_card_number": false
                            }
                          ],
                          "invite_id": "47XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "group_name": "Sample document group",
                          "last_updated": "1563886628",
                          "invite_status": "pending"
                        },
                        {
                          "group_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "documents": [
                            {
                              "id": "f5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "Sample document",
                              "roles": [
                                "Signer 1"
                              ],
                              "thumbnail": {
                                "large": "https://example.com/document/f5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                                "small": "https://example.com/document/f5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                                "medium": "https://example.com/document/f5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                              },
                              "has_credit_card_number": false
                            },
                            {
                              "id": "03XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "Sample document 1",
                              "roles": [
                                "Employer Representative"
                              ],
                              "thumbnail": {
                                "large": "https://example.com/document/03XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                                "small": "https://example.com/document/03XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                                "medium": "https://example.com/document/03XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                              },
                              "has_credit_card_number": false
                            }
                          ],
                          "invite_id": "3aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "group_name": "Sample document group",
                          "last_updated": "1549032635",
                          "invite_status": "pending"
                        },
                        {
                          "group_id": "60XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "documents": [
                            {
                              "id": "15XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "Sample document 2",
                              "roles": [
                                "Signer 1",
                                "signer 2"
                              ],
                              "thumbnail": {
                                "large": "https://example.com/document/15XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                                "small": "https://example.com/document/15XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                                "medium": "https://example.com/document/15XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                              },
                              "has_credit_card_number": false
                            },
                            {
                              "id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "Sample document 1",
                              "roles": [
                                "Signer 1",
                                "signer 2"
                              ],
                              "thumbnail": {
                                "large": "https://example.com/document/c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                                "small": "https://example.com/document/c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                                "medium": "https://example.com/document/c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                              },
                              "has_credit_card_number": false
                            }
                          ],
                          "invite_id": "62XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "group_name": "Sample document group",
                          "last_updated": "1540294396",
                          "invite_status": "pending"
                        }
                      ],
                      "document_group_total_count": 3,
                      "originator_organization_settings": [
                        {
                          "value": "https://example_2.com",
                          "setting": "invite_completion_redirect_url"
                        },
                        {
                          "value": "",
                          "setting": "invite_decline_redirect_url"
                        },
                        {
                          "value": "0",
                          "setting": "required_preset_signature_name"
                        },
                        {
                          "value": "0",
                          "setting": "require_email_subject"
                        },
                        {
                          "value": "0",
                          "setting": "require_login_for_signing"
                        },
                        {
                          "value": "0",
                          "setting": "logout_on_signing"
                        },
                        {
                          "value": "0",
                          "setting": "front_end_session_length"
                        },
                        {
                          "value": "0",
                          "setting": "add_signature_stamp_with_name"
                        },
                        {
                          "value": "0",
                          "setting": "cfr_title_21_part_11"
                        },
                        {
                          "value": "0",
                          "setting": "require_authentication_for_invites"
                        },
                        {
                          "value": "1",
                          "setting": "document_guide"
                        },
                        {
                          "value": "0",
                          "setting": "disable_email_notifications"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-groups/{document_group_id}/metadata": {
      "put": {
        "operationId": "put-v2-document-groups-document-group-id-metadata",
        "summary": "Add metadata to doc group",
        "description": "This endpoint allows users to add metadata to the selected document group. All added metadata will be linked to the document group during the [invite to sign](/docs/document-field-invite/operations/post-field-invite). Also, if you'd like to use this metadata in any event subscription, you can add upon [creating a webhook](/docs/basic-auth/operations/create-event-subscription).",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token* Request with invalid payload\n* Request with empty payload.\n* Request with `content` which is not an array\n* Request with `content` which is more than 20 elements\n* Request with empty `content`\n* Request with `key` which is not a string\n* Request with `key` empty\n* Request with `key` which is more than 100 chars\n* Request with `key` with a special char\n* Request with `key value` which is not a string\n* Request with `key value` empty\n* Request with `key value` which is more than 100 chars\n* Request with `key value` with a 4-byte symbol",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with `key` empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004006,
                          "message": "The keys of the `content` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Request with empty content": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004003,
                          "message": "The `content` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Request with empty payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004001,
                          "message": "The `content` field is required."
                        }
                      ]
                    }
                  },
                  "Request with invalid payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "Request with `key value` empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004010,
                          "message": "The values of the `content` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Request with `key` with a special char": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004008,
                          "message": "The keys of the `content` field must contain only letters, numbers, underscores and hyphens."
                        }
                      ]
                    }
                  },
                  "Request with `key` which is not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004005,
                          "message": "The keys of the `content` field must be strings."
                        }
                      ]
                    }
                  },
                  "Request with `content` which is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004002,
                          "message": "The `content` field must be an array."
                        }
                      ]
                    }
                  },
                  "Request with `key value` with a 4-byte symbol": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004012,
                          "message": "The values of the `content` field must not contain 4-byte characters."
                        }
                      ]
                    }
                  },
                  "Request with `key` value which is not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004009,
                          "message": "The values of the `content` field must be strings."
                        }
                      ]
                    }
                  },
                  "Request with `key` which is more than 100 chars": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004007,
                          "message": "The keys of the `content` field must contain no more than 100 characters."
                        }
                      ]
                    }
                  },
                  "Request with `content` which is more than 20 elements": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004004,
                          "message": "The `content` field must contain no more than 20 elements."
                        }
                      ]
                    }
                  },
                  "Request with `key value` which is more than 100 chars": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004011,
                          "message": "The values of the `content` field must contain no more than 100 characters."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with `group_id` in trash\n* Request with `group_id` archieved\n* Request with bearer token from another user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with `group_id` in trash": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020066,
                          "message": "Cannot access the document group while it is in the trash bin."
                        }
                      ]
                    }
                  },
                  "Request with `group_id` archieved": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020065,
                          "message": "Cannot access the document group while it is in the archive folder."
                        }
                      ]
                    }
                  },
                  "Request with bearer token from another user": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020008,
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with `group_id` which does not exist\n* Request with `group_id` which is a template",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with `group_id` which is a template": {
                    "value": {
                      "message": "Document group `4fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                    }
                  },
                  "Request with `group_id` which does not exist": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `4fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "content": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "description": "Any type of metadata that should be added to the document group. For example,`signer_id`."
                      },
                      "key1": {
                        "type": "string",
                        "description": "Any type of metadata that should be added to the document group. For example, `timestamp`."
                      },
                      "key2": {
                        "type": "string",
                        "description": "Any type of metadata that should be added to the document group. For example, `document_group_owner_id`."
                      }
                    },
                    "description": "Array of the keys to be added to the metadata."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "content": {
                      "key": "value",
                      "key1": "value",
                      "key2": "value"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "content": {
                      "key": "value",
                      "key1": "value",
                      "key2": "value"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-document-groups-document-group-id-metadata",
        "summary": "Get metadata of doc group",
        "description": "This endpoint allows users to get metadata for a document group.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "200": {
            "description": "OK\n* with metadata\n* without metadata",
            "content": {
              "application/json": {
                "examples": {
                  "With metadata": {
                    "value": {
                      "data": {
                        "content": {
                          "key": "value",
                          "key1": "value",
                          "key2": "value"
                        },
                        "created": 1685433840,
                        "updated": 1685433840,
                        "application_id": "6cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  },
                  "Without metadata": {
                    "value": {
                      "data": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with bearer token from another user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with bearer token from another user": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020008,
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with `group_id` which does not exist\n* Request with `group_id` which is a template",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with `group_id` which is a template": {
                    "value": {
                      "message": "Document group `4fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                    }
                  },
                  "Request with `group_id` which does not exist": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `4fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-document-groups-document-group-id-metadata",
        "summary": "Remove metadata from doc group",
        "description": "This endpoint allows users to delete metadata for a document group.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content"
          },
          "400": {
            "description": "* Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with bearer token from another user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with bearer token from another user": {
                    "value": {
                      "errors": [
                        {
                          "code": 13020008,
                          "message": "Access to DocumentGroup is denied"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Request with `group_id` which does not exist\n* Request with `group_id` which is a template\n* Request with `group_id` that does not have metadata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with `group_id` which is a template": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `4fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  },
                  "Request with `group_id` which does not exist": {
                    "value": {
                      "errors": [
                        {
                          "message": "Document group `4fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` not found"
                        }
                      ]
                    }
                  },
                  "Request with `group_id` that does not have metadata": {
                    "value": {
                      "errors": [
                        {
                          "code": 23004017,
                          "message": "Metadata not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-groups/{document_group_id}/roles": {
      "post": {
        "operationId": "share-document-group",
        "summary": "Share document group",
        "description": "This endpoint allows API users to share a document group with a user by email, assigning them a specified role. If the user does not have an account, one is created automatically.\n\n**Notes**\n\n* **Viewer** - can view, download, and make copies of documents in a document group; **sender** - can view, download, make copies, invite to sign, and manage document invites.\n* Only the owner of the document group can share it.\n* A document group can be shared only once with the same user. Attempting to share again (even with a different role) returns an error.\n* The user receives an email notification about the shared document group, including a preview link.\n* If the user does not exist in the system, a new account is created automatically.\n* If the document group was created from a document group template (DGT) that is already shared with the target user (as owner or sender), the sharing is rejected with a conflict error.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "Document group ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Document group successfully shared.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the user."
                    },
                    "role": {
                      "type": "string",
                      "description": "User's role in the document group (e.g., `viewer`, `sender`)."
                    },
                    "email": {
                      "type": "string",
                      "description": "Email address of the user."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "viewer",
                      "email": "user@example.com"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "viewer",
                      "email": "user@example.com"
                    }
                  },
                  "application/json": {
                    "value": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "viewer",
                      "email": "user@example.com"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document group not found.\n* You can't share document to yourself.\n* Entity can only be shared once.\n* Email validation errors.\n* Role validation errors.\n* Message validation errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  },
                  "Already shared": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029008,
                          "message": "Entity can only be shared once."
                        }
                      ]
                    }
                  },
                  "Message too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029028,
                          "message": "Field `message` should not exceed 10000 characters."
                        }
                      ]
                    }
                  },
                  "Role is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029004,
                          "message": "Role is required."
                        }
                      ]
                    }
                  },
                  "Email is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029002,
                          "message": "Email is required."
                        }
                      ]
                    }
                  },
                  "Message too short": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029028,
                          "message": "Field `message` should be not less than 1 characters."
                        }
                      ]
                    }
                  },
                  "Email is not valid": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029003,
                          "message": "Email is not valid."
                        }
                      ]
                    }
                  },
                  "Role must be string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029005,
                          "message": "Role must be string."
                        }
                      ]
                    }
                  },
                  "Incorrect role value": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030014,
                          "message": "Field `role` value should be one of [\"viewer\", \"sender\"], value: [\"...\"] given."
                        }
                      ]
                    }
                  },
                  "Email must be a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029001,
                          "message": "Email must be a string."
                        }
                      ]
                    }
                  },
                  "Message must be string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029027,
                          "message": "Field `message` should be string, value: [...] given."
                        }
                      ]
                    }
                  },
                  "Can't share to yourself": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029007,
                          "message": "You can't share document to yourself."
                        }
                      ]
                    }
                  },
                  "Document group not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  },
                  "Message must not be empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029029,
                          "message": "Field `message` must not be empty."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. You don't have access to the document group.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "Forbidden": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Incorrect document group ID format (not a 40-character hex string).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 404,
                          "message": "Not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 404,
                          "message": "Not found."
                        }
                      ]
                    }
                  },
                  "Not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 404,
                          "message": "Not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict. The document group is already shared with the user.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029031,
                          "message": "Sharing entity conflict: parent entity already shared."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Conflict": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029031,
                          "message": "Sharing entity conflict: parent entity already shared."
                        }
                      ]
                    }
                  },
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029031,
                          "message": "Sharing entity conflict: parent entity already shared."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "role"
                ],
                "properties": {
                  "role": {
                    "type": "string",
                    "example": "viewer",
                    "description": "Role to assign. Allowed values: `viewer`, `sender`."
                  },
                  "email": {
                    "type": "string",
                    "example": "user@email.com",
                    "description": "Email address of the user to share with."
                  },
                  "message": {
                    "type": "string",
                    "example": "Please review the documents.",
                    "description": "Custom message to include in the notification email."
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "role": "viewer",
                    "email": "user@example.com",
                    "message": "Please review these documents."
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-document-group-roles",
        "summary": "Get document group users",
        "description": "This endpoint allows API users to retrieve a paginated list of users who have access to the specified document group, including their roles, names, and avatar links.\n\n**Notes**\n\n* The owner sees all users with roles (including themselves as `owner`).\n* A non-owner (user with shared access) sees only the owner and themselves.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "Document group ID."
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "integer",
            "required": false,
            "description": "Number of items per page. Min: `1`, Max: `100`. Default: `15`."
          },
          {
            "in": "query",
            "name": "page",
            "type": "integer",
            "required": false,
            "description": "Page number. Min: `1`. Default: `1`."
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Retrieves a paginated list of users with access to the document group.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier of the user."
                          },
                          "role": {
                            "type": "string",
                            "description": "User's role in the document group (e.g., `viewer`, `sender`, `owner`)."
                          },
                          "email": {
                            "type": "string",
                            "description": "Email address of the user."
                          },
                          "full_name": {
                            "type": "string",
                            "description": "Full name of the user."
                          },
                          "avatar_url": {
                            "type": "string",
                            "description": "URL of the user's avatar image."
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          },
                          "description": "Pagination details for the response."
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "abc123def456abc123def456abc123def456abcd",
                          "role": "owner",
                          "email": "owner@example.com",
                          "full_name": "John Doe",
                          "avatar_url": "https://example.com/avatars/abc123/download"
                        },
                        {
                          "id": "def456abc123def456abc123def456abc123defg",
                          "role": "viewer",
                          "email": "viewer@example.com",
                          "full_name": "Jane Smith",
                          "avatar_url": null
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "abc123def456abc123def456abc123def456abcd",
                          "role": "owner",
                          "email": "owner@example.com",
                          "full_name": "John Doe",
                          "avatar_url": "https://example.com/avatars/abc123/download"
                        },
                        {
                          "id": "def456abc123def456abc123def456abc123defg",
                          "role": "viewer",
                          "email": "viewer@example.com",
                          "full_name": "Jane Smith",
                          "avatar_url": null
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "application/json": {
                    "value": {
                      "data": [
                        {
                          "id": "abc123def456abc123def456abc123def456abcd",
                          "role": "owner",
                          "email": "owner@example.com",
                          "full_name": "John Doe",
                          "avatar_url": "https://example.com/avatars/abc123/download"
                        },
                        {
                          "id": "def456abc123def456abc123def456abc123defg",
                          "role": "viewer",
                          "email": "viewer@example.com",
                          "full_name": "Jane Smith",
                          "avatar_url": "https://example.com/avatars/abc456/download"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document group not found.\n* You don't have access to the entity.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  },
                  "No access to entity": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "Document group not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": {
                        "code": 1537,
                        "message": "invalid_token"
                      }
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "unshare-document-group-all",
        "summary": "Unshare document group from all users",
        "description": "This endpoint allows API users to remove sharing access for all users from the document group.\n\n**Notes**\n\n* Only the owner of the document group can perform this action.\n* All shared users are removed.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "Document group ID."
          }
        ],
        "responses": {
          "204": {
            "description": "All users successfully unshared. No content returned."
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document group not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  },
                  "Document group not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. Only the document group owner can unshare all users.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "Forbidden": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-groups/{document_group_id}/roles/{user_id}": {
      "put": {
        "operationId": "update-document-group-role",
        "summary": "Update document group role",
        "description": "This endpoint allows API users to change the role of a user who already has sharing access to the document group.\n\n**Notes**\n\n* **Viewer** - can view, download, and make copies of documents in a document group; **sender** - can view, download, make copies, invite to sign, and manage document invites.\n* Only the owner of the document group can change roles.\n* The previous role is replaced with the new one.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "Document group ID."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the user whose role is being changed."
          }
        ],
        "responses": {
          "200": {
            "description": "Role successfully updated.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the user."
                    },
                    "role": {
                      "type": "string",
                      "description": "User's new role in the document group (e.g., `viewer`, `sender`)."
                    },
                    "email": {
                      "type": "string",
                      "description": "Email address of the user."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "sender",
                      "email": "user@example.com"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "sender",
                      "email": "user@example.com"
                    }
                  },
                  "application/json": {
                    "value": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "sender",
                      "email": "user@example.com"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document group not found.\n* User role not found.\n* Role is required.\n* Role must be string.\n* Invalid role value.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  },
                  "Role is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029004,
                          "message": "Role is required."
                        }
                      ]
                    }
                  },
                  "Role must be string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029005,
                          "message": "Role must be string."
                        }
                      ]
                    }
                  },
                  "User role not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029011,
                          "message": "User role not found."
                        }
                      ]
                    }
                  },
                  "Incorrect role value": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030014,
                          "message": "Field `role` value should be one of [\"viewer\", \"sender\"], value: [\"...\"] given."
                        }
                      ]
                    }
                  },
                  "Document group not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. Only the document group owner can change roles.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "Forbidden": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "role"
                ],
                "properties": {
                  "role": {
                    "type": "string",
                    "example": "sender",
                    "description": "New role to assign. Allowed values: `viewer`, `sender`."
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "role": "sender"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unshare-document-group-from-user",
        "summary": "Unshare document group from user",
        "description": "This endpoint allows API users to remove sharing access for a specific user from the document group.\n\n**Notes**\n\n* The owner can unshare any user except themselves.\n* A shared user can unshare only themselves (self-unshare).",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "Document group ID."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the user to unshare."
          }
        ],
        "responses": {
          "204": {
            "description": "User successfully unshared. No content returned."
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document group not found.\n* Managing user not found.\n* Entity owner can't unshare it from himself.\n* You don't have access to the entity.\n* User role not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  },
                  "No access to entity": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "User role not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029011,
                          "message": "User role not found."
                        }
                      ]
                    }
                  },
                  "Managing user not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029023,
                          "message": "Managing user not found."
                        }
                      ]
                    }
                  },
                  "Document group not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029026,
                          "message": "Document group not found."
                        }
                      ]
                    }
                  },
                  "Owner can't unshare themselves": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029022,
                          "message": "Entity owner can't unshare it from himself."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-group-templates/{document_group_template_id}/roles": {
      "post": {
        "operationId": "share-document-group-template",
        "summary": "Share document group template",
        "description": "This endpoint allows API users to share a document group template with a user by email, assigning them a specified role. If the user does not have an account, one is created automatically.\n\n**Notes**\n\n* **Viewer** - can view, download, and make copies of documents in a document group template; **sender** - can view, download, make copies, invite to sign, and manage document invites.\n* Only the owner of the document group template can share it.\n* A document group template can be shared only once with the same user. Attempting to share again (even with a different role) returns an error.\n* The user receives an email notification about the shared template.\n* If the user does not exist in the system, a new account is created automatically.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_template_id",
            "type": "string",
            "required": true,
            "description": "Document group template ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Document group template successfully shared.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the user."
                    },
                    "role": {
                      "type": "string",
                      "description": "User's role in the document group template (e.g., `viewer`, `sender`)."
                    },
                    "email": {
                      "type": "string",
                      "description": "Email address of the user."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "viewer",
                      "email": "user@example.com"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "viewer",
                      "email": "user@example.com"
                    }
                  },
                  "application/json": {
                    "value": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "viewer",
                      "email": "user@example.com"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document group template not found.\n* You can't share document to yourself.\n* Entity can only be shared once.\n* Email validation errors.\n* Role validation errors.\n* Message validation errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  },
                  "Already shared": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029008,
                          "message": "Entity can only be shared once."
                        }
                      ]
                    }
                  },
                  "Message too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029028,
                          "message": "Field `message` should not exceed 10000 characters."
                        }
                      ]
                    }
                  },
                  "Role is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029004,
                          "message": "Role is required."
                        }
                      ]
                    }
                  },
                  "Email is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029002,
                          "message": "Email is required."
                        }
                      ]
                    }
                  },
                  "Message too short": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029028,
                          "message": "Field `message` should be not less than 1 characters."
                        }
                      ]
                    }
                  },
                  "Email is not valid": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029003,
                          "message": "Email is not valid."
                        }
                      ]
                    }
                  },
                  "Role must be string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029005,
                          "message": "Role must be string."
                        }
                      ]
                    }
                  },
                  "Incorrect role value": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030014,
                          "message": "Field `role` value should be one of [\"viewer\", \"sender\"], value: [\"...\"] given."
                        }
                      ]
                    }
                  },
                  "Email must be a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029001,
                          "message": "Email must be a string."
                        }
                      ]
                    }
                  },
                  "Message must be string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029027,
                          "message": "Field `message` should be string, value: [...] given."
                        }
                      ]
                    }
                  },
                  "Can't share to yourself": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029007,
                          "message": "You can't share document to yourself."
                        }
                      ]
                    }
                  },
                  "Message must not be empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029029,
                          "message": "Field `message` must not be empty."
                        }
                      ]
                    }
                  },
                  "Document group template not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. You don't have access to the document group template.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "Forbidden": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Incorrect document group template ID format (not a 40-character hex string).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "404": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "404": "Unable to find a route to match the URI: v2/document-groups/{id}/roles"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/document-groups/{id}/roles"
                    }
                  },
                  "Not found": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/document-groups/{id}/roles"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "role"
                ],
                "properties": {
                  "role": {
                    "type": "string",
                    "example": "viewer",
                    "description": "Role to assign. Allowed values: `viewer`, `sender`."
                  },
                  "email": {
                    "type": "string",
                    "example": "user@email.com",
                    "description": "Email address of the user to share with."
                  },
                  "message": {
                    "type": "string",
                    "example": "Please review this template.",
                    "description": "Custom message to include in the notification email."
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "role": "viewer",
                    "email": "user@example.com",
                    "message": "Please review this template."
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "list-document-group-template-roles",
        "summary": "Get document group template roles",
        "description": "This endpoint allows API users to retrieve a paginated list of users who have access to the specified document group template, including their roles, names, and avatar links.\n\n**Notes**\n\n* The owner sees all users with roles (including themselves as `owner`).\n* A non-owner (shared user) sees only the owner and themselves.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_template_id",
            "type": "string",
            "required": true,
            "description": "Document group template ID."
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "integer",
            "required": false,
            "description": "Number of items per page. Min: `1`, Max: `100`. Default: `15`."
          },
          {
            "in": "query",
            "name": "page",
            "type": "integer",
            "required": false,
            "description": "Page number. Min: `1`. Default: `1`."
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Retrieves a paginated list of users with access to the document group template.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier of the user."
                          },
                          "role": {
                            "type": "string",
                            "description": "User's role in the document group template (e.g., `viewer`, `sender`, `owner`)."
                          },
                          "email": {
                            "type": "string",
                            "description": "Email address of the user."
                          },
                          "full_name": {
                            "type": "string",
                            "description": "Full name of the user."
                          },
                          "avatar_url": {
                            "type": "string",
                            "description": "URL of the user's avatar image."
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "abc123def456abc123def456abc123def456abcd",
                          "role": "owner",
                          "email": "owner@example.com",
                          "full_name": "John Doe",
                          "avatar_url": "https://example.com/avatars/abc123/download"
                        },
                        {
                          "id": "def456abc123def456abc123def456abc123defg",
                          "role": "viewer",
                          "email": "viewer@example.com",
                          "full_name": "Jane Smith",
                          "avatar_url": null
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "abc123def456abc123def456abc123def456abcd",
                          "role": "owner",
                          "email": "owner@example.com",
                          "full_name": "John Doe",
                          "avatar_url": "https://example.com/avatars/abc123/download"
                        },
                        {
                          "id": "def456abc123def456abc123def456abc123defg",
                          "role": "viewer",
                          "email": "viewer@example.com",
                          "full_name": "Jane Smith",
                          "avatar_url": null
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "application/json": {
                    "value": {
                      "data": [
                        {
                          "id": "abc123def456abc123def456abc123def456abcd",
                          "role": "owner",
                          "email": "owner@example.com",
                          "full_name": "John Doe",
                          "avatar_url": "https://example.com/avatars/abc123/download"
                        },
                        {
                          "id": "def456abc123def456abc123def456abc123defg",
                          "role": "viewer",
                          "email": "viewer@example.com",
                          "full_name": "Jane Smith",
                          "avatar_url": "https://example.com/avatars/abc456/download"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document group template not found.\n* You don't have access to the entity.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  },
                  "No access to entity": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "Document group template not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": {
                        "code": 1537,
                        "message": "invalid_token"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": {
                        "code": 1537,
                        "message": "invalid_token"
                      }
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "unshare-document-group-template-all",
        "summary": "Unshare document group template from all users",
        "description": "This endpoint allows the owner of a document group template to remove sharing access for all users at once.\n\n**Notes**\n\n* Only the owner of the document group template can perform this action.\n* All shared users are removed.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_template_id",
            "type": "string",
            "required": true,
            "description": "Document group template ID."
          }
        ],
        "responses": {
          "204": {
            "description": "All users successfully unshared. No content returned."
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document group template not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  },
                  "Document group template not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": {
                        "code": 1537,
                        "message": "invalid_token"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": {
                        "code": 1537,
                        "message": "invalid_token"
                      }
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. You don't have access to the document group template.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "Forbidden": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-group-templates/{document_group_template_id}/roles/{user_id}": {
      "put": {
        "operationId": "update-document-group-template-role",
        "summary": "Update document group template role",
        "description": "This endpoint allows the owner of a document group template to change the role of a user who already has sharing access.\n\n**Notes**\n\n* Only the owner of the document group template can change roles.\n* The user must already have a role assigned (i.e., the template must be shared with them first).",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_template_id",
            "type": "string",
            "required": true,
            "description": "Document group template ID."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the user whose role is being changed."
          }
        ],
        "responses": {
          "200": {
            "description": "Role successfully updated.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the user."
                    },
                    "role": {
                      "type": "string",
                      "description": "User's new role in the document group template (e.g., `viewer`, `sender`)."
                    },
                    "email": {
                      "type": "string",
                      "description": "Email address of the user."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "sender",
                      "email": "user@example.com"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "sender",
                      "email": "user@example.com"
                    }
                  },
                  "application/json": {
                    "value": {
                      "id": "def456abc123def456abc123def456abc123defg",
                      "role": "sender",
                      "email": "user@example.com"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document group template not found.\n* User role not found.\n* Role validation errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  },
                  "Role is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029004,
                          "message": "Role is required."
                        }
                      ]
                    }
                  },
                  "Role must be string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029005,
                          "message": "Role must be string."
                        }
                      ]
                    }
                  },
                  "User role not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029011,
                          "message": "User role not found."
                        }
                      ]
                    }
                  },
                  "Incorrect role value": {
                    "value": {
                      "errors": [
                        {
                          "code": 12030014,
                          "message": "Field `role` value should be one of [\"viewer\", \"sender\"], value: [\"...\"] given."
                        }
                      ]
                    }
                  },
                  "Document group template not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": {
                        "code": 1537,
                        "message": "invalid_token"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": {
                        "code": 1537,
                        "message": "invalid_token"
                      }
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. You don't have access to the document group template.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "Forbidden": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "role"
                ],
                "properties": {
                  "role": {
                    "type": "string",
                    "example": "sender",
                    "description": "New role to assign. Allowed values: `viewer`, `sender`."
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "role": "sender"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "unshare-document-group-template-user",
        "summary": "Unshare document group template from user",
        "description": "This endpoint allows API users to remove sharing access for a specific user from the document group template.\n\n**Notes**\n\n* The owner can unshare any user except themselves.\n* A shared user (`viewer`/`sender`) can unshare only themselves (self-unshare).",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_template_id",
            "type": "string",
            "required": true,
            "description": "Document group template ID."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the user to unshare."
          }
        ],
        "responses": {
          "204": {
            "description": "User successfully unshared. No content returned."
          },
          "400": {
            "description": "Bad request. Possible errors:\n\n* Document group template not found.\n* Managing user not found.\n* Entity owner can't unshare it from himself.\n* You don't have access to the entity.\n* User role not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  },
                  "No access to entity": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "User role not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029011,
                          "message": "User role not found."
                        }
                      ]
                    }
                  },
                  "Managing user not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029023,
                          "message": "Managing user not found."
                        }
                      ]
                    }
                  },
                  "Owner can't unshare themselves": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029022,
                          "message": "Entity owner can't unshare it from himself."
                        }
                      ]
                    }
                  },
                  "Document group template not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029025,
                          "message": "Document group template not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or missing bearer token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": {
                        "code": 1537,
                        "message": "invalid_token"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": {
                        "code": 1537,
                        "message": "invalid_token"
                      }
                    }
                  },
                  "Unauthorized": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-groups/{document_group_id}/embedded-editor": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-id-embedded-editor",
        "summary": "Create link for doc group",
        "description": "This endpoint allows API users to generate a link to embed the SignNow editor into their app, allowing their customers to edit documents without sending them for signing.\n\nTo generate an embedded editor link, make sure that:\n\n- the document group has not been sent for signing or signed.\n- the document group is not deleted or archived.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "Document group ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "url": "https://example.com/documentgroup/60XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/edit?access_token={{access_token}}&redirect_uri=https%3A%2F%2Fwww.redirect.com%2F&embedded=1&redirect_target=blank"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Document group was already sent.\n* Document group not found.\n\n**Validation errors:**\n\n* `redirect_uri` is not a string.\n* Empty `redirect_uri`.\n* `redirect_uri` is longer than 2048 characters.\n* `redirect_uri` is not a correct URL.\n* `link_expiration` is not an integer.\n* `link_expiration` must be between 15 and 45.\n* Custom `link_expiration` is more than 43200 minutes.\n* `redirect_target` is not a string.\n* Incorrect `redirect_target`. Allowed values: `self`, `blank`.\n* `redirect_uri` is required if `redirect_target` is added.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046002,
                          "message": "Parameter `redirect_uri` must not be an empty string."
                        }
                      ]
                    }
                  },
                  "Missing redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046009,
                          "message": "The `redirect_uri` field is required when `redirect_target` is added."
                        }
                      ]
                    }
                  },
                  "redirect_uri too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046003,
                          "message": "Parameter `redirect_uri` must not exceed 2048 characters."
                        }
                      ]
                    }
                  },
                  "redirect_uri not a URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046004,
                          "message": "Parameter `redirect_uri` must be a valid URL."
                        }
                      ]
                    }
                  },
                  "link_expiration too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19049001,
                          "message": "The link expiration should be less than or equal to 45 minutes."
                        }
                      ]
                    }
                  },
                  "redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046001,
                          "message": "Parameter `redirect_uri` must be a string."
                        }
                      ]
                    }
                  },
                  "Document group not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002010,
                          "message": "Document group `0000000000000000000000000000000000000000` not found."
                        }
                      ]
                    }
                  },
                  "Incorrect redirect_target": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046008,
                          "message": "The `redirect_target` field is invalid, allowed values: self, blank."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "link_expiration too little": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046006,
                          "message": "The link expiration should be greater than or equal to 15 minutes."
                        }
                      ]
                    }
                  },
                  "redirect_target not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046007,
                          "message": "The `redirect_target` field must be a string."
                        }
                      ]
                    }
                  },
                  "link_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046005,
                          "message": "The link expiration value should be of type int."
                        }
                      ]
                    }
                  },
                  "Custom link_expiration too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19049001,
                          "message": "The link expiration should be less than or equal to 43200 minutes."
                        }
                      ]
                    }
                  },
                  "Document group was already sent": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001036,
                          "message": "An invite already exists for this document group."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User doesn't own the document group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User doesn't own the document group": {
                    "value": {
                      "code": 19001010,
                      "message": "Current user is not document group owner."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "redirect_uri": {
                    "type": "string",
                    "description": "Optional: link that opens after the user has completed editing the document group."
                  },
                  "link_expiration": {
                    "type": "integer",
                    "description": "15 minutes by default. Can be set max to 43200 minutes by a user with Admin level of access."
                  },
                  "redirect_target": {
                    "type": "string",
                    "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab, default value.",
                    "x-stoplight": {
                      "id": "oc6q4mzzu5cun"
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "redirect_uri": "{some_valid_url}",
                    "link_expiration": 15,
                    "redirect_target": "blank"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "redirect_uri": "{some_valid_url}",
                    "link_expiration": 15,
                    "redirect_target": "blank"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/documents/{document_id}/embedded-editor": {
      "post": {
        "operationId": "post-v2-documents-document-unique-id-embedded-editor",
        "summary": "Create link for document",
        "description": "This endpoint allows API users to generate a link to embed the SignNow document editor into their app, allowing their customers to edit documents without sending them for signing.\n\nTo generate an embedded editor link, make sure that:\n\n- the document has not been sent for signing or signed.\n- the document is not deleted or archived.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document to open in the embedded editor."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a link in case of correct request.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": {
                        "url": "https://app3.signnow/webapp/document/9dcff427c3694e0294d412736bd68466529eb720?access_token=1be4687037b9c34291f91e7b1821337d91fb6c9be671fc79f8e2a6fb72d54aba&redirect_uri=https%3A%2F%2Fwww.google.com&embedded=1"
                      }
                    }
                  }
                },
                "examples": {
                  "Correct request": {
                    "value": {
                      "data": {
                        "url": "https://example.com/document/9dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX?access_token={access_token}&redirect_uri=https%3A%2F%2Fwww.example.com&embedded=1&redirect_target=blank"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Document was already sent.\n\n**Validation errors:**\n\n* `redirect_uri` is not a string.\n* Empty `redirect_uri`.\n* `redirect_uri` is longer than 2048 characters.\n* `redirect_uri` is not a correct URL.\n* `link_expiration` is not an integer.\n* `link_expiration` must be between 15 and 45.\n* Custom `link_expiration` is more than 43200 minutes.\n* `redirect_target` is not a string.\n* Incorrect `redirect_target`. Allowed values: `self`, `blank`.\n* `redirect_uri` is required if `redirect_target` is added.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046002,
                          "message": "Parameter `redirect_uri` must not be an empty string."
                        }
                      ]
                    }
                  },
                  "Missing redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046009,
                          "message": "The `redirect_uri` field is required when `redirect_target` is added."
                        }
                      ]
                    }
                  },
                  "redirect_uri too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046003,
                          "message": "Parameter `redirect_uri` must not exceed 2048 characters."
                        }
                      ]
                    }
                  },
                  "redirect_uri not a URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046004,
                          "message": "Parameter `redirect_uri` must be a valid URL."
                        }
                      ]
                    }
                  },
                  "link_expiration too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19049001,
                          "message": "The link expiration should be less than or equal to 45 minutes."
                        }
                      ]
                    }
                  },
                  "redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046001,
                          "message": "Parameter `redirect_uri` must be a string."
                        }
                      ]
                    }
                  },
                  "Document was already sent": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001047,
                          "message": "Document has been already sent to a signer."
                        }
                      ]
                    }
                  },
                  "Incorrect redirect_target": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046008,
                          "message": "The `redirect_target` field is invalid, allowed values: self, blank."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "link_expiration too little": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046006,
                          "message": "The link expiration should be greater than or equal to 15 minutes."
                        }
                      ]
                    }
                  },
                  "redirect_target not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046007,
                          "message": "The `redirect_target` field must be a string."
                        }
                      ]
                    }
                  },
                  "link_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19046005,
                          "message": "The link expiration value should be of type int."
                        }
                      ]
                    }
                  },
                  "Custom link_expiration too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19049001,
                          "message": "The link expiration should be less than or equal to 43200 minutes."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User doesn't own the document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User is not document owner": {
                    "value": {
                      "code": 19001002,
                      "message": "User is not document owner."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "* Document is in the Trash: 19001021\n  Message: \"Cannot fulfill request for the document in Trash folder.\"\n* Document deleted (from the Trash as well): 19001022\n  Message: \"Document not found\"  ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Document is in the Trash": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001021,
                          "message": "Cannot fulfill request for the document in Trash folder."
                        }
                      ]
                    }
                  },
                  "Document deleted (from the Trash as well)": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001022,
                          "message": "Document not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "redirect_uri": {
                    "type": "string",
                    "description": "The page that opens after the signing session ends.",
                    "x-stoplight": {
                      "id": "kxpmc6cagjvqz"
                    }
                  },
                  "link_expiration": {
                    "type": "integer",
                    "description": "15 minutes by default. Can be set max to 43200 minutes by a user with Admin level of access."
                  },
                  "redirect_target": {
                    "type": "string",
                    "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab, default value.",
                    "x-stoplight": {
                      "id": "lxwrbfcdu3pnc"
                    }
                  }
                },
                "x-examples": {
                  "example-1": {
                    "redirect_uri": "some_valid_url",
                    "link_expiration": 15,
                    "redirect_target": "blank"
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "redirect_uri": "some_valid_url",
                    "link_expiration": 15,
                    "redirect_target": "blank"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/embedded-sending": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-id-embedded-sending",
        "summary": "Create link for doc group",
        "description": "This endpoint allows users to create a link for embedded document group sending. \n\nAdd the `type` attribute to the payload to specify the sending step at which the embedded link should open and to control what actions the sender can perform. \n- `manage`: The link opens on the **Add documents to document group page** (default).\n- `edit`: The link opens in the editor, allowing the sender to add fields and send the invite.\n- `send-invite`: The link opens on the **Send Invite** page.\n\nUse the request body attributes to configure redirect options, specify link expiration, and customize the sender’s email and name appearance.\n\nFor more information, see [Embedded sending guide](/docs/guides-embedded-sending).\n",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": " ID of the requested document group."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the link for embedded sending.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "required": [
                          "url"
                        ],
                        "properties": {
                          "url": {
                            "type": "string",
                            "minLength": 1
                          }
                        }
                      },
                      "minItems": 1,
                      "uniqueItems": true
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "url": "http://app-eval.signnow.com/webapp/documentgroup/423162c69af7124574f2ad0d5a45f5a8d29942b2edafe0a74e598f/setup_invite?access_token=4574f2ad0d5a45f5bc6aebb203ca92ea4590d9468cff976b6734edbe112f7b1d3a&redirect_uri=http%3A%2F%2Fyour.redirect.uri.com"
                        }
                      ]
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": [
                        {
                          "url": "http://example.com/webapp/documentgroup/42XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/setup_invite?access_token={{access_token}}&redirect_uri=http%3A%2F%2Fyour.redirect.uri.com&redirect_target=blank"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Incorrect payload.\n\n**Validation errors**:\n\n* `redirect_uri` is not a string.\n* Empty `redirect_uri`.\n* `redirect_uri` is longer than 2048 characters.\n* `redirect_uri` is not a correct URL.\n* UTF 4-byte characters in `redirect_uri` are not supported.\n* `link_expiration` is not an integer.\n* `link_expiration` must be between 15 and 45.\n* Custom `link_expiration` is more than 43200 minutes.\n* `redirect_target` is not a string.\n* Incorrect `redirect_target`. Allowed values: `self`, `blank`.\n* `redirect_uri` is required if `redirect_target` is added.\n* The `type` is not a string.\n* The `type` value is incorrect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 19043011,
                      "message": "The type value must be of type string."
                    }
                  }
                },
                "examples": {
                  "Incorrect payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001000,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "type not a string": {
                    "value": {
                      "code": 19043011,
                      "message": "The type value must be of type string."
                    }
                  },
                  "Empty redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19043005,
                          "message": "Field `redirect_uri` must not be an empty string."
                        }
                      ]
                    }
                  },
                  "Missing redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19043010,
                          "message": "The `redirect_uri` field is required when `redirect_target` is added."
                        }
                      ]
                    }
                  },
                  "redirect_uri too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19043001,
                          "message": "Parameter `redirect_uri` must not exceed 2048 characters."
                        }
                      ]
                    }
                  },
                  "redirect_uri not a URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 19043003,
                          "message": "Parameter `redirect_uri` must be a valid URL."
                        }
                      ]
                    }
                  },
                  "link_expiration too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19048001,
                          "message": "The link expiration should be less than or equal to 45 minutes."
                        }
                      ]
                    }
                  },
                  "redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19043004,
                          "message": "Parameter `redirect_uri` must be a string."
                        }
                      ]
                    }
                  },
                  "type value is incorrect": {
                    "value": {
                      "code": 19043012,
                      "message": "The `type` value is invalid, allowed values: \"manage\", \"edit\", \"send-invite\"."
                    }
                  },
                  "Incorrect redirect_target": {
                    "value": {
                      "errors": [
                        {
                          "code": 19043009,
                          "message": "The `redirect_target` field is invalid, allowed values: self, blank."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "errors": [
                        {
                          "code": 1537,
                          "message": "Invalid token"
                        }
                      ]
                    }
                  },
                  "link_expiration too little": {
                    "value": {
                      "errors": [
                        {
                          "code": 19043007,
                          "message": "The link expiration should be greater than or equal to 15 minutes."
                        }
                      ]
                    }
                  },
                  "redirect_target not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19043008,
                          "message": "The `redirect_target` field must be a string."
                        }
                      ]
                    }
                  },
                  "link_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19043006,
                          "message": "The link expiration value should be of type int."
                        }
                      ]
                    }
                  },
                  "Custom link_expiration too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19048001,
                          "message": "The link expiration should be less than or equal to 43200 minutes."
                        }
                      ]
                    }
                  },
                  "4-byte characters in redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19043002,
                          "message": "4-byte characters in `redirect_uri` are not supported."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The user does not own the document group.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 19001002,
                          "message": "User is not document owner."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001002,
                          "message": "User is not document owner."
                        }
                      ]
                    }
                  },
                  "User is not owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001010,
                          "message": "Current user is not document group owner."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Document group is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 19002001,
                          "message": "Document not found"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002001,
                          "message": "Document not found"
                        }
                      ]
                    }
                  },
                  "Document group not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002010,
                          "message": "Document group `XXXXXcc2afb4e988ba2c68851d1e59e1137XXXX`not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "default": "manage",
                    "description": "Specifies the sending step at which the embedded link should open: `manage` — opens the link on the Add documents to document group page (default); `edit`— opens the link in the editor; `send-invite` — opens the link on the Send Invite page.",
                    "x-stoplight": {
                      "id": "00nqby7r7jx1i"
                    }
                  },
                  "from_name": {
                    "type": "string",
                    "example": "Anna Green",
                    "maxLength": 300,
                    "description": "Use this attribute to customize the name that appears: 1) on the Send Invite page (From, Invite Email Subject, and Invite Email Message); 2) in the invite and reassign emails: in email subject and email body; 3) in the signing session: as the name in From in the header and on the detailed From card."
                  },
                  "from_email": {
                    "type": "string",
                    "example": "sender@email.com",
                    "maxLength": 255,
                    "description": "Use this attribute to customize the email address that appears: 1) [part before @]on the Send Invite page (From, Invite Email Subject, and Invite Email Message) 2) in the invite and reassign emails: [part before @] in email subject and email body; when clicking Contact Sender and in Reply-to; 3) in the signing session: as the email in From in the header and on the detailed From card; when clicking Contact Sender in the More Actions menu and on the detailed From card."
                  },
                  "redirect_uri": {
                    "type": "string",
                    "example": "https://www.signnow.com/",
                    "minLength": 1,
                    "description": "The page that opens after embedded sending has been set up. Required if `redirect_target` is added."
                  },
                  "link_expiration": {
                    "type": "integer",
                    "default": 15,
                    "maximum": 45,
                    "minimum": 15,
                    "description": "Specifies how many minutes the link remains active. The allowed range is 15 to 45 minutes."
                  },
                  "redirect_target": {
                    "type": "string",
                    "description": "Determines whether to open the redirect link in a new tab in the browser or in the same tab. Possible values: `blank` - opens the link in a new tab, `self` - opens the link in the same tab (default).",
                    "x-stoplight": {
                      "id": "d2unhtkuqshu0"
                    }
                  }
                },
                "x-examples": {
                  "example-1": {
                    "redirect_uri": "https://your.redirect.uri.com"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "type": "edit",
                    "from_name": "Jane Doe",
                    "from_email": "sender@email.com",
                    "redirect_uri": "https://example.com",
                    "link_expiration": 25,
                    "redirect_target": "blank"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/documents/{document_id}/embedded-sending": {
      "post": {
        "operationId": "post-v2-documents-document-id-embedded-sending",
        "summary": "Create link for document",
        "description": "This endpoint allows users to create a link for embedded document sending.\n\nUse the request body attributes to define where the link opens (the editor or the Send Invite page), configure redirect options, specify link expiration, and customize the sender’s email and name appearance.\n\nFor more information, see [Embedded sending guide](/docs/guides-embedded-sending) and check out our video tutorial.\n\n<details open>\n\n**<summary>Video tutorial</summary>**\n\n<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>\n\n[Video tutorial](https://www.youtube.com/watch?v=MR_Rko0X0aU)\n\n</details>",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested document."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the link for embedded sending in case of correct request.\n\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "url"
                      ],
                      "properties": {
                        "url": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": {
                        "url": "http://app-eval.signnow.com/webapp/invite/16df19211b354cb5b4beeb830803f3f4abd79c55?access_token={token}&redirect_uri=http%3A%2F%2Fyour.redirect.uri.com&embedded_sending=1"
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "url": "http://example.com/invite/16XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX?access_token={token}&redirect_uri=http%3A%2F%2Fyour.redirect.uri.com&embedded_sending=1&redirect_target=blank"
                      }
                    }
                  },
                  "example-1": {
                    "value": {
                      "data": {
                        "url": "http://app-eval.signnow.com/webapp/invite/16df19211b354cb5b4beeb830803f3f4abd79c55?access_token={token}&redirect_uri=http%3A%2F%2Fyour.redirect.uri.com&embedded_sending=1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* User doesn't own the document.\n* Document not found.\n* Document was already sent.\n* Cannot send an invite for the document from Trash folder.\n* Incorrect payload.\n\n**Validation errors:**\n\n* Missing `type`.\n* Incorrect `type`. Allowed values: `document`, `invite`.\n* `redirect_uri` is not a string.\n* `redirect_uri` is longer than 2048 characters.\n* `redirect_uri` is not a correct URL.\n* UTF 4-byte characters in `redirect_uri` are not supported.\n* `link_expiration` is not an integer.\n* `link_expiration` must be between 15 and 45.\n* Custom `link_expiration` is more than 43200 minutes.\n* `redirect_target` is not a string.\n* Incorrect `redirect_target`. Allowed values: `self`, `blank`.\n* `redirect_uri` is required if `redirect_target` is added.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "missing type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038001,
                          "message": "The `type` value should not be blank."
                        }
                      ]
                    }
                  },
                  "Incorrect type": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038002,
                          "message": "The `type` attribute is invalid, allowed values: document, invite."
                        }
                      ]
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001000,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "Document not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 19002001,
                          "message": "Document not found"
                        }
                      ]
                    }
                  },
                  "Missing redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038011,
                          "message": "The `redirect_uri` field is required when `redirect_target` is added."
                        }
                      ]
                    }
                  },
                  "redirect_uri too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038004,
                          "message": "Parameter `redirect_uri` must not exceed 2048 characters."
                        }
                      ]
                    }
                  },
                  "redirect_uri not a URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038006,
                          "message": "Parameter `redirect_uri` must be a valid URL."
                        }
                      ]
                    }
                  },
                  "User not document owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001002,
                          "message": "User is not document owner."
                        }
                      ]
                    }
                  },
                  "link_expiration too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19047001,
                          "message": "The link expiration should be less than or equal to 45 minutes."
                        }
                      ]
                    }
                  },
                  "redirect_uri not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038003,
                          "message": "Parameter `redirect_uri` must be a string."
                        }
                      ]
                    }
                  },
                  "Document in Trash folder": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001021,
                          "message": "Cannot send an invite for the document from Trash folder."
                        }
                      ]
                    }
                  },
                  "Document was already sent": {
                    "value": {
                      "errors": [
                        {
                          "code": 19001047,
                          "message": "Document has been already sent to a signer."
                        }
                      ]
                    }
                  },
                  "Incorrect redirect_target": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038010,
                          "message": "The `redirect_target` field is invalid, allowed values: self, blank."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "errors": [
                        {
                          "code": 1537,
                          "message": "Invalid token"
                        }
                      ]
                    }
                  },
                  "link_expiration too little": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038008,
                          "message": "The link expiration should be greater than or equal to 15 minutes."
                        }
                      ]
                    }
                  },
                  "redirect_target not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038009,
                          "message": "The `redirect_target` field must be a string."
                        }
                      ]
                    }
                  },
                  "link_expiration not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038007,
                          "message": "The link expiration value should be of type int."
                        }
                      ]
                    }
                  },
                  "Custom link_expiration too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 19047001,
                          "message": "The link expiration should be less than or equal to 43200 minutes."
                        }
                      ]
                    }
                  },
                  "4-byte characters in redirect_uri": {
                    "value": {
                      "errors": [
                        {
                          "code": 19038005,
                          "message": "4-byte characters in `redirect_uri` are not supported."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The type of invite settings available by the link. Possible values: `invite` - the Send Invite page opens for the document where user add the signer's address, email subject and message etc.; `document` - the document opens in the editor for adding fillable fields, and then the Send Invite page opens."
                  },
                  "from_name": {
                    "type": "string",
                    "example": "Anna Green",
                    "maxLength": 300,
                    "description": "Use this attribute to customize the name that appears: 1) on the Send Invite page (From, Invite Email Subject, and Invite Email Message); 2) in the invite and reassign emails: in email subject and email body; 3) in the signing session: as the name in From in the header and on the detailed From card."
                  },
                  "from_email": {
                    "type": "string",
                    "example": "sender@email.com",
                    "maxLength": 255,
                    "description": "Use this attribute to customize the email address that appears: 1) [part before @]on the Send Invite page (From, Invite Email Subject, and Invite Email Message) 2) in the invite and reassign emails: [part before @] in email subject and email body; when clicking Contact Sender and in Reply-to; 3) in the signing session: as the email in From in the header and on the detailed From card; when clicking Contact Sender in the More Actions menu and on the detailed From card."
                  },
                  "redirect_uri": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The page that opens after the signing session ends."
                  },
                  "link_expiration": {
                    "type": "integer",
                    "default": 15,
                    "maximum": 45,
                    "minimum": 15,
                    "description": "Specifies how many minutes the link remains active. The allowed range is 15 to 45 minutes."
                  },
                  "redirect_target": {
                    "type": "string",
                    "description": "Determines whether to open the redirect link in the new tab in the browser, or in the same tab after the signing session. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab, default value.",
                    "x-stoplight": {
                      "id": "0twi4weakxf1z"
                    }
                  }
                },
                "x-examples": {
                  "example-1": {
                    "type": "document",
                    "redirect_uri": "https://your.redirect.uri.com"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "type": "document",
                    "from_name": "Jane Doe",
                    "from_email": "sender@email.com",
                    "redirect_uri": "https://example.com",
                    "link_expiration": 15,
                    "redirect_target": "blank"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/embedded-view": {
      "post": {
        "operationId": "embedded-view-doc-group",
        "summary": "Create document group embedded view link",
        "description": "This endpoint allows users to create an embedded view link for the specified document group. The link opens the document group in embedded view mode, enabling users to review and download documents without logging in to SignNow. Embedded view links can only be generated for documents and document groups.\n\n**Additional information**\n\n- Authentication is not required to open the link.\n- The link can be used multiple times until it expires.\n- The link can be generated for a document group in any status (e.g., waiting for others, signed, etc.).\n\nYou can customize the view mode experience in the editor and on the **You’ve viewed a document** page. Available options include:\n\n- Set a custom logo in the editor and on the **You’ve viewed a document** page using `logo.url`.\n- Customize the **Download Document** button style on the **You’ve viewed a document** page using `general.buttons.secondary`.\n- Show or hide the **More Actions** menu in the editor using `settings.visibility`.\n- Show or hide the **Close** button in the editor using `close-button.visibility`.\n- Show or hide the **Download Document** button in the editor using `download-button.visibility`.\n- Show or hide the sidebar navigation buttons in the editor using `icons`.\n- Show or hide the **Download Document** button on the **You’ve viewed a document** page using `complete-page.button-download.visibility`. \n\nLearn more about [branding](/docs/guides-branding#about-branding).",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "Document group ID."
          }
        ],
        "responses": {
          "200": {
            "description": "The link has been created."
          },
          "400": {
            "description": "- The bearer token is incorrect.\n- The payload is incorrect.\n- The `link_expiration` value type is incorrect.\n- The `link_expiration` range value is incorrect.  Must be between 43200 minutes (30 days) and 518400 minutes (360 days).\n- The `redirect_uri` value type is incorrect.\n- The `redirect_uri` field is empty.\n- The `redirect_uri` value is too long.\n- The `redirect_uri` has an incorrect format.\n- The `redirect_target` field value is incorrect.\n- The `redirect_uri` field is required when `redirect_target` is added."
          },
          "403": {
            "description": "- The application is not external.\n- The user is not a document group owner."
          },
          "404": {
            "description": "\nThe document group is not found."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "redirect_uri": {
                    "type": "string",
                    "example": "https://www.signnow.com/",
                    "description": "The link that opens after a user clicks the **Close** button. If not set, the default page **You’ve viewed a document** page will be used.\n",
                    "x-stoplight": {
                      "id": "m2sqpk22ey5jo"
                    }
                  },
                  "link_expiration": {
                    "type": "integer",
                    "default": 43200,
                    "maximum": 518400,
                    "minimum": 43200,
                    "description": "Link expiration time in minutes. ",
                    "x-stoplight": {
                      "id": "9m305v788jfgj"
                    }
                  },
                  "redirect_target": {
                    "type": "string",
                    "default": "self",
                    "description": "Specifies where to open the redirect link. Can only be used if `redirect_url` is set. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                    "x-stoplight": {
                      "id": "26epj7lys211h"
                    }
                  }
                }
              },
              "examples": {
                "Request with all parameters": {
                  "value": {
                    "redirect_uri": "https://www.signnow.com/",
                    "link_expiration": 43200,
                    "redirect_target": "blank"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/documents/{document_id}/embedded-view": {
      "post": {
        "operationId": "embedded-view",
        "summary": "Create document embedded view link",
        "description": "This endpoint allows users to create an embedded view  link for the specified document. The link opens the document in embedded view mode, enabling users to review and download it without logging in to SignNow. Embedded view links can only be generated for documents and document groups.\n\n**Additional information**\n\n- Authentication is not required to open the link.\n- The link can be used multiple times until it expires.\n- The link can be generated for a document in any status (e.g., waiting for others, signed, etc.).\n\nYou can customize the view mode experience in the editor and on the **You’ve viewed a document** page. Available options include:\n\n- Set a custom logo in the editor and on the **You’ve viewed a document** page using `logo.url`.\n- Customize the **Download Document** button style on the **You’ve viewed a document** page using `general.buttons.secondary`.\n- Show or hide the **More Actions** menu in the editor using `settings.visibility`.\n- Show or hide the **Close** button in the editor using `close-button.visibility`.\n- Show or hide the **Download Document** button in the editor using `download-button.visibility`.\n- Show or hide the sidebar navigation buttons in the editor using `icons`.\n- Show or hide the **Download Document** button on the **You’ve viewed a document** page using `complete-page.button-download.visibility`. \n\nLearn more about [branding](/docs/guides-branding#about-branding).",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "Document ID."
          }
        ],
        "responses": {
          "200": {
            "description": "The link has been created."
          },
          "400": {
            "description": "- The bearer token is incorrect.\n- The payload is incorrect.\n- The `link_expiration` value type is incorrect.\n- The `link_expiration` range value is incorrect.  Must be between 43200 minutes (30 days) and 518400 minutes (360 days).\n- The `redirect_uri` value type is incorrect.\n- The `redirect_uri` field is empty.\n- The `redirect_uri` value is too long.\n- The `redirect_uri` has an incorrect format.\n- The `redirect_target` field value is incorrect.\n- The `redirect_uri` field is required when `redirect_target` is added."
          },
          "403": {
            "description": "- The application is not external.\n- The user is not a document owner."
          },
          "404": {
            "description": "\nThe document is not found."
          },
          "422": {
            "description": "- The specified document is a template.\n- The specified document has been deleted.\n- The specified document has been archived."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "redirect_uri": {
                    "type": "string",
                    "example": "https://www.signnow.com/",
                    "description": "The link that opens after a user clicks the **Close** button. If not set, the default page **You’ve viewed a document** page will be used.\n",
                    "x-stoplight": {
                      "id": "m2sqpk22ey5jo"
                    }
                  },
                  "link_expiration": {
                    "type": "integer",
                    "default": 43200,
                    "maximum": 518400,
                    "minimum": 43200,
                    "description": "Link expiration time in minutes. ",
                    "x-stoplight": {
                      "id": "9m305v788jfgj"
                    }
                  },
                  "redirect_target": {
                    "type": "string",
                    "default": "self",
                    "description": "Specifies where to open the redirect link. Can only be used if `redirect_url` is set. Possible values: `blank` - opens the link in the new tab, `self` - opens the link in the same tab.",
                    "x-stoplight": {
                      "id": "26epj7lys211h"
                    }
                  }
                }
              },
              "examples": {
                "Request with all parameters": {
                  "value": {
                    "redirect_uri": "https://www.signnow.com/",
                    "link_expiration": 43200,
                    "redirect_target": "blank"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/favorites": {
      "post": {
        "operationId": "post-v2-document-groups-document-group-unique-id-favorites",
        "summary": "Mark doc group as favorite",
        "description": "The endpoint is used to add the document group to favorites.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "The ID of the document group."
          }
        ],
        "responses": {
          "201": {
            "description": "Valid document group unique id. ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Invalid request with {document_group_unique_id} where user is not owner of document group (The user did not create the Document group)\n* Request with Incorrect or missing token\n* Invalid request with {document_group_unique_id} when DG is placed not in the Documents folders(Archive, Shared or Trash)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Invalid request with {document_group_unique_id} where user is not owner of document group ": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044005,
                          "message": "The user does not have access to the document group."
                        }
                      ]
                    }
                  },
                  "Invalid request with {document_group_unique_id} when DG is placed not in the Documents folders(Archive, Shared or Trash)": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044006,
                          "message": "The document group must be in the Documents folder or its sub-folder."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Invalid request with {document_group_unique_id} where user does not have access to the document group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid request with {document_group_unique_id} where user does not have access to the document group": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044007,
                          "message": "The user does not have permission to the document group."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Invalid request with non-existent document group unique id.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid request with non-existent document group unique id.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009004,
                          "message": "Document group `79e2fb24c48449c3a09d4a433053051eebc2182d` not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-document-groups-document-group-id-favorites",
        "summary": "Remove doc group from favorites",
        "description": "This endpoint allows users to remove a document group from favorites",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "The ID of the document group."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Invalid request with {document_group_unique_id} where user is not owner of document group (The user did not create the Document group)\n* Request with Incorrect or missing token\n* Invalid request with {document_group_unique_id} when Document Group placed not in the Documents folder(s)(Archive, Trash or Shared folders)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Invalid request with {document_group_unique_id} where user is not owner of document group ": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044005,
                          "message": "The user does not have access to the document group."
                        }
                      ]
                    }
                  },
                  "Invalid request with {document_group_unique_id} when Document Group plased not in the Documents folder(s)(Archive, Trash or Shared folders)": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044006,
                          "message": "The document group must be in the Documents folder or its sub-folders."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Invalid request with {document_group_unique_id} when user is have not access to the Document Group",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid request with {document_group_unique_id} when user is have not access to the Document Group": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044005,
                          "message": "The user does not have access to the document group."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Invalid request with non-existent document group unique id.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid request with non-existent document group unique id.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13009004,
                          "message": "Document group `79e2fb24c48449c3a09d4a433053051eebc2182d` not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/documents/{document_id}/favorites": {
      "post": {
        "operationId": "post-v2-documents-document-id-favorites",
        "summary": "Mark document as favorite",
        "description": "The endpoint is used to add the document to favorites.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "The ID of the document (40 characters)."
          }
        ],
        "responses": {
          "201": {
            "description": "Valid document unique id. ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Invalid request with {document_unique_id} where user is not owner of document (The user did not upload the document)\n* Request with Incorrect or missing token\n* Invalid request with {document_unique_id} when Document placed not in the Documents folder(s)(Archive, Trash or Shared folders)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Invalid request with {document_unique_id} where user is not owner of document (The user did not upload the document)": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044002,
                          "message": "The user does not have access to the document."
                        }
                      ]
                    }
                  },
                  "Invalid request with {document_unique_id} when Document placed not in the Documents folder(s)(Archive, Trash or Shared folders)": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044004,
                          "message": "The document must be in the Documents folder or its sub-folder."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Invalid request with {document_unique_id} when user does not have access to the Document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid request with {document_unique_id} when user does not have access to the Document": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044003,
                          "message": "The user does not have permission to the document."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Invalid request with non-existent document unique id.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid request with non-existent document unique id.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13047001,
                          "message": "Document `bd54c722946d4361a1818ae8964867189f29ced1` is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-documents-document-id-favorites",
        "summary": "Remove document from favorites",
        "description": "This endpoint allows users to delete a document from favorites.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "The ID of the document (40 characters)."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Invalid request with {document_unique_id} where user is not owner of document (The user did not upload the document)\n* Request with Incorrect or missing token\n* Invalid request with {document_unique_id} when Document placed not in the Documents folder(s)(Archive, Trash or Shared folders)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Invalid request with {document_unique_id} where user is not owner of document (The user did not upload the document)": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044002,
                          "message": "The user does not have access to the document."
                        }
                      ]
                    }
                  },
                  "Invalid request with {document_unique_id} when Document placed not in the Documents folder(s)(Archive, Trash or Shared folders)": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044004,
                          "message": "The document must be in the Documents folder or its sub-folder."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Invalid request with {document_unique_id} when user does not have access to the Document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid request with {document_unique_id} when user does not have access to the Document": {
                    "value": {
                      "errors": [
                        {
                          "code": 13044003,
                          "message": "The user does not have permission to the document."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Invalid request with non-existent document unique id.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid request with non-existent document unique id.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13047001,
                          "message": "Document `bd54c722946d4361a1818ae8964867189f29ced1` is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/favorites": {
      "get": {
        "operationId": "get-v2-favorites",
        "summary": "Retrieve all favorites",
        "description": "The endpoint retrieves the list of documents and document groups which are marked as favorites.",
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "type": "string",
            "required": false,
            "description": "Default value by page = 1"
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "string",
            "required": false,
            "description": "Number of documents per page. Default value = 15"
          }
        ],
        "responses": {
          "200": {
            "description": "Request  with correct token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request  with correct token": {
                    "value": {
                      "data": [
                        {
                          "id": "b2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "entity_type": "document-group"
                        },
                        {
                          "id": "cbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "entity_type": "document"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with Incorrect or missing token\n* Request with incorrect query string",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request with incorrect query string": {
                    "value": {
                      "errors": [
                        {
                          "code": 13003004,
                          "message": "Query parameter `page` must be a digit"
                        },
                        {
                          "code": 13003005,
                          "message": "Query parameter `page` must be more than 0"
                        }
                      ]
                    }
                  },
                  "Request with Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/folder/{folder_id}": {
      "get": {
        "operationId": "get-folder-by-id",
        "summary": "Get folder by id",
        "description": "This endpoint allows API users to retrieve the details of a folder, including its subfolders and the documents it contains. Use query parameters to filter, sort, and paginate the document list.\n\n**Notes**\n\n* `total_documents` is the total number of documents in the folder. The `documents` array contains only the page selected by `limit` and `offset`.\n* To include document group templates, set `entity_type` to `dgt` or `all`. By default, a templates folder returns only templates.\n* Each document's `document_group_template_info` lists the active document group templates that include it. For a document that isn't part of any document group template, the array is empty.",
        "parameters": [
          {
            "in": "path",
            "name": "folder_id",
            "type": "string",
            "required": true,
            "description": "ID of the folder to return."
          },
          {
            "in": "query",
            "name": "filter-values",
            "type": "string",
            "required": false,
            "description": "Value for the filter set in `filters`. For `filters=signing-status`, one of: `signed`, `pending`, `waiting-for-me`, `waiting-for-others`, `unsent`, `expired`. For `filters=documents-created` or `filters=documents-updated`, a Unix timestamp: the response includes documents created or updated after this time."
          },
          {
            "in": "query",
            "name": "sortby",
            "type": "string",
            "required": false,
            "description": "Field to sort documents by. Possible values: `updated`, `created`, `document-name`."
          },
          {
            "in": "query",
            "name": "order",
            "type": "string",
            "default": "desc",
            "required": false,
            "description": "Order of sorting. Can be used only with `sortby`. Possible values: `asc`, `desc`."
          },
          {
            "in": "query",
            "name": "offset",
            "type": "integer",
            "required": false,
            "description": "Number of documents to skip before the returned page starts."
          },
          {
            "in": "query",
            "name": "limit",
            "type": "integer",
            "required": false,
            "description": "Maximum number of documents to return. Max: `100`."
          },
          {
            "in": "query",
            "name": "entity_type",
            "type": "string",
            "default": "document-all",
            "required": false,
            "description": "Entities to include in the response. Possible values: `document-all` (documents, including documents in document groups), `document` (documents that aren't in document groups), `document-group` (document groups only), `template` (templates only), `dgt` (document group templates only), `all` (documents and document groups, or templates and document group templates in a templates folder)."
          },
          {
            "in": "query",
            "name": "entity_labels",
            "type": "string",
            "required": false,
            "description": "Label to filter documents and document groups by. Possible values: `declined` (the invite was declined), `undelivered` (the invite email wasn't delivered). To use both, separate them with a comma: `declined,undelivered`."
          },
          {
            "in": "query",
            "name": "filters",
            "type": "string",
            "required": false,
            "description": "Filter to apply to the document list. Possible values: `signing-status`, `documents-created`, `documents-updated`. Use with `filter-values`. The `documents-created` and `documents-updated` filters exclude templates."
          },
          {
            "in": "query",
            "name": "include_documents_subfolders",
            "type": "boolean",
            "required": false,
            "description": "Whether to include subfolders to the response. Allowed values: `1`, `0`."
          },
          {
            "in": "query",
            "name": "with_team_documents",
            "type": "boolean",
            "required": false,
            "description": "Whether to display Team Documents folders."
          },
          {
            "in": "query",
            "name": "only_favorites",
            "type": "boolean",
            "default": false,
            "required": false,
            "description": "Whether to show only favorite documents and document groups."
          }
        ],
        "responses": {
          "200": {
            "description": "* Success\n* With document group where user is a signer (+email group)\n* With document group where user is the owner (+email group)\n* With viewer field invites (+email group)\n* With `entity_type=document-group` query\n* With `entity_type=dgt` query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "ID of the folder."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the folder."
                    },
                    "shared": {
                      "type": "boolean",
                      "description": "Whether the folder is shared."
                    },
                    "created": {
                      "type": "string",
                      "description": "Folder creation time as a Unix timestamp."
                    },
                    "folders": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      },
                      "description": "Subfolders of the folder."
                    },
                    "team_id": {
                      "type": "string",
                      "description": "ID of the team. Team folders only."
                    },
                    "user_id": {
                      "type": "string",
                      "description": "ID of the folder owner."
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "ID of the document, template, document group, or document group template."
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                }
                              }
                            },
                            "description": "List of tags assigned to the document. Documents and templates only."
                          },
                          "lines": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of line elements drawn on the document. Documents and templates only."
                          },
                          "owner": {
                            "type": "string",
                            "description": "Email address of the owner."
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "unique_id": {
                                  "type": "string"
                                },
                                "signing_order": {
                                  "type": "string"
                                }
                              }
                            },
                            "description": "List of signer roles defined for the document. Documents and templates only."
                          },
                          "seals": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of applied seal elements on the document. Documents and templates only."
                          },
                          "state": {
                            "type": "string",
                            "description": "State of the document group, such as `created`, `pending`, or `completed`. Can be `null` for document group templates. Document groups and document group templates only."
                          },
                          "texts": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of text elements added to the document. Documents and templates only."
                          },
                          "checks": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of checkmark elements added to the document. Documents and templates only."
                          },
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "role": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "role_id": {
                                  "type": "string"
                                },
                                "field_id": {
                                  "type": "string"
                                },
                                "fulfiller": {
                                  "type": "string"
                                },
                                "element_id": {
                                  "type": "string"
                                },
                                "originator": {
                                  "type": "string"
                                },
                                "json_attributes": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "integer"
                                    },
                                    "y": {
                                      "type": "integer"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "width": {
                                      "type": "integer"
                                    },
                                    "height": {
                                      "type": "integer"
                                    },
                                    "required": {
                                      "type": "boolean"
                                    },
                                    "page_number": {
                                      "type": "integer"
                                    },
                                    "lock_to_sign_prefill": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "field_request_id": {
                                  "type": "string"
                                },
                                "template_field_id": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "field_request_canceled": {
                                  "type": "string",
                                  "x-nullable": true
                                }
                              }
                            },
                            "description": "List of fillable fields defined on the document. Documents and templates only."
                          },
                          "pinned": {
                            "type": "boolean",
                            "description": "Whether the entity is pinned."
                          },
                          "status": {
                            "type": "string",
                            "description": "Status of the document group. Document groups only."
                          },
                          "created": {
                            "description": "Unix timestamp of when the entity was created. A string for documents and templates, an integer for document groups and document group templates."
                          },
                          "inserts": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of text inserts added to the document. Documents and templates only."
                          },
                          "invites": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "ID of the invite."
                                },
                                "email": {
                                  "type": "string",
                                  "description": "Email address of the recipient."
                                },
                                "order": {
                                  "type": "integer",
                                  "description": "Step of the invite in the signing order."
                                },
                                "action": {
                                  "type": "string",
                                  "description": "Action requested from the recipient."
                                },
                                "status": {
                                  "type": "string",
                                  "description": "Status of the invite."
                                },
                                "created": {
                                  "type": "integer",
                                  "description": "Unix timestamp of when the invite was created."
                                },
                                "updated": {
                                  "type": "integer",
                                  "description": "Unix timestamp of the last invite update."
                                },
                                "compliance": {
                                  "type": "object",
                                  "properties": {
                                    "cfr": {}
                                  }
                                },
                                "document_id": {
                                  "type": "string",
                                  "description": "ID of the document."
                                },
                                "email_group": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "is_embedded": {
                                  "type": "boolean",
                                  "description": "Whether the invite is an embedded invite."
                                },
                                "document_name": {
                                  "type": "string",
                                  "description": "Name of the document."
                                },
                                "authentication": {
                                  "type": "string"
                                },
                                "signature_type": {},
                                "expiration_time": {
                                  "type": "integer",
                                  "description": "Unix timestamp of when the invite expires. Can be `null`."
                                },
                                "is_draft_exists": {},
                                "password_method": {
                                  "type": "string"
                                },
                                "payment_request": {},
                                "is_full_declined": {
                                  "type": "boolean",
                                  "description": "Whether the recipient declined the invite."
                                },
                                "sms_sent_statuses": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "is_document_locked": {
                                  "type": "string"
                                },
                                "password_protected": {
                                  "type": "string"
                                },
                                "email_sent_statuses": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "status": {
                                        "type": "string",
                                        "description": "Delivery status."
                                      },
                                      "created_at": {
                                        "type": "integer",
                                        "description": "Unix timestamp of when the status was first recorded."
                                      },
                                      "last_reaction_at": {
                                        "type": "integer",
                                        "description": "Unix timestamp of the latest status update."
                                      }
                                    }
                                  },
                                  "description": "Delivery statuses of the invite email."
                                },
                                "signer_phone_invite": {
                                  "type": "string"
                                }
                              }
                            },
                            "description": "Invites sent for the document group. Document groups and document group templates only."
                          },
                          "updated": {
                            "description": "Unix timestamp of the last update. A string for documents and templates, an integer for document groups and document group templates."
                          },
                          "user_id": {
                            "type": "string",
                            "description": "ID of the owner."
                          },
                          "requests": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of document requests. Documents and templates only."
                          },
                          "settings": {
                            "type": "object",
                            "properties": {
                              "copy_export": {
                                "type": "boolean"
                              },
                              "upload_limit": {
                                "type": "boolean"
                              },
                              "document_guide": {
                                "type": "boolean"
                              },
                              "sso-only-login": {
                                "type": "boolean"
                              },
                              "mobileweb_option": {
                                "type": "boolean"
                              },
                              "cloud_auto_export": {
                                "type": "boolean"
                              },
                              "logout_on_signing": {
                                "type": "boolean"
                              },
                              "restrict_download": {
                                "type": "boolean"
                              },
                              "add_signature_stamp": {
                                "type": "boolean"
                              },
                              "cfr_title_21_part_11": {
                                "type": "boolean"
                              },
                              "require_email_subject": {
                                "type": "boolean"
                              },
                              "no_document_attachment": {
                                "type": "boolean"
                              },
                              "electronic_consent_text": {
                                "type": "boolean"
                              },
                              "org_allowed_team_admins": {
                                "type": "boolean"
                              },
                              "document_schema_extended": {
                                "type": "boolean"
                              },
                              "front_end_session_length": {
                                "type": "boolean"
                              },
                              "no_user_signature_return": {
                                "type": "boolean"
                              },
                              "require_drawn_signatures": {
                                "type": "boolean"
                              },
                              "cloud_export_with_history": {
                                "type": "boolean"
                              },
                              "enable_full_story_tracker": {
                                "type": "boolean"
                              },
                              "require_login_for_signing": {
                                "type": "boolean"
                              },
                              "disable_email_notifications": {
                                "type": "boolean"
                              },
                              "electronic_consent_required": {
                                "type": "boolean"
                              },
                              "email_admin_on_banned_login": {
                                "type": "boolean"
                              },
                              "enable_hyperlink_protection": {
                                "type": "boolean"
                              },
                              "invite_decline_redirect_url": {
                                "type": "boolean"
                              },
                              "emailed_docs_include_history": {
                                "type": "boolean"
                              },
                              "no_document_file_attachments": {
                                "type": "boolean"
                              },
                              "add_signature_stamp_with_name": {
                                "type": "boolean"
                              },
                              "digitally_sign_dowloaded_docs": {
                                "type": "boolean"
                              },
                              "watermark_downloaded_document": {
                                "type": "boolean"
                              },
                              "invite_completion_redirect_url": {
                                "type": "boolean"
                              },
                              "required_preset_signature_name": {
                                "type": "boolean"
                              },
                              "signing_link_document_download": {
                                "type": "boolean"
                              },
                              "block_login_via_social_networks": {
                                "type": "boolean"
                              },
                              "enable_advanced_threat_protection": {
                                "type": "boolean"
                              },
                              "document_completion_retention_days": {
                                "type": "boolean"
                              },
                              "require_authentication_for_invites": {
                                "type": "boolean"
                              },
                              "document_attachment_only_for_signer": {
                                "type": "boolean"
                              },
                              "unsuccessful_logout_attempts_allowed": {
                                "type": "boolean"
                              },
                              "audit_trail_completion_retention_days": {
                                "type": "boolean"
                              },
                              "pending_invite_document_view_notification": {
                                "type": "boolean"
                              },
                              "only_administrator_is_able_to_invite_to_the_team": {
                                "type": "boolean"
                              },
                              "block_export_options_when_credit_card_validation_is_used": {
                                "type": "boolean"
                              },
                              "invite_update_notifications_for_all_invites_at_invite_create": {
                                "type": "boolean"
                              }
                            },
                            "description": "Document-level settings and feature flags. Documents and templates only."
                          },
                          "template": {
                            "type": "boolean",
                            "description": "Indicates whether the document is a template. `true` if it is a template, `false` otherwise. Documents and templates only."
                          },
                          "documents": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "ID of the document."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "Name of the document."
                                },
                                "roles": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Names of the roles in the document."
                                },
                                "updated": {
                                  "type": "integer",
                                  "description": "Unix timestamp of the last document update."
                                },
                                "settings": {
                                  "type": "object",
                                  "description": "Document settings. Can be `null`."
                                },
                                "thumbnail": {
                                  "type": "object",
                                  "properties": {
                                    "large": {
                                      "type": "string",
                                      "description": "URL of the large thumbnail."
                                    },
                                    "small": {
                                      "type": "string",
                                      "description": "URL of the small thumbnail."
                                    },
                                    "medium": {
                                      "type": "string",
                                      "description": "URL of the medium thumbnail."
                                    }
                                  },
                                  "description": "Links to the document thumbnail images."
                                },
                                "has_fields": {
                                  "type": "boolean",
                                  "description": "Whether the document has fillable fields."
                                },
                                "page_count": {
                                  "type": "integer",
                                  "description": "Number of pages in the document. Can be `null` for templates in a document group template."
                                },
                                "signatures": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "ID of the signature."
                                      },
                                      "created": {
                                        "type": "string",
                                        "description": "Unix timestamp of when the signature was added."
                                      },
                                      "user_id": {
                                        "type": "string",
                                        "description": "ID of the signer."
                                      }
                                    }
                                  },
                                  "description": "Signatures applied to the document."
                                }
                              }
                            },
                            "description": "Documents in the group. Document groups and document group templates only."
                          },
                          "invite_id": {
                            "type": "string",
                            "description": "ID of the document group invite. Can be `null`. Document groups and document group templates only."
                          },
                          "parent_id": {
                            "type": "string",
                            "description": "ID of the folder that contains the entity."
                          },
                          "thumbnail": {
                            "type": "object",
                            "properties": {
                              "large": {
                                "type": "string"
                              },
                              "small": {
                                "type": "string"
                              },
                              "medium": {
                                "type": "string"
                              }
                            },
                            "description": "Links to the document thumbnail images in `small`, `medium`, and `large` sizes. Documents and templates only."
                          },
                          "page_count": {
                            "type": "string",
                            "description": "Number of pages in the document, as a string. Documents and templates only."
                          },
                          "share_info": {
                            "type": "object",
                            "properties": {
                              "role": {
                                "type": "string",
                                "description": "Access level of the current user. Possible values: `sender`, `viewer`, `owner`."
                              }
                            },
                            "description": "Sharing information. Templates only."
                          },
                          "signatures": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "string"
                                },
                                "y": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "data": {
                                  "type": "string"
                                },
                                "email": {
                                  "type": "string"
                                },
                                "width": {
                                  "type": "string"
                                },
                                "height": {
                                  "type": "string"
                                },
                                "created": {
                                  "type": "string"
                                },
                                "user_id": {
                                  "type": "string"
                                },
                                "page_number": {
                                  "type": "string"
                                }
                              }
                            },
                            "description": "List of applied signature elements on the document. Documents and templates only."
                          },
                          "attachments": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of file attachments on the document. Documents and templates only."
                          },
                          "entity_type": {
                            "type": "string",
                            "description": "Type of the entity. Possible values: `document`, `template`, `document-group`, `dgt`."
                          },
                          "is_favorite": {
                            "type": "boolean",
                            "description": "Whether the entity is marked as a favorite."
                          },
                          "integrations": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of third-party integrations associated with the document. Documents and templates only."
                          },
                          "radiobuttons": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of radio button groups on the document. Documents and templates only."
                          },
                          "version_time": {
                            "type": "string",
                            "description": "Unix timestamp of the document version. Documents and templates only."
                          },
                          "viewer_roles": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "x-stoplight": {
                                "id": "6ftboaddm6opk"
                              }
                            },
                            "description": "List of viewer roles defined for the document. Documents and templates only.",
                            "x-stoplight": {
                              "id": "om4q3nh5hu360"
                            }
                          },
                          "document_name": {
                            "type": "string",
                            "description": "Name of the document. Documents and templates only."
                          },
                          "entity_labels": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "System labels assigned to the entity, such as `declined` or `undelivered`."
                          },
                          "field_invites": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "role": {
                                  "type": "string"
                                },
                                "email": {
                                  "type": "string"
                                },
                                "pfrid": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "status": {
                                  "type": "string"
                                },
                                "created": {
                                  "type": "string"
                                },
                                "pfrtype": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "role_id": {
                                  "type": "string"
                                },
                                "updated": {
                                  "type": "string"
                                },
                                "declined": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "reassign": {
                                  "type": "string"
                                },
                                "reminder": {
                                  "type": "string"
                                },
                                "pframount": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "pfrstatus": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "pfrcreated": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "email_group": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "id_verified": {
                                  "type": "string"
                                },
                                "redirect_uri": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "password_type": {
                                  "type": "string"
                                },
                                "email_statuses": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "status": {
                                        "enum": [
                                          "sent",
                                          "mail_open",
                                          "bounce",
                                          "mail_click",
                                          "reminder_sent",
                                          "undefined"
                                        ],
                                        "type": "string",
                                        "description": "Email delivery event status. Possible values: `sent` — email was successfully sent to the recipient; `mail_open` — email was opened by the recipient; `bounce` — email bounced, delivery failed (e.g. invalid address); `mail_click` — a link in the email was clicked by the recipient; `reminder_sent` — a reminder email was sent to the recipient; `undefined` — the event status is unknown."
                                      },
                                      "created_at": {
                                        "type": "integer",
                                        "description": "Unix timestamp when the event was recorded."
                                      },
                                      "last_reaction_at": {
                                        "type": "integer",
                                        "description": "Unix timestamp of the last status update."
                                      }
                                    }
                                  },
                                  "description": "List of email delivery events recorded for this invite. Each object represents one event. The array is empty (`[]`) if no email events have been recorded yet."
                                },
                                "pfrmerchant_id": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "expiration_time": {
                                  "type": "string"
                                },
                                "password_method": {
                                  "type": "string"
                                },
                                "payment_request": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "pfrcurrency_name": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "pfrmerchant_type": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "verification_type": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "is_document_locked": {
                                  "type": "string"
                                },
                                "password_protected": {
                                  "type": "string"
                                },
                                "pfrjson_attributes": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "force_new_signature": {
                                  "type": "integer",
                                  "x-nullable": true
                                },
                                "decline_by_signature": {
                                  "type": "boolean",
                                  "x-nullable": true
                                },
                                "signing_instructions": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "electronic_consent_id": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "prefill_signature_name": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "id_verification_required": {
                                  "type": "string"
                                },
                                "pfrmerchant_account_name": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "pfrpayment_transaction_id": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "electronic_consent_required": {
                                  "type": "integer"
                                },
                                "required_preset_signature_name": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "stripe_ach_bank_account_present": {
                                  "type": "string"
                                },
                                "stripe_ach_bank_account_verified": {
                                  "type": "string"
                                }
                              }
                            },
                            "description": "List of signer field invites for the document. Documents and templates only."
                          },
                          "own_as_merged": {
                            "type": "boolean",
                            "description": "Whether the document group template has merged status: `true` if merged, `false` if not. Document groups and document group templates only."
                          },
                          "recently_used": {
                            "description": "Unix timestamp of when the entity was last used. A string for documents and templates, an integer for document groups and document group templates."
                          },
                          "approver_roles": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "x-stoplight": {
                                "id": "arai495ar4gv8"
                              }
                            },
                            "description": "List of approver roles defined for the document. Documents and templates only.",
                            "x-stoplight": {
                              "id": "4tofxp1z7ohu5"
                            }
                          },
                          "notary_invites": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of notary invites on the document. Documents and templates only."
                          },
                          "origin_user_id": {
                            "type": "string",
                            "x-nullable": true,
                            "description": "Identifier of the user who owns the source document. Can be `null`. Documents and templates only."
                          },
                          "sign_as_merged": {
                            "type": "boolean",
                            "description": "Whether the documents in the group are signed as one merged document. Document groups and document group templates only."
                          },
                          "routing_details": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "id": {
                                  "type": "string"
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string"
                                      },
                                      "role_id": {
                                        "type": "string"
                                      },
                                      "inviter_role": {
                                        "type": "boolean"
                                      },
                                      "default_email": {
                                        "type": "string"
                                      },
                                      "signing_order": {
                                        "type": "integer"
                                      }
                                    }
                                  }
                                },
                                "cc_step": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "created": {
                                  "type": "string"
                                },
                                "updated": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "invite_link_instructions": {
                                  "type": "string",
                                  "x-nullable": true
                                }
                              }
                            },
                            "description": "Invite routing configuration, including signer order, `cc` recipients, and invite link instructions. Documents and templates only."
                          },
                          "field_validators": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of field validation rules. Documents and templates only."
                          },
                          "freeform_actions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "ID of the action."
                                },
                                "email": {
                                  "type": "string",
                                  "description": "Email address of the recipient."
                                },
                                "status": {
                                  "type": "string",
                                  "description": "Status of the action."
                                },
                                "created": {
                                  "type": "integer",
                                  "description": "Unix timestamp of when the action was created."
                                },
                                "user_id": {
                                  "type": "string",
                                  "description": "ID of the recipient."
                                },
                                "document_id": {
                                  "type": "string",
                                  "description": "ID of the document."
                                },
                                "email_sent_statuses": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  },
                                  "description": "Delivery statuses of the invite email."
                                }
                              }
                            },
                            "description": "Freeform invite actions. Document groups and document group templates only."
                          },
                          "scheduled_invite": {
                            "type": "object",
                            "x-nullable": true,
                            "description": "Scheduled invite configuration. Can be `null` if no invite is scheduled. Documents and templates only."
                          },
                          "original_filename": {
                            "type": "string",
                            "description": "Original filename of the uploaded document. Documents and templates only."
                          },
                          "freeform_invite_id": {
                            "type": "string",
                            "description": "ID of the freeform invite. Can be `null`. Document groups and document group templates only."
                          },
                          "origin_document_id": {
                            "type": "string",
                            "x-nullable": true,
                            "description": "Identifier of the source document if this document was created as a copy. Can be `null`. Documents and templates only."
                          },
                          "document_group_info": {
                            "type": "object",
                            "properties": {
                              "invite_id": {
                                "type": "string",
                                "x-nullable": true
                              },
                              "invite_status": {
                                "type": "string",
                                "x-nullable": true
                              },
                              "document_group_id": {
                                "type": "string",
                                "x-nullable": true
                              },
                              "doc_count_in_group": {
                                "type": "integer"
                              },
                              "document_group_name": {
                                "type": "string",
                                "x-nullable": true
                              }
                            },
                            "description": "Document group information if this document belongs to a group. Documents and templates only."
                          },
                          "document_group_name": {
                            "type": "string",
                            "description": "Name of the document group or document group template. Document groups and document group templates only."
                          },
                          "enumeration_options": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of enumeration options for dropdown fields. Documents and templates only."
                          },
                          "viewer_field_invites": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of viewer field invites for the document. Documents and templates only."
                          },
                          "approver_field_invites": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            },
                            "description": "List of approver field invites for the document. Documents and templates only."
                          },
                          "email_action_on_complete": {
                            "type": "string",
                            "description": "Email action to perform when the group is completed. Can be `null`. Document groups and document group templates only."
                          },
                          "document_group_template_info": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "shared": {
                                  "type": "integer",
                                  "description": "Always `0` in this response. To check whether a document group template is shared with a team, use [`GET /document/{document_id}`](/docs/document/operations/get-document)."
                                },
                                "own_as_merged": {
                                  "type": "boolean",
                                  "description": "Whether the document group template has merged status: `true` if the template is merged, `false` if not."
                                },
                                "document_group_template_id": {
                                  "type": "string",
                                  "description": "ID of the document group template."
                                },
                                "document_group_template_name": {
                                  "type": "string",
                                  "description": "Name of the document group template."
                                }
                              }
                            },
                            "description": "Active document group templates that include this document. Empty if the document isn't part of any document group template."
                          },
                          "originator_organization_settings": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "setting": {
                                  "type": "string"
                                }
                              }
                            },
                            "description": "Organization-level settings that apply to the document's originator. Each item has a `setting` name and its `value`."
                          }
                        }
                      },
                      "description": "Entities in the folder, limited by `limit` and `offset`. Depending on `entity_type`, the array can contain documents, templates, document groups, and document group templates. Fields marked as documents-only or groups-only appear only for that entity type."
                    },
                    "parent_id": {
                      "type": "string",
                      "description": "ID of the parent folder."
                    },
                    "team_name": {
                      "type": "string",
                      "description": "Name of the team. Team folders only."
                    },
                    "team_type": {
                      "type": "string",
                      "description": "Type of the team. Team folders only."
                    },
                    "system_folder": {
                      "type": "boolean",
                      "description": "Whether the folder is a system folder, such as `Documents` or `Templates`."
                    },
                    "total_documents": {
                      "type": "integer",
                      "description": "Total number of documents in the folder, across all pages."
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "id": "18XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "name": "Documents",
                      "shared": false,
                      "created": "1409253077",
                      "folders": [],
                      "user_id": "38XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [
                        {
                          "id": "85XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "tags": [
                            {
                              "name": "fields",
                              "type": "system"
                            }
                          ],
                          "owner": "document_owner@email.com",
                          "roles": [
                            {
                              "name": "Client",
                              "unique_id": "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "signing_order": "1"
                            }
                          ],
                          "seals": [],
                          "texts": [
                            {
                              "x": "281",
                              "y": "195",
                              "id": "d2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "data": "10/16/14",
                              "font": "Arial",
                              "size": "8",
                              "email": "email_address@email.com",
                              "created": "1413485018",
                              "user_id": "abXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "line_height": "9.08",
                              "page_number": "0"
                            }
                          ],
                          "checks": [],
                          "fields": [
                            {
                              "id": "ecXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Client",
                              "type": "text",
                              "role_id": "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_id": "40XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "fulfiller": "fulfiller@email.com",
                              "element_id": "d2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "originator": "originator@email.com",
                              "json_attributes": {
                                "x": 281,
                                "y": 195,
                                "label": "Date",
                                "width": 102,
                                "height": 21,
                                "required": true,
                                "page_number": 0,
                                "prefilled_text": ""
                              },
                              "field_request_id": "40XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "template_field_id": "72XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_request_canceled": null
                            },
                            {
                              "id": "43XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Client",
                              "type": "signature",
                              "role_id": "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_id": "4dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "fulfiller": "fulfiller@email.com",
                              "element_id": "5cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "originator": "originator@email.com",
                              "json_attributes": {
                                "x": 91,
                                "y": 186,
                                "width": 122,
                                "height": 34,
                                "required": true,
                                "page_number": 0
                              },
                              "field_request_id": "4dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "template_field_id": "e9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_request_canceled": null
                            }
                          ],
                          "created": "1413307342",
                          "inserts": [],
                          "updated": "1413485018",
                          "user_id": "38XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "requests": [
                            {
                              "email_sent_statuses": [
                                {
                                  "status": "sent",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108848
                                },
                                {
                                  "status": "mail_open",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108849
                                },
                                {
                                  "status": "bounce",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108851
                                },
                                {
                                  "status": "mail_click",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108850
                                }
                              ]
                            }
                          ],
                          "template": false,
                          "parent_id": "18XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "thumbnail": {
                            "large": "http://example.com/document/85XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                            "small": "http://example.com/document/85XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                            "medium": "http://example.com/document/85XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                          },
                          "page_count": "1",
                          "signatures": [
                            {
                              "x": "91",
                              "y": "195",
                              "id": "5cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email": "email_address@email.com",
                              "width": "122",
                              "height": "25",
                              "created": "1413485018",
                              "user_id": "abXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "page_number": "0"
                            }
                          ],
                          "attachments": [],
                          "exported_to": [
                            {
                              "is_exported": false,
                              "export_domain": "example.com",
                              "exported_user_ids": []
                            }
                          ],
                          "is_favorite": false,
                          "version_time": "1413485018",
                          "document_name": "Document 1",
                          "entity_labels": [],
                          "field_invites": [
                            {
                              "id": "73XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Client",
                              "email": "user@email.com",
                              "status": "fulfilled",
                              "updated": "1413485018"
                            },
                            {
                              "email_sent_statuses": [
                                {
                                  "status": "sent",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108848
                                },
                                {
                                  "status": "mail_open",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108849
                                },
                                {
                                  "status": "bounce",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108851
                                },
                                {
                                  "status": "mail_click",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108850
                                }
                              ]
                            }
                          ],
                          "notary_invites": [],
                          "origin_user_id": "38XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "original_filename": "document_sample.pdf",
                          "origin_document_id": "4aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "enumeration_options": [],
                          "document_group_template_info": [
                            {
                              "shared": 0,
                              "own_as_merged": false,
                              "document_group_template_id": "a1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_group_template_name": "Onboarding package"
                            }
                          ]
                        }
                      ],
                      "parent_id": "07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "system_folder": true,
                      "total_documents": 1
                    }
                  },
                  "With declined document ": {
                    "value": {
                      "id": "18XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "name": "Documents",
                      "shared": false,
                      "created": "1409253077",
                      "folders": [],
                      "user_id": "38XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [
                        {
                          "id": "85XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "tags": [
                            {
                              "name": "fields",
                              "type": "system"
                            }
                          ],
                          "owner": "document_owner@email.com",
                          "roles": [
                            {
                              "name": "Client",
                              "unique_id": "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "signing_order": "1"
                            }
                          ],
                          "seals": [],
                          "texts": [],
                          "checks": [],
                          "fields": [
                            {
                              "id": "ecXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Client",
                              "type": "text",
                              "role_id": "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_id": "40XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "fulfiller": "fulfiller@email.com",
                              "element_id": "d2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "originator": "originator@email.com",
                              "json_attributes": {
                                "x": 281,
                                "y": 195,
                                "label": "Date",
                                "width": 102,
                                "height": 21,
                                "required": true,
                                "page_number": 0,
                                "prefilled_text": ""
                              },
                              "field_request_id": "40XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "template_field_id": "72XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_request_canceled": null
                            },
                            {
                              "id": "43XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Client",
                              "type": "signature",
                              "role_id": "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_id": "4dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "fulfiller": "fulfiller@email.com",
                              "element_id": "5cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "originator": "originator@email.com",
                              "json_attributes": {
                                "x": 91,
                                "y": 186,
                                "width": 122,
                                "height": 34,
                                "required": true,
                                "page_number": 0
                              },
                              "field_request_id": "4dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "template_field_id": "e9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_request_canceled": null
                            }
                          ],
                          "created": "1413307342",
                          "inserts": [],
                          "updated": "1413485018",
                          "user_id": "38XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "requests": [],
                          "template": false,
                          "parent_id": "18XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "thumbnail": {
                            "large": "http://example.com/document/85XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                            "small": "http://example.com/document/85XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                            "medium": "http://example.com/document/85XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                          },
                          "page_count": "1",
                          "signatures": [],
                          "attachments": [],
                          "exported_to": [
                            {
                              "is_exported": false,
                              "export_domain": "example.com",
                              "exported_user_ids": []
                            }
                          ],
                          "is_favorite": false,
                          "version_time": "1413485018",
                          "document_name": "Document 1",
                          "entity_labels": [
                            {
                              "updated": 1716320189,
                              "is_system": true,
                              "label_name": "declined"
                            }
                          ],
                          "field_invites": [
                            {
                              "id": "73XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Client",
                              "email": "user@email.com",
                              "status": "fulfilled",
                              "updated": "1413485018"
                            },
                            {
                              "email_sent_statuses": [
                                {
                                  "status": "sent",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108848
                                },
                                {
                                  "status": "mail_open",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108849
                                },
                                {
                                  "status": "bounce",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108851
                                },
                                {
                                  "status": "mail_click",
                                  "created_at": 1640108848,
                                  "last_reaction_at": 1640108850
                                }
                              ]
                            }
                          ],
                          "notary_invites": [],
                          "origin_user_id": "38XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "original_filename": "document_sample.pdf",
                          "origin_document_id": "4aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "enumeration_options": []
                        }
                      ],
                      "parent_id": "07XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "system_folder": true,
                      "total_documents": 1
                    }
                  },
                  "With viewer field invites": {
                    "value": {
                      "id": "a9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "name": "Documents",
                      "shared": false,
                      "created": "1616586778",
                      "folders": [],
                      "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [
                        {
                          "id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner": "document-owner@email.com",
                          "created": 1616586981,
                          "invites": [
                            {
                              "email": "signer@email.com",
                              "order": "1",
                              "action": "sign",
                              "status": "fulfilled",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": null
                            },
                            {
                              "email": "manager@email.com",
                              "order": "2",
                              "action": "sign",
                              "status": "fulfilled",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": null
                            },
                            {
                              "order": "2",
                              "action": "view",
                              "status": "pending",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email_group": {
                                "id": "e7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "name": "HR team"
                              },
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": 1618210633
                            }
                          ],
                          "updated": 1616586981,
                          "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "documents": [
                            {
                              "id": "d2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "sample",
                              "roles": [
                                "Signer 1",
                                "Manager"
                              ]
                            }
                          ],
                          "invite_id": "eeXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "entity_labels": [],
                          "document_group_name": "Document Group 24-3-2021",
                          "viewer_field_invites": [
                            {
                              "id": "eeXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email_group": {
                                "id": "e7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "name": "HR team"
                              }
                            }
                          ]
                        }
                      ],
                      "parent_id": "66XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "system_folder": true,
                      "total_documents": 1
                    }
                  },
                  "With `entity_type=dgt` query": {
                    "value": {
                      "id": "daXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "owner": "document-group-owner@email.com",
                      "state": null,
                      "pinned": false,
                      "created": 1693474793,
                      "invites": [],
                      "updated": 1693474793,
                      "user_id": "09XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [
                        {
                          "id": "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Sample image",
                          "roles": [],
                          "settings": null
                        },
                        {
                          "id": "13XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Sample image",
                          "roles": [
                            "Recipient 1"
                          ],
                          "settings": null
                        }
                      ],
                      "invite_id": null,
                      "parent_id": "f1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "entity_type": "dgt",
                      "is_favorite": false,
                      "entity_labels": [],
                      "recently_used": 1693474793,
                      "sign_as_merged": false,
                      "freeform_actions": [],
                      "freeform_invite_id": null,
                      "document_group_name": "Sample Document group",
                      "originator_organization_settings": []
                    }
                  },
                  "With `entity_type=document-group` query": {
                    "value": {
                      "id": "49XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "owner": "document-group-owner@email.com",
                      "state": "created",
                      "pinned": false,
                      "status": "created",
                      "created": 1695288759,
                      "invites": [],
                      "updated": 1695288759,
                      "user_id": "09XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [
                        {
                          "id": "2cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Sample image",
                          "roles": [],
                          "settings": {
                            "advanced_signing_flow": false
                          }
                        },
                        {
                          "id": "82XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Sample image",
                          "roles": [
                            "Recipient 1"
                          ],
                          "settings": {
                            "advanced_signing_flow": false
                          }
                        }
                      ],
                      "invite_id": null,
                      "parent_id": "fbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "entity_type": "document-group",
                      "is_favorite": false,
                      "entity_labels": [],
                      "recently_used": 1695288759,
                      "sign_as_merged": false,
                      "freeform_actions": [],
                      "freeform_invite_id": null,
                      "document_group_name": "Sample Document group",
                      "originator_organization_settings": []
                    }
                  },
                  "With document group where user is a signer": {
                    "value": {
                      "id": "a9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "name": "Documents",
                      "shared": false,
                      "created": "1616586778",
                      "folders": [],
                      "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [
                        {
                          "id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner": "owner-email@email.com",
                          "created": 1616586981,
                          "updated": 1616586981,
                          "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "documents": [
                            {
                              "id": "d2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "sample",
                              "roles": [
                                "Signer 1",
                                "Signer 2"
                              ],
                              "field_invites": [
                                {
                                  "id": "e4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "email_group": {
                                    "id": "f6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "name": "Contact group"
                                  }
                                },
                                {
                                  "id": "u8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "email_group": {
                                    "id": "c2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "name": "Contact group"
                                  }
                                }
                              ]
                            }
                          ],
                          "invite_id": "eeXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "entity_labels": [],
                          "document_group_name": "Document Group 24-3-2021"
                        }
                      ],
                      "parent_id": "66XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "system_folder": true,
                      "total_documents": 1
                    }
                  },
                  "With document group invite where user is the owner": {
                    "value": {
                      "id": "a9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "name": "Documents",
                      "shared": false,
                      "created": "1616586778",
                      "folders": [],
                      "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [
                        {
                          "id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner": "document-owner@email.com",
                          "created": 1616586981,
                          "invites": [
                            {
                              "email": "signer@email.com",
                              "order": "1",
                              "action": "sign",
                              "status": "fulfilled",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": null
                            },
                            {
                              "email": "manager@email.com",
                              "order": "2",
                              "action": "sign",
                              "status": "fulfilled",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": null
                            },
                            {
                              "order": "2",
                              "action": "view",
                              "status": "pending",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email_group": {
                                "id": "e7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "name": "HR team"
                              },
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": 1618210633
                            }
                          ],
                          "updated": 1616586981,
                          "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "documents": [
                            {
                              "id": "d2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "sample",
                              "roles": [
                                "Signer 1",
                                "Manager"
                              ]
                            }
                          ],
                          "invite_id": "eeXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "entity_labels": [],
                          "document_group_name": "Document Group 24-3-2021"
                        }
                      ],
                      "parent_id": "66XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "system_folder": true,
                      "total_documents": 1
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Get info of specific folder which doesn't belong to user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Get info of specific folder which doesn't belong to user": {
                    "value": {
                      "code": 65611,
                      "message": "Resource doesn't exist"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/user/folder": {
      "post": {
        "operationId": "create-folder",
        "summary": "Create folder",
        "description": "Creates a folder for the user.",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "98XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "parent_id"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "parent_id": {
                    "type": "string"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "name": "Folder Name",
                    "parent_id": "f0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-all-folders",
        "summary": "Get all folders",
        "description": "Returns all folders of a user. You can use the identical newer version of this endpoint under `https://api.signnow.com/folder`.\n\nYou can adjust the response produced by this endpoint using the following query parameters:\n\n**filters=signing-status&filter-values** - allows showing documents with specific status\n<br>allowed values: signed, pending, waiting-for-me, waiting-for-others,unsent \n\n**filters=documents-created&filter-values** - shows documents that were created started from specific date (note: this filter is not applicable for Templates)\n<br>allowed values: Unix timestamp\n\n**filters=documents-updated&filter-values** - shows documents that were updated started from specific date (note: this filter is not applicable for Templates)\n<br>allowed values: Unix timestamp\n\n**sortby=created&order** - sorts documents by creation date in descending or ascending order\n<br>allowed values: desc, asc\n\n**sortby=updated&order** - sorts documents by update date\n<br>allowed values: desc, asc\n\n**sortby=recently_used** - Sort templates by date of the last sending of the invite. Applies to system Template folders and custom Template folders. Default value: `desc`\n<br>allowed values: desc, asc\n\n**limit** - displays specified number of documents; Max limit is 100. It means that if value of \"limit\" parameter exceeds 100, response is automatically limited to 100 documents.\n<br>allowed values: integer\n\n**offset** - displays documents from specified position\n<br>allowed values: integer\n\n**subfolder-data** - defines whether to include subfolders to the response. Allowed values: `1`, `0`. Must be used with the query parameter `include_documents_subfolders`.\n\n**include_documents_subfolders** - whether to include subfolders to the response. Allowed values: `1`, `0`. Must be used with the query parameter `subfolder-data`.\n\n**with_team_documents** - allows displaying \"Team Documents\" folders.\n<br>allowed values: true, false (i.e. with_team_documents=true)\n\n\nThe short list of document info is:\n\n```\n{\n\"id\": \" \",\n\"user_id\": \" \",\n\"document_name\": \" \",\n\"page_count\": \" \",\n\"created\": \" \",\n\"updated\": \" \",\n\"original_filename\": \" \"\n\"is_favorite\": true/false\n}\n```\n\n**only_favorites** - shows only favorites documents and document groups. Default value - false\n<br>allowed values: true, false\n\n**entity_type** - defines which entities should be counted in the `document_count` and `template_count` attributes in the reponse.\n<br>Allowed values: \n- `document-all` - default value, counts only documents or only templates (depends on the type of folder). \n- `all` - counts all kinds of entities in the folder: \n  * `Documents` folder with its subfolders, `Archive` folder with its subfolders - counts documents including documents that belong to document groups.\n  * `Templates` folder and its subfolders - counts templates and document group templates.\n  * `Trash` folder - counts all documents, document groups, templates, document group templates.\n- `document` - counts documents only, doesn't count documents that belong to document groups. Works for `Documents`, `Archive`, and `Trash` folders.\n- `document-group` - counts documents that belong to document groups only. Works for `Documents`, `Archive`, and `Trash` folders.\n- `template` - counts templates only. Works for `Templates` and `Trash` folders.\n- `dgt` - counts document group templates only. Works for `Templates` and `Trash` folders.",
        "responses": {
          "200": {
            "description": "* Success\n* With document group invite where user is the owner\n* With document group invite where user is the signer\n* With viewer field invites\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "shared": {
                      "type": "boolean"
                    },
                    "created": {
                      "type": "string"
                    },
                    "folders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "shared": {
                            "type": "boolean"
                          },
                          "created": {
                            "type": "string"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "sub_folders": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "folder_count": {
                            "type": "string"
                          },
                          "document_count": {
                            "type": "string"
                          },
                          "template_count": {
                            "type": [
                              "integer",
                              "string"
                            ]
                          }
                        }
                      }
                    },
                    "user_id": {
                      "type": "string"
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "parent_id": {
                      "type": "string",
                      "x-nullable": true
                    },
                    "system_folder": {
                      "type": "boolean"
                    },
                    "total_documents": {
                      "type": "integer"
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "id": "38XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "name": "Root Folder",
                      "shared": false,
                      "created": "1532531633",
                      "folders": [
                        {
                          "id": "25XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Templates",
                          "shared": false,
                          "created": "1532531633",
                          "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "sub_folders": [],
                          "folder_count": "0",
                          "document_count": "0",
                          "template_count": "11"
                        },
                        {
                          "id": "3bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Team Templates",
                          "shared": true,
                          "created": "1557915422",
                          "team_id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "team_name": "Sample team",
                          "team_type": "VIEWABLE",
                          "sub_folders": [],
                          "folder_count": "0",
                          "document_count": "0",
                          "template_count": "3"
                        },
                        {
                          "id": "54XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Team Templates",
                          "shared": true,
                          "created": "1543922139",
                          "team_id": "96XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "team_name": "My team",
                          "team_type": "VIEWABLE",
                          "sub_folders": [],
                          "folder_count": "0",
                          "document_count": "0",
                          "template_count": "1"
                        },
                        {
                          "id": "83XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Archive",
                          "shared": false,
                          "created": "1532531633",
                          "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "sub_folders": [],
                          "folder_count": "0",
                          "document_count": "21",
                          "template_count": 0
                        },
                        {
                          "id": "9eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Trash Bin",
                          "shared": false,
                          "created": "1567466970",
                          "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "sub_folders": [],
                          "folder_count": "0",
                          "document_count": "0",
                          "template_count": 0
                        },
                        {
                          "id": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Documents",
                          "shared": false,
                          "created": "1532531633",
                          "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "sub_folders": [],
                          "folder_count": "0",
                          "document_count": "74",
                          "template_count": 0
                        }
                      ],
                      "user_id": "89XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [],
                      "parent_id": null,
                      "system_folder": false,
                      "total_documents": 0
                    }
                  },
                  "With viewer field invites": {
                    "value": {
                      "id": "a9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "name": "Documents",
                      "shared": false,
                      "created": "1616586778",
                      "folders": [],
                      "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [
                        {
                          "id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner": "document-owner@email.com",
                          "created": 1616586981,
                          "invites": [
                            {
                              "email": "signer@email.com",
                              "order": "1",
                              "action": "sign",
                              "status": "fulfilled",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": null
                            },
                            {
                              "email": "manager@email.com",
                              "order": "2",
                              "action": "sign",
                              "status": "fulfilled",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": null
                            },
                            {
                              "order": "2",
                              "action": "view",
                              "status": "pending",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email_group": {
                                "id": "e7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "name": "HR team"
                              },
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": 1618210633
                            }
                          ],
                          "updated": 1616586981,
                          "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "documents": [
                            {
                              "id": "d2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "sample",
                              "roles": [
                                "Signer 1",
                                "Manager"
                              ]
                            }
                          ],
                          "invite_id": "eeXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "document_group_name": "Document Group 24-3-2021",
                          "viewer_field_invites": [
                            {
                              "id": "eeXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email_group": {
                                "id": "e7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "name": "HR team"
                              }
                            }
                          ]
                        }
                      ],
                      "parent_id": "66XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "system_folder": true,
                      "total_documents": 1
                    }
                  },
                  "With document group where user is a signer": {
                    "value": {
                      "id": "a9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "name": "Documents",
                      "shared": false,
                      "created": "1616586778",
                      "folders": [],
                      "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [
                        {
                          "id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner": "owner-email@email.com",
                          "created": 1616586981,
                          "updated": 1616586981,
                          "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "documents": [
                            {
                              "id": "d2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "sample",
                              "roles": [
                                "Signer 1",
                                "Signer 2"
                              ],
                              "field_invites": [
                                {
                                  "id": "e4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "email_group": {
                                    "id": "f6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "name": "Contact group"
                                  }
                                },
                                {
                                  "id": "u8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "email_group": {
                                    "id": "c2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                    "name": "Contact group"
                                  }
                                }
                              ]
                            }
                          ],
                          "invite_id": "eeXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "document_group_name": "Document Group 24-3-2021"
                        }
                      ],
                      "parent_id": "66XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "system_folder": true,
                      "total_documents": 1
                    }
                  },
                  "With document group invite where user is the owner": {
                    "value": {
                      "id": "a9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "name": "Documents",
                      "shared": false,
                      "created": "1616586778",
                      "folders": [],
                      "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "documents": [
                        {
                          "id": "cdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner": "document-owner@email.com",
                          "created": 1616586981,
                          "invites": [
                            {
                              "email": "signer@email.com",
                              "order": "1",
                              "action": "sign",
                              "status": "fulfilled",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": null
                            },
                            {
                              "email": "manager@email.com",
                              "order": "2",
                              "action": "sign",
                              "status": "fulfilled",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": null
                            },
                            {
                              "order": "2",
                              "action": "view",
                              "status": "pending",
                              "document_id": "06XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email_group": {
                                "id": "e7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "name": "HR team"
                              },
                              "document_name": "Performance review",
                              "authentication": null,
                              "expiration_time": 1618210633
                            }
                          ],
                          "updated": 1616586981,
                          "user_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "documents": [
                            {
                              "id": "d2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "name": "sample",
                              "roles": [
                                "Signer 1",
                                "Manager"
                              ]
                            }
                          ],
                          "invite_id": "eeXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "document_group_name": "Document Group 24-3-2021"
                        }
                      ],
                      "parent_id": "66XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "system_folder": true,
                      "total_documents": 1
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Get info about specific folder which doesn't belong to the user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Get info about specific folder which doesn't belong to the user": {
                    "value": {
                      "code": 65611,
                      "message": "Resource doesn't exist"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/user/folder/{folder_id}": {
      "put": {
        "operationId": "rename-folder",
        "summary": "Rename folder",
        "description": "Renames a folder. You can use the identical newer version of this endpoint under `https://api.signnow.com/folder/{folder_id}`.",
        "parameters": [
          {
            "in": "path",
            "name": "folder_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "98XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "name": "New folder name"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-folder",
        "summary": "Delete folder",
        "description": "Deletes a folder. You can use the identical newer version of this endpoint under `https://api.signnow.com/folder/{folder_id}`.",
        "parameters": [
          {
            "in": "path",
            "name": "folder_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "success": true
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/folders/{folder_id}/document-templates/pinned": {
      "get": {
        "operationId": "get-v2-folders-folder-id-document-templates-pinned",
        "summary": "Get pinned templates",
        "description": "The endpoint is used to retrieve a list of pinned templates in the Templates folder.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "folder_id",
            "type": "string",
            "required": true,
            "description": "ID of the template folder."
          }
        ],
        "responses": {
          "200": {
            "description": "* User has 1 pinned template\n* User has no pinned templates",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User has 1 pinned template": {
                    "value": {
                      "data": [
                        {
                          "id": "",
                          "tags": [
                            {
                              "name": "",
                              "type": "",
                              "unique_id": ""
                            }
                          ],
                          "owner": "",
                          "roles": [
                            {
                              "name": "",
                              "unique_id": "",
                              "signing_order": ""
                            }
                          ],
                          "created": "",
                          "updated": "",
                          "user_id": "",
                          "thumbnail": {
                            "large": "",
                            "small": "",
                            "medium": ""
                          },
                          "page_count": "",
                          "signatures": [
                            {
                              "x": "",
                              "y": "",
                              "id": "",
                              "email": "",
                              "width": "",
                              "height": "",
                              "created": "",
                              "subtype": "",
                              "user_id": "",
                              "page_number": "",
                              "signature_request_id": ""
                            }
                          ],
                          "attachments": [
                            {
                              "x": "",
                              "y": "",
                              "id": "",
                              "width": "",
                              "height": "",
                              "created": "",
                              "user_id": "",
                              "filename": "",
                              "file_size": "",
                              "file_type": "",
                              "mime_type": "",
                              "line_height": "",
                              "page_number": "",
                              "json_attributes": null,
                              "original_attachment_name": ""
                            }
                          ],
                          "version_time": "",
                          "viewer_roles": [
                            {
                              "name": "",
                              "unique_id": "",
                              "signing_order": ""
                            }
                          ],
                          "document_name": "",
                          "routing_details": [
                            {
                              "cc": {},
                              "id": "",
                              "data": {},
                              "cc_step": {},
                              "created": "",
                              "updated": "",
                              "viewers": {},
                              "invite_link_instructions": {}
                            }
                          ],
                          "original_filename": "",
                          "document_group_template_info": [
                            {
                              "id": "",
                              "shared": "",
                              "created": "",
                              "updated": "",
                              "template_group_name": ""
                            }
                          ]
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "User has no pinned templates": {
                    "value": {
                      "data": [],
                      "meta": {
                        "pagination": {
                          "count": 0,
                          "links": [],
                          "total": 0,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "User folder {folder_id} is not Template folder or Template sub-folder",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User folder {folder_id} is not Template folder or Template sub-folder": {
                    "value": {
                      "code": 13033002,
                      "message": "User folder `11XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not Template folder or Template sub-folder."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Folder {folder_id} doesn’t belong to a user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Folder {folder_id} doesn’t belong to a user": {
                    "value": {
                      "code": 13033001,
                      "message": "User is not owner of the `11XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` user folder."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/trash": {
      "delete": {
        "operationId": "delete-v2-trash",
        "summary": "Empty trash bin folder",
        "description": "This endpoint allows users to empty the Trash Bin folder. All documents will be permanently deleted and you won’t be able to restore them later.",
        "responses": {
          "204": {
            "description": "Trash Bin folder cleared successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "Invalid token response will be sent with any of cases:\n- invalid token of user\n- expired token of user\n- empty header\n- authorization = null\n- authorization without value\n- somesing went wrong during the clearing process.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Invalid token": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/applications/{application_id}/brand": {
      "put": {
        "operationId": "put-v2-applications-application-id-brand",
        "summary": "Assign brand to application",
        "description": "This endpoint allows users to assign branding to an application.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "application_id",
            "type": "string",
            "required": true,
            "description": "ID of the application."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Incorrect payload.\n* `brand_id` is not a string.\n* Empty `brand_id`.\n* Missing or incorrect `brand_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty brand_id": {
                    "value": {
                      "code": 25002071,
                      "message": "Brand id must not be an empty string."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "brand_id not string": {
                    "value": {
                      "code": 25002070,
                      "message": "Brand id must be a string."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "code": 25002069,
                      "message": "Brand id is required"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\r\n* The bearer token is valid but it belongs to another user.\r\n* Brand with this `brand_id` doesn't exist.\r\n* User doesn't own this brand.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002077,
                      "message": "You are not allowed to assign provided brand."
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "code": 25002075,
                      "message": "Brand assign to provided application is not allowed."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  },
                  "User doesn't own this brand": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`application_id` does not exist\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application_id does not exist": {
                    "value": {
                      "code": "25002076",
                      "message": "Application unique identifier does not exist."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "brand_id"
                ],
                "properties": {
                  "brand_id": {
                    "type": "string",
                    "description": "ID of the brand that will be assigned."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "brand_id": "{{brand_id}}"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "brand_id": "{{brand_id}}"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-applications-application-id-brand",
        "summary": "Get brand of application",
        "description": "This endpoint allows users to retrieve branding that has been assigned to an application.",
        "parameters": [
          {
            "in": "query",
            "name": "use_hierarchy",
            "type": "string",
            "required": false,
            "description": "Retrieve branding assigned specifically to the application with or without branding of its parent organization. Possible values: `true` - show organization branding if no specific branding is assigned to the application; `false` - show only the branding specifically assigned to the application (if any). "
          },
          {
            "in": "path",
            "name": "application_id",
            "type": "string",
            "required": true,
            "description": "ID of the application."
          }
        ],
        "responses": {
          "200": {
            "description": "* Correct request with `use_hierarchy = true` if there is no brand assigned directly to the `application_id`. The response retrieves the branding that is lower in the hierarchy.\n* Correct request with `use_hierarchy=false` if there is no brand assigned directly to the `application_id`. The response is empty.\n* Correct request with a bearer token from a user authorized under application with no brand assigned.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "use_hierarchy=false": {
                    "value": {
                      "data": []
                    }
                  },
                  "use_hierarchy = true": {
                    "value": {
                      "data": {
                        "title": "Brand number 2 name",
                        "resources": {},
                        "unique_id": "45XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "owner_type": "user"
                      }
                    }
                  },
                  "Application without brand_id": {
                    "value": {
                      "data": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "no token/invalid token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Incorrect `application_id`\n* `application_id` does not exist \n* `application_id` has been deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Deleted application_id": {
                    "value": {
                      "code": 25002065,
                      "message": "Application deleted."
                    }
                  },
                  "Incorrect application_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/documents/567/brand"
                    }
                  },
                  "application_id does not exist": {
                    "value": {
                      "code": 25002062,
                      "message": "Application unique identifier does not exist."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-applications-application-id-brand",
        "summary": "Unassign brand from application",
        "description": "This endpoint allows users to delete branding assignment from an application.",
        "parameters": [
          {
            "in": "path",
            "name": "application_id",
            "type": "string",
            "required": true,
            "description": "ID of the application."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content"
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The bearer token is valid but it belongs to another user.\r\n* The user is authorized with a token from an app they don’t own.\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002075,
                      "message": "Brand assign to provided application is not allowed."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* `application_id` does not exist\r\n* `application_id` has been deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Deleted application_id": {
                    "value": {
                      "code": 25002065,
                      "message": "Application deleted."
                    }
                  },
                  "application_id does not exist": {
                    "value": {
                      "code": 25002062,
                      "message": "Application unique identifier does not exist."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/document-groups/{document_group_id}/brand": {
      "put": {
        "operationId": "put-v2-document-groups-document-group-id-brand",
        "summary": "Assign brand to doc group",
        "description": "This endpoint allows users to assign branding to a document group.\n\n> Members of an organization (workspace) cannot apply branding to document groups when the `disable_branding_setup` setting is enabled (set to `1`). To check the organization (workspace) settings, use the [Get organization settings](/docs/organization/operations/get-v2-organizations-org-id-settings) request.\n",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Incorrect payload.\n* `brand_id` is not a string.\n* Empty `brand_id`.\n* Missing or incorrect `brand_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty brand_id": {
                    "value": {
                      "code": 25002071,
                      "message": "Brand id must not be an empty string."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "brand_id not string": {
                    "value": {
                      "code": 25002070,
                      "message": "Brand id must be a string."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "code": 25002069,
                      "message": "Brand id is required"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\r\n* The bearer token is valid but it belongs to another user.\r\n* Brand with this `brand_id` doesn't exist.\r\n* User doesn't own this brand.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002077,
                      "message": "You are not allowed to assign provided brand."
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "code": 25002075,
                      "message": "Brand assign to provided application is not allowed."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  },
                  "User doesn't own this brand": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`document_group_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "document_group_id doesn't exist": {
                    "value": {
                      "code": 25002063,
                      "message": "Document group unique identifier does not exist."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "brand_id"
                ],
                "properties": {
                  "brand_id": {
                    "type": "string",
                    "description": "ID of the brand that will be assigned."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "brand_id": "{{brand_id}}"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "brand_id": "{{brand_id}}"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-document-groups-document-group-id-brand",
        "summary": "Get brand of doc group",
        "description": "This endpoint allows users to retrieve branding that has been assigned to a document group.",
        "parameters": [
          {
            "in": "query",
            "name": "use_hierarchy",
            "type": "string",
            "required": false,
            "description": "Retrieve branding assigned specifically to the document group with or without branding of its parent application/organization. Possible values: `true` - show application/organization branding if no specific branding is assigned to the document group; `false` - show only the branding specifically assigned to the document group (if any). "
          },
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "200": {
            "description": "* Correct request with `use_hierarchy = true` if there is no brand assigned directly to the `document_group_id`. The response retrieves the branding that is lower in the hierarchy.\n* Correct request with `use_hierarchy=false` if there is no brand assigned directly to the `document_group_id`. The response is empty.\n* Correct request with a bearer token from a user authorized under application with no brand assigned.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "`use_hierarchy=false`": {
                    "value": {
                      "data": []
                    }
                  },
                  "`use_hierarchy = true`": {
                    "value": {
                      "data": {
                        "title": "Brand number 2 name",
                        "resources": {},
                        "unique_id": "45XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "owner_type": "user"
                      }
                    }
                  },
                  "Application without brand_id": {
                    "value": {
                      "data": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "no token/invalid token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Incorrect `document_group_id`\n* `document_group_id` does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect document_group_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/documents/567/brand"
                    }
                  },
                  "document_group_id does not exist": {
                    "value": {
                      "code": 25002062,
                      "message": "Document group unique identifier does not exist."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "`document_group_id` has been deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002067,
                      "message": "Document group is not active."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-document-groups-document-group-id-brand",
        "summary": "Unassign brand from doc group",
        "description": "This endpoint allows users to delete branding assignment from a document group.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The bearer token is valid but it belongs to another user.\r\n* The user is authorized with a token from an app they don’t own.\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002075,
                      "message": "Brand assign to provided application is not allowed."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`document_group_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "document_group_id doesn't exist": {
                    "value": {
                      "code": 25002063,
                      "message": "Document group unique identifier does not exist."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "`document_group_id` has been deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002067,
                      "message": "Document group is not active."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/documents/{document_id}/brand": {
      "put": {
        "operationId": "put-v2-documents-document-id-brand",
        "summary": "Assign brand to document",
        "description": "This endpoint allows users to assign branding to a document.\n\n> Members of an organization (workspace) cannot apply branding to documents when the `disable_branding_setup` setting is enabled (set to `1`). To check the organization (workspace) settings, use the [Get organization settings](/docs/organization/operations/get-v2-organizations-org-id-settings) request.\n",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Incorrect payload.\n* `brand_id` is not a string.\n* Empty `brand_id`.\n* Missing or incorrect `brand_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty brand_id": {
                    "value": {
                      "code": 25002071,
                      "message": "Brand id must not be an empty string."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "brand_id not string": {
                    "value": {
                      "code": 25002070,
                      "message": "Brand id must be a string."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "code": 25002069,
                      "message": "Brand id is required"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\r\n* The bearer token is valid but it belongs to another user.\r\n* Brand with this `brand_id` doesn't exist.\r\n* User doesn't own this brand.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002077,
                      "message": "You are not allowed to assign provided brand."
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "code": 25002075,
                      "message": "Brand assign to provided application is not allowed."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  },
                  "User doesn't own this brand": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`document_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "document_id doesn't exist": {
                    "value": {
                      "code": 25002062,
                      "message": "Document unique identifier does not exist."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "`document_id` has been deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002065,
                      "message": "Document deleted."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "brand_id"
                ],
                "properties": {
                  "brand_id": {
                    "type": "string",
                    "description": "ID of the brand that will be assigned."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "brand_id": "{{brand_id}}"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "brand_id": "{{brand_id}}"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-documents-document-id-brand",
        "summary": "Get brand of document",
        "description": "This endpoint allows users to retrieve branding that has been assigned to a document. ",
        "parameters": [
          {
            "in": "query",
            "name": "use_hierarchy",
            "type": "boolean",
            "required": false,
            "description": "Retrieve branding assigned specifically to the document with or without branding of its parent application/organization. Possible values: `true` - show application/organization branding if no specific branding is assigned to the document; `false` - show only the branding specifically assigned to the document (if any). "
          },
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document."
          }
        ],
        "responses": {
          "200": {
            "description": "* Correct request with `use_hierarchy = true` if there is no brand assigned directly to the `document_id`. The response retrieves the branding that is lower in the hierarchy.\n* Correct request with `use_hierarchy=false` if there is no brand assigned directly to the `document_id`. The response is empty.\n* Correct request with a bearer token from a user authorized under application with no brand assigned.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "use_hierarchy=false": {
                    "value": {
                      "data": []
                    }
                  },
                  "use_hierarchy = true": {
                    "value": {
                      "data": {
                        "title": "Brand number 2 name",
                        "resources": {},
                        "unique_id": "45XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "owner_type": "user"
                      }
                    }
                  },
                  "Application without brand_id": {
                    "value": {
                      "data": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Incorrect `document_id`\n* `document_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect document_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/documents/567/brand"
                    }
                  },
                  "document_id doesn't exist": {
                    "value": {
                      "code": 25002062,
                      "message": "Document unique identifier does not exist."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "`document_id` has been deleted",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002065,
                      "message": "Document deleted."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-documents-document-id-brand",
        "summary": "Unassign brand from document",
        "description": "This endpoint allows users to delete branding assignment from a document.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The bearer token is valid but it belongs to another user.\r\n* The user is authorized with a token from an app they don’t own.\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002075,
                      "message": "Brand assign to provided application is not allowed."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`document_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002062,
                      "message": "Document unique identifier does not exist."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "`document_id` has been deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Deleted document_id": {
                    "value": {
                      "code": 25002065,
                      "message": "Document deleted."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/editor": {
      "put": {
        "operationId": "put-v2-brands-brand-id-editor",
        "summary": "Create and edit editor brand resource",
        "description": "This endpoint allows users to create and update an editor brand resource.\n\nLearn more about the [editor brand resource](/docs/branding-editor-resource).\n\nNote: to create an editor resource for a brand, you need to own the brand.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Request body is incorrect or missing.\n* `settings` is not an array.\n* `settings.visibility` is not a boolean.\n* `decline-invite-text` is not an array.\n* `decline-invite-text.en` is not a string.\n* `accessibility` is not an array.\n* `accessibility.visibility` is not a boolean.\n* `color` value is not a string.\n* `background` is not a string.\n* `border` is not a string.\n* `active-color` is not a string.\n* `active-background` is not a string.\n* `active-border` is not a string.\n* `hover-color` is not a string.\n* `hover-background` is not a string.\n* `hover-border` is not a string.\n* `enabled` is not a boolean.\n* `navigation` is not an array.\n* `navigation.visibility` is not a boolean.\n* `progress-bar` is not an array.\n* `default-color` is not a string.\n* `completed-color` is not a string.\n* `sidebar` is not an array.\n* `sidebar.background` is not a string.\n* `sidebar.visibility` is not a boolean.\n* `complete-footer` field is not an array.\n* `complete-footer.visibility` is not a boolean.\n* `complete-footer.custom-text` is not an array.\n* `complete-footer.custom-text.en` is not a string.\n* `support-chat` is not an array.\n* `support-chat.visibility` is not a boolean.\n* `complete-page.success` is not an array.\n* `complete-page.success.header-text.en` not a string.\n* `complete-page.success.body-text.en` not a string.\n* `complete-page.decline` is not an array.\n* `complete-page.decline.header-text.en` is not a string.\n* `complete-page.decline.body-text.en` is not a string.\n* `registration` is not an array.\n* `registration.visibility` is not a boolean.\n* `button-to-signnow` is not an array.\n* `button-to-signnow.visibility` is not a boolean.\n* `button-download` is not an array.\n* `button-download.visibility` is not a boolean.\n* `sender-info` is not an array.\n* `sender-info.visibility` is not a boolean.\n* `page-dimension` is not an array.\n* `percent` is not an integer.\n* `contact-name` is not a string.\n* `contact-email` is not a string.\n* `close-button` is not an array.\n* `close-button.visibility` is not a boolean.\n* `close-button.title` not array.\n* `close-button.title.signing` is not an array.\n* `close-button.title.editor` is not an array.\n* `close-button.title.signing.en` is not a string.\n* `close-button.title.signing.fr` is not a string.\n* `close-button.title.signing.es` is not a string.\n* `close-button.title.editor.en` is not a string.\n* `close-button.title.editor.fr` is not a string.\n* `close-button.title.editor.es` is not a string.\n* `close-button.title.signing.en` is too long.\n* `close-button.title.signing.fr` is too long.\n* `close-button.title.signing.es` is too long.\n* `close-button.title.editor.en` is too long.\n* `close-button.title.editor.fr` is too long.\n* `close-button.title.editor.es` is too long.\n* `close-button.title.signing.en` contains UTF 4-byte characters.\n* `close-button.title.signing.fr` contains UTF 4-byte characters.\n* `close-button.title.signing.es` contains UTF 4-byte characters.\n* `close-button.title.editor.en` contains UTF 4-byte characters.\n* `close-button.title.editor.fr` contains UTF 4-byte characters.\n* `close-button.title.editor.es` contains UTF 4-byte characters.\n* `decline-button` is not an array.\n* `decline-button.visibility` is not a boolean. \n* `document-name` is not an array. \n* `document-name.visibility` is not a boolean.  \n* `toolbar` is not an array.\n* `toolbar.visibility` is not a boolean. \n* `toolbar.background` not a string.\n* `toolbar.background` has incorrect format.\n* `editing-tools` is not an array.\n* `editing-tools.background` is not a string.\n* `editing-tools.background` has incorrect format.\n* `manage-recipients` is not an array.\n* `manage-recipients.visibility` is not a boolean.\n* `preview-button` is not an array.\n* `preview-button.visibility` is not a boolean.\n* `thumbnails-button` is not an array. \n* `thumbnails-button.visibility` is not a boolean.\n* `request-payment` is not an array. \n* `request-payment.visibility` is not a boolean.\n* `continue-button` is not an array.\n* `continue-button.visibility` is not a boolean.\n* `step-progress-bar` is not an array.\n* `step-progress-bar.visibility` is not a boolean.\n* `signing-settings` type is incorrect.\n* `signing-settings.guide-signers-only-through-required-fields` type is incorrect.\n* 'signing-settings.auto-apply-signatures-and-initials-to-document-fields` type is incorrect.\n* `fields` is not an array.\n* `fields.signature` is not an array.\n* `fields.signature.visibility` is not a boolean.\n* `fields.text` is not an array.\n* `fields.text.visibility` is not a boolean.\n* `fields.date` is not an array.\n* `fields.date.visibility` is not a boolean. \n* `fields.initials` is not an array.\n* `fields.initials.visibility` is not a boolean.\n* `fields.fullname` is not an array.\n* `fields.fullname.visibility` is not a boolean.\n* `fields.email` is not an array. \n* `fields.email.visibility` is not a boolean. \n* `fields.checkbox` is not an array. \n* `fields.checkbox.visibility` is not a boolean. \n* `fields.radiobutton` is not an array. \n* `fields.radiobutton.visibility` is not a boolean. \n* `fields.attachment` is not an array. \n* `fields.attachment.visibility` is not a boolean. \n* `fields.dropdown` is not an array. \n* `fields.dropdown.visibility` is not a boolean. \n* `fields.stamp` is not an array.\n* `fields.stamp.visibility` is not a boolean. \n* `fields.formula` is not an array. \n* `fields.formula.visibility` is not a boolean. \n* `fields.hyperlink` is not an array. \n* `fields.hyperlink.visibility` is not a boolean.\n* `field-settings` is not an array.\n* `field-settings.visibility` is not a boolean.\n* `default-fields` is not an array.\n* `default-fields.visibility` is not a boolean.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 25002003,
                          "message": "The visibility should be a boolean."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002003,
                          "message": "The visibility should be a boolean."
                        }
                      ]
                    }
                  },
                  "color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002006,
                          "message": "The 'color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002008,
                          "message": "The 'background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "sidebar not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002145,
                          "message": "The 'sidebar' field must be an array."
                        }
                      ]
                    }
                  },
                  "settings not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002086,
                          "message": "The ‘settings’ attribute must be an array."
                        }
                      ]
                    }
                  },
                  "sidebar.visibility": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002148,
                          "message": "The 'sidebar.visibility' must be a boolean."
                        }
                      ]
                    }
                  },
                  "enabled not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002190,
                          "message": "The 'accessibility.enabled' field must be a boolean."
                        }
                      ]
                    }
                  },
                  "percent not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002215,
                          "message": "The `page-dimension.percent` field must be an integer."
                        }
                      ]
                    }
                  },
                  "navigation not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002088,
                          "message": "The 'navigation' attribute must be an array."
                        }
                      ]
                    }
                  },
                  "background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002004,
                          "message": "The 'background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "custom-text not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002151,
                          "message": "The 'complete-footer.custom-text' must be an array."
                        }
                      ]
                    }
                  },
                  "sender-info not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002207,
                          "message": "The `sender-info` field must be an array."
                        }
                      ]
                    }
                  },
                  "close-button not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002218,
                          "message": "The close-button field must be an array."
                        }
                      ]
                    }
                  },
                  "fields is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002295,
                          "message": "The `fields` field must be an array."
                        }
                      ]
                    }
                  },
                  "hover-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002012,
                          "message": "The 'hover-color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "progress-bar not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002089,
                          "message": "The 'progress-bar' attribute must be an array."
                        }
                      ]
                    }
                  },
                  "registration not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002139,
                          "message": "This value should be of type array."
                        }
                      ]
                    }
                  },
                  "support-chat not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002158,
                          "message": "The 'support-chat' field must be an array."
                        }
                      ]
                    }
                  },
                  "visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002003,
                          "message": "The visibility should be a boolean."
                        }
                      ]
                    }
                  },
                  "accessibility not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002087,
                          "message": "The ‘accessibility’ attribute must be an array."
                        }
                      ]
                    }
                  },
                  "active-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002039,
                          "message": "The 'active-color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "contact-name not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002212,
                          "message": "The `sender-info.contact-name` must be a string."
                        }
                      ]
                    }
                  },
                  "hover-border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002014,
                          "message": "The 'hover-border' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "toolbar is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002276,
                          "message": "The `toolbar` field must be an array."
                        }
                      ]
                    }
                  },
                  "active-border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002039,
                          "message": "The 'active-border' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "contact-email not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002209,
                          "message": "The `sender-info.contact-email` must be a string."
                        }
                      ]
                    }
                  },
                  "decline-button not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002220,
                          "message": "The decline-button field must be an array."
                        }
                      ]
                    }
                  },
                  "default-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002043,
                          "message": "The 'default-color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "page-dimension not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002214,
                          "message": "The `page-dimension` field must be an array."
                        }
                      ]
                    }
                  },
                  "complete-footer not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002149,
                          "message": "The 'complete-footer' field must be an array."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "completed-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002045,
                          "message": "The 'completed-color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "fields.date is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002300,
                          "message": "The `fields.date` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.text is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002298,
                          "message": "The `fields.text` must be an array."
                        }
                      ]
                    }
                  },
                  "hover-background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002010,
                          "message": "The 'hover-background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "active-background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002037,
                          "message": "The 'active-background' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "close-button.title not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002355,
                          "message": "The `close-button.title` must be an array."
                        }
                      ]
                    }
                  },
                  "custom-text value not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002152,
                          "message": "The 'complete-footer.custom-text.en' must be a string."
                        }
                      ]
                    }
                  },
                  "fields.email is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002306,
                          "message": "The `fields.email` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.stamp is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002316,
                          "message": "The `fields.stamp` must be an array."
                        }
                      ]
                    }
                  },
                  "decline-invite text not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002134,
                          "message": "The `decline-invite-text` attribute must be an array."
                        }
                      ]
                    }
                  },
                  "document-name is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002274,
                          "message": "The `document-name` field must be an array."
                        }
                      ]
                    }
                  },
                  "editing-tools is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002280,
                          "message": "The `editing-tools` field must be an array."
                        }
                      ]
                    }
                  },
                  "sidebar.background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002146,
                          "message": "The 'sidebar.background' must be a string."
                        }
                      ]
                    }
                  },
                  "toolbar.background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002278,
                          "message": "The `toolbar.background` must be a string."
                        }
                      ]
                    }
                  },
                  "fields.formula is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002318,
                          "message": "The `fields.formula` must be an array."
                        }
                      ]
                    }
                  },
                  "preview-button is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002285,
                          "message": "The `preview-button` field must be an array."
                        }
                      ]
                    }
                  },
                  "toolbar.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002277,
                          "message": "The `toolbar.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "complete-page.decline not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002173,
                          "message": "The 'complete-page.decline' attribute must be an array."
                        }
                      ]
                    }
                  },
                  "continue-button is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002291,
                          "message": "The `continue-button` field must be an array."
                        }
                      ]
                    }
                  },
                  "decline.body-text.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002180,
                          "message": "The 'complete-page.decline.body-text.en' must be a string."
                        }
                      ]
                    }
                  },
                  "fields.checkbox is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002308,
                          "message": "The `fields.checkbox` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.dropdown is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002314,
                          "message": "The `fields.dropdown` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.fullname is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002304,
                          "message": "The `fields.fullname` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.initials is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002302,
                          "message": "The `fields.initials` must be an array."
                        }
                      ]
                    }
                  },
                  "request-payment is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002289,
                          "message": "The `request-payment` field must be an array."
                        }
                      ]
                    }
                  },
                  "signing-settings type incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002376,
                          "message": "The 'signing-settings' field must be an array."
                        }
                      ]
                    }
                  },
                  "success.body-text.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002167,
                          "message": "The 'complete-page.success.body-text.en' must be a string."
                        }
                      ]
                    }
                  },
                  "complete-page.success not array ": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002160,
                          "message": "The 'complete-page.success' attribute must be an array."
                        }
                      ]
                    }
                  },
                  "fields.hyperlink is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002320,
                          "message": "The `fields.hyperlink` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.signature is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002296,
                          "message": "The `fields.signature` must be an array."
                        }
                      ]
                    }
                  },
                  "Request body incorrect or missing": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "decline.header-text.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002174,
                          "message": "The 'complete-page.decline.header-text.en' must be a string."
                        }
                      ]
                    }
                  },
                  "default-fields field not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002381,
                          "message": "The `default-fields` field must be an array."
                        }
                      ]
                    }
                  },
                  "field-settings field not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002379,
                          "message": "The `field-settings` field must be an array."
                        }
                      ]
                    }
                  },
                  "fields.attachment is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002312,
                          "message": "The `fields.attachment` must be an array."
                        }
                      ]
                    }
                  },
                  "manage-recipients is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002283,
                          "message": "The `manage-recipients` field must be an array."
                        }
                      ]
                    }
                  },
                  "step-progress-bar is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002293,
                          "message": "The `step-progress-bar` field must be an array."
                        }
                      ]
                    }
                  },
                  "success.header-text.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002161,
                          "message": "The 'complete-page.success.header-text.en' must be a string."
                        }
                      ]
                    }
                  },
                  "thumbnails-button is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002287,
                          "message": "The `thumbnails-button` field must be an array."
                        }
                      ]
                    }
                  },
                  "toolbar.background invalid format": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002279,
                          "message": "The `toolbar.background` must contain a valid HTML color format."
                        }
                      ]
                    }
                  },
                  "fields.date.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002301,
                          "message": "The `fields.date.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.radiobutton is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002310,
                          "message": "The `fields.radiobutton` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.text.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002299,
                          "message": "The `fields.text.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "sender-info.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002208,
                          "message": "The `sender-info.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002357,
                          "message": "The `close-button.title.editor` must be an array."
                        }
                      ]
                    }
                  },
                  "close-button.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002219,
                          "message": "The `close-button.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "editing-tools.background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002281,
                          "message": "The `editing-tools.background` must be a string."
                        }
                      ]
                    }
                  },
                  "fields.email.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002307,
                          "message": "The `fields.email.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.stamp.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002317,
                          "message": "The `fields.stamp.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "registration.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002186,
                          "message": "The 'complete-page.registration.visibility' must be boolean."
                        }
                      ]
                    }
                  },
                  "support-chat.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002159,
                          "message": "The 'support-chat.visibility' must be a boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002356,
                          "message": "The `close-button.title.signing` must be an array."
                        }
                      ]
                    }
                  },
                  "document-name.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002275,
                          "message": "The `document-name.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.en too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002367,
                          "message": "The `close-button.title.editor.en` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.es too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002369,
                          "message": "The `close-button.title.editor.es` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.fr too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002368,
                          "message": "The `close-button.title.editor.fr` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "decline-button.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002221,
                          "message": "The `decline-button.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "decline-invite-text value not string ": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002135,
                          "message": "The `decline-invite-text.en` attribute must be a string."
                        }
                      ]
                    }
                  },
                  "default-fields.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002382,
                          "message": "The `default-fields.visibility` field must be a boolean."
                        }
                      ]
                    }
                  },
                  "field-settings.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002380,
                          "message": "The `field-settings.visibility` field must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.formula.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002319,
                          "message": "The `fields.formula.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "preview-button.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002286,
                          "message": "The `preview-button.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "button_download.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002188,
                          "message": "The 'complete-page.button_download.visibility' must be boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.en too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002364,
                          "message": "The `close-button.title.signing.en` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.es too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002366,
                          "message": "The `close-button.title.signing.es` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.fr too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002365,
                          "message": "The `close-button.title.signing.fr` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "complete-footer.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002150,
                          "message": "The 'complete-footer.visibility' must be a boolean."
                        }
                      ]
                    }
                  },
                  "continue-button.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002292,
                          "message": "The `continue-button.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.checkbox.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002309,
                          "message": "The `fields.checkbox.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.dropdown.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002315,
                          "message": "The `fields.dropdown.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.fullname.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002305,
                          "message": "The `fields.fullname.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.initials.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002303,
                          "message": "The `fields.initials.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "request-payment.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002290,
                          "message": "The `request-payment.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002361,
                          "message": "The `close-button.title.editor.en` must be a string."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.es not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002363,
                          "message": "The `close-button.title.editor.es` must be a string."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.fr not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002362,
                          "message": "The `close-button.title.editor.fr` must be a string."
                        }
                      ]
                    }
                  },
                  "fields.hyperlink.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002321,
                          "message": "The `fields.hyperlink.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.signature.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002297,
                          "message": "The `fields.signature.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "button_to_signnow.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002187,
                          "message": "The 'complete-page.button_to_signnow.visibility' must be boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002358,
                          "message": "The `close-button.title.signing.en` must be a string."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.es not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002360,
                          "message": "The `close-button.title.signing.es` must be a string."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.fr not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002359,
                          "message": "The `close-button.title.signing.fr` must be a string."
                        }
                      ]
                    }
                  },
                  "fields.attachment.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002313,
                          "message": "The `fields.attachment.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "manage-recipients.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002284,
                          "message": "The `manage-recipients.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "step-progress-bar.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002294,
                          "message": "The `step-progress-bar.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "thumbnails-button.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002288,
                          "message": "The `thumbnails-button.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "editing-tools.background incorrect format": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002282,
                          "message": "The `editing-tools.background` must contain a valid HTML color format."
                        }
                      ]
                    }
                  },
                  "fields.radiobutton.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002311,
                          "message": "The `fields.radiobutton.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.en utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002373,
                          "message": "UTF 4-byte characters in `close-button.title.editor.en` are not supported."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.es utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002375,
                          "message": "UTF 4-byte characters in `close-button.title.editor.es` are not supported."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.fr utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002374,
                          "message": "UTF 4-byte characters in `close-button.title.editor.fr` are not supported."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.en utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002370,
                          "message": "UTF 4-byte characters in `close-button.title.signing.en` are not supported."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.es utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002372,
                          "message": "UTF 4-byte characters in `close-button.title.signing.es` are not supported."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.fr utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002371,
                          "message": "UTF 4-byte characters in `close-button.title.signing.fr` are not supported."
                        }
                      ]
                    }
                  },
                  "guide-signers-only-through-required-fields type incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002377,
                          "message": "The 'signing-settings.guide-signers-only-through-required-fields' attribute must be a boolean."
                        }
                      ]
                    }
                  },
                  "auto-apply-signatures-and-initials-to-document-fields type incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002378,
                          "message": "The 'signing-settings.auto-apply-signatures-and-initials-to-document-fields' attribute must be a boolean."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/editor"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "date": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the date field in the fields panel."
                      },
                      "text": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the text field in the fields panel."
                      },
                      "email": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the email field in the fields panel."
                      },
                      "stamp": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the stamp field in the fields panel."
                      },
                      "formula": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the formula field in the fields panel."
                      },
                      "checkbox": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the checkbox field in the fields panel."
                      },
                      "dropdown": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the dropdown field in the fields panel."
                      },
                      "fullname": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the fullname field in the fields panel."
                      },
                      "initials": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the initials field in the fields panel."
                      },
                      "hyperlink": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the hyperlink field in the fields panel."
                      },
                      "signature": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the signature field in the fields panel."
                      },
                      "attachment": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the attachment field in the fields panel."
                      },
                      "radiobutton": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the radiobutton field in the fields panel."
                      }
                    },
                    "description": "Settings of the fields panel on the left sidebar. Available for embedded sending, embedded editor, and FreeForm invite."
                  },
                  "sidebar": {
                    "type": "object",
                    "properties": {
                      "background": {
                        "type": "string",
                        "description": "Background color for a signing session sidebar in HEX color code.",
                        "x-stoplight": {
                          "id": "dfw23c05aouig"
                        }
                      },
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether the sidebar should be visible or not.",
                        "x-stoplight": {
                          "id": "cbhiilylozzwa"
                        }
                      }
                    },
                    "x-stoplight": {
                      "id": "ual5b6jqnv2yk"
                    }
                  },
                  "toolbar": {
                    "type": "object",
                    "properties": {
                      "background": {
                        "type": "string",
                        "example": "#ffffff",
                        "description": "Background color of the toolbar in HEX color code."
                      },
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the toolbar in the header."
                      }
                    },
                    "description": "Configuration of the toolbar in the header. Available for embedded sending and embedded editor."
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show or hide the **More Actions** button."
                      }
                    },
                    "description": "Settings object that contains attributes for the **More Actions** dropdown button."
                  },
                  "auth-page": {
                    "type": "object",
                    "properties": {
                      "check-pin": {
                        "type": "object",
                        "properties": {
                          "phone": {
                            "type": "object",
                            "properties": {
                              "body-text": {
                                "type": "object",
                                "properties": {
                                  "en": {
                                    "type": "string",
                                    "example": "Enter the document password sent you by voice call or sms.",
                                    "maxLength": 900,
                                    "description": "Custom text in English.",
                                    "x-stoplight": {
                                      "id": "4oa16auoqf0fa"
                                    }
                                  },
                                  "es": {
                                    "type": "string",
                                    "example": "Introduce la contraseña del documento que te ha enviado por llamada de voz o sms.",
                                    "maxLength": 900,
                                    "description": "Custom text in Spanish.",
                                    "x-stoplight": {
                                      "id": "qokgt5uf2vw4o"
                                    }
                                  },
                                  "fr": {
                                    "type": "string",
                                    "example": "Entrez le mot de passe du document que vous avez reçu par appel vocal ou sms.",
                                    "maxLength": 900,
                                    "description": "Custom text in French.",
                                    "x-stoplight": {
                                      "id": "4cvtpf8q47o4q"
                                    }
                                  }
                                },
                                "description": "Custom text displayed for phone/SMS-protected invites.",
                                "x-stoplight": {
                                  "id": "4q0qjqd8pf2c4"
                                }
                              }
                            },
                            "description": "Customizes text for phone/SMS-protected invites.",
                            "x-stoplight": {
                              "id": "cskehlszefrtf"
                            }
                          },
                          "password": {
                            "type": "object",
                            "properties": {
                              "body-text": {
                                "type": "object",
                                "properties": {
                                  "en": {
                                    "type": "string",
                                    "example": "Enter the document password below to unlock the document.",
                                    "maxLength": 900,
                                    "description": "Custom text in English.",
                                    "x-stoplight": {
                                      "id": "mwaletfi0vnul"
                                    }
                                  },
                                  "es": {
                                    "type": "string",
                                    "example": "Introduce la contraseña del documento a continuación para desbloquear el documento.",
                                    "maxLength": 900,
                                    "description": "Custom text in Spanish.",
                                    "x-stoplight": {
                                      "id": "bej968vw1is16"
                                    }
                                  },
                                  "fr": {
                                    "type": "string",
                                    "example": "Entrez le mot de passe du document ci-dessous pour déverrouiller le document.",
                                    "maxLength": 900,
                                    "description": "Custom text in French.",
                                    "x-stoplight": {
                                      "id": "uvna8qsuswf5q"
                                    }
                                  }
                                },
                                "description": "Custom text displayed for password-protected invites.",
                                "x-stoplight": {
                                  "id": "t6a5i0upldgok"
                                }
                              }
                            },
                            "description": "Customizes text for password-protected invites.",
                            "x-stoplight": {
                              "id": "g52nok92gps0c"
                            }
                          }
                        },
                        "description": "Customizes text prompting the signer to enter the password.",
                        "x-stoplight": {
                          "id": "jw2603xbtkmm1"
                        }
                      },
                      "header-text": {
                        "type": "object",
                        "properties": {
                          "en": {
                            "type": "string",
                            "example": "{sender_email} invited you to sign {document_name}",
                            "maxLength": 300,
                            "description": "Custom header text in English. Placeholders `{sender_email}` and `{document_name}` are available.",
                            "x-stoplight": {
                              "id": "4wvo3ymnkgwil"
                            }
                          },
                          "es": {
                            "type": "string",
                            "example": "{sender_email} te ha invitado a firmar {document_name}",
                            "maxLength": 300,
                            "description": "Custom header text in Spanish. Placeholders `{sender_email}` and `{document_name}` are available.",
                            "x-stoplight": {
                              "id": "4jnzpj578fimk"
                            }
                          },
                          "fr": {
                            "type": "string",
                            "example": "{sender_email} vous a invité à signer {document_name}",
                            "maxLength": 300,
                            "description": "Custom header text in French. Placeholders `{sender_email}` and `{document_name}` are available.",
                            "x-stoplight": {
                              "id": "5vcuuipytn3bo"
                            }
                          }
                        },
                        "description": "Customizes a header text displayed to the signer on the two-factor authentication page.",
                        "x-stoplight": {
                          "id": "f9kxq68wp5ne6"
                        }
                      },
                      "request-pin": {
                        "type": "object",
                        "properties": {
                          "body-text": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "example": "Press the button bellow to have the password sent to you by voice call or sms message.",
                                "maxLength": 900,
                                "description": "Custom text with instructions in English.",
                                "x-stoplight": {
                                  "id": "49ulwxbc2viuv"
                                }
                              },
                              "es": {
                                "type": "string",
                                "example": "Pulsa el botón de abajo para que te envíen la contraseña por llamada de voz o mensaje sms.",
                                "maxLength": 900,
                                "description": "Custom text with instructions in Spanish.",
                                "x-stoplight": {
                                  "id": "bflr4t0j1btds"
                                }
                              },
                              "fr": {
                                "type": "string",
                                "example": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoyé par appel vocal ou sms.",
                                "maxLength": 900,
                                "description": "Custom text with instructions in French.",
                                "x-stoplight": {
                                  "id": "hn0sjdcxxfm9o"
                                }
                              }
                            },
                            "description": "Custom text displayed to the signer with instructions for obtaining a password.",
                            "x-stoplight": {
                              "id": "a4pamralydqlv"
                            }
                          }
                        },
                        "description": "Customizes text with instructions for obtaining a password via voice call or SMS. Displayed only for phone/SMS-protected invites.",
                        "x-stoplight": {
                          "id": "e48u7arbaiedw"
                        }
                      }
                    },
                    "description": "An object that customizes the authentication page for invites protected by two-factor authentication, including phone calls, SMS, and passwords set by the sender. The `auth-page` is available for document and document group field invites, as well as embedded document and document group invites.",
                    "x-stoplight": {
                      "id": "hnfivogqmv3dj"
                    }
                  },
                  "navigation": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show or hide the navigation elements."
                      }
                    },
                    "description": "Navigation object that contains attributes for the navigation elements."
                  },
                  "sender-info": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether the **Contact Sender** option on the **More Actions** menu should be visible or not.",
                        "x-stoplight": {
                          "id": "289i85fjcraw0"
                        }
                      },
                      "contact-name": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "The name of the sender that should appear if a signer clicks **Contact Sender**.",
                        "x-stoplight": {
                          "id": "pf0w0j6f6bx52"
                        }
                      },
                      "contact-email": {
                        "type": "string",
                        "maxLength": 254,
                        "description": "The email of the sender that should appear if a signer clicks **Contact Sender**.",
                        "x-stoplight": {
                          "id": "qee9k36oyhcv4"
                        }
                      }
                    },
                    "x-stoplight": {
                      "id": "k7o9kpg4xwotg"
                    }
                  },
                  "close-button": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "object",
                        "properties": {
                          "editor": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "example": "Save and Close",
                                "maxLength": 50,
                                "description": "Button title in English."
                              },
                              "es": {
                                "type": "string",
                                "example": "Guardar y cerrar",
                                "maxLength": 50,
                                "description": "Button title in Spanish."
                              },
                              "fr": {
                                "type": "string",
                                "example": "Enregistrer et fermer",
                                "maxLength": 50,
                                "description": "Button title in French."
                              }
                            },
                            "description": "Customizes text of the **Save and Close** button in the editor. Available for the embedded editor and embedded sending mode."
                          },
                          "signing": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "example": "Save Progress and Finish Later",
                                "maxLength": 50,
                                "description": "Text in English for signing session."
                              },
                              "es": {
                                "type": "string",
                                "example": "Guardar progresos y terminar más tarde",
                                "maxLength": 50,
                                "description": "Text in Spanish for signing session."
                              },
                              "fr": {
                                "type": "string",
                                "example": "Enregistrer la progression et terminer plus tard",
                                "maxLength": 50,
                                "description": "Text in French for signing session."
                              }
                            },
                            "description": "Customizes text of the **Save Progress and Finish Later** option during the signing session."
                          }
                        },
                        "description": "Localized text for the closing options in signing session, embedded sending and editor modes."
                      },
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether the **Close** button (in the header in view mode) or **Save progress and Finish Later** option (in the **More Actions** menu during the signing session) should be visible.",
                        "x-stoplight": {
                          "id": "zvayj3d7fhuix"
                        }
                      }
                    },
                    "description": "Object that defines the visibility and text for the closing options.",
                    "x-stoplight": {
                      "id": "eyv4wpbrp2zg0"
                    }
                  },
                  "progress-bar": {
                    "type": "object",
                    "properties": {
                      "default-color": {
                        "type": "string",
                        "description": "Default color of the progress bar."
                      },
                      "completed-color": {
                        "type": "string",
                        "description": "Progress bar color when the signer has completed or partially completed the invite to sign."
                      }
                    },
                    "description": "Progress bar object that contains attributes for the progress bar elements."
                  },
                  "support-chat": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "string",
                        "description": "Whether the support chat icon should be visible or not.",
                        "x-stoplight": {
                          "id": "7gl0te77gvzxq"
                        }
                      }
                    },
                    "x-stoplight": {
                      "id": "ebqbj4norxtiq"
                    }
                  },
                  "accessibility": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "Text color of the button in HEX color code."
                      },
                      "border": {
                        "type": "string",
                        "description": "Border color of the button in HEX color code."
                      },
                      "enabled": {
                        "type": "boolean",
                        "description": "Whether to enable or disable the accessibility mode. By default accessibility is off."
                      },
                      "background": {
                        "type": "string",
                        "description": "Background color of the button in HEX color code."
                      },
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show or hide the accessibility option in the **More Actions** menu."
                      },
                      "hover-color": {
                        "type": "string",
                        "description": "Text color of the button in HEX color code when the accessibility button is hovered over."
                      },
                      "active-color": {
                        "type": "string",
                        "description": "Text color of the button in HEX color code when accessibility is on."
                      },
                      "hover-border": {
                        "type": "string",
                        "description": "Border button color in HEX color code when the accessibility button is hovered over."
                      },
                      "active-border": {
                        "type": "string",
                        "description": "Border button color in HEX color code when accessibility is on."
                      },
                      "hover-background": {
                        "type": "string",
                        "description": "Background button color in HEX color code when the accessibility button is hovered over."
                      },
                      "active-background": {
                        "type": "string",
                        "description": "Background button color in HEX color code when accessibility is on."
                      }
                    },
                    "description": "Accessibility object that contains attributes for the accessibility button."
                  },
                  "complete-page": {
                    "type": "object",
                    "properties": {
                      "decline": {
                        "type": "object",
                        "properties": {
                          "body-text": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "description": "Decline main text in English.",
                                "x-stoplight": {
                                  "id": "vkkeal2b63cu2"
                                }
                              },
                              "es": {
                                "type": "string",
                                "description": "Decline main text in Spanish.",
                                "x-stoplight": {
                                  "id": "mrlyqw7qz40ip"
                                }
                              },
                              "fr": {
                                "type": "string",
                                "description": "Decline main text in French.",
                                "x-stoplight": {
                                  "id": "kid0frd5ow5x5"
                                }
                              }
                            },
                            "x-stoplight": {
                              "id": "3zhwaon6m8vv6"
                            }
                          },
                          "header-text": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "description": "Decline header text in English.",
                                "x-stoplight": {
                                  "id": "c3r8ofcv8c7dv"
                                }
                              },
                              "es": {
                                "type": "string",
                                "description": "Decline header text in Spanish.",
                                "x-stoplight": {
                                  "id": "5sm25yrhub8gt"
                                }
                              },
                              "fr": {
                                "type": "string",
                                "description": "Decline header text in French.",
                                "x-stoplight": {
                                  "id": "b90rp3w5uspt4"
                                }
                              }
                            },
                            "x-stoplight": {
                              "id": "68zw7e312q8z6"
                            }
                          }
                        },
                        "description": "Custom text that appears on the page after a signer confirms declining a document.",
                        "x-stoplight": {
                          "id": "8xg1en26ebiyk"
                        }
                      },
                      "success": {
                        "type": "object",
                        "properties": {
                          "body-text": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "description": "Success main text in English.",
                                "x-stoplight": {
                                  "id": "dcj7r7duf646i"
                                }
                              },
                              "es": {
                                "type": "string",
                                "description": "Success main text in Spanish.",
                                "x-stoplight": {
                                  "id": "gzn09j5oj9ekd"
                                }
                              },
                              "fr": {
                                "type": "string",
                                "description": "Success main text in French.",
                                "x-stoplight": {
                                  "id": "tp83obzw5s19t"
                                }
                              }
                            },
                            "x-stoplight": {
                              "id": "3sfb2cjh51h6w"
                            }
                          },
                          "header-text": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "description": "Success header text in English.",
                                "x-stoplight": {
                                  "id": "kr41kownxnnon"
                                }
                              },
                              "es": {
                                "type": "string",
                                "description": "Success header text in Spanish.",
                                "x-stoplight": {
                                  "id": "r3u8ak9xo3iwd"
                                }
                              },
                              "fr": {
                                "type": "string",
                                "description": "Success header text in French.",
                                "x-stoplight": {
                                  "id": "tb36sg27503ze"
                                }
                              }
                            },
                            "x-stoplight": {
                              "id": "ellulde3wxnhs"
                            }
                          }
                        },
                        "description": "Custom text that appears on the page after a signer completes a document.",
                        "x-stoplight": {
                          "id": "6w4mjfm4tmjeq"
                        }
                      },
                      "registration": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "description": "Whether the registration button on the completion page should be visible or not for new users.",
                            "x-stoplight": {
                              "id": "y2t92udtryqer"
                            }
                          }
                        },
                        "x-stoplight": {
                          "id": "hk7wyo37486wz"
                        }
                      },
                      "button-download": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "description": "Whether the button to download a document on the completion page should be visible or not.",
                            "x-stoplight": {
                              "id": "oa7gpv36dxorx"
                            }
                          }
                        },
                        "x-stoplight": {
                          "id": "9ut00exqazhbh"
                        }
                      },
                      "button-to-signnow": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "description": "Whether the button with a link to signNow on the completion page should be visible or not.",
                            "x-stoplight": {
                              "id": "6dwo5wh7o9t2d"
                            }
                          }
                        },
                        "x-stoplight": {
                          "id": "rl3gakid230k7"
                        }
                      }
                    },
                    "description": "Customization of the page that opens after a document is signed or declined.",
                    "x-stoplight": {
                      "id": "43nr26s9hjq93"
                    }
                  },
                  "document-name": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the document name in the header."
                      }
                    },
                    "description": "Configuration of the document name. Available for embedded signing, embedded sending (in the editor), embedded editor, FreeForm invite, and embedded view."
                  },
                  "editing-tools": {
                    "type": "object",
                    "properties": {
                      "background": {
                        "type": "string",
                        "example": "#ffffff",
                        "description": "Background color of the editing tools panel in HEX color code."
                      }
                    },
                    "description": "Configuration of the left-side editing tools panel. Available for embedded sending, embedded editor, and FreeForm invite."
                  },
                  "decline-button": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether the **Decline** option should be visible in the **More Actions** menu.",
                        "x-stoplight": {
                          "id": "3kt4nqwxrzdvz"
                        }
                      }
                    },
                    "description": "An object that determines the availability of the decline option to the recipient.",
                    "x-stoplight": {
                      "id": "x0mrascm441s4"
                    }
                  },
                  "default-fields": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "example": true,
                        "description": "Whether to show the Default fields tab in the left sidebar. When set to `false`, the Custom fields tab becomes the only tab and the Default / Custom fields tab switcher disappears. The default value is `true`."
                      }
                    },
                    "description": "Configuration of the Default fields tab. Available for embedded sending and embedded editor."
                  },
                  "field-settings": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "example": true,
                        "description": "Whether to show the Element settings button on the right side of the header. The default value is `true`."
                      }
                    },
                    "description": "Configuration of the Element settings in the right sidebar. The Element settings allows users to customize field settings. Available for embedded sending and embedded editor."
                  },
                  "page-dimension": {
                    "type": "object",
                    "properties": {
                      "percent": {
                        "type": "integer",
                        "maximum": 300,
                        "minimum": 10,
                        "multipleOf": 10,
                        "description": "The dimension of the signing session page when it is opened in percents.",
                        "x-stoplight": {
                          "id": "nka7pgnfcsysp"
                        }
                      }
                    },
                    "x-stoplight": {
                      "id": "7ejue4iirylw5"
                    }
                  },
                  "preview-button": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the Open Preview button in the toolbar."
                      }
                    },
                    "description": "Configuration of the Open Preview button in the toolbar. Available for embedded sending and embedded editor."
                  },
                  "complete-footer": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether the footer about completion of all the required fields should be visible or not.",
                        "x-stoplight": {
                          "id": "m4omjtp18wh9o"
                        }
                      },
                      "custom-text": {
                        "type": "object",
                        "properties": {
                          "en": {
                            "type": "string",
                            "description": "Footer text in English.",
                            "x-stoplight": {
                              "id": "btazkcpp69eqj"
                            }
                          },
                          "es": {
                            "type": "string",
                            "description": "Footer text in Spanish.",
                            "x-stoplight": {
                              "id": "00c1qphlr2r8c"
                            }
                          },
                          "fr": {
                            "type": "string",
                            "description": "Footer text in French.",
                            "x-stoplight": {
                              "id": "jx1s8775e5xnw"
                            }
                          }
                        },
                        "x-stoplight": {
                          "id": "kgpixg1yf4l0r"
                        }
                      }
                    },
                    "x-stoplight": {
                      "id": "dg63v2m14zk2l"
                    }
                  },
                  "continue-button": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the Continue button in the header."
                      }
                    },
                    "description": "Configuration of the Continue button. Available for embedded sending."
                  },
                  "download-button": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Defines the visibility of the **Download** and **History** buttons during the signing session and **Download**, **Download With History** and **Document History** buttons in view mode.",
                        "x-stoplight": {
                          "id": "n8trpe9qruu9e"
                        }
                      }
                    },
                    "description": "An object that defines the download options for the recipient.",
                    "x-stoplight": {
                      "id": "uo0kft5jyb4xz"
                    }
                  },
                  "request-payment": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the Payment Request option in the settings dropdown."
                      }
                    },
                    "description": "Configuration of the request payment option in the editor. Available for embedded sending and embedded editor."
                  },
                  "signing-settings": {
                    "type": "object",
                    "properties": {
                      "guide-signers-only-through-required-fields": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to guide signers through required fields only. `true` - the **Go Through Required Fields** checkbox is checked in **More Actions**; the signer will be guided only through required fields; `false` – the **Go Through Required Fields** checkbox is not checked in **More Actions**; the signer will be guided through all fields."
                      },
                      "auto-apply-signatures-and-initials-to-document-fields": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to offer a signer to automatically apply signature and initials to all corresponding empty fields in a document after filling out the first field. `true` – the signer will be prompted to automatically fill all empty signature and initials fields after completing the first one; `false` – the signer will need to fill each signature and initials field individually; no prompt will be shown. "
                      }
                    },
                    "description": "Settings configured for the signing experience."
                  },
                  "manage-recipients": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the Manage Recipients link."
                      }
                    },
                    "description": "Configuration of the Manage Recipients link. Available for embedded sending and embedded editor."
                  },
                  "step-progress-bar": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the steps progress bar in the header."
                      }
                    },
                    "description": "Configuration of the steps progress bar. Available for embedded sending and embedded editor."
                  },
                  "thumbnails-button": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the Thumbnails button in the toolbar."
                      }
                    },
                    "description": "Configuration of the Thumbnails button in the toolbar. Available for embedded sending and embedded editor."
                  },
                  "decline-invite-text": {
                    "type": "object",
                    "properties": {
                      "en": {
                        "type": "string",
                        "description": "Custom welcome message in English that can be updated. Placeholders {invite_owner_email} and {document_name} are available.",
                        "x-stoplight": {
                          "id": "m4hvlgiy6u7h2"
                        }
                      },
                      "es": {
                        "type": "string",
                        "description": "Custom welcome message in Spanish that can be updated. Placeholders {invite_owner_email} and {document_name} are available.",
                        "x-stoplight": {
                          "id": "0508s3hxiq654"
                        }
                      },
                      "fr": {
                        "type": "string",
                        "description": "Custom welcome message in French that can be updated. Placeholders {invite_owner_email} and {document_name} are available.",
                        "x-stoplight": {
                          "id": "hqzluyldpyp7d"
                        }
                      }
                    },
                    "description": "Custom message in the pop-up that appears when a signer clicks the **Decline** button. The signer needs to confirm declining the document.",
                    "x-stoplight": {
                      "id": "0hj26a19u3z55"
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "settings": {
                      "visibility": "true|false"
                    },
                    "navigation": {
                      "visibility": "true|false"
                    },
                    "progress-bar": {
                      "default-color": "#232323",
                      "completed-color": "#232323"
                    },
                    "accessibility": {
                      "color": "#232323",
                      "border": "#232323",
                      "background": "#232323",
                      "visibility": "true|false",
                      "hover-color": "#232323",
                      "active-color": "#232323",
                      "hover-border": "#232323",
                      "active-border": "#232323",
                      "hover-background": "#232323",
                      "active-background": "#232323"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "fields": {
                      "date": {
                        "visibility": true
                      },
                      "text": {
                        "visibility": true
                      },
                      "email": {
                        "visibility": true
                      },
                      "stamp": {
                        "visibility": true
                      },
                      "formula": {
                        "visibility": true
                      },
                      "checkbox": {
                        "visibility": true
                      },
                      "dropdown": {
                        "visibility": true
                      },
                      "fullname": {
                        "visibility": true
                      },
                      "initials": {
                        "visibility": true
                      },
                      "hyperlink": {
                        "visibility": true
                      },
                      "signature": {
                        "visibility": true
                      },
                      "attachment": {
                        "visibility": true
                      },
                      "radiobutton": {
                        "visibility": true
                      }
                    },
                    "sidebar": {
                      "background": "#ffffff",
                      "visibility": true
                    },
                    "toolbar": {
                      "background": "#ffffff",
                      "visibility": true
                    },
                    "settings": {
                      "visibility": true
                    },
                    "auth-page": {
                      "check-pin": {
                        "phone": {
                          "body-text": {
                            "en": "Enter the document password sent you by voice call or sms.",
                            "es": "Introduce la contraseña del documento que te ha enviado por llamada de voz o sms.",
                            "fr": "Entrez le mot de passe du document que vous avez reçu par appel vocal ou sms."
                          }
                        },
                        "password": {
                          "body-text": {
                            "en": "Enter the document password below to unlock the document.",
                            "es": "Introduce la contraseña del documento a continuación para desbloquear el documento.",
                            "fr": "Entrez le mot de passe du document ci-dessous pour déverrouiller le document."
                          }
                        }
                      },
                      "header-text": {
                        "en": "{sender_email} invited you to sign {document_name}",
                        "es": "{sender_email} te ha invitado a firmar {document_name}",
                        "fr": "{sender_email} vous a invité à signer {document_name}"
                      },
                      "request-pin": {
                        "body-text": {
                          "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
                          "es": "Pulsa el botón de abajo para que te envíen la contraseña por llamada de voz o mensaje sms.",
                          "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoyé par appel vocal ou sms."
                        }
                      }
                    },
                    "navigation": {
                      "visibility": true
                    },
                    "sender-info": {
                      "visibility": true,
                      "contact-name": "Contact Name",
                      "contact-email": "contact@email.com"
                    },
                    "close-button": {
                      "title": {
                        "editor": {
                          "en": "Save and Close",
                          "es": "Guardar y cerrar",
                          "fr": "Enregistrer et fermer"
                        },
                        "signing": {
                          "en": "Save Progress and Finish Later",
                          "es": "Guardar progresos y terminar más tarde",
                          "fr": "Enregistrer la progression et terminer plus tard"
                        }
                      },
                      "visibility": true
                    },
                    "progress-bar": {
                      "default-color": "#e3e6e9",
                      "completed-color": "#0777cf"
                    },
                    "support-chat": {
                      "visibility": true
                    },
                    "accessibility": {
                      "color": "#546470",
                      "border": "#ffffff",
                      "enabled": false,
                      "background": "#ffffff",
                      "visibility": true,
                      "hover-color": "#546470",
                      "active-color": "#546470",
                      "hover-border": "#f1f2f4",
                      "active-border": "#dadee2",
                      "hover-background": "#f1f2f4",
                      "active-background": "#dadee2"
                    },
                    "complete-page": {
                      "decline": {
                        "body-text": {
                          "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you’d like to. Contact the sender to find out what to do next.",
                          "es": "No has dado tu consentimiento para hacer negocios electrónicamente con el remitente. La Divulgación de Firma Electrónica aún se puede aceptar antes de que el remitente cancele la invitación. Puedes encontrar la invitación en tu bandeja de entrada y en la cuenta de signNow. Aún puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qué hacer a continuación.",
                          "fr": "Vous n’avez pas consenti à traiter par voie électronique avec l’expéditeur. La Divulgation par signature électronique peut toujours être acceptée avant que l’expéditeur n’annule l’invitation. L’invitation se trouve dans votre boîte de réception et dans votre compte signNow. Vous pouvez néanmoins télécharger le document si vous le souhaitez. Contactez l’expéditeur pour connaître les prochaines étapes."
                        },
                        "header-text": {
                          "en": "You've declined the Electronic Signature Disclosure agreement",
                          "es": "Has rechazado el acuerdo de Divulgación de firmas electrónicas",
                          "fr": "Vous avez refusé l’accord de Divulgation par signature électronique"
                        }
                      },
                      "success": {
                        "body-text": {
                          "en": "The sender will be notified and receive the signed document.",
                          "es": "El remitente recibirá una notificación y el documento firmado. También se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
                          "fr": "L'expéditeur sera informé et recevra le document signé. Une copie a également été envoyée dans votre boîte de réception et enregistrée dans votre compte signNow."
                        },
                        "header-text": {
                          "en": "You've filled out and signed the document",
                          "es": "Has completado y firmado el documento",
                          "fr": "Vous avez rempli et signé le document"
                        }
                      },
                      "registration": {
                        "visibility": true
                      },
                      "button-download": {
                        "visibility": true
                      },
                      "button-to-signnow": {
                        "visibility": false
                      }
                    },
                    "document-name": {
                      "visibility": true
                    },
                    "editing-tools": {
                      "background": "#ffffff"
                    },
                    "decline-button": {
                      "visibility": true
                    },
                    "default-fields": {
                      "visibility": true
                    },
                    "field-settings": {
                      "visibility": true
                    },
                    "page-dimension": {
                      "percent": 150
                    },
                    "preview-button": {
                      "visibility": true
                    },
                    "complete-footer": {
                      "visibility": true,
                      "custom-text": {
                        "en": "You've completed all required fields. Review your document and click Finish.",
                        "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
                        "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
                      }
                    },
                    "continue-button": {
                      "visibility": true
                    },
                    "download-button": {
                      "visibility": true
                    },
                    "request-payment": {
                      "visibility": true
                    },
                    "signing-settings": {
                      "guide-signers-only-through-required-fields": true,
                      "auto-apply-signatures-and-initials-to-document-fields": true
                    },
                    "manage-recipients": {
                      "visibility": true
                    },
                    "step-progress-bar": {
                      "visibility": true
                    },
                    "thumbnails-button": {
                      "visibility": true
                    },
                    "decline-invite-text": {
                      "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
                      "es": "Estás a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perderán.",
                      "fr": "Vous êtes sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apportées à ce document seront perdues."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-editor",
        "summary": "Get editor brand resource",
        "description": "This endpoint allows users to retrieve branding for editor resource.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "fields": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "text": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "email": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "stamp": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "formula": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "checkbox": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "dropdown": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "fullname": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "initials": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "hyperlink": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "signature": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "attachment": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "radiobutton": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            }
                          }
                        },
                        "sidebar": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "type": "string"
                            },
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "toolbar": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "type": "string"
                            }
                          }
                        },
                        "settings": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "navigation": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "sender-info": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            },
                            "contact-name": {
                              "type": "string"
                            },
                            "contact-email": {
                              "type": "string"
                            }
                          }
                        },
                        "close-button": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "object",
                              "properties": {
                                "editor": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "signing": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            },
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "progress-bar": {
                          "type": "object",
                          "properties": {
                            "default-color": {
                              "type": "string"
                            },
                            "completed-color": {
                              "type": "string"
                            }
                          }
                        },
                        "support-chat": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "accessibility": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string"
                            },
                            "border": {
                              "type": "string"
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "background": {
                              "type": "string"
                            },
                            "visibility": {
                              "type": "boolean"
                            },
                            "hover-color": {
                              "type": "string"
                            },
                            "active-color": {
                              "type": "string"
                            },
                            "hover-border": {
                              "type": "string"
                            },
                            "active-border": {
                              "type": "string"
                            },
                            "hover-background": {
                              "type": "string"
                            },
                            "active-background": {
                              "type": "string"
                            }
                          }
                        },
                        "complete-page": {
                          "type": "object",
                          "properties": {
                            "decline": {
                              "type": "object",
                              "properties": {
                                "body-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "header-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            },
                            "success": {
                              "type": "object",
                              "properties": {
                                "body-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "header-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            },
                            "registration": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "button-download": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "button-to-signnow": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            }
                          }
                        },
                        "document-name": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "editing-tools": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "type": "string"
                            }
                          }
                        },
                        "decline-button": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "default-fields": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "field-settings": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "page-dimension": {
                          "type": "object",
                          "properties": {
                            "percent": {
                              "type": "integer"
                            }
                          }
                        },
                        "preview-button": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "complete-footer": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            },
                            "custom-text": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                },
                                "fr": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "request-payment": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "signing-settings": {
                          "type": "object",
                          "properties": {
                            "guide-signers-only-through-required-fields": {
                              "type": "boolean"
                            },
                            "auto-apply-signatures-and-initials-to-document-fields": {
                              "type": "boolean"
                            }
                          }
                        },
                        "step-progress-bar": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "decline-invite-text": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "string"
                            },
                            "es": {
                              "type": "string"
                            },
                            "fr": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "fields": {
                          "date": {
                            "visibility": true
                          },
                          "text": {
                            "visibility": true
                          },
                          "email": {
                            "visibility": true
                          },
                          "stamp": {
                            "visibility": true
                          },
                          "formula": {
                            "visibility": true
                          },
                          "checkbox": {
                            "visibility": true
                          },
                          "dropdown": {
                            "visibility": true
                          },
                          "fullname": {
                            "visibility": true
                          },
                          "initials": {
                            "visibility": true
                          },
                          "hyperlink": {
                            "visibility": true
                          },
                          "signature": {
                            "visibility": true
                          },
                          "attachment": {
                            "visibility": true
                          },
                          "radiobutton": {
                            "visibility": true
                          }
                        },
                        "sidebar": {
                          "background": "#ffffff",
                          "visibility": true
                        },
                        "toolbar": {
                          "background": "#c27ba0"
                        },
                        "settings": {
                          "visibility": true
                        },
                        "navigation": {
                          "visibility": true
                        },
                        "sender-info": {
                          "visibility": true,
                          "contact-name": "Contact Name",
                          "contact-email": "contact@email.com"
                        },
                        "close-button": {
                          "title": {
                            "editor": {
                              "en": "Save and Close",
                              "es": "Guardar y cerrar",
                              "fr": "Enregistrer et fermer"
                            },
                            "signing": {
                              "en": "Save Progress and Finish Later",
                              "es": "Guardar progresos y terminar más tarde",
                              "fr": "Enregistrer la progression et terminer plus tard"
                            }
                          },
                          "visibility": true
                        },
                        "progress-bar": {
                          "default-color": "#e3e6e9",
                          "completed-color": "#0777cf"
                        },
                        "support-chat": {
                          "visibility": true
                        },
                        "accessibility": {
                          "color": "#546470",
                          "border": "#ffffff",
                          "enabled": false,
                          "background": "#ffffff",
                          "visibility": true,
                          "hover-color": "#546470",
                          "active-color": "#546470",
                          "hover-border": "#f1f2f4",
                          "active-border": "#dadee2",
                          "hover-background": "#f1f2f4",
                          "active-background": "#dadee2"
                        },
                        "complete-page": {
                          "decline": {
                            "body-text": {
                              "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you’d like to. Contact the sender to find out what to do next.",
                              "es": "No has dado tu consentimiento para hacer negocios electrónicamente con el remitente. La Divulgación de Firma Electrónica aún se puede aceptar antes de que el remitente cancele la invitación. Puedes encontrar la invitación en tu bandeja de entrada y en la cuenta de signNow. Aún puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qué hacer a continuación.",
                              "fr": "Vous n’avez pas consenti à traiter par voie électronique avec l’expéditeur. La Divulgation par signature électronique peut toujours être acceptée avant que l’expéditeur n’annule l’invitation. L’invitation se trouve dans votre boîte de réception et dans votre compte signNow. Vous pouvez néanmoins télécharger le document si vous le souhaitez. Contactez l’expéditeur pour connaître les prochaines étapes."
                            },
                            "header-text": {
                              "en": "You've declined the Electronic Signature Disclosure agreement",
                              "es": "Has rechazado el acuerdo de Divulgación de firmas electrónicas",
                              "fr": "Vous avez refusé l’accord de Divulgation par signature électronique"
                            }
                          },
                          "success": {
                            "body-text": {
                              "en": "The sender will be notified and receive the signed document.",
                              "es": "El remitente recibirá una notificación y el documento firmado. También se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
                              "fr": "L'expéditeur sera informé et recevra le document signé. Une copie a également été envoyée dans votre boîte de réception et enregistrée dans votre compte signNow."
                            },
                            "header-text": {
                              "en": "You've filled out and signed the document",
                              "es": "Has completado y firmado el documento",
                              "fr": "Vous avez rempli et signé le document"
                            }
                          },
                          "registration": {
                            "visibility": true
                          },
                          "button-download": {
                            "visibility": true
                          },
                          "button-to-signnow": {
                            "visibility": false
                          }
                        },
                        "document-name": {
                          "visibility": true
                        },
                        "editing-tools": {
                          "background": "#e06666"
                        },
                        "decline-button": {
                          "visibility": true
                        },
                        "default-fields": {
                          "visibility": true
                        },
                        "field-settings": {
                          "visibility": true
                        },
                        "page-dimension": {
                          "percent": 150
                        },
                        "preview-button": {
                          "visibility": true
                        },
                        "complete-footer": {
                          "visibility": true,
                          "custom-text": {
                            "en": "You've completed all required fields. Review your document and click Finish.",
                            "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
                            "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
                          }
                        },
                        "request-payment": {
                          "visibility": true
                        },
                        "signing-settings": {
                          "guide-signers-only-through-required-fields": true,
                          "auto-apply-signatures-and-initials-to-document-fields": true
                        },
                        "step-progress-bar": {
                          "visibility": true
                        },
                        "decline-invite-text": {
                          "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
                          "es": "Estás a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perderán.",
                          "fr": "Vous êtes sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apportées à ce document seront perdues."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "fields": {
                          "date": {
                            "visibility": true
                          },
                          "text": {
                            "visibility": true
                          },
                          "email": {
                            "visibility": true
                          },
                          "stamp": {
                            "visibility": true
                          },
                          "formula": {
                            "visibility": true
                          },
                          "checkbox": {
                            "visibility": true
                          },
                          "dropdown": {
                            "visibility": true
                          },
                          "fullname": {
                            "visibility": true
                          },
                          "initials": {
                            "visibility": true
                          },
                          "hyperlink": {
                            "visibility": true
                          },
                          "signature": {
                            "visibility": true
                          },
                          "attachment": {
                            "visibility": true
                          },
                          "radiobutton": {
                            "visibility": true
                          }
                        },
                        "sidebar": {
                          "background": "#ffffff",
                          "visibility": true
                        },
                        "toolbar": {
                          "background": "#ffffff",
                          "visibility": true
                        },
                        "settings": {
                          "visibility": true
                        },
                        "navigation": {
                          "visibility": true
                        },
                        "sender-info": {
                          "visibility": true,
                          "contact-name": "Contact Name",
                          "contact-email": "contact@email.com"
                        },
                        "close-button": {
                          "title": {
                            "editor": {
                              "en": "Save and Close",
                              "es": "Guardar y cerrar",
                              "fr": "Enregistrer et fermer"
                            },
                            "signing": {
                              "en": "Save Progress and Finish Later",
                              "es": "Guardar progresos y terminar más tarde",
                              "fr": "Enregistrer la progression et terminer plus tard"
                            }
                          },
                          "visibility": true
                        },
                        "progress-bar": {
                          "default-color": "#e3e6e9",
                          "completed-color": "#0777cf"
                        },
                        "support-chat": {
                          "visibility": true
                        },
                        "accessibility": {
                          "color": "#546470",
                          "border": "#ffffff",
                          "enabled": true,
                          "background": "#ffffff",
                          "visibility": true,
                          "hover-color": "#546470",
                          "active-color": "#546470",
                          "hover-border": "#f1f2f4",
                          "active-border": "#dadee2",
                          "hover-background": "#f1f2f4",
                          "active-background": "#dadee2"
                        },
                        "complete-page": {
                          "decline": {
                            "body-text": {
                              "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you’d like to. Contact the sender to find out what to do next.",
                              "es": "No has dado tu consentimiento para hacer negocios electrónicamente con el remitente. La Divulgación de Firma Electrónica aún se puede aceptar antes de que el remitente cancele la invitación. Puedes encontrar la invitación en tu bandeja de entrada y en la cuenta de signNow. Aún puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qué hacer a continuación.",
                              "fr": "Vous n’avez pas consenti à traiter par voie électronique avec l’expéditeur. La Divulgation par signature électronique peut toujours être acceptée avant que l’expéditeur n’annule l’invitation. L’invitation se trouve dans votre boîte de réception et dans votre compte signNow. Vous pouvez néanmoins télécharger le document si vous le souhaitez. Contactez l’expéditeur pour connaître les prochaines étapes."
                            },
                            "header-text": {
                              "en": "You've declined the Electronic Signature Disclosure agreement",
                              "es": "Has rechazado el acuerdo de Divulgación de firmas electrónicas",
                              "fr": "Vous avez refusé l’accord de Divulgation par signature électronique"
                            }
                          },
                          "success": {
                            "body-text": {
                              "en": "The sender will be notified and receive the signed document.",
                              "es": "El remitente recibirá una notificación y el documento firmado. También se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
                              "fr": "L'expéditeur sera informé et recevra le document signé. Une copie a également été envoyée dans votre boîte de réception et enregistrée dans votre compte signNow."
                            },
                            "header-text": {
                              "en": "You've filled out and signed the document",
                              "es": "Has completado y firmado el documento",
                              "fr": "Vous avez rempli et signé le document"
                            }
                          },
                          "registration": {
                            "visibility": true
                          },
                          "button-download": {
                            "visibility": true
                          },
                          "button-to-signnow": {
                            "visibility": false
                          }
                        },
                        "document-name": {
                          "visibility": true
                        },
                        "editing-tools": {
                          "background": "#ffffff"
                        },
                        "decline-button": {
                          "visibility": true
                        },
                        "default-fields": {
                          "visibility": true
                        },
                        "field-settings": {
                          "visibility": true
                        },
                        "page-dimension": {
                          "percent": 150
                        },
                        "preview-button": {
                          "visibility": true
                        },
                        "complete-footer": {
                          "visibility": true,
                          "custom-text": {
                            "en": "You've completed all required fields. Review your document and click Finish.",
                            "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
                            "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
                          }
                        },
                        "request-payment": {
                          "visibility": true
                        },
                        "signing-settings": {
                          "guide-signers-only-through-required-fields": true,
                          "auto-apply-signatures-and-initials-to-document-fields": true
                        },
                        "step-progress-bar": {
                          "visibility": true
                        },
                        "decline-invite-text": {
                          "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
                          "es": "Estás a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perderán.",
                          "fr": "Vous êtes sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apportées à ce document seront perdues."
                        }
                      }
                    }
                  },
                  "Example 1": {
                    "value": {
                      "data": {
                        "fields": {
                          "date": {
                            "visibility": true
                          },
                          "text": {
                            "visibility": true
                          },
                          "email": {
                            "visibility": true
                          },
                          "stamp": {
                            "visibility": true
                          },
                          "formula": {
                            "visibility": true
                          },
                          "checkbox": {
                            "visibility": true
                          },
                          "dropdown": {
                            "visibility": true
                          },
                          "fullname": {
                            "visibility": true
                          },
                          "initials": {
                            "visibility": true
                          },
                          "hyperlink": {
                            "visibility": true
                          },
                          "signature": {
                            "visibility": true
                          },
                          "attachment": {
                            "visibility": true
                          },
                          "radiobutton": {
                            "visibility": true
                          }
                        },
                        "sidebar": {
                          "background": "#ffffff",
                          "visibility": true
                        },
                        "toolbar": {
                          "background": "#c27ba0"
                        },
                        "settings": {
                          "visibility": true
                        },
                        "navigation": {
                          "visibility": true
                        },
                        "sender-info": {
                          "visibility": true,
                          "contact-name": "Contact Name",
                          "contact-email": "contact@email.com"
                        },
                        "close-button": {
                          "title": {
                            "editor": {
                              "en": "Save and Close",
                              "es": "Guardar y cerrar",
                              "fr": "Enregistrer et fermer"
                            },
                            "signing": {
                              "en": "Save Progress and Finish Later",
                              "es": "Guardar progresos y terminar más tarde",
                              "fr": "Enregistrer la progression et terminer plus tard"
                            }
                          },
                          "visibility": true
                        },
                        "progress-bar": {
                          "default-color": "#e3e6e9",
                          "completed-color": "#0777cf"
                        },
                        "support-chat": {
                          "visibility": true
                        },
                        "accessibility": {
                          "color": "#546470",
                          "border": "#ffffff",
                          "enabled": false,
                          "background": "#ffffff",
                          "visibility": true,
                          "hover-color": "#546470",
                          "active-color": "#546470",
                          "hover-border": "#f1f2f4",
                          "active-border": "#dadee2",
                          "hover-background": "#f1f2f4",
                          "active-background": "#dadee2"
                        },
                        "complete-page": {
                          "decline": {
                            "body-text": {
                              "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you’d like to. Contact the sender to find out what to do next.",
                              "es": "No has dado tu consentimiento para hacer negocios electrónicamente con el remitente. La Divulgación de Firma Electrónica aún se puede aceptar antes de que el remitente cancele la invitación. Puedes encontrar la invitación en tu bandeja de entrada y en la cuenta de signNow. Aún puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qué hacer a continuación.",
                              "fr": "Vous n’avez pas consenti à traiter par voie électronique avec l’expéditeur. La Divulgation par signature électronique peut toujours être acceptée avant que l’expéditeur n’annule l’invitation. L’invitation se trouve dans votre boîte de réception et dans votre compte signNow. Vous pouvez néanmoins télécharger le document si vous le souhaitez. Contactez l’expéditeur pour connaître les prochaines étapes."
                            },
                            "header-text": {
                              "en": "You've declined the Electronic Signature Disclosure agreement",
                              "es": "Has rechazado el acuerdo de Divulgación de firmas electrónicas",
                              "fr": "Vous avez refusé l’accord de Divulgation par signature électronique"
                            }
                          },
                          "success": {
                            "body-text": {
                              "en": "The sender will be notified and receive the signed document.",
                              "es": "El remitente recibirá una notificación y el documento firmado. También se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
                              "fr": "L'expéditeur sera informé et recevra le document signé. Une copie a également été envoyée dans votre boîte de réception et enregistrée dans votre compte signNow."
                            },
                            "header-text": {
                              "en": "You've filled out and signed the document",
                              "es": "Has completado y firmado el documento",
                              "fr": "Vous avez rempli et signé le document"
                            }
                          },
                          "registration": {
                            "visibility": true
                          },
                          "button-download": {
                            "visibility": true
                          },
                          "button-to-signnow": {
                            "visibility": false
                          }
                        },
                        "document-name": {
                          "visibility": true
                        },
                        "editing-tools": {
                          "background": "#e06666"
                        },
                        "decline-button": {
                          "visibility": true
                        },
                        "default-fields": {
                          "visibility": true
                        },
                        "field-settings": {
                          "visibility": true
                        },
                        "page-dimension": {
                          "percent": 150
                        },
                        "preview-button": {
                          "visibility": true
                        },
                        "complete-footer": {
                          "visibility": true,
                          "custom-text": {
                            "en": "You've completed all required fields. Review your document and click Finish.",
                            "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
                            "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
                          }
                        },
                        "request-payment": {
                          "visibility": true
                        },
                        "signing-settings": {
                          "guide-signers-only-through-required-fields": true,
                          "auto-apply-signatures-and-initials-to-document-fields": true
                        },
                        "step-progress-bar": {
                          "visibility": true
                        },
                        "decline-invite-text": {
                          "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
                          "es": "Estás a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perderán.",
                          "fr": "Vous êtes sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apportées à ce document seront perdues."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: editor."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-editor",
        "summary": "Delete editor brand resource",
        "description": "This endpoint allows users to delete editor brand resource.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\r\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: general."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/general": {
      "put": {
        "operationId": "put-v2-brands-brand-id-general",
        "summary": "Create and edit general brand resource",
        "description": "This endpoint allows users to create and update a general brand resource. \n\nLearn more about the [general brand resource](/docs/branding-general-resource).\n\nNote: to create a general resource for a brand, you need to own the brand.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Request body is incorrect or missing.\n* `header` is not an array.\n* `color` is not a string.\n* `background` is not a string.\n* `border` is not a string.\n* `hover-color` is not a string.\n* `hover-background` is not a string.\n* `hover-border` is not a string.\n* `active-color` is not a string.\n* `active-background` is not a string.\n* `active-border` is not a string.\n* `main-background` is not a string.\n* `consent-text` is not an array.\n* `consent-text` value is not a string.\n* `welcome-message` is not an array.\n* `welcome-message.visibility` value is not a boolean.\n* `welcome-message.body-text` is not an array.\n* `body-text` value is not a string.\n* `help-center` is not an array.\n* `help-center.visibility` is not a boolean.\n* The `hyperlink` is not an array.\n* The `hyperlink.color` is not a string.\n* The `hyperlink.color` is not a valid HTML color format.\n* The `hyperlink.hover-color` is not a string.\n* The `hyperlink.hover-color` is not a valid HTML color format.\n* The `hyperlink.active-color` is not a string.\n* The `hyperlink.active-color` is not a valid HTML color format.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 25002324,
                          "message": "The `hyperlink.color` must contain a valid HTML color format."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002324,
                          "message": "The `hyperlink.color` must contain a valid HTML color format."
                        }
                      ]
                    }
                  },
                  "color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002006,
                          "message": "The 'color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "header not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002189,
                          "message": "The `resources.general.header` attribute must be an array."
                        }
                      ]
                    }
                  },
                  "border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002008,
                          "message": "The 'border' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "hyperlink not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002322,
                          "message": "The 'hyperlink' attribute must be an array."
                        }
                      ]
                    }
                  },
                  "background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002004,
                          "message": "The 'background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "help-center not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002205,
                          "message": "The `help-center` field must be an array."
                        }
                      ]
                    }
                  },
                  "consent-text not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002191,
                          "message": "The `consent-text` attribute must be an array."
                        }
                      ]
                    }
                  },
                  "hover-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002012,
                          "message": "The 'hover-color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "active-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002039,
                          "message": "The 'active-color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "hover-border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002014,
                          "message": "The 'hover-border' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "active-border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002041,
                          "message": "The 'active-border' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "welcome-message not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002196,
                          "message": "The `welcome-message` field must be an array."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "body-text value not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002199,
                          "message": "The `welcome-message.body-text.en` must be a string."
                        }
                      ]
                    }
                  },
                  "hyperlink.color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002323,
                          "message": "The 'color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "main-background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002143,
                          "message": "The 'main-background' field must be a string."
                        }
                      ]
                    }
                  },
                  "hover-background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002010,
                          "message": "The 'hover-background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "active-background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002038,
                          "message": "The 'active-background' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "consent-text value not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002192,
                          "message": "The `consent-text.en` attribute must be a string."
                        }
                      ]
                    }
                  },
                  "hyperlink.active-color not valid": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002328,
                          "message": "The 'active-color' attribute must contain a valid HTML color format."
                        }
                      ]
                    }
                  },
                  "hyperlink.color format incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002324,
                          "message": "The 'color' attribute must contain a valid HTML color format."
                        }
                      ]
                    }
                  },
                  "hyperlink.hover-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002325,
                          "message": "The 'hover-color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request body incorrect or missing": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "hyperlink.active-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002327,
                          "message": "The 'active-color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "help-center.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002206,
                          "message": "The `help-center.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "welcome-message.body-text not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002198,
                          "message": "The welcome-message.body-text must be an array."
                        }
                      ]
                    }
                  },
                  "welcome-message.visibility not bool": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002197,
                          "message": "The `welcome-message.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "hyperlink.hover-color format incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002326,
                          "message": "The 'hover-color' attribute must contain a valid HTML color format."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/general"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "icons": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "Text color in HEX color code."
                      },
                      "border": {
                        "type": "string",
                        "description": "Border color in HEX color code."
                      },
                      "background": {
                        "type": "string",
                        "description": "Background color in HEX color code."
                      },
                      "hover-color": {
                        "type": "string",
                        "description": "Text color in HEX color code when the button is hovered over."
                      },
                      "hover-border": {
                        "type": "string",
                        "description": "Border color in HEX color code when the button is hovered over."
                      },
                      "hover-background": {
                        "type": "string",
                        "description": "Background color in HEX color code when the button is hovered over."
                      }
                    },
                    "description": "Icons object that contains attributes for all icons in the resource."
                  },
                  "texts": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "Text color in the HEX color code."
                      }
                    },
                    "description": "Text object that contains attributes for texts in the resource."
                  },
                  "header": {
                    "type": "object",
                    "properties": {
                      "background": {
                        "type": "string",
                        "description": "Background color in HEX color code."
                      }
                    },
                    "description": "Header object. Contains attributes for headers."
                  },
                  "buttons": {
                    "type": "object",
                    "properties": {
                      "default": {
                        "type": "object",
                        "properties": {
                          "color": {
                            "type": "string",
                            "description": "Text color in HEX color code."
                          },
                          "border": {
                            "type": "string",
                            "description": "Border color in HEX color code."
                          },
                          "background": {
                            "type": "string",
                            "description": "Background color in HEX color code."
                          },
                          "hover-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is hovered over."
                          },
                          "active-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is active."
                          },
                          "hover-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is hovered over."
                          },
                          "active-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is active."
                          },
                          "hover-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is hovered over."
                          },
                          "active-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is active."
                          }
                        },
                        "description": "Default button object."
                      },
                      "primary": {
                        "type": "object",
                        "properties": {
                          "color": {
                            "type": "string",
                            "description": "Text color in HEX color code."
                          },
                          "border": {
                            "type": "string",
                            "description": "Border color in HEX color code."
                          },
                          "background": {
                            "type": "string",
                            "description": "Background color in HEX color code."
                          },
                          "hover-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is hovered over."
                          },
                          "active-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is active."
                          },
                          "hover-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is hovered over."
                          },
                          "active-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is active."
                          },
                          "hover-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is hovered over."
                          },
                          "active-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is active."
                          }
                        },
                        "description": "Primary button object."
                      },
                      "dropdown": {
                        "type": "object",
                        "properties": {
                          "color": {
                            "type": "string",
                            "description": "Text color in HEX color code."
                          },
                          "border": {
                            "type": "string",
                            "description": "Border color in HEX color code."
                          },
                          "background": {
                            "type": "string",
                            "description": "Background color in HEX color code."
                          },
                          "hover-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is hovered over."
                          },
                          "active-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is active."
                          },
                          "hover-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is hovered over."
                          },
                          "active-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is active."
                          },
                          "hover-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is hovered over."
                          },
                          "active-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is active."
                          }
                        },
                        "description": "Dropdown button object."
                      },
                      "secondary": {
                        "type": "object",
                        "properties": {
                          "color": {
                            "type": "string",
                            "description": "Text color in HEX color code."
                          },
                          "border": {
                            "type": "string",
                            "description": "Border color in HEX color code."
                          },
                          "background": {
                            "type": "string",
                            "description": "Background color in HEX color code."
                          },
                          "hover-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is hovered over."
                          },
                          "active-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is active."
                          },
                          "hover-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is hovered over."
                          },
                          "active-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is active."
                          },
                          "hover-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is hovered over."
                          },
                          "active-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is active."
                          }
                        },
                        "description": "Secondary button object."
                      }
                    },
                    "description": "Button object that contains `primary`, `secondary`, `default`, and `dropdown` button attributes."
                  },
                  "hyperlink": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "example": "#546470",
                        "description": "Default color of the hyperlink text in HEX color code."
                      },
                      "hover-color": {
                        "type": "string",
                        "example": "#667988",
                        "description": "Color of the hyperlink text when hovered in HEX color code."
                      },
                      "active-color": {
                        "type": "string",
                        "example": "#4b5963",
                        "description": "Color of the hyperlink text when clicked in HEX color code."
                      }
                    },
                    "description": "Defines hyperlink colors for default, hover, and active (clicked) states. Available for embedded sending and embedded editor."
                  },
                  "help-center": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether the button with a link to signNow help center should be visible or not.",
                        "x-stoplight": {
                          "id": "wisfcj6on1d6c"
                        }
                      }
                    },
                    "x-stoplight": {
                      "id": "32ejjcue1dkg6"
                    }
                  },
                  "consent-text": {
                    "type": "object",
                    "properties": {
                      "en": {
                        "type": "string",
                        "maxLength": 900,
                        "description": "Custom consent text in English that can be updated. Placeholder {sender_email} is available.",
                        "x-stoplight": {
                          "id": "vdwkwmhubj2zd"
                        }
                      },
                      "es": {
                        "type": "string",
                        "maxLength": 900,
                        "description": "Custom consent text in Spanish that can be updated. Placeholder {sender_email} is available.",
                        "x-stoplight": {
                          "id": "e4jjy0wucs7y5"
                        }
                      },
                      "fr": {
                        "type": "string",
                        "maxLength": 900,
                        "description": "Custom consent text in French that can be updated. Placeholder {sender_email} is available.",
                        "x-stoplight": {
                          "id": "rxeyit6fer3kg"
                        }
                      }
                    },
                    "description": "Consent text object that contains attributes for consent text that appears when a signer opens the document. Consent text appears if sender is in organization and consent text is enabled for the organization.",
                    "x-stoplight": {
                      "id": "kgxlmxn4adgnh"
                    }
                  },
                  "main-background": {
                    "type": "string",
                    "description": "Main background color in HEX color code.",
                    "x-stoplight": {
                      "id": "59fih3f5su2jq"
                    }
                  },
                  "welcome-message": {
                    "type": "object",
                    "properties": {
                      "body-text": {
                        "type": "object",
                        "properties": {
                          "en": {
                            "type": "string",
                            "maxLength": 300,
                            "description": "Custom welcome message in English that can be updated. Placeholder {sender_email} is available.",
                            "x-stoplight": {
                              "id": "k7ypjojqr8m6v"
                            }
                          },
                          "es": {
                            "type": "string",
                            "maxLength": 300,
                            "description": "Custom welcome message in Spanish that can be updated. Placeholder {sender_email} is available.",
                            "x-stoplight": {
                              "id": "kvj2jf91l201m"
                            }
                          },
                          "fr": {
                            "type": "string",
                            "maxLength": 300,
                            "description": "Custom welcome message in French that can be updated. Placeholder {sender_email} is available.",
                            "x-stoplight": {
                              "id": "0wrtt63g1g4hl"
                            }
                          }
                        },
                        "description": "Custom welcome message.",
                        "x-stoplight": {
                          "id": "35rc9yggnfhg2"
                        }
                      },
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether a welcome message should appear or not.",
                        "x-stoplight": {
                          "id": "bzmrw3nv8fw51"
                        }
                      },
                      "header-text": {
                        "type": "object",
                        "properties": {
                          "en": {
                            "type": "string",
                            "example": "Hi, {signer_email}",
                            "maxLength": 300,
                            "description": "Custom header text in English. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or “Guest Signer” (for signing links); and “Guest Signer” (for document group signing links).",
                            "x-stoplight": {
                              "id": "3ux7elkodldxy"
                            }
                          },
                          "es": {
                            "type": "string",
                            "example": "Hola, {signer_email}",
                            "maxLength": 300,
                            "description": "Custom header text in Spanish. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or “Guest Signer” (for signing links); and “Guest Signer” (for document group signing links).",
                            "x-stoplight": {
                              "id": "tp2u0fli2rrm8"
                            }
                          },
                          "fr": {
                            "type": "string",
                            "example": "Bonjour, {signer_email}",
                            "maxLength": 300,
                            "description": "Custom header text in French. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or “Guest Signer” (for signing links); and “Guest Signer” (for document group signing links).",
                            "x-stoplight": {
                              "id": "tcxtp87ekio7o"
                            }
                          }
                        },
                        "description": "Custom text displayed in the welcome message header.",
                        "x-stoplight": {
                          "id": "1a8pktk3i9b9w"
                        }
                      }
                    },
                    "description": "Welcome message object that contains attributes for a welcome message that appears when a signer opens the document or clicks the notification icon on the header.",
                    "x-stoplight": {
                      "id": "a8e80yyodl8ot"
                    }
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "icons": {
                      "color": "#546470",
                      "border": "#ffffff",
                      "background": "#ffffff",
                      "hover-color": "#546470",
                      "hover-border": "#f1f2f4",
                      "hover-background": "#f1f2f4"
                    },
                    "texts": {
                      "color": "#2f373e"
                    },
                    "header": {
                      "background": "#ffffff"
                    },
                    "buttons": {
                      "default": {
                        "color": "#546470",
                        "border": "#ffffff",
                        "background": "#ffffff",
                        "hover-color": "#546470",
                        "active-color": "#546470",
                        "hover-border": "#f1f2f4",
                        "active-border": "#ffffff",
                        "hover-background": "#f1f2f4",
                        "active-background": "#ffffff"
                      },
                      "primary": {
                        "color": "#ffffff",
                        "border": "#0777cf",
                        "background": "#0777cf",
                        "hover-color": "#ffffff",
                        "active-color": "#ffffff",
                        "hover-border": "#348fd7",
                        "active-border": "#003458",
                        "hover-background": "#348fd7",
                        "active-background": "#076dbd"
                      },
                      "dropdown": {
                        "color": "#546470",
                        "border": "#ffffff",
                        "background": "#ffffff",
                        "hover-color": "#546470",
                        "active-color": "#546470",
                        "hover-border": "#f1f2f4",
                        "active-border": "#ffffff",
                        "hover-background": "#f1f2f4",
                        "active-background": "#ffffff"
                      },
                      "secondary": {
                        "color": "#38424b",
                        "border": "#e3e6e9",
                        "background": "#e3e6e9",
                        "hover-color": "#38424b",
                        "active-color": "#38424b",
                        "hover-border": "#f1f2f4",
                        "active-border": "#d5dade",
                        "hover-background": "#f1f2f4",
                        "active-background": "#d5dade"
                      }
                    },
                    "hyperlink": {
                      "color": "#546470",
                      "hover-color": "#667988",
                      "active-color": "#4b5963"
                    },
                    "help-center": {
                      "visibility": true
                    },
                    "consent-text": {
                      "en": "{sender_email} has invited you to fill out and sign this in one place.",
                      "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                      "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                    },
                    "main-background": "#efefef",
                    "welcome-message": {
                      "body-text": {
                        "en": "{sender_email} has invited you to fill out and sign this in one place.",
                        "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                        "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                      },
                      "visibility": true,
                      "header-text": {
                        "en": "Hi, {signer_email}",
                        "es": "Hola, {signer_email}",
                        "fr": "Bonjour, {signer_email}"
                      }
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "icons": {
                      "color": "#546470",
                      "border": "#ffffff",
                      "background": "#ffffff",
                      "hover-color": "#546470",
                      "hover-border": "#f1f2f4",
                      "hover-background": "#f1f2f4"
                    },
                    "texts": {
                      "color": "#2f373e"
                    },
                    "header": {
                      "background": "#ffffff"
                    },
                    "buttons": {
                      "default": {
                        "color": "#546470",
                        "border": "#ffffff",
                        "background": "#ffffff",
                        "hover-color": "#546470",
                        "active-color": "#546470",
                        "hover-border": "#f1f2f4",
                        "active-border": "#ffffff",
                        "hover-background": "#f1f2f4",
                        "active-background": "#ffffff"
                      },
                      "primary": {
                        "color": "#ffffff",
                        "border": "#0777cf",
                        "background": "#0777cf",
                        "hover-color": "#ffffff",
                        "active-color": "#ffffff",
                        "hover-border": "#348fd7",
                        "active-border": "#003458",
                        "hover-background": "#348fd7",
                        "active-background": "#076dbd"
                      },
                      "dropdown": {
                        "color": "#546470",
                        "border": "#ffffff",
                        "background": "#ffffff",
                        "hover-color": "#546470",
                        "active-color": "#546470",
                        "hover-border": "#f1f2f4",
                        "active-border": "#ffffff",
                        "hover-background": "#f1f2f4",
                        "active-background": "#ffffff"
                      },
                      "secondary": {
                        "color": "#38424b",
                        "border": "#e3e6e9",
                        "background": "#e3e6e9",
                        "hover-color": "#38424b",
                        "active-color": "#38424b",
                        "hover-border": "#f1f2f4",
                        "active-border": "#d5dade",
                        "hover-background": "#f1f2f4",
                        "active-background": "#d5dade"
                      }
                    },
                    "hyperlink": {
                      "color": "#546470",
                      "hover-color": "#667988",
                      "active-color": "#4b5963"
                    },
                    "help-center": {
                      "visibility": true
                    },
                    "consent-text": {
                      "en": "{sender_email} has invited you to fill out and sign this in one place.",
                      "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                      "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                    },
                    "main-background": "#efefef",
                    "welcome-message": {
                      "body-text": {
                        "en": "{sender_email} has invited you to fill out and sign this in one place.",
                        "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                        "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                      },
                      "visibility": true,
                      "header-text": {
                        "en": "Hi, {signer_email}",
                        "es": "Hola, {signer_email}",
                        "fr": "Bonjour, {signer_email}"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-general",
        "summary": "Get general brand resource",
        "description": "This endpoint allows users to retrieve branding for general resource.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "icons": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string"
                            },
                            "border": {
                              "type": "string"
                            },
                            "background": {
                              "type": "string"
                            },
                            "hover-color": {
                              "type": "string"
                            },
                            "hover-border": {
                              "type": "string"
                            },
                            "hover-background": {
                              "type": "string"
                            }
                          }
                        },
                        "texts": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string"
                            }
                          }
                        },
                        "header": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "type": "string"
                            }
                          }
                        },
                        "buttons": {
                          "type": "object",
                          "properties": {
                            "default": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "border": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "active-color": {
                                  "type": "string"
                                },
                                "hover-border": {
                                  "type": "string"
                                },
                                "active-border": {
                                  "type": "string"
                                },
                                "hover-background": {
                                  "type": "string"
                                },
                                "active-background": {
                                  "type": "string"
                                }
                              }
                            },
                            "primary": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "border": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "active-color": {
                                  "type": "string"
                                },
                                "hover-border": {
                                  "type": "string"
                                },
                                "active-border": {
                                  "type": "string"
                                },
                                "hover-background": {
                                  "type": "string"
                                },
                                "active-background": {
                                  "type": "string"
                                }
                              }
                            },
                            "dropdown": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "border": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "active-color": {
                                  "type": "string"
                                },
                                "hover-border": {
                                  "type": "string"
                                },
                                "active-border": {
                                  "type": "string"
                                },
                                "hover-background": {
                                  "type": "string"
                                },
                                "active-background": {
                                  "type": "string"
                                }
                              }
                            },
                            "secondary": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "border": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "active-color": {
                                  "type": "string"
                                },
                                "hover-border": {
                                  "type": "string"
                                },
                                "active-border": {
                                  "type": "string"
                                },
                                "hover-background": {
                                  "type": "string"
                                },
                                "active-background": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "hyperlink": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string"
                            },
                            "hover-color": {
                              "type": "string"
                            },
                            "active-color": {
                              "type": "string"
                            }
                          }
                        },
                        "help-center": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "consent-text": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "string"
                            },
                            "es": {
                              "type": "string"
                            },
                            "fr": {
                              "type": "string"
                            }
                          }
                        },
                        "main-background": {
                          "type": "string"
                        },
                        "welcome-message": {
                          "type": "object",
                          "properties": {
                            "body-text": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                },
                                "fr": {
                                  "type": "string"
                                }
                              }
                            },
                            "visibility": {
                              "type": "boolean"
                            },
                            "header-text": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                },
                                "fr": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "icons": {
                          "color": "#546470",
                          "border": "#ffffff",
                          "background": "#ffffff",
                          "hover-color": "#546470",
                          "hover-border": "#f1f2f4",
                          "hover-background": "#f1f2f4"
                        },
                        "texts": {
                          "color": "#2f373e"
                        },
                        "header": {
                          "background": "#ffffff"
                        },
                        "buttons": {
                          "default": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#ffffff",
                            "hover-background": "#f1f2f4",
                            "active-background": "#ffffff"
                          },
                          "primary": {
                            "color": "#ffffff",
                            "border": "#0777cf",
                            "background": "#0777cf",
                            "hover-color": "#ffffff",
                            "active-color": "#ffffff",
                            "hover-border": "#348fd7",
                            "active-border": "#003458",
                            "hover-background": "#348fd7",
                            "active-background": "#076dbd"
                          },
                          "dropdown": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#ffffff",
                            "hover-background": "#f1f2f4",
                            "active-background": "#ffffff"
                          },
                          "secondary": {
                            "color": "#38424b",
                            "border": "#e3e6e9",
                            "background": "#e3e6e9",
                            "hover-color": "#38424b",
                            "active-color": "#38424b",
                            "hover-border": "#f1f2f4",
                            "active-border": "#d5dade",
                            "hover-background": "#f1f2f4",
                            "active-background": "#d5dade"
                          }
                        },
                        "hyperlink": {
                          "color": "#546470",
                          "hover-color": "#667988",
                          "active-color": "#4b5963"
                        },
                        "help-center": {
                          "visibility": true
                        },
                        "consent-text": {
                          "en": "{sender_email} has invited you to fill out and sign this in one place.",
                          "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                          "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                        },
                        "main-background": "#efefef",
                        "welcome-message": {
                          "body-text": {
                            "en": "{sender_email} has invited you to fill out and sign this in one place.",
                            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                            "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                          },
                          "visibility": true,
                          "header-text": {
                            "en": "Hi, {signer_email}",
                            "es": "Hola, {signer_email}",
                            "fr": "Bonjour, {signer_email}"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "icons": {
                          "color": "#546470",
                          "border": "#ffffff",
                          "background": "#ffffff",
                          "hover-color": "#546470",
                          "hover-border": "#f1f2f4",
                          "hover-background": "#f1f2f4"
                        },
                        "texts": {
                          "color": "#2f373e"
                        },
                        "header": {
                          "background": "#ffffff"
                        },
                        "buttons": {
                          "default": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#ffffff",
                            "hover-background": "#f1f2f4",
                            "active-background": "#ffffff"
                          },
                          "primary": {
                            "color": "#ffffff",
                            "border": "#0777cf",
                            "background": "#0777cf",
                            "hover-color": "#ffffff",
                            "active-color": "#ffffff",
                            "hover-border": "#348fd7",
                            "active-border": "#003458",
                            "hover-background": "#348fd7",
                            "active-background": "#076dbd"
                          },
                          "dropdown": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#ffffff",
                            "hover-background": "#f1f2f4",
                            "active-background": "#ffffff"
                          },
                          "secondary": {
                            "color": "#38424b",
                            "border": "#e3e6e9",
                            "background": "#e3e6e9",
                            "hover-color": "#38424b",
                            "active-color": "#38424b",
                            "hover-border": "#f1f2f4",
                            "active-border": "#d5dade",
                            "hover-background": "#f1f2f4",
                            "active-background": "#d5dade"
                          }
                        },
                        "hyperlink": {
                          "color": "#546470",
                          "hover-color": "#667988",
                          "active-color": "#4b5963"
                        },
                        "help-center": {
                          "visibility": true
                        },
                        "consent-text": {
                          "en": "{sender_email} has invited you to fill out and sign this in one place.",
                          "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                          "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                        },
                        "main-background": "#efefef",
                        "welcome-message": {
                          "body-text": {
                            "en": "{sender_email} has invited you to fill out and sign this in one place.",
                            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                            "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                          },
                          "visibility": true,
                          "header-text": {
                            "en": "Hi, {signer_email}",
                            "es": "Hola, {signer_email}",
                            "fr": "Bonjour, {signer_email}"
                          }
                        }
                      }
                    }
                  },
                  "Example 1": {
                    "value": {
                      "data": {
                        "icons": {
                          "color": "#546470",
                          "border": "#ffffff",
                          "background": "#ffffff",
                          "hover-color": "#546470",
                          "hover-border": "#f1f2f4",
                          "hover-background": "#f1f2f4"
                        },
                        "texts": {
                          "color": "#2f373e"
                        },
                        "header": {
                          "background": "#ffffff"
                        },
                        "buttons": {
                          "default": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#ffffff",
                            "hover-background": "#f1f2f4",
                            "active-background": "#ffffff"
                          },
                          "primary": {
                            "color": "#ffffff",
                            "border": "#0777cf",
                            "background": "#0777cf",
                            "hover-color": "#ffffff",
                            "active-color": "#ffffff",
                            "hover-border": "#348fd7",
                            "active-border": "#003458",
                            "hover-background": "#348fd7",
                            "active-background": "#076dbd"
                          },
                          "dropdown": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#ffffff",
                            "hover-background": "#f1f2f4",
                            "active-background": "#ffffff"
                          },
                          "secondary": {
                            "color": "#38424b",
                            "border": "#e3e6e9",
                            "background": "#e3e6e9",
                            "hover-color": "#38424b",
                            "active-color": "#38424b",
                            "hover-border": "#f1f2f4",
                            "active-border": "#d5dade",
                            "hover-background": "#f1f2f4",
                            "active-background": "#d5dade"
                          }
                        },
                        "hyperlink": {
                          "color": "#546470",
                          "hover-color": "#667988",
                          "active-color": "#4b5963"
                        },
                        "help-center": {
                          "visibility": true
                        },
                        "consent-text": {
                          "en": "{sender_email} has invited you to fill out and sign this in one place.",
                          "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                          "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                        },
                        "main-background": "#efefef",
                        "welcome-message": {
                          "body-text": {
                            "en": "{sender_email} has invited you to fill out and sign this in one place.",
                            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                            "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                          },
                          "visibility": true,
                          "header-text": {
                            "en": "Hi, {signer_email}",
                            "es": "Hola, {signer_email}",
                            "fr": "Bonjour, {signer_email}"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: general."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-general",
        "summary": "Delete general brand resource",
        "description": "This endpoint allows users to delete general brand resource.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\r\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: general."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/logo": {
      "post": {
        "operationId": "post-v2-brands-brand-id-logo",
        "summary": "Create logo brand resource",
        "description": "This endpoint allows users to create and update a logo brand resource.\n\nLearn more about the [logo brand resource](/docs/branding-logo-resource).\n\nNote: to create a logo brand resource, you need to own the brand.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "multipart/form-data"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Logo added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Missing logo or incorrect payload.\n* Incorrect file format.\n* File is bigger than 2 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "File is too big": {
                    "value": {
                      "code": 25002051,
                      "message": "The file is too large. Allowed maximum size is 2 MB."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002047,
                      "message": "Brand logo is required."
                    }
                  },
                  "Incorrect file format": {
                    "value": {
                      "code": 25002048,
                      "message": "The mime type of the file is invalid (\"text/plain\"). Allowed mime types are \"image/x-ms-bmp\", \"image/gif\", \"image/jpeg\", \"image/png\", \"image/bmp\"."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/logo"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "logo": {
                    "type": "file",
                    "description": "file with image format"
                  }
                },
                "required": [
                  "logo"
                ]
              }
            }
          }
        }
      },
      "put": {
        "operationId": "put-v2-brands-brand-id-resources-logo",
        "summary": "Add and change logo from URL",
        "description": "This endpoint allows users to add and change a logo for a brand from a specified link.\n\nLearn more about the [logo brand resource](/docs/branding-logo-resource).",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Missing `url`.\n* Empty `url`.\n* Incorrect `url`.\n* `url` is not a string.\n* `url` does not contain an image of the proper format.\n* The image cannot be downloaded.\n* The image is too big. ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty url": {
                    "value": {
                      "code": 25002128,
                      "message": "The `url` is required."
                    }
                  },
                  "Missing url": {
                    "value": {
                      "code": 25002128,
                      "message": "The `url` is required."
                    }
                  },
                  "Incorrect url": {
                    "value": {
                      "code": 25002129,
                      "message": "The `url` should be a valid URL."
                    }
                  },
                  "url not string": {
                    "value": {
                      "code": 25002132,
                      "message": "The `url` should be a string."
                    }
                  },
                  "Image is too big": {
                    "value": {
                      "code": 25002051,
                      "message": "The file is too large (2.56 MB). Allowed maximum size is 2 MB."
                    }
                  },
                  "Image cannot be downloaded": {
                    "value": {
                      "code": 25002131,
                      "message": "Something went wrong during image download."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Missing image or incorrect format": {
                    "value": {
                      "code": 25002130,
                      "message": "Provided URL does not contains an image or wrong image format."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/logo"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Link address to the logo file.",
                    "x-stoplight": {
                      "id": "l9sdtgfqzqhn3"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "url": "https://logo-file.com"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-logo",
        "summary": "Get logo brand resource",
        "description": "This endpoint allows users to retrieve the picture file for logo resource.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Success: picture file with logo": {
                    "value": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: logo."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-logo",
        "summary": "Delete logo brand resource",
        "description": "This endpoint allows users to delete logo brand resource.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\r\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: logo."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands": {
      "get": {
        "operationId": "get-v2-brands",
        "summary": "Get all brands",
        "description": "This endpoint allows API users to retrieve all brands associated with their account.\n\n**Notes**\n\nEach brand has an `owner_type` field that defines who owns it and what access is allowed. There are three ownership types:\n\n* **`common`** — system default SignNow brand. Read-only; cannot be edited or customized. Appears in the brand list, but any modification attempt returns a \"No access to brand\" error.\n* **`organization`** — custom brand owned by the organization. Full access for organization admins. This is the brand type customers should create and use.\n* **`user`** — custom brand owned by an individual user.",
        "responses": {
          "200": {
            "description": "* At least one brand was created.\n* No brands were created, but SignNow default brand is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "link": {
                            "type": "string",
                            "description": "Link to retrieve the brand."
                          },
                          "title": {
                            "type": "string",
                            "description": "Brand name."
                          },
                          "resources": {
                            "description": "Brand resources. Empty array `[]` if no resources are configured. Object with resource type keys (`general`, `editor`, `email`, `logo`, `send-invite`, etc.) if resources exist.",
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "data": {
                                  "type": "object",
                                  "x-nullable": true,
                                  "description": "Resource data. `null` if not yet configured."
                                },
                                "link": {
                                  "type": "string",
                                  "description": "Link to retrieve the resource."
                                }
                              }
                            }
                          },
                          "unique_id": {
                            "type": "string",
                            "description": "Brand unique ID."
                          },
                          "owner_type": {
                            "type": "string",
                            "description": "Brand owner type. Allowed values: `common`, `organization`, `user`."
                          }
                        }
                      },
                      "description": "List of brands."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer",
                              "description": "Number of brands on the current page."
                            },
                            "links": {
                              "properties": {
                                "next": {
                                  "type": "string",
                                  "description": "Link to the next page. Present only if there are more pages."
                                }
                              },
                              "description": "Pagination links. Empty array `[]` if on the last page. Object with `next` key if more pages exist."
                            },
                            "total": {
                              "type": "integer",
                              "description": "Total number of brands."
                            },
                            "per_page": {
                              "type": "integer",
                              "description": "Number of items per page."
                            },
                            "total_pages": {
                              "type": "integer",
                              "description": "Total number of pages."
                            },
                            "current_page": {
                              "type": "integer",
                              "description": "Current page number."
                            }
                          }
                        }
                      },
                      "description": "Pagination metadata."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "link": "https://api.signnow.com/v2/brands/0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
                          "title": "SignNow",
                          "resources": [],
                          "unique_id": "0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
                          "owner_type": "common"
                        },
                        {
                          "link": "https://api.signnow.com/v2/organizations/1b63e416095d4734a0e0d8bce4bd33f7b44b7585/brands/d14d3a3df33144009ee8dc51b1f4b0dacf9a9763",
                          "title": "Brand_1",
                          "resources": {
                            "editor": {
                              "data": null,
                              "link": "https://api.signnow.com/v2/organizations/1b63e416095d4734a0e0d8bce4bd33f7b44b7585/brands/d14d3a3df33144009ee8dc51b1f4b0dacf9a9763/resources/editor"
                            }
                          },
                          "unique_id": "d14d3a3df33144009ee8dc51b1f4b0dacf9a9763",
                          "owner_type": "organization"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 3,
                          "links": [],
                          "total": 3,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "link": "https://api.signnow.com/v2/brands/0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
                          "title": "SignNow",
                          "resources": [],
                          "unique_id": "0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
                          "owner_type": "common"
                        },
                        {
                          "link": "https://api.signnow.com/v2/organizations/1b63e416095d4734a0e0d8bce4bd33f7b44b7585/brands/d14d3a3df33144009ee8dc51b1f4b0dacf9a9763",
                          "title": "Brand_1",
                          "resources": {
                            "editor": {
                              "data": null,
                              "link": "https://api.signnow.com/v2/organizations/1b63e416095d4734a0e0d8bce4bd33f7b44b7585/brands/d14d3a3df33144009ee8dc51b1f4b0dacf9a9763/resources/editor"
                            }
                          },
                          "unique_id": "d14d3a3df33144009ee8dc51b1f4b0dacf9a9763",
                          "owner_type": "organization"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 3,
                          "links": [],
                          "total": 3,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Brands exist": {
                    "value": {
                      "data": [
                        {
                          "link": "https://api.signnow.com/v2/brands/0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
                          "title": "SignNow",
                          "resources": [],
                          "unique_id": "0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
                          "owner_type": "common"
                        },
                        {
                          "link": "https://api.signnow.com/v2/organizations/1b63e416095d4734a0e0d8bce4bd33f7b44b7585/brands/d14d3a3df33144009ee8dc51b1f4b0dacf9a9763",
                          "title": "Brand_1",
                          "resources": {
                            "email": {
                              "data": null,
                              "link": "https://api.signnow.com/v2/organizations/1b63e416095d4734a0e0d8bce4bd33f7b44b7585/brands/d14d3a3df33144009ee8dc51b1f4b0dacf9a9763/resources/email"
                            },
                            "editor": {
                              "data": null,
                              "link": "https://api.signnow.com/v2/organizations/1b63e416095d4734a0e0d8bce4bd33f7b44b7585/brands/d14d3a3df33144009ee8dc51b1f4b0dacf9a9763/resources/editor"
                            }
                          },
                          "unique_id": "d14d3a3df33144009ee8dc51b1f4b0dacf9a9763",
                          "owner_type": "organization"
                        },
                        {
                          "link": "https://api.signnow.com/v2/brands/3b3c0af5da8e4c098d5eefbca101e92feca01dc5",
                          "title": "Brand_2",
                          "resources": [],
                          "unique_id": "3b3c0af5da8e4c098d5eefbca101e92feca01dc5",
                          "owner_type": "user"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 3,
                          "links": [],
                          "total": 3,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "No brands created": {
                    "value": {
                      "data": [
                        {
                          "link": "https://api.signnow.com/v2/brands/0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
                          "title": "signNow",
                          "resources": [],
                          "unique_id": "0f7848d0cfadeb2cdd230e4ad433efbca2423d8f",
                          "owner_type": "common"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n* Deactivated or deleted application",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Deactivated or deleted application": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The user is authorized with a token from an app they don’t own",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "operationId": "post-brands",
        "summary": "Create brand",
        "description": "This endpoint allows users to create a `brand` object for [branding](/docs/guides-branding) (whitelabling).",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Brand unique ID."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "{brand_unique_id}"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "{brand_unique_id}"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n* Request body is incorrect or missing\n* Incorrect payload\n* `title` is not a string\n* `title` is empty\n* `title` is longer than 100 characters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty title": {
                    "value": {
                      "code": 25002034,
                      "message": "Brand title must not be an empty string."
                    }
                  },
                  "title too long": {
                    "value": {
                      "code": 25002032,
                      "message": "Brand title length must less, than 100 characters."
                    }
                  },
                  "title not string": {
                    "value": {
                      "code": 25002031,
                      "message": "Brand title must be a string."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Request body incorrect or missing": {
                    "value": {
                      "code": 25002033,
                      "message": "Brand title is required."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The user is authorized with a token from an app they don’t own",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "title"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Name of the brand."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "title": "some_title"
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "title": "some_title"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/brands/{brand_id}": {
      "put": {
        "operationId": "put-v2-brands-brand-id",
        "summary": "Change brand",
        "description": "This endpoint allows users to edit a brand.\n\nNote: to change a brand, you need to own it.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Request body is incorrect or missing.\n* Incorrect payload.\n* `title` is not a string.\n* `title` is empty.\n* `title` is longer than 100 characters.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty title": {
                    "value": {
                      "code": 25002034,
                      "message": "Brand title must not be an empty string."
                    }
                  },
                  "title too long": {
                    "value": {
                      "code": 25002032,
                      "message": "Brand title length must less, than 100 characters."
                    }
                  },
                  "title not string": {
                    "value": {
                      "code": 25002031,
                      "message": "Brand title must be a string."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Request body incorrect or missing": {
                    "value": {
                      "code": 25002033,
                      "message": "Brand title is required."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "title"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "The name of the brand."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "title": "some_title"
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "title": "some_title"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id",
        "summary": "Get brand",
        "description": "This endpoint allows users to get information about one brand.\n\nNote: to view a brand, you need to own it.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": {
                        "title": "Sample brand",
                        "resources": {
                          "logo": {
                            "data": {
                              "original": "https://example.com/v2/brands/3bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/logo"
                            },
                            "link": "https://example.com/v2/brands/3bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/logo"
                          },
                          "general": {
                            "icons": {
                              "color": "#de4991",
                              "border": "#ffffff",
                              "background": "#f59758",
                              "hover-color": "#94074b",
                              "hover-border": "#ffffff",
                              "hover-background": "#b85c1f"
                            },
                            "texts": {
                              "color": "#080605"
                            },
                            "header": {
                              "background": "#edaa53"
                            },
                            "buttons": {
                              "default": {
                                "color": "#de4991",
                                "border": "#ffffff",
                                "background": "#f59758",
                                "hover-color": "#94074b",
                                "active-color": "#520128",
                                "hover-border": "#ffffff",
                                "active-border": "#ffffff",
                                "hover-background": "#b85c1f",
                                "active-background": "#913c03"
                              },
                              "primary": {
                                "color": "#de4991",
                                "border": "#ffffff",
                                "background": "#f59758",
                                "hover-color": "#94074b",
                                "active-color": "#520128",
                                "hover-border": "#ffffff",
                                "active-border": "#ffffff",
                                "hover-background": "#b85c1f",
                                "active-background": "#913c03"
                              },
                              "dropdown": {
                                "color": "#de4991",
                                "border": "#ffffff",
                                "background": "#f59758",
                                "hover-color": "#94074b",
                                "active-color": "#520128",
                                "hover-border": "#ffffff",
                                "active-border": "#ffffff",
                                "hover-background": "#b85c1f",
                                "active-background": "#913c03"
                              },
                              "secondary": {
                                "color": "#de4991",
                                "border": "#ffffff",
                                "background": "#f59758",
                                "hover-color": "#94074b",
                                "active-color": "#520128",
                                "hover-border": "#ffffff",
                                "active-border": "#ffffff",
                                "hover-background": "#b85c1f",
                                "active-background": "#913c03"
                              }
                            }
                          }
                        },
                        "unique_id": "3bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The bearer token is valid but it belongs to another user.\r\n* The user is authorized with a token from an app they don’t own.\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002075,
                      "message": "Brand assign to provided application is not allowed."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id",
        "summary": "Delete brand",
        "description": "This endpoint allows users to delete a brand.\n\nNote: to delete a brand, you need to own it.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Brand with this `brand_id` doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/template-file": {
      "get": {
        "operationId": "get-v2-brands-template-file",
        "summary": "Get brand template file",
        "description": "This endpoint allows users to download a brand template JSON file with all the customizable objects set to SignNow default settings. The file is convenient for saving all the branding settings with one request and for integration purposes. \n\nThe template file is always up-to-date with the latest SignNow branding options.\n\nFor a list of available objects, see [About branding](/docs/guides-branding).\n\nNote: data in the brand template file holds SignNow default settings, so you don’t need to create everything from scratch to [create a brand](/docs/general-branding/operations/post-v2-brands-upload-file).",
        "responses": {
          "200": {
            "description": "Correct request: JSON file with the template structure",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "resources": {
                      "type": "object",
                      "properties": {
                        "logo": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string"
                            }
                          }
                        },
                        "editor": {
                          "type": "object",
                          "properties": {
                            "fields": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "text": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "email": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "stamp": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "formula": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "checkbox": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "dropdown": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "fullname": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "initials": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "hyperlink": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "signature": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "attachment": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "radiobutton": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                }
                              }
                            },
                            "sidebar": {
                              "type": "object",
                              "properties": {
                                "background": {
                                  "type": "string"
                                },
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "toolbar": {
                              "type": "object",
                              "properties": {
                                "background": {
                                  "type": "string"
                                },
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "auth-page": {
                              "type": "object",
                              "properties": {
                                "check-pin": {
                                  "type": "object",
                                  "properties": {
                                    "phone": {
                                      "type": "object",
                                      "properties": {
                                        "body-text": {
                                          "type": "object",
                                          "properties": {
                                            "en": {
                                              "type": "string"
                                            },
                                            "es": {
                                              "type": "string"
                                            },
                                            "fr": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "password": {
                                      "type": "object",
                                      "properties": {
                                        "body-text": {
                                          "type": "object",
                                          "properties": {
                                            "en": {
                                              "type": "string"
                                            },
                                            "es": {
                                              "type": "string"
                                            },
                                            "fr": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                },
                                "header-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "request-pin": {
                                  "type": "object",
                                  "properties": {
                                    "body-text": {
                                      "type": "object",
                                      "properties": {
                                        "en": {
                                          "type": "string"
                                        },
                                        "es": {
                                          "type": "string"
                                        },
                                        "fr": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "navigation": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "sender-info": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                },
                                "contact-name": {
                                  "type": "string"
                                },
                                "contact-email": {
                                  "type": "string"
                                }
                              }
                            },
                            "close-button": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "object",
                                  "properties": {
                                    "editor": {
                                      "type": "object",
                                      "properties": {
                                        "en": {
                                          "type": "string"
                                        },
                                        "es": {
                                          "type": "string"
                                        },
                                        "fr": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "signing": {
                                      "type": "object",
                                      "properties": {
                                        "en": {
                                          "type": "string"
                                        },
                                        "es": {
                                          "type": "string"
                                        },
                                        "fr": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                },
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "progress-bar": {
                              "type": "object",
                              "properties": {
                                "default-color": {
                                  "type": "string"
                                },
                                "completed-color": {
                                  "type": "string"
                                }
                              }
                            },
                            "support-chat": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "accessibility": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "border": {
                                  "type": "string"
                                },
                                "enabled": {
                                  "type": "boolean"
                                },
                                "background": {
                                  "type": "string"
                                },
                                "visibility": {
                                  "type": "boolean"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "active-color": {
                                  "type": "string"
                                },
                                "hover-border": {
                                  "type": "string"
                                },
                                "active-border": {
                                  "type": "string"
                                },
                                "hover-background": {
                                  "type": "string"
                                },
                                "active-background": {
                                  "type": "string"
                                }
                              }
                            },
                            "complete-page": {
                              "type": "object",
                              "properties": {
                                "decline": {
                                  "type": "object",
                                  "properties": {
                                    "body-text": {
                                      "type": "object",
                                      "properties": {
                                        "en": {
                                          "type": "string"
                                        },
                                        "es": {
                                          "type": "string"
                                        },
                                        "fr": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "header-text": {
                                      "type": "object",
                                      "properties": {
                                        "en": {
                                          "type": "string"
                                        },
                                        "es": {
                                          "type": "string"
                                        },
                                        "fr": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                },
                                "success": {
                                  "type": "object",
                                  "properties": {
                                    "body-text": {
                                      "type": "object",
                                      "properties": {
                                        "en": {
                                          "type": "string"
                                        },
                                        "es": {
                                          "type": "string"
                                        },
                                        "fr": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "header-text": {
                                      "type": "object",
                                      "properties": {
                                        "en": {
                                          "type": "string"
                                        },
                                        "es": {
                                          "type": "string"
                                        },
                                        "fr": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                },
                                "registration": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "button-download": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                "button-to-signnow": {
                                  "type": "object",
                                  "properties": {
                                    "visibility": {
                                      "type": "boolean"
                                    }
                                  }
                                }
                              }
                            },
                            "document-name": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "editing-tools": {
                              "type": "object",
                              "properties": {
                                "background": {
                                  "type": "string"
                                }
                              }
                            },
                            "decline-button": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "default-fields": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "field-settings": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "page-dimension": {
                              "type": "object",
                              "properties": {
                                "percent": {
                                  "type": "integer"
                                }
                              }
                            },
                            "preview-button": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "complete-footer": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                },
                                "custom-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            },
                            "continue-button": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "download-button": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "request-payment": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "signing-settings": {
                              "type": "object",
                              "properties": {
                                "guide-signers-only-through-required-fields": {
                                  "type": "boolean"
                                },
                                "auto-apply-signatures-and-initials-to-document-fields": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "manage-recipients": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "step-progress-bar": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "thumbnails-button": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "decline-invite-text": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                },
                                "fr": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "general": {
                          "type": "object",
                          "properties": {
                            "icons": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "border": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "hover-border": {
                                  "type": "string"
                                },
                                "hover-background": {
                                  "type": "string"
                                }
                              }
                            },
                            "texts": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                }
                              }
                            },
                            "header": {
                              "type": "object",
                              "properties": {
                                "background": {
                                  "type": "string"
                                }
                              }
                            },
                            "buttons": {
                              "type": "object",
                              "properties": {
                                "default": {
                                  "type": "object",
                                  "properties": {
                                    "color": {
                                      "type": "string"
                                    },
                                    "border": {
                                      "type": "string"
                                    },
                                    "background": {
                                      "type": "string"
                                    },
                                    "hover-color": {
                                      "type": "string"
                                    },
                                    "active-color": {
                                      "type": "string"
                                    },
                                    "hover-border": {
                                      "type": "string"
                                    },
                                    "active-border": {
                                      "type": "string"
                                    },
                                    "hover-background": {
                                      "type": "string"
                                    },
                                    "active-background": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "primary": {
                                  "type": "object",
                                  "properties": {
                                    "color": {
                                      "type": "string"
                                    },
                                    "border": {
                                      "type": "string"
                                    },
                                    "background": {
                                      "type": "string"
                                    },
                                    "hover-color": {
                                      "type": "string"
                                    },
                                    "active-color": {
                                      "type": "string"
                                    },
                                    "hover-border": {
                                      "type": "string"
                                    },
                                    "active-border": {
                                      "type": "string"
                                    },
                                    "hover-background": {
                                      "type": "string"
                                    },
                                    "active-background": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "dropdown": {
                                  "type": "object",
                                  "properties": {
                                    "color": {
                                      "type": "string"
                                    },
                                    "border": {
                                      "type": "string"
                                    },
                                    "background": {
                                      "type": "string"
                                    },
                                    "hover-color": {
                                      "type": "string"
                                    },
                                    "active-color": {
                                      "type": "string"
                                    },
                                    "hover-border": {
                                      "type": "string"
                                    },
                                    "active-border": {
                                      "type": "string"
                                    },
                                    "hover-background": {
                                      "type": "string"
                                    },
                                    "active-background": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "secondary": {
                                  "type": "object",
                                  "properties": {
                                    "color": {
                                      "type": "string"
                                    },
                                    "border": {
                                      "type": "string"
                                    },
                                    "background": {
                                      "type": "string"
                                    },
                                    "hover-color": {
                                      "type": "string"
                                    },
                                    "active-color": {
                                      "type": "string"
                                    },
                                    "hover-border": {
                                      "type": "string"
                                    },
                                    "active-border": {
                                      "type": "string"
                                    },
                                    "hover-background": {
                                      "type": "string"
                                    },
                                    "active-background": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            },
                            "hyperlink": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "active-color": {
                                  "type": "string"
                                }
                              }
                            },
                            "help-center": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "consent-text": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                },
                                "fr": {
                                  "type": "string"
                                }
                              }
                            },
                            "main-background": {
                              "type": "string"
                            },
                            "welcome-message": {
                              "type": "object",
                              "properties": {
                                "body-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "visibility": {
                                  "type": "boolean"
                                },
                                "header-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "email-logo": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "type": "string"
                            }
                          }
                        },
                        "send-invite": {
                          "type": "object",
                          "properties": {
                            "from": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "header": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "settings": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "cc-recipients": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "preview-panel": {
                              "type": "object",
                              "properties": {
                                "background": {
                                  "type": "string"
                                },
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "settings-panel": {
                              "type": "object",
                              "properties": {
                                "background": {
                                  "type": "string"
                                }
                              }
                            },
                            "request-payment": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "customize-message": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            }
                          }
                        },
                        "email-invite": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "expiration": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "es": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "expiration": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "fr": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "expiration": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "email-general": {
                          "type": "object",
                          "properties": {
                            "ccd": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "logo": {
                              "type": "object",
                              "properties": {
                                "position": {
                                  "type": "string"
                                }
                              }
                            },
                            "buttons": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                }
                              }
                            },
                            "sender_email": {
                              "type": "string"
                            },
                            "contact_sender": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "secondary_buttons": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                }
                              }
                            },
                            "signnow_references": {
                              "type": "boolean"
                            },
                            "hide_download_image": {
                              "type": "boolean"
                            }
                          }
                        },
                        "email-cc-invite": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "es": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "fr": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "email-invite-canceled": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "es": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "fr": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "email-invite-reassign": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "expiration": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                },
                                "forward_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "es": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "expiration": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                },
                                "forward_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "fr": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "expiration": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                },
                                "forward_message": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "email-invite-reminder": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "expiration": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "es": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "expiration": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "fr": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "expiration": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "email-cc-invite-signed": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "es": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "fr": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "email-invite-completed": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "es": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "fr": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "email-cc-invite-reassign": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "es": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "fr": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "email-cc-invite-completed": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "es": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "fr": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "email-cc-invite-step-completed": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "es": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            },
                            "fr": {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "type": "string"
                                },
                                "subject": {
                                  "type": "string"
                                },
                                "body_header": {
                                  "type": "string"
                                },
                                "ccd_message": {
                                  "type": "string"
                                },
                                "body_message": {
                                  "type": "string"
                                },
                                "footer_message": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "title": "Brand title",
                      "resources": {
                        "logo": {
                          "url": "https://marketing-static.signnow.com/1382/images/global/svg/new-logo.svg"
                        },
                        "editor": {
                          "fields": {
                            "date": {
                              "visibility": true
                            },
                            "text": {
                              "visibility": true
                            },
                            "email": {
                              "visibility": true
                            },
                            "stamp": {
                              "visibility": true
                            },
                            "formula": {
                              "visibility": true
                            },
                            "checkbox": {
                              "visibility": true
                            },
                            "dropdown": {
                              "visibility": true
                            },
                            "fullname": {
                              "visibility": true
                            },
                            "initials": {
                              "visibility": true
                            },
                            "hyperlink": {
                              "visibility": true
                            },
                            "signature": {
                              "visibility": true
                            },
                            "attachment": {
                              "visibility": true
                            },
                            "radiobutton": {
                              "visibility": true
                            }
                          },
                          "sidebar": {
                            "background": "#ffffff",
                            "visibility": true
                          },
                          "toolbar": {
                            "background": "#ffffff",
                            "visibility": true
                          },
                          "settings": {
                            "visibility": true
                          },
                          "auth-page": {
                            "check-pin": {
                              "phone": {
                                "body-text": {
                                  "en": "Enter the document password sent you by voice call or sms.",
                                  "es": "Introduce la contraseña del documento que te ha enviado por llamada de voz o sms.",
                                  "fr": "Entrez le mot de passe du document que vous avez reçu par appel vocal ou sms."
                                }
                              },
                              "password": {
                                "body-text": {
                                  "en": "Enter the document password below to unlock the document.",
                                  "es": "Introduce la contraseña del documento a continuación para desbloquear el documento.",
                                  "fr": "Entrez le mot de passe du document ci-dessous pour déverrouiller le document."
                                }
                              }
                            },
                            "header-text": {
                              "en": "{sender_email} invited you to sign {document_name}",
                              "es": "{sender_email} te ha invitado a firmar {document_name}",
                              "fr": "{sender_email} vous a invité à signer {document_name}"
                            },
                            "request-pin": {
                              "body-text": {
                                "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
                                "es": "Pulsa el botón de abajo para que te envíen la contraseña por llamada de voz o mensaje sms.",
                                "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoyé par appel vocal ou sms."
                              }
                            }
                          },
                          "navigation": {
                            "visibility": true
                          },
                          "sender-info": {
                            "visibility": true,
                            "contact-name": "Contact Name",
                            "contact-email": "contact@email.com"
                          },
                          "close-button": {
                            "title": {
                              "editor": {
                                "en": "Save and Close",
                                "es": "Guardar y cerrar",
                                "fr": "Enregistrer et fermer"
                              },
                              "signing": {
                                "en": "Save Progress and Finish Later",
                                "es": "Guardar progresos y terminar más tarde",
                                "fr": "Enregistrer la progression et terminer plus tard"
                              }
                            },
                            "visibility": false
                          },
                          "progress-bar": {
                            "default-color": "#e3e6e9",
                            "completed-color": "#0777cf"
                          },
                          "support-chat": {
                            "visibility": true
                          },
                          "accessibility": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "enabled": false,
                            "background": "#ffffff",
                            "visibility": true,
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#dadee2",
                            "hover-background": "#f1f2f4",
                            "active-background": "#dadee2"
                          },
                          "complete-page": {
                            "decline": {
                              "body-text": {
                                "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you’d like to. Contact the sender to find out what to do next.",
                                "es": "No has dado tu consentimiento para hacer negocios electrónicamente con el remitente. La Divulgación de Firma Electrónica aún se puede aceptar antes de que el remitente cancele la invitación. Puedes encontrar la invitación en tu bandeja de entrada y en la cuenta de signNow. Aún puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qué hacer a continuación.",
                                "fr": "Vous n’avez pas consenti à traiter par voie électronique avec l’expéditeur. La Divulgation par signature électronique peut toujours être acceptée avant que l’expéditeur n’annule l’invitation. L’invitation se trouve dans votre boîte de réception et dans votre compte signNow. Vous pouvez néanmoins télécharger le document si vous le souhaitez. Contactez l’expéditeur pour connaître les prochaines étapes."
                              },
                              "header-text": {
                                "en": "You've declined the Electronic Signature Disclosure agreement",
                                "es": "Has rechazado el acuerdo de Divulgación de firmas electrónicas",
                                "fr": "Vous avez refusé l’accord de Divulgation par signature électronique"
                              }
                            },
                            "success": {
                              "body-text": {
                                "en": "The sender will be notified and receive the signed document.",
                                "es": "El remitente recibirá una notificación y el documento firmado. También se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
                                "fr": "L'expéditeur sera informé et recevra le document signé. Une copie a également été envoyée dans votre boîte de réception et enregistrée dans votre compte signNow."
                              },
                              "header-text": {
                                "en": "You've filled out and signed the document",
                                "es": "Has completado y firmado el documento",
                                "fr": "Vous avez rempli et signé le document"
                              }
                            },
                            "registration": {
                              "visibility": true
                            },
                            "button-download": {
                              "visibility": true
                            },
                            "button-to-signnow": {
                              "visibility": false
                            }
                          },
                          "document-name": {
                            "visibility": true
                          },
                          "editing-tools": {
                            "background": "#ffffff"
                          },
                          "decline-button": {
                            "visibility": true
                          },
                          "default-fields": {
                            "visibility": true
                          },
                          "field-settings": {
                            "visibility": true
                          },
                          "page-dimension": {
                            "percent": 150
                          },
                          "preview-button": {
                            "visibility": true
                          },
                          "complete-footer": {
                            "visibility": true,
                            "custom-text": {
                              "en": "You've completed all required fields. Review your document and click Finish.",
                              "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
                              "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
                            }
                          },
                          "continue-button": {
                            "visibility": true
                          },
                          "download-button": {
                            "visibility": true
                          },
                          "request-payment": {
                            "visibility": true
                          },
                          "signing-settings": {
                            "guide-signers-only-through-required-fields": true,
                            "auto-apply-signatures-and-initials-to-document-fields": true
                          },
                          "manage-recipients": {
                            "visibility": true
                          },
                          "step-progress-bar": {
                            "visibility": true
                          },
                          "thumbnails-button": {
                            "visibility": true
                          },
                          "decline-invite-text": {
                            "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
                            "es": "Estás a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perderán.",
                            "fr": "Vous êtes sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apportées à ce document seront perdues."
                          }
                        },
                        "general": {
                          "icons": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "hover-background": "#f1f2f4"
                          },
                          "texts": {
                            "color": "#2f373e"
                          },
                          "header": {
                            "background": "#ffffff"
                          },
                          "buttons": {
                            "default": {
                              "color": "#546470",
                              "border": "#ffffff",
                              "background": "#ffffff",
                              "hover-color": "#546470",
                              "active-color": "#546470",
                              "hover-border": "#f1f2f4",
                              "active-border": "#ffffff",
                              "hover-background": "#f1f2f4",
                              "active-background": "#ffffff"
                            },
                            "primary": {
                              "color": "#ffffff",
                              "border": "#0777cf",
                              "background": "#0777cf",
                              "hover-color": "#ffffff",
                              "active-color": "#ffffff",
                              "hover-border": "#348fd7",
                              "active-border": "#003458",
                              "hover-background": "#348fd7",
                              "active-background": "#076dbd"
                            },
                            "dropdown": {
                              "color": "#546470",
                              "border": "#ffffff",
                              "background": "#ffffff",
                              "hover-color": "#546470",
                              "active-color": "#546470",
                              "hover-border": "#f1f2f4",
                              "active-border": "#ffffff",
                              "hover-background": "#f1f2f4",
                              "active-background": "#ffffff"
                            },
                            "secondary": {
                              "color": "#38424b",
                              "border": "#e3e6e9",
                              "background": "#e3e6e9",
                              "hover-color": "#38424b",
                              "active-color": "#38424b",
                              "hover-border": "#f1f2f4",
                              "active-border": "#d5dade",
                              "hover-background": "#f1f2f4",
                              "active-background": "#d5dade"
                            }
                          },
                          "hyperlink": {
                            "color": "#546470",
                            "hover-color": "#667988",
                            "active-color": "#4b5963"
                          },
                          "help-center": {
                            "visibility": true
                          },
                          "consent-text": {
                            "en": "{sender_email} has invited you to fill out and sign this in one place.",
                            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                            "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                          },
                          "main-background": "#efefef",
                          "welcome-message": {
                            "body-text": {
                              "en": "{sender_email} has invited you to fill out and sign this in one place.",
                              "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                              "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                            },
                            "visibility": true,
                            "header-text": {
                              "en": "Hi, {signer_email}",
                              "es": "Hola, {signer_email}",
                              "fr": "Bonjour, {signer_email}"
                            }
                          }
                        },
                        "email-logo": {
                          "url": "https://marketing-static.signnow.com/36/images/global/png/sign-now-logo-blue@2x.png"
                        },
                        "send-invite": {
                          "from": {
                            "visibility": true
                          },
                          "header": {
                            "visibility": true
                          },
                          "settings": {
                            "visibility": true
                          },
                          "cc-recipients": {
                            "visibility": true
                          },
                          "preview-panel": {
                            "background": "#f6f8fb",
                            "visibility": true
                          },
                          "settings-panel": {
                            "background": "#ffffff"
                          },
                          "request-payment": {
                            "visibility": true
                          },
                          "customize-message": {
                            "visibility": true
                          }
                        },
                        "email-invite": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Needs Your Signature",
                            "expiration": "This invite will expire in {days} days",
                            "body_header": "You were invited to review and sign a document",
                            "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "Necesita tu firma",
                            "expiration": "Esta invitación dejará de ser válida en {days} días",
                            "body_header": "Te han invitado a revisar y firmar un documento",
                            "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "A besoin de votre signature",
                            "expiration": "Cette invitation expirera dans {days} jours",
                            "body_header": "Vous avez été invité à vérifier et signer un document",
                            "body_message": "Vous invite à compléter et signer le document {document_name}.",
                            "footer_message": ""
                          }
                        },
                        "email-general": {
                          "ccd": {
                            "visibility": true
                          },
                          "logo": {
                            "position": "left"
                          },
                          "buttons": {
                            "color": "#ffffff",
                            "background": "#0777cf"
                          },
                          "sender_email": "mail@signnow.com",
                          "contact_sender": {
                            "visibility": true
                          },
                          "secondary_buttons": {
                            "color": "#38424b",
                            "background": "#e3e6e9"
                          },
                          "signnow_references": true,
                          "hide_download_image": false
                        },
                        "email-cc-invite": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{sender_email} has CC'd you on an invitation",
                            "body_header": "{sender_email} has CC'd you on an invitation",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "{sender_email} has invited {signer_email} to review and sign: {document_name}.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "{sender_email} te ha puesto en copia en una invitación",
                            "body_header": "{sender_email} te ha puesto en copia en una invitación",
                            "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                            "body_message": "{sender_email} ha invitado a {signer_email} a revisar y firmar: {document_name}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "{sender_email} vous a mis en copie d'une invitation",
                            "body_header": "{sender_email} vous a mis en copie d'une invitation",
                            "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                            "body_message": "{sender_email} a invité {signer_email} à examiner et signer: {document_name}.",
                            "footer_message": ""
                          }
                        },
                        "email-invite-canceled": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Has canceled the document invite",
                            "body_header": "Document Invite Canceled",
                            "body_message": "The invitation for {document_name} document was canceled",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "Canceló la invitación al documento",
                            "body_header": "Invitación a documento cancelada",
                            "body_message": "La invitación al documento {document_name} fue cancelada",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "A annulé l'invitation au document",
                            "body_header": "Invitation de document annulée",
                            "body_message": "L’invitation pour le document {document_name} a été annulée",
                            "footer_message": ""
                          }
                        },
                        "email-invite-reassign": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Needs Your Signature",
                            "expiration": "This invite will expire in {days} days",
                            "body_header": "You were invited to review and sign a document",
                            "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                            "footer_message": "",
                            "forward_message": "This message is forwarded by {email_from}"
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "Necesita tu firma",
                            "expiration": "Esta invitación dejará de ser válida en {days} días",
                            "body_header": "Te han invitado a revisar y firmar un documento",
                            "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
                            "footer_message": "",
                            "forward_message": "Este mensaje ha sido enviado por {email_from}"
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "A besoin de votre signature",
                            "expiration": "Cette invitation expirera dans {days} jours",
                            "body_header": "Vous avez été invité à vérifier et signer un document",
                            "body_message": "Vous invite à compléter et signer le document {document_name}.",
                            "footer_message": "",
                            "forward_message": "Ce message est transféré par {email_from}"
                          }
                        },
                        "email-invite-reminder": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Reminder: {document_name}: Signature Request",
                            "expiration": "This invite will expire in {days} days",
                            "body_header": "You were invited to review and sign a document",
                            "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "Recordatorio: {document_name}: Solicitud de firma",
                            "expiration": "Esta invitación dejará de ser válida en {days} días",
                            "body_header": "Te han invitado a revisar y firmar un documento",
                            "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "Rappel: {document_name}: demande de signature",
                            "expiration": "Cette invitation expirera dans {days} jours",
                            "body_header": "Vous avez été invité à vérifier et signer un document",
                            "body_message": "Vous invite à compléter et signer le document {document_name}.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-signed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{signer_email} Has Signed Document",
                            "body_header": "{signer_email} has completed an invitation you were CC’d on",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "{signer_email} has completed and signed {document_name} sent by {sender_email}.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "{signer_email} ha firmado el documento",
                            "body_header": "{signer_email} ha completado una invitación en la que estabas en CC",
                            "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                            "body_message": "{signer_email} ha completado y firmado {document_name} enviado por {sender_email}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "{signer_email} a signé le document",
                            "body_header": "{signer_email} a complété une invitation dans laquelle vous étiez en CC",
                            "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                            "body_message": "{signer_email} a rempli et signé {document_name} envoyé par {sender_email}.",
                            "footer_message": ""
                          }
                        },
                        "email-invite-completed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{document_name} Has Been Completed",
                            "body_header": "You filled out and signed a document",
                            "body_message": "You’ve filled out and signed the {document_name} document. Follow the link below to view and download the document.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "{document_name} Se ha completado",
                            "body_header": "Has rellenado y firmado un documento",
                            "body_message": "Has rellenado y firmado el documento {document_name}. Haz clic en el siguiente enlace para ver y descargar el documento.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "{document_name} A été finalisé",
                            "body_header": "Vous avez rempli et signé un document",
                            "body_message": "Vous avez rempli et signé le document {document_name}. Suivez le lien ci-dessous pour consulter et télécharger le document.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-reassign": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{sender_email} has CC'd you on an invitation",
                            "body_header": "An invitation you were CC'd on was forwarded to another recipient",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "An invitation you were CC’d on has been forwarded. {old_signer_email} has shared their invitation with {new_signer_email} to complete and sign {document_name} from {sender_email}.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "{sender_email} te ha puesto en CC en una invitación",
                            "body_header": "Una invitación en la que estabas en CC fue reenviada a otro destinatario",
                            "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                            "body_message": "Una invitación en la que estabas en CC fue reenviada. {old_signer_email} compartió su invitación con {new_signer_email} para completar y firmar {document_name} de parte de {sender_email}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "{sender_email} vous a mis en CC dans une invitation",
                            "body_header": "Une invitation dans laquelle vous étiez en CC a été transférée à un autre destinataire",
                            "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                            "body_message": "Une invitation dans laquelle vous étiez en CC a été transférée. {old_signer_email} a partagé son invitation avec {new_signer_email} pour la remplir et la signer {document_name} de la part de {sender_email}.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-completed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{document_name} Has Been Completed",
                            "body_header": "All recipients have completed an invitation you were CC’d on",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "All recipients have completed and signed {document_name} sent by {sender_email}.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "{document_name} se ha completado",
                            "body_header": "Todos los destinatarios han completado una invitación en la que estabas en copia",
                            "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                            "body_message": "Todos los destinatarios han completado y firmado {document_name} enviado por {sender_email}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "{document_name} a été finalisé",
                            "body_header": "Tous les destinataires ont complété une invitation à laquelle vous avez été en copie",
                            "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                            "body_message": "Tous les destinataires ont rempli et signé {document_name} envoyé par {sender_email}.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-step-completed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Step completion email for document: {document_name}",
                            "body_header": "All recipients have completed step {step_number} of an invitation you were CC’d on",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "All recipients have successfully completed step {step_number} of the document process via signNow.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "Correo electrónico de finalización del paso para el documento: {document_name}",
                            "body_header": "Todos los destinatarios han completado el paso {step_number} de una invitación en la que fuiste incluido en CC",
                            "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                            "body_message": "Todos los destinatarios han completado con éxito el paso {step_number} del proceso del documento a través de signNow.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "E-mail de fin d`étape pour le document: {document_name}",
                            "body_header": "Tous les destinataires ont complété l'étape {step_number} d'une invitation dans laquelle vous avez été mis en copie",
                            "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                            "body_message": "Tous les destinataires ont complété avec succès l'étape {step_number} du processus du document via signNow.",
                            "footer_message": ""
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "title": "Brand title",
                      "resources": {
                        "logo": {
                          "url": "https://marketing-static.signnow.com/1382/images/global/svg/new-logo.svg"
                        },
                        "editor": {
                          "fields": {
                            "date": {
                              "visibility": true
                            },
                            "text": {
                              "visibility": true
                            },
                            "email": {
                              "visibility": true
                            },
                            "stamp": {
                              "visibility": true
                            },
                            "formula": {
                              "visibility": true
                            },
                            "checkbox": {
                              "visibility": true
                            },
                            "dropdown": {
                              "visibility": true
                            },
                            "fullname": {
                              "visibility": true
                            },
                            "initials": {
                              "visibility": true
                            },
                            "hyperlink": {
                              "visibility": true
                            },
                            "signature": {
                              "visibility": true
                            },
                            "attachment": {
                              "visibility": true
                            },
                            "radiobutton": {
                              "visibility": true
                            }
                          },
                          "sidebar": {
                            "background": "#ffffff",
                            "visibility": true
                          },
                          "toolbar": {
                            "background": "#ffffff",
                            "visibility": true
                          },
                          "settings": {
                            "visibility": true
                          },
                          "auth-page": {
                            "check-pin": {
                              "phone": {
                                "body-text": {
                                  "en": "Enter the document password sent you by voice call or sms.",
                                  "es": "Introduce la contraseña del documento que te ha enviado por llamada de voz o sms.",
                                  "fr": "Entrez le mot de passe du document que vous avez reçu par appel vocal ou sms."
                                }
                              },
                              "password": {
                                "body-text": {
                                  "en": "Enter the document password below to unlock the document.",
                                  "es": "Introduce la contraseña del documento a continuación para desbloquear el documento.",
                                  "fr": "Entrez le mot de passe du document ci-dessous pour déverrouiller le document."
                                }
                              }
                            },
                            "header-text": {
                              "en": "{sender_email} invited you to sign {document_name}",
                              "es": "{sender_email} te ha invitado a firmar {document_name}",
                              "fr": "{sender_email} vous a invité à signer {document_name}"
                            },
                            "request-pin": {
                              "body-text": {
                                "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
                                "es": "Pulsa el botón de abajo para que te envíen la contraseña por llamada de voz o mensaje sms.",
                                "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoyé par appel vocal ou sms."
                              }
                            }
                          },
                          "navigation": {
                            "visibility": true
                          },
                          "sender-info": {
                            "visibility": true,
                            "contact-name": "Contact Name",
                            "contact-email": "contact@email.com"
                          },
                          "close-button": {
                            "title": {
                              "editor": {
                                "en": "Save and Close",
                                "es": "Guardar y cerrar",
                                "fr": "Enregistrer et fermer"
                              },
                              "signing": {
                                "en": "Save Progress and Finish Later",
                                "es": "Guardar progresos y terminar más tarde",
                                "fr": "Enregistrer la progression et terminer plus tard"
                              }
                            },
                            "visibility": false
                          },
                          "progress-bar": {
                            "default-color": "#e3e6e9",
                            "completed-color": "#0777cf"
                          },
                          "support-chat": {
                            "visibility": true
                          },
                          "accessibility": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "enabled": false,
                            "background": "#ffffff",
                            "visibility": true,
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#dadee2",
                            "hover-background": "#f1f2f4",
                            "active-background": "#dadee2"
                          },
                          "complete-page": {
                            "decline": {
                              "body-text": {
                                "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you’d like to. Contact the sender to find out what to do next.",
                                "es": "No has dado tu consentimiento para hacer negocios electrónicamente con el remitente. La Divulgación de Firma Electrónica aún se puede aceptar antes de que el remitente cancele la invitación. Puedes encontrar la invitación en tu bandeja de entrada y en la cuenta de signNow. Aún puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qué hacer a continuación.",
                                "fr": "Vous n’avez pas consenti à traiter par voie électronique avec l’expéditeur. La Divulgation par signature électronique peut toujours être acceptée avant que l’expéditeur n’annule l’invitation. L’invitation se trouve dans votre boîte de réception et dans votre compte signNow. Vous pouvez néanmoins télécharger le document si vous le souhaitez. Contactez l’expéditeur pour connaître les prochaines étapes."
                              },
                              "header-text": {
                                "en": "You've declined the Electronic Signature Disclosure agreement",
                                "es": "Has rechazado el acuerdo de Divulgación de firmas electrónicas",
                                "fr": "Vous avez refusé l’accord de Divulgation par signature électronique"
                              }
                            },
                            "success": {
                              "body-text": {
                                "en": "The sender will be notified and receive the signed document.",
                                "es": "El remitente recibirá una notificación y el documento firmado. También se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
                                "fr": "L'expéditeur sera informé et recevra le document signé. Une copie a également été envoyée dans votre boîte de réception et enregistrée dans votre compte signNow."
                              },
                              "header-text": {
                                "en": "You've filled out and signed the document",
                                "es": "Has completado y firmado el documento",
                                "fr": "Vous avez rempli et signé le document"
                              }
                            },
                            "registration": {
                              "visibility": true
                            },
                            "button-download": {
                              "visibility": true
                            },
                            "button-to-signnow": {
                              "visibility": false
                            }
                          },
                          "document-name": {
                            "visibility": true
                          },
                          "editing-tools": {
                            "background": "#ffffff"
                          },
                          "decline-button": {
                            "visibility": true
                          },
                          "default-fields": {
                            "visibility": true
                          },
                          "field-settings": {
                            "visibility": true
                          },
                          "page-dimension": {
                            "percent": 150
                          },
                          "preview-button": {
                            "visibility": true
                          },
                          "complete-footer": {
                            "visibility": true,
                            "custom-text": {
                              "en": "You've completed all required fields. Review your document and click Finish.",
                              "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
                              "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
                            }
                          },
                          "continue-button": {
                            "visibility": true
                          },
                          "download-button": {
                            "visibility": true
                          },
                          "request-payment": {
                            "visibility": true
                          },
                          "signing-settings": {
                            "guide-signers-only-through-required-fields": true,
                            "auto-apply-signatures-and-initials-to-document-fields": true
                          },
                          "manage-recipients": {
                            "visibility": true
                          },
                          "step-progress-bar": {
                            "visibility": true
                          },
                          "thumbnails-button": {
                            "visibility": true
                          },
                          "decline-invite-text": {
                            "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
                            "es": "Estás a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perderán.",
                            "fr": "Vous êtes sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apportées à ce document seront perdues."
                          }
                        },
                        "general": {
                          "icons": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "hover-background": "#f1f2f4"
                          },
                          "texts": {
                            "color": "#2f373e"
                          },
                          "header": {
                            "background": "#ffffff"
                          },
                          "buttons": {
                            "default": {
                              "color": "#546470",
                              "border": "#ffffff",
                              "background": "#ffffff",
                              "hover-color": "#546470",
                              "active-color": "#546470",
                              "hover-border": "#f1f2f4",
                              "active-border": "#ffffff",
                              "hover-background": "#f1f2f4",
                              "active-background": "#ffffff"
                            },
                            "primary": {
                              "color": "#ffffff",
                              "border": "#0777cf",
                              "background": "#0777cf",
                              "hover-color": "#ffffff",
                              "active-color": "#ffffff",
                              "hover-border": "#348fd7",
                              "active-border": "#003458",
                              "hover-background": "#348fd7",
                              "active-background": "#076dbd"
                            },
                            "dropdown": {
                              "color": "#546470",
                              "border": "#ffffff",
                              "background": "#ffffff",
                              "hover-color": "#546470",
                              "active-color": "#546470",
                              "hover-border": "#f1f2f4",
                              "active-border": "#ffffff",
                              "hover-background": "#f1f2f4",
                              "active-background": "#ffffff"
                            },
                            "secondary": {
                              "color": "#38424b",
                              "border": "#e3e6e9",
                              "background": "#e3e6e9",
                              "hover-color": "#38424b",
                              "active-color": "#38424b",
                              "hover-border": "#f1f2f4",
                              "active-border": "#d5dade",
                              "hover-background": "#f1f2f4",
                              "active-background": "#d5dade"
                            }
                          },
                          "hyperlink": {
                            "color": "#546470",
                            "hover-color": "#667988",
                            "active-color": "#4b5963"
                          },
                          "help-center": {
                            "visibility": true
                          },
                          "consent-text": {
                            "en": "{sender_email} has invited you to fill out and sign this in one place.",
                            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                            "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                          },
                          "main-background": "#efefef",
                          "welcome-message": {
                            "body-text": {
                              "en": "{sender_email} has invited you to fill out and sign this in one place.",
                              "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                              "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                            },
                            "visibility": true,
                            "header-text": {
                              "en": "Hi, {signer_email}",
                              "es": "Hola, {signer_email}",
                              "fr": "Bonjour, {signer_email}"
                            }
                          }
                        },
                        "email-logo": {
                          "url": "https://marketing-static.signnow.com/36/images/global/png/sign-now-logo-blue@2x.png"
                        },
                        "send-invite": {
                          "from": {
                            "visibility": true
                          },
                          "header": {
                            "visibility": true
                          },
                          "settings": {
                            "visibility": true
                          },
                          "cc-recipients": {
                            "visibility": true
                          },
                          "preview-panel": {
                            "background": "#f6f8fb",
                            "visibility": true
                          },
                          "settings-panel": {
                            "background": "#ffffff"
                          },
                          "request-payment": {
                            "visibility": true
                          },
                          "customize-message": {
                            "visibility": true
                          }
                        },
                        "email-invite": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Needs Your Signature",
                            "expiration": "This invite will expire in {days} days",
                            "body_header": "You were invited to review and sign a document",
                            "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "Necesita tu firma",
                            "expiration": "Esta invitación dejará de ser válida en {days} días",
                            "body_header": "Te han invitado a revisar y firmar un documento",
                            "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "A besoin de votre signature",
                            "expiration": "Cette invitation expirera dans {days} jours",
                            "body_header": "Vous avez été invité à vérifier et signer un document",
                            "body_message": "Vous invite à compléter et signer le document {document_name}.",
                            "footer_message": ""
                          }
                        },
                        "email-general": {
                          "ccd": {
                            "visibility": true
                          },
                          "logo": {
                            "position": "left"
                          },
                          "buttons": {
                            "color": "#ffffff",
                            "background": "#0777cf"
                          },
                          "sender_email": "mail@signnow.com",
                          "contact_sender": {
                            "visibility": true
                          },
                          "secondary_buttons": {
                            "color": "#38424b",
                            "background": "#e3e6e9"
                          },
                          "signnow_references": true,
                          "hide_download_image": false
                        },
                        "email-cc-invite": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{sender_email} has CC'd you on an invitation",
                            "body_header": "{sender_email} has CC'd you on an invitation",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "{sender_email} has invited {signer_email} to review and sign: {document_name}.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "{sender_email} te ha puesto en copia en una invitación",
                            "body_header": "{sender_email} te ha puesto en copia en una invitación",
                            "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                            "body_message": "{sender_email} ha invitado a {signer_email} a revisar y firmar: {document_name}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "{sender_email} vous a mis en copie d'une invitation",
                            "body_header": "{sender_email} vous a mis en copie d'une invitation",
                            "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                            "body_message": "{sender_email} a invité {signer_email} à examiner et signer: {document_name}.",
                            "footer_message": ""
                          }
                        },
                        "email-invite-canceled": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Has canceled the document invite",
                            "body_header": "Document Invite Canceled",
                            "body_message": "The invitation for {document_name} document was canceled",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "Canceló la invitación al documento",
                            "body_header": "Invitación a documento cancelada",
                            "body_message": "La invitación al documento {document_name} fue cancelada",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "A annulé l'invitation au document",
                            "body_header": "Invitation de document annulée",
                            "body_message": "L’invitation pour le document {document_name} a été annulée",
                            "footer_message": ""
                          }
                        },
                        "email-invite-reassign": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Needs Your Signature",
                            "expiration": "This invite will expire in {days} days",
                            "body_header": "You were invited to review and sign a document",
                            "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                            "footer_message": "",
                            "forward_message": "This message is forwarded by {email_from}"
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "Necesita tu firma",
                            "expiration": "Esta invitación dejará de ser válida en {days} días",
                            "body_header": "Te han invitado a revisar y firmar un documento",
                            "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
                            "footer_message": "",
                            "forward_message": "Este mensaje ha sido enviado por {email_from}"
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "A besoin de votre signature",
                            "expiration": "Cette invitation expirera dans {days} jours",
                            "body_header": "Vous avez été invité à vérifier et signer un document",
                            "body_message": "Vous invite à compléter et signer le document {document_name}.",
                            "footer_message": "",
                            "forward_message": "Ce message est transféré par {email_from}"
                          }
                        },
                        "email-invite-reminder": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Reminder: {document_name}: Signature Request",
                            "expiration": "This invite will expire in {days} days",
                            "body_header": "You were invited to review and sign a document",
                            "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "Recordatorio: {document_name}: Solicitud de firma",
                            "expiration": "Esta invitación dejará de ser válida en {days} días",
                            "body_header": "Te han invitado a revisar y firmar un documento",
                            "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "Rappel: {document_name}: demande de signature",
                            "expiration": "Cette invitation expirera dans {days} jours",
                            "body_header": "Vous avez été invité à vérifier et signer un document",
                            "body_message": "Vous invite à compléter et signer le document {document_name}.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-signed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{signer_email} Has Signed Document",
                            "body_header": "{signer_email} has completed an invitation you were CC’d on",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "{signer_email} has completed and signed {document_name} sent by {sender_email}.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "{signer_email} ha firmado el documento",
                            "body_header": "{signer_email} ha completado una invitación en la que estabas en CC",
                            "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                            "body_message": "{signer_email} ha completado y firmado {document_name} enviado por {sender_email}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "{signer_email} a signé le document",
                            "body_header": "{signer_email} a complété une invitation dans laquelle vous étiez en CC",
                            "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                            "body_message": "{signer_email} a rempli et signé {document_name} envoyé par {sender_email}.",
                            "footer_message": ""
                          }
                        },
                        "email-invite-completed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{document_name} Has Been Completed",
                            "body_header": "You filled out and signed a document",
                            "body_message": "You’ve filled out and signed the {document_name} document. Follow the link below to view and download the document.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "{document_name} Se ha completado",
                            "body_header": "Has rellenado y firmado un documento",
                            "body_message": "Has rellenado y firmado el documento {document_name}. Haz clic en el siguiente enlace para ver y descargar el documento.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "{document_name} A été finalisé",
                            "body_header": "Vous avez rempli et signé un document",
                            "body_message": "Vous avez rempli et signé le document {document_name}. Suivez le lien ci-dessous pour consulter et télécharger le document.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-reassign": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{sender_email} has CC'd you on an invitation",
                            "body_header": "An invitation you were CC'd on was forwarded to another recipient",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "An invitation you were CC’d on has been forwarded. {old_signer_email} has shared their invitation with {new_signer_email} to complete and sign {document_name} from {sender_email}.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "{sender_email} te ha puesto en CC en una invitación",
                            "body_header": "Una invitación en la que estabas en CC fue reenviada a otro destinatario",
                            "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                            "body_message": "Una invitación en la que estabas en CC fue reenviada. {old_signer_email} compartió su invitación con {new_signer_email} para completar y firmar {document_name} de parte de {sender_email}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "{sender_email} vous a mis en CC dans une invitation",
                            "body_header": "Une invitation dans laquelle vous étiez en CC a été transférée à un autre destinataire",
                            "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                            "body_message": "Une invitation dans laquelle vous étiez en CC a été transférée. {old_signer_email} a partagé son invitation avec {new_signer_email} pour la remplir et la signer {document_name} de la part de {sender_email}.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-completed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{document_name} Has Been Completed",
                            "body_header": "All recipients have completed an invitation you were CC’d on",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "All recipients have completed and signed {document_name} sent by {sender_email}.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "{document_name} se ha completado",
                            "body_header": "Todos los destinatarios han completado una invitación en la que estabas en copia",
                            "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                            "body_message": "Todos los destinatarios han completado y firmado {document_name} enviado por {sender_email}.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "{document_name} a été finalisé",
                            "body_header": "Tous les destinataires ont complété une invitation à laquelle vous avez été en copie",
                            "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                            "body_message": "Tous les destinataires ont rempli et signé {document_name} envoyé par {sender_email}.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-step-completed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Step completion email for document: {document_name}",
                            "body_header": "All recipients have completed step {step_number} of an invitation you were CC’d on",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "All recipients have successfully completed step {step_number} of the document process via signNow.",
                            "footer_message": ""
                          },
                          "es": {
                            "from": "Nombre del remitente",
                            "subject": "Correo electrónico de finalización del paso para el documento: {document_name}",
                            "body_header": "Todos los destinatarios han completado el paso {step_number} de una invitación en la que fuiste incluido en CC",
                            "ccd_message": "Se te ha copiado en esta invitación junto con {cc_emails}.",
                            "body_message": "Todos los destinatarios han completado con éxito el paso {step_number} del proceso del documento a través de signNow.",
                            "footer_message": ""
                          },
                          "fr": {
                            "from": "Nom de l'expéditeur",
                            "subject": "E-mail de fin d`étape pour le document: {document_name}",
                            "body_header": "Tous les destinataires ont complété l'étape {step_number} d'une invitation dans laquelle vous avez été mis en copie",
                            "ccd_message": "Vous avez été mis en copie de cette invitation avec {cc_emails}.",
                            "body_message": "Tous les destinataires ont complété avec succès l'étape {step_number} du processus du document via signNow.",
                            "footer_message": ""
                          }
                        }
                      }
                    }
                  },
                  "JSON file with template structure": {
                    "value": {
                      "title": "Brand title",
                      "resources": {
                        "logo": {
                          "url": "https://marketing-static.signnow.com/1382/images/global/svg/new-logo.svg"
                        },
                        "editor": {
                          "fields": {
                            "date": {
                              "visibility": true
                            },
                            "text": {
                              "visibility": true
                            },
                            "email": {
                              "visibility": true
                            },
                            "stamp": {
                              "visibility": true
                            },
                            "formula": {
                              "visibility": true
                            },
                            "checkbox": {
                              "visibility": true
                            },
                            "dropdown": {
                              "visibility": true
                            },
                            "fullname": {
                              "visibility": true
                            },
                            "initials": {
                              "visibility": true
                            },
                            "hyperlink": {
                              "visibility": true
                            },
                            "signature": {
                              "visibility": true
                            },
                            "attachment": {
                              "visibility": true
                            },
                            "radiobutton": {
                              "visibility": true
                            }
                          },
                          "sidebar": {
                            "background": "#ffffff",
                            "visibility": true
                          },
                          "toolbar": {
                            "background": "#ffffff",
                            "visibility": true
                          },
                          "settings": {
                            "visibility": true
                          },
                          "auth-page": {
                            "check-pin": {
                              "phone": {
                                "body-text": {
                                  "en": "Enter the document password sent you by voice call or sms."
                                }
                              },
                              "password": {
                                "body-text": {
                                  "en": "Enter the document password below to unlock the document."
                                }
                              }
                            },
                            "header-text": {
                              "en": "{sender_email} invited you to sign {document_name}"
                            },
                            "request-pin": {
                              "body-text": {
                                "en": "Press the button bellow to have the password sent to you by voice call or sms message."
                              }
                            }
                          },
                          "navigation": {
                            "visibility": true
                          },
                          "sender-info": {
                            "visibility": true,
                            "contact-name": "Contact Name",
                            "contact-email": "contact@email.com"
                          },
                          "close-button": {
                            "title": {
                              "editor": {
                                "en": "Save and Close",
                                "es": "Guardar y cerrar",
                                "fr": "Enregistrer et fermer"
                              },
                              "signing": {
                                "en": "Save Progress and Finish Later",
                                "es": "Guardar progresos y terminar más tarde",
                                "fr": "Enregistrer la progression et terminer plus tard"
                              }
                            },
                            "visibility": true
                          },
                          "progress-bar": {
                            "default-color": "#e3e6e9",
                            "completed-color": "#0777cf"
                          },
                          "support-chat": {
                            "visibility": true
                          },
                          "accessibility": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "enabled": false,
                            "background": "#ffffff",
                            "visibility": true,
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#dadee2",
                            "hover-background": "#f1f2f4",
                            "active-background": "#dadee2"
                          },
                          "complete-page": {
                            "decline": {
                              "body-text": {
                                "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you’d like to. Contact the sender to find out what to do next."
                              },
                              "header-text": {
                                "en": "You've declined the Electronic Signature Disclosure agreement"
                              }
                            },
                            "success": {
                              "body-text": {
                                "en": "The sender will be notified and receive the signed document."
                              },
                              "header-text": {
                                "en": "You've filled out and signed the document"
                              }
                            },
                            "registration": {
                              "visibility": true
                            },
                            "button-download": {
                              "visibility": true
                            },
                            "button-to-signnow": {
                              "visibility": false
                            }
                          },
                          "document-name": {
                            "visibility": true
                          },
                          "editing-tools": {
                            "background": "#ffffff"
                          },
                          "decline-button": {
                            "visibility": true
                          },
                          "default-fields": {
                            "visibility": true
                          },
                          "field-settings": {
                            "visibility": true
                          },
                          "page-dimension": {
                            "percent": 150
                          },
                          "preview-button": {
                            "visibility": true
                          },
                          "complete-footer": {
                            "visibility": true,
                            "custom-text": {
                              "en": "You've completed all required fields. Review your document and click Finish."
                            }
                          },
                          "continue-button": {
                            "visibility": true
                          },
                          "download-button": {
                            "visibility": true
                          },
                          "request-payment": {
                            "visibility": true
                          },
                          "signing-settings": {
                            "guide-signers-only-through-required-fields": true,
                            "auto-apply-signatures-and-initials-to-document-fields": true
                          },
                          "manage-recipients": {
                            "visibility": true
                          },
                          "step-progress-bar": {
                            "visibility": true
                          },
                          "thumbnails-button": {
                            "visibility": true
                          },
                          "decline-invite-text": {
                            "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost."
                          }
                        },
                        "general": {
                          "icons": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "hover-background": "#f1f2f4"
                          },
                          "texts": {
                            "color": "#2f373e"
                          },
                          "header": {
                            "background": "#ffffff"
                          },
                          "buttons": {
                            "default": {
                              "color": "#546470",
                              "border": "#ffffff",
                              "background": "#ffffff",
                              "hover-color": "#546470",
                              "active-color": "#546470",
                              "hover-border": "#f1f2f4",
                              "active-border": "#ffffff",
                              "hover-background": "#f1f2f4",
                              "active-background": "#ffffff"
                            },
                            "primary": {
                              "color": "#ffffff",
                              "border": "#0777cf",
                              "background": "#0777cf",
                              "hover-color": "#ffffff",
                              "active-color": "#ffffff",
                              "hover-border": "#348fd7",
                              "active-border": "#003458",
                              "hover-background": "#348fd7",
                              "active-background": "#076dbd"
                            },
                            "dropdown": {
                              "color": "#546470",
                              "border": "#ffffff",
                              "background": "#ffffff",
                              "hover-color": "#546470",
                              "active-color": "#546470",
                              "hover-border": "#f1f2f4",
                              "active-border": "#ffffff",
                              "hover-background": "#f1f2f4",
                              "active-background": "#ffffff"
                            },
                            "secondary": {
                              "color": "#38424b",
                              "border": "#e3e6e9",
                              "background": "#e3e6e9",
                              "hover-color": "#38424b",
                              "active-color": "#38424b",
                              "hover-border": "#f1f2f4",
                              "active-border": "#d5dade",
                              "hover-background": "#f1f2f4",
                              "active-background": "#d5dade"
                            }
                          },
                          "hyperlink": {
                            "color": "#546470",
                            "hover-color": "#667988",
                            "active-color": "#4b5963"
                          },
                          "help-center": {
                            "visibility": true
                          },
                          "consent-text": {
                            "en": "{sender_email} has invited you to fill out and sign this in one place."
                          },
                          "main-background": "#efefef",
                          "welcome-message": {
                            "body-text": {
                              "en": "{sender_email} has invited you to fill out and sign this in one place."
                            },
                            "visibility": true,
                            "header-text": {
                              "en": "Hi, {signer_email}"
                            }
                          }
                        },
                        "email-logo": {
                          "url": "https://marketing-static.signnow.com/36/images/global/png/sign-now-logo-blue@2x.png"
                        },
                        "send-invite": {
                          "from": {
                            "visibility": true
                          },
                          "header": {
                            "visibility": true
                          },
                          "settings": {
                            "visibility": true
                          },
                          "cc-recipients": {
                            "visibility": true
                          },
                          "preview-panel": {
                            "background": "#f6f8fb",
                            "visibility": true
                          },
                          "settings-panel": {
                            "background": "#ffffff"
                          },
                          "request-payment": {
                            "visibility": true
                          },
                          "customize-message": {
                            "visibility": true
                          }
                        },
                        "email-invite": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Needs Your Signature",
                            "expiration": "This invite will expire in {days} days",
                            "body_header": "You were invited to review and sign a document",
                            "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                            "footer_message": ""
                          }
                        },
                        "email-general": {
                          "ccd": {
                            "visibility": true
                          },
                          "logo": {
                            "position": "left"
                          },
                          "buttons": {
                            "color": "#ffffff",
                            "background": "#0777cf"
                          },
                          "sender_email": "mail@signnow.com",
                          "contact_sender": {
                            "visibility": true
                          },
                          "secondary_buttons": {
                            "color": "#38424b",
                            "background": "#e3e6e9"
                          },
                          "signnow_references": true,
                          "hide_download_image": false
                        },
                        "email-cc-invite": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{sender_email} has CC'd you on an invitation",
                            "body_header": "{sender_email} has CC'd you on an invitation",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "{sender_email} has invited {signer_email} to review and sign: {document_name}.",
                            "footer_message": ""
                          }
                        },
                        "email-invite-canceled": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Has canceled the document invite",
                            "body_header": "Document Invite Canceled",
                            "body_message": "The invitation for {document_name} document was canceled",
                            "footer_message": ""
                          }
                        },
                        "email-invite-reassign": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Needs Your Signature",
                            "expiration": "This invite will expire in {days} days",
                            "body_header": "You were invited to review and sign a document",
                            "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                            "footer_message": "",
                            "forward_message": "This message is forwarded by {email_from}"
                          }
                        },
                        "email-invite-reminder": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Reminder: {document_name}: Signature Request",
                            "expiration": "This invite will expire in {days} days",
                            "body_header": "You were invited to review and sign a document",
                            "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-signed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{signer_email} Has Signed Document",
                            "body_header": "{signer_email} has completed an invitation you were CC’d on",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "{signer_email} has completed and signed {document_name} sent by {sender_email}.",
                            "footer_message": ""
                          }
                        },
                        "email-invite-completed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{document_name} Has Been Completed",
                            "body_header": "You filled out and signed a document",
                            "body_message": "You’ve filled out and signed the {document_name} document. Follow the link below to view and download the document.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-reassign": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{sender_email} has CC'd you on an invitation",
                            "body_header": "An invitation you were CC'd on was forwarded to another recipient",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "An invitation you were CC’d on has been forwarded. {old_signer_email} has shared their invitation with {new_signer_email} to complete and sign {document_name} from {sender_email}.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-completed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "{document_name} Has Been Completed",
                            "body_header": "All recipients have completed an invitation you were CC’d on",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "All recipients have completed and signed {document_name} sent by {sender_email}.",
                            "footer_message": ""
                          }
                        },
                        "email-cc-invite-step-completed": {
                          "en": {
                            "from": "Sender Name",
                            "subject": "Step completion email for document: {document_name}",
                            "body_header": "All recipients have completed step {step_number} of an invitation you were CC’d on",
                            "ccd_message": "You have been CC’d on this invitation along with {cc_emails}.",
                            "body_message": "All recipients have successfully completed step {step_number} of the document process via signNow.",
                            "footer_message": ""
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/upload-file": {
      "post": {
        "operationId": "post-v2-brands-upload-file",
        "summary": "Create brand from template file",
        "description": "This endpoint allows users to upload a template in JSON/XML file with brand settings and current resources.\n\nGet the up-to-date template file [here](/docs/general-branding/operations/get-v2-brands-template-file). \n\nAssign the created brand ID to any of these levels: \n\n* [Brand your documents](/docs/general-branding/operations/put-v2-documents-document-id-brand). \n* [Brand your document groups](/docs/general-branding/operations/put-v2-document-groups-document-group-id-brand). \n* [Brand your applications](/docs/general-branding/operations/put-v2-applications-application-id-brand). \n \nThe template structure consists of two required objects: \n\n* `title`: a string parameter with a brand title. \n* `resources`: an array of objects with the list of resources and their properties. \n\nExample schema:\n\n```\n{\n    \"title\": \"some brand title\",\n    \"resources\": [\n        \"general\": {...},\n        \"editor\": {...},\n        \"send-invite\": {...},\n        \"logo\": {...},\n        \"email-general\": {...},\n        \"email-invite\": {...},\n        ...\n    ]\n}\n\n```",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "multipart/form-data"
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": {
                        "id": "17XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Template file missing.\n* Template file is empty.\n* JSON is empty.\n* Resources parameter is missing.\n* Incorrect file format.\n* Incorrect JSON format.\n* `resources` is not an array.\n* `resources` array is empty.\n* `general` is not an array.\n* `general` array is empty.\n* `editor` is not an array.\n* `editor` array is empty.\n* `logo` is not an array.\n* `logo` array is empty.\n* `email-logo` is not an array.\n* `email-logo` is empty.\n* Missing `email-logo.url`.\n* Incorrect `email-logo.url`.\n* `email-logo.url` is not a string.\n* `email-logo.url` does not contain an image.\n* `email-logo.url` contains an image that cannot be downloaded.\n* `email-logo.url` contains an image that is too big.\n* Missing `logo.url`.\n* Incorrect `logo.url`.\n* `logo.url` is not a string.\n* `logo.url` does not contain an image.\n* `logo.url` contains an image that cannot be downloaded.\n* `logo.url` contains an image that is too big.\n* `email-invite` is not an array.\n* `email-invite` array is empty.\n* `email-invite-reassign` is not an array.\n* `email-invite-reassign` array is empty.\n* `email-invite-completed` is not an array.\n* `email-invite-completed` array is empty.\n* `email-invite-canceled` is not an array.\n* `email-invite-canceled` array is empty.\n* `email-invite-reminder` is not an array.\n* `email-invite-reminder` array is empty.\n* `email-general` is not an array.\n* `email-general` array is empty.\n* `title` is missing.\n* `title` is empty.\n* `title` not string.\n* `title` is longer than 100 characters.\n* Unexpected resources.\n* Send invite resource parameter validation errors.\n* Editor resource parameter validation errors.\n* General resource parameter validation errors.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        [
                          {
                            "code": 25002292,
                            "message": "The `continue-button.visibility` must be a boolean."
                          }
                        ]
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        [
                          {
                            "code": 25002292,
                            "message": "The `continue-button.visibility` must be a boolean."
                          }
                        ]
                      ]
                    }
                  },
                  "Empty JSON": {
                    "value": {
                      "code": 25002122,
                      "message": "Empty JSON provided."
                    }
                  },
                  "Missing title": {
                    "value": {
                      "code": 25002113,
                      "message": "The `title` is required."
                    }
                  },
                  "logo not array": {
                    "value": {
                      "code": 25002101,
                      "message": "The `resources.logo` must be an array."
                    }
                  },
                  "editor not array": {
                    "value": {
                      "code": 25002099,
                      "message": "The `resources.editor` must be an array."
                    }
                  },
                  "title not string": {
                    "value": {
                      "code": 25002115,
                      "message": "The `title` must be a string."
                    }
                  },
                  "Missing resources": {
                    "value": {
                      "code": 25002123,
                      "message": "The `resources` is required."
                    }
                  },
                  "general not array": {
                    "value": {
                      "code": 25002097,
                      "message": "The `resources.general` must be an array."
                    }
                  },
                  "Missing `logo.url`": {
                    "value": {
                      "code": 25002128,
                      "message": "The `url` is required."
                    }
                  },
                  "Empty template file": {
                    "value": {
                      "code": 25002133,
                      "message": "An empty file is not allowed."
                    }
                  },
                  "logo.url not string": {
                    "value": {
                      "code": 25002132,
                      "message": "The `url` should be a string."
                    }
                  },
                  "resources not array": {
                    "value": {
                      "code": 25002095,
                      "message": "The `resources` must be an array."
                    }
                  },
                  "Unexpected resources": {
                    "value": {
                      "code": 25002117,
                      "message": "The \"test\" was not expected in `resources` field."
                    }
                  },
                  "email-logo not array": {
                    "value": {
                      "code": 25002125,
                      "message": "The `resources.email-logo` must not be an empty array."
                    }
                  },
                  "Incorrect JSON format": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "Incorrect file format": {
                    "value": {
                      "code": 25002120,
                      "message": "The mime type of the file is invalid"
                    }
                  },
                  "Missing template file": {
                    "value": {
                      "code": 25002118,
                      "message": "Brand file is required."
                    }
                  },
                  "Missing email-logo.url": {
                    "value": {
                      "code": 25002128,
                      "message": "The `url` is required."
                    }
                  },
                  "email-invite not array": {
                    "value": {
                      "code": 25002103,
                      "message": "The `resources.email-invite` must be an array."
                    }
                  },
                  "email-general not array": {
                    "value": {
                      "code": 25002126,
                      "message": "The `resources.email-general` must be an array."
                    }
                  },
                  "email-logo.url not string": {
                    "value": {
                      "code": 25002132,
                      "message": "The `url` should be a string."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "resources.send-invite is empty": {
                    "value": {
                      "code": 25002353,
                      "message": "The `resources.send-invite` must not be an empty array."
                    }
                  },
                  "email-invite-canceled not array": {
                    "value": {
                      "code": 25002109,
                      "message": "The `resources.email-invite-canceled` must be an array."
                    }
                  },
                  "email-invite-reassign not array": {
                    "value": {
                      "code": 25002105,
                      "message": "The `resources.email-invite-reassign` must be an array."
                    }
                  },
                  "email-invite-reminder not array": {
                    "value": {
                      "code": 25002111,
                      "message": "The `resources.email-invite-reminder` must be an array."
                    }
                  },
                  "email-invite-completed not array": {
                    "value": {
                      "code": 25002107,
                      "message": "The `resources.email-invite-completed` must be an array."
                    }
                  },
                  "Request body incorrect or missing": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "resources.send-invite not an array": {
                    "value": {
                      "code": 25002352,
                      "message": "The `resources.send-invite` must be an array."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "file",
                    "description": "@/path/to/your/file.json"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        }
      }
    },
    "/v2/brands/{brand_id}/resources/send-invite": {
      "put": {
        "operationId": "put-v2-brands-brand-id-resources-send-invite",
        "summary": "Create and edit send invite brand resource",
        "description": "This endpoint allows users to create and update a brand resource for the Send Invite page.\n\nLearn more about the [send invite brand resource](/docs/branding-send-invite-resource).\n\nNote: to create a send invite resource for a brand, you need to own the brand.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "- Incorrect or missing token.\n- Request body is incorrect or missing.\n- The `header` is not an array.\n- The `header.visibility` is not a boolean.\n- The `from` is not an array.\n- The `from.visibility` is not a boolean.\n- The `settings` is not an array.\n- The `settings.visibility` is not a boolean.\n- The `customize-message` is not an array.\n- The `customize-message`.visibility is not a boolean.\n- The `request-payment` is not an array.\n- The `request-payment.visibility` is not a boolean.\n- The `cc-recipients` is not an array.\n- The `cc-recipients.visibility` is not a boolean.\n- The `settings-panel` is not an array.\n- The `settings-panel.background` is not a string.\n- The `settings-panel.background` is missing.\n- The `settings-panel.background` format is incorrect.\n- The `preview-panel` is not an array.\n- The `preview-panel.visibility` is not a boolean.\n- The `preview-panel.background` is not a string.\n- The `preview-panel.background` is missing.\n- The `preview-panel.background` format is incorrect.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 25002338,
                          "message": "The `request-payment.visibility` field must be a boolean."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002338,
                          "message": "The `request-payment.visibility` field must be a boolean."
                        }
                      ]
                    }
                  },
                  "header not an array": {
                    "value": {
                      "code": 25002329,
                      "message": "The 'header' field must be an array."
                    }
                  },
                  "from is not an array": {
                    "value": {
                      "code": 25002331,
                      "message": "The 'from' field must be an array."
                    }
                  },
                  "settings is not an array": {
                    "value": {
                      "code": 25002333,
                      "message": "The 'settings' field must be an array."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "cc-recipients is not an array": {
                    "value": {
                      "code": 25002339,
                      "message": "The 'cc-recipients' field must be an array."
                    }
                  },
                  "preview-panel is not an array": {
                    "value": {
                      "code": 25002347,
                      "message": "The 'preview-panel' field must be an array."
                    }
                  },
                  "settings-panel is not an array": {
                    "value": {
                      "code": 25002343,
                      "message": "The 'settings-panel' field must be an array."
                    }
                  },
                  "request-payment is not an array": {
                    "value": {
                      "code": 25002337,
                      "message": "The 'request-payment' field must be an array."
                    }
                  },
                  "from.visibility is not a boolean": {
                    "value": {
                      "code": 25002332,
                      "message": "The 'from.visibility' field must be a boolean."
                    }
                  },
                  "Request body incorrect or missing": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "customize-message is not an array": {
                    "value": {
                      "code": 25002335,
                      "message": "The 'customize-message' field must be an array."
                    }
                  },
                  "header.visibility is not a boolean": {
                    "value": {
                      "code": 25002330,
                      "message": "The 'header.visibility' field must be a boolean."
                    }
                  },
                  "preview-panel.background is missing": {
                    "value": {
                      "code": 25002350,
                      "message": "The 'preview-panel.background' field is required."
                    }
                  },
                  "settings-panel.background is missing": {
                    "value": {
                      "code": 25002345,
                      "message": "The 'settings-panel.background' field is required."
                    }
                  },
                  "settings.visibility is not a boolean": {
                    "value": {
                      "code": 25002334,
                      "message": "The 'settings.visibility' field must be a boolean."
                    }
                  },
                  "preview-panel.background is not a string": {
                    "value": {
                      "code": 25002349,
                      "message": "The 'preview-panel.background' field must be a string."
                    }
                  },
                  "cc-recipients.visibility is not a boolean": {
                    "value": {
                      "code": 25002340,
                      "message": "The 'cc-recipients.visibility' field must be a boolean."
                    }
                  },
                  "preview-panel.visibility is not a boolean": {
                    "value": {
                      "code": 25002348,
                      "message": "The 'preview-panel.visibility' field must be a boolean."
                    }
                  },
                  "settings-panel.background is not a string": {
                    "value": {
                      "code": 25002344,
                      "message": "The 'settings-panel.background' field must be a string."
                    }
                  },
                  "settings-panel.background format incorrect": {
                    "value": {
                      "code": 25002346,
                      "message": "The 'settings-panel.background' field format is invalid."
                    }
                  },
                  "request-payment.visibility is not a boolean": {
                    "value": {
                      "code": 25002338,
                      "message": "The 'request-payment.visibility' field must be a boolean."
                    }
                  },
                  "preview-panel.background format is incorrect": {
                    "value": {
                      "code": 25002351,
                      "message": "The 'preview-panel.background' field format is invalid."
                    }
                  },
                  "customize-message.visibility is not a boolean": {
                    "value": {
                      "code": 25002336,
                      "message": "The 'customize-message.visibility' field must be a boolean."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "- Request with a valid bearer token from another user logged in.\n- The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "No access to brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own brand": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "- Brand with this `brand_id` doesn't exist.\n- Missing or incorrect brand_id.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Brand not found": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/editor"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show the From field."
                      }
                    },
                    "description": "Configuration of the From field."
                  },
                  "header": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show the header."
                      }
                    },
                    "description": "Configuration of the header."
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show the settings (gear icon)."
                      }
                    },
                    "description": "Configuration of the settings button (gear icon)."
                  },
                  "cc-recipients": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show the CC recipients field."
                      }
                    },
                    "description": "Configuration of the CC recipients field."
                  },
                  "preview-panel": {
                    "type": "object",
                    "properties": {
                      "background": {
                        "type": "string",
                        "description": "Background color of the preview panel in HEX color code. "
                      },
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show the preview panel."
                      }
                    },
                    "description": "Configuration of the preview panel."
                  },
                  "settings-panel": {
                    "type": "object",
                    "properties": {
                      "background": {
                        "type": "string",
                        "description": "Background color of the settings panel in HEX color code."
                      }
                    },
                    "description": "Configuration of the settings panel."
                  },
                  "request-payment": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show the Add Payment Request link on the Send Invite page and the Request a Payment toggle in Advanced Options (More > Advanced Options)."
                      }
                    },
                    "description": "Configuration of the Add Payment Request link and Request a Payment option."
                  },
                  "customize-message": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show the Customize Message button."
                      }
                    },
                    "description": "Configuration of the Customize Message button."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "from": {
                      "visibility": true
                    },
                    "header": {
                      "visibility": true
                    },
                    "settings": {
                      "visibility": true
                    },
                    "cc-recipients": {
                      "visibility": true
                    },
                    "preview-panel": {
                      "background": "#f6f8fb",
                      "visibility": true
                    },
                    "settings-panel": {
                      "background": "#ffffff"
                    },
                    "request-payment": {
                      "visibility": true
                    },
                    "customize-message": {
                      "visibility": true
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "from": {
                      "visibility": true
                    },
                    "header": {
                      "visibility": true
                    },
                    "settings": {
                      "visibility": true
                    },
                    "cc-recipients": {
                      "visibility": true
                    },
                    "preview-panel": {
                      "background": "#f6f8fb",
                      "visibility": true
                    },
                    "settings-panel": {
                      "background": "#ffffff"
                    },
                    "request-payment": {
                      "visibility": true
                    },
                    "customize-message": {
                      "visibility": true
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-send-invite",
        "summary": "Get send invite brand resource",
        "description": "This endpoint allows users to retrieve branding for the send invite resource.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "header": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "settings": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "cc-recipients": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "preview-panel": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "type": "string"
                            },
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "settings-panel": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "type": "string"
                            }
                          }
                        },
                        "request-payment": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "customize-message": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "from": {
                          "visibility": true
                        },
                        "header": {
                          "visibility": true
                        },
                        "settings": {
                          "visibility": true
                        },
                        "cc-recipients": {
                          "visibility": true
                        },
                        "preview-panel": {
                          "background": "#f6f8fb",
                          "visibility": true
                        },
                        "settings-panel": {
                          "background": "#ffffff"
                        },
                        "request-payment": {
                          "visibility": true
                        },
                        "customize-message": {
                          "visibility": true
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "from": {
                          "visibility": true
                        },
                        "header": {
                          "visibility": true
                        },
                        "settings": {
                          "visibility": true
                        },
                        "cc-recipients": {
                          "visibility": true
                        },
                        "preview-panel": {
                          "background": "#f6f8fb",
                          "visibility": true
                        },
                        "settings-panel": {
                          "background": "#ffffff"
                        },
                        "request-payment": {
                          "visibility": true
                        },
                        "customize-message": {
                          "visibility": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Incorrect token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "- Request with a valid bearer token from another user logged in.\n- The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the brand": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "- Brand with this `brand_id` doesn't exist.\n- Resource doesn't exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: editor."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: editor."
                    }
                  },
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: editor."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-send-invite",
        "summary": "Delete send invite brand resource",
        "description": "This endpoint allows users to delete the send invite brand resource.\n",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Incorrect token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "- Request with a valid bearer token from another user logged in.\n- The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the brand": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "- Brand with this `brand_id` doesn't exist\n- Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: general."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: general."
                    }
                  },
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: general."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-invite-canceled": {
      "put": {
        "operationId": "put-v2-brands-brand-id-1-resources-email-invite-canceled",
        "summary": "Add and edit branding for canceled invite emails",
        "description": "This endpoint allows users to add and edit branding for the emails that signer or signers receive when a sender cancels an invite.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Incorrect payload.\n* Incorrect language.\n* `subject` is not a string.\n* `subject` is longer than 300 characters.\n* `body_header` is not a string.\n* `body_header` is longer than 300 characters.\n* `body_message` is not a string.\n* `body_message` is longer than 300 characters.\n* `footer_message` is not a string.\n* `footer_message` is longer than 300 characters.\n* `from` is not a string.\n* `from` is longer than 300 characters.\n* Incorrect placeholder found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "from too long": {
                    "value": {
                      "code": 25002072,
                      "message": "The 'from' attribute must be less, than 300 characters."
                    }
                  },
                  "from not string": {
                    "value": {
                      "code": 25002050,
                      "message": "The 'from' attribute must be a string."
                    }
                  },
                  "subject too long": {
                    "value": {
                      "code": 25002058,
                      "message": "The 'subject' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "Incorrect language": {
                    "value": {
                      "code": 25002080,
                      "message": "The 'lang' attribute is invalid, allowed values: en, es, fr."
                    }
                  },
                  "subject not string": {
                    "value": {
                      "code": 25002049,
                      "message": "The 'subject' attribute must be a string."
                    }
                  },
                  "body_header too long": {
                    "value": {
                      "code": 25002059,
                      "message": "The 'body_header' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect placeholder": {
                    "value": {
                      "code": 25002081,
                      "message": "Invalid placeholder found, expected {document_name}."
                    }
                  },
                  "body_message too long": {
                    "value": {
                      "code": 25002060,
                      "message": "The 'body_message' attribute must be less, than 300 characters."
                    }
                  },
                  "body_header not string": {
                    "value": {
                      "code": 25002052,
                      "message": "The 'body_header' attribute must be a string."
                    }
                  },
                  "body_message not string": {
                    "value": {
                      "code": 25002053,
                      "message": "The 'body_message' attribute must be a string."
                    }
                  },
                  "footer_message too long": {
                    "value": {
                      "code": 25002061,
                      "message": "The 'footer_message' attribute must be less, than 300 characters."
                    }
                  },
                  "footer_message not string": {
                    "value": {
                      "code": 25002054,
                      "message": "The 'footer_message' attribute must be a string."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/email-invite-canceled"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Language is not an array",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002093,
                      "message": "Invalid payload. Expected pair of languages with their settings."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom text indicating sender."
                      },
                      "subject": {
                        "type": "string",
                        "description": "Email subject text. Placeholder `{document_name}` is available."
                      },
                      "body_header": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email header text."
                      },
                      "body_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email body text. Placeholder `{document_name}` is available."
                      },
                      "footer_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email footer text."
                      }
                    },
                    "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/guides-branding#language-branding)."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "en": {
                      "from": "from_email@email.com",
                      "subject": "My custom subject {document_name}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "es": {
                      "from": "from_email@email.com",
                      "subject": "My custom subject {document_name}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "fr": {
                      "from": "from_email@email.com",
                      "subject": "My custom subject {document_name}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "en": {
                      "from": "Sender Name",
                      "subject": "Has canceled the document invite",
                      "body_header": "Document Invite Canceled",
                      "body_message": "The invitation for {document_name} document was canceled",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "es": {
                      "from": "Nombre del remitente",
                      "subject": "Canceló la invitación al documento",
                      "body_header": "Invitación a documento cancelada",
                      "body_message": "La invitación al documento {document_name} fue cancelada",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "fr": {
                      "from": "Nom de l'expéditeur",
                      "subject": "A annulé l'invitation au document",
                      "body_header": "Invitation de document annulée",
                      "body_message": "L’invitation pour le document {document_name} a été annulée",
                      "footer_message": "Unique Solutions Inc."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-invite-canceled",
        "summary": "Get email canceled resource",
        "description": "This endpoint allows users to get brand resource email-invite-canceled.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "en": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        },
                        "es": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        },
                        "fr": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-invite-canceled."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-invite-canceled",
        "summary": "Delete email canceled resource",
        "description": "This endpoint allows users to delete brand resource email-invite-canceled.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\r\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-invite-canceled."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-invite-completed": {
      "put": {
        "operationId": "put-v2-brands-brand-id-resources-email-invite-completed",
        "summary": "Add and edit branding for completed emails",
        "description": "This endpoint allows users to add and edit branding for the emails that inform signer or signers about the invite having been completed.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Incorrect payload.\n* Incorrect language.\n* `subject` is not a string.\n* `subject` is longer than 300 characters.\n* `body_header` is not a string.\n* `body_header` is longer than 300 characters.\n* `body_message` is not a string.\n* `body_message` is longer than 300 characters.\n* `footer_message` is not a string.\n* `footer_message` is longer than 300 characters.\n* `from` is not a string.\n* `from` is longer than 300 characters.\n* Incorrect placeholder found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "from too long": {
                    "value": {
                      "code": 25002072,
                      "message": "The 'from' attribute must be less, than 300 characters."
                    }
                  },
                  "from not string": {
                    "value": {
                      "code": 25002050,
                      "message": "The 'from' attribute must be a string."
                    }
                  },
                  "subject too long": {
                    "value": {
                      "code": 25002058,
                      "message": "The 'subject' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "Incorrect language": {
                    "value": {
                      "code": 25002080,
                      "message": "The 'lang' attribute is invalid, allowed values: en, es, fr."
                    }
                  },
                  "subject not string": {
                    "value": {
                      "code": 25002049,
                      "message": "The 'subject' attribute must be a string."
                    }
                  },
                  "body_header too long": {
                    "value": {
                      "code": 25002059,
                      "message": "The 'body_header' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect placeholder": {
                    "value": {
                      "code": 25002081,
                      "message": "Invalid placeholder found, expected {document_name}."
                    }
                  },
                  "body_message too long": {
                    "value": {
                      "code": 25002060,
                      "message": "The 'body_message' attribute must be less, than 300 characters."
                    }
                  },
                  "body_header not string": {
                    "value": {
                      "code": 25002052,
                      "message": "The 'body_header' attribute must be a string."
                    }
                  },
                  "body_message not string": {
                    "value": {
                      "code": 25002053,
                      "message": "The 'body_message' attribute must be a string."
                    }
                  },
                  "footer_message too long": {
                    "value": {
                      "code": 25002061,
                      "message": "The 'footer_message' attribute must be less, than 300 characters."
                    }
                  },
                  "footer_message not string": {
                    "value": {
                      "code": 25002054,
                      "message": "The 'footer_message' attribute must be a string."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/email-invite-canceled"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Language is not an array",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002093,
                      "message": "Invalid payload. Expected pair of languages with their settings."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom text indicating sender."
                      },
                      "subject": {
                        "type": "string",
                        "description": "Email subject text. Placeholder `{document_name}` is available."
                      },
                      "body_header": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email header text."
                      },
                      "body_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email body text. Placeholder `{document_name}` is available."
                      },
                      "footer_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email footer text."
                      }
                    },
                    "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/guides-branding#language-branding)."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "en": {
                      "from": "from_email@email.com",
                      "subject": "My custom subject {document_name}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "es": {
                      "from": "from_email@email.com",
                      "subject": "My custom subject {document_name}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "fr": {
                      "from": "from_email@email.com",
                      "subject": "My custom subject {document_name}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "en": {
                      "from": "Sender Name",
                      "subject": "{document_name} Has Been Completed",
                      "body_header": "You filled out and signed a document",
                      "body_message": "You’ve filled out and signed the {document_name} document. Follow the link below to view and download the document.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "es": {
                      "from": "Nombre del remitente",
                      "subject": "{document_name} Se ha completado",
                      "body_header": "Has rellenado y firmado un documento",
                      "body_message": "Has rellenado y firmado el documento {document_name}. Haz clic en el siguiente enlace para ver y descargar el documento.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "fr": {
                      "from": "Nom de l'expéditeur",
                      "subject": "{document_name} A été finalisé",
                      "body_header": "Vous avez rempli et signé un document",
                      "body_message": "Vous avez rempli et signé le document {document_name}. Suivez le lien ci-dessous pour consulter et télécharger le document.",
                      "footer_message": "Unique Solutions Inc."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-invite-completed",
        "summary": "Get email completed resource",
        "description": "This endpoint allows users to get brand resource email-invite-completed.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "en": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        },
                        "es": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        },
                        "fr": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-invite-completed."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-invite-completed",
        "summary": "Delete email completed resource",
        "description": "This endpoint allows users to delete brand resource email-invite-completed.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\r\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-invite-completed."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-general": {
      "put": {
        "operationId": "put-v2-brands-brand-id-1-resources-email-general",
        "summary": "Add and edit email general branding",
        "description": "This endpoint allows users to add and update general branding for all types of emails.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Request body is incorrect or missing.\n* Payload contains unexpected attributes.\n* Language value is not an array.\n* `logo` is not an array.\n* `position` is not a string.\n* `position` is incorrect.\n* `buttons` is not an array.\n* `buttons.color` parameter value is not a string.\n* `buttons.color` is not a HEX color code.\n* `buttons.background` parameter value is not a string.\n* `buttons.background` is not a HEX color code.\n* `secondary_buttons` is not an array.\n* `secondary_buttons.color` parameter value is not a string.\n* `secondary_buttons.color` is not a HEX color code.\n* `secondary_buttons.background` parameter value is not a string.\n* `secondary_buttons.background` is not a HEX color code.\n* `sender_email` is not a string.\n* `sender_email` is empty.\n* `sender_email` is not a correct email address.\n* `signnow_references` is not a boolean.\n* `hide_download_image` is not a boolean.\n* `contact_sender` is not an array.\n* `contact_sender.visibility` is not a boolean.\n* `ccd` is not an array.\n* `ccd.visibility` is not a boolean.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002226,
                      "message": "The `contact_sender` field must be an array."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002226,
                      "message": "The `contact_sender` field must be an array."
                    }
                  },
                  "Logo not array": {
                    "value": {
                      "code": 25002092,
                      "message": "The 'logo' attribute must be an array."
                    }
                  },
                  "ccd is not array": {
                    "value": {
                      "code": 25002228,
                      "message": "The `ccd` field must be an array."
                    }
                  },
                  "buttons not array": {
                    "value": {
                      "code": 25002091,
                      "message": "The 'buttons' attribute must be an array."
                    }
                  },
                  "Empty sender_email": {
                    "value": {
                      "code": 25002058,
                      "message": "The 'sender_email' must not be an empty string."
                    }
                  },
                  "Incorrect position": {
                    "value": {
                      "code": 25002048,
                      "message": "The 'position' attribute is invalid, allowed values: left, middle, right."
                    }
                  },
                  "Language not array": {
                    "value": {
                      "code": 25002093,
                      "message": "Invalid payload. Expected pair of languages with their settings."
                    }
                  },
                  "Unexpected attributes": {
                    "value": {
                      "code": 25002139,
                      "message": "The {{ field }} field was not expected."
                    }
                  },
                  "position is not string": {
                    "value": {
                      "code": 25002047,
                      "message": "The 'position' attribute must be a string."
                    }
                  },
                  "sender_email not string": {
                    "value": {
                      "code": 25002056,
                      "message": "The 'sender_email' attribute must be a string."
                    }
                  },
                  "buttons.color not string": {
                    "value": {
                      "code": 25002006,
                      "message": "The 'color' attribute must be a string."
                    }
                  },
                  "contact_sender not array": {
                    "value": {
                      "code": 25002226,
                      "message": "The `contact_sender` field must be an array."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "ccd.visibility not boolean": {
                    "value": {
                      "code": 25002229,
                      "message": "The `ccd.visibility` field must be a boolean."
                    }
                  },
                  "secondary_buttons not array": {
                    "value": {
                      "code": 25002090,
                      "message": "The 'secondary_buttons' attribute must be an array."
                    }
                  },
                  "buttons.background not string": {
                    "value": {
                      "code": 25002004,
                      "message": "The 'background' attribute must be a string."
                    }
                  },
                  "signnow_references not boolean": {
                    "value": {
                      "code": 25002055,
                      "message": "The 'signnow_references' attribute must be a boolean."
                    }
                  },
                  "hide_download_image not boolean": {
                    "value": {
                      "code": 25002084,
                      "message": "The 'hide_download_image' attribute must be a boolean."
                    }
                  },
                  "buttons.color not HEX color code": {
                    "value": {
                      "code": 25002007,
                      "message": "The 'color' attribute format is invalid."
                    }
                  },
                  "Request body incorrect or missing": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "sender_email not an email address": {
                    "value": {
                      "code": 25002057,
                      "message": "The 'sender_email' attribute must be a valid email address."
                    }
                  },
                  "secondary_buttons.color not string": {
                    "value": {
                      "code": 25002088,
                      "message": "The 'secondary_buttons.color' attribute must be a string."
                    }
                  },
                  "buttons.background not HEX color code": {
                    "value": {
                      "code": 25002005,
                      "message": "The 'background' attribute format is invalid."
                    }
                  },
                  "contact_sender.visibility not boolean": {
                    "value": {
                      "code": 25002227,
                      "message": "The `contact_sender.visibility` field must be a boolean."
                    }
                  },
                  "secondary_buttons.background not string": {
                    "value": {
                      "code": 25002086,
                      "message": "The 'secondary_buttons.background' attribute must be a string."
                    }
                  },
                  "secondary_buttons.color not HEX color code": {
                    "value": {
                      "code": 25002089,
                      "message": "The 'secondary_buttons.color' attribute format is invalid."
                    }
                  },
                  "secondary_buttons.background not HEX color code": {
                    "value": {
                      "code": 25002087,
                      "message": "The 'secondary_buttons.background' attribute format is invalid."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/email-general"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ccd": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether or not to show the list of CCD emails in the invite emails.\n",
                        "x-stoplight": {
                          "id": "86yh1r34on57u"
                        }
                      }
                    },
                    "description": "CCD section of the invite emails.",
                    "x-stoplight": {
                      "id": "8k9kk0geq4hlo"
                    }
                  },
                  "logo": {
                    "type": "object",
                    "properties": {
                      "position": {
                        "type": "string",
                        "description": "Logo position on the page. Possible values: left, middle, right."
                      }
                    },
                    "description": "Logo object in the email."
                  },
                  "buttons": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "**View Document** button text color in HEX color code."
                      },
                      "background": {
                        "type": "string",
                        "description": "**View Document** button background color in HEX color code."
                      }
                    },
                    "description": "**View Document** button object."
                  },
                  "sender_email": {
                    "type": "string",
                    "description": "Email address that will be prefilled in the to field when user clicks the **Contact Sender** button and an email service opens."
                  },
                  "contact_sender": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether or not to show the Contact Sender section in the emails.",
                        "x-stoplight": {
                          "id": "zhsy7nbyu2ldq"
                        }
                      }
                    },
                    "description": "Contact sender section of the emails.",
                    "x-stoplight": {
                      "id": "wh670iha54nw0"
                    }
                  },
                  "secondary_buttons": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "**Contact Sender** button text color in HEX color code.",
                        "x-stoplight": {
                          "id": "p0qa0ixm7g30m"
                        }
                      },
                      "background": {
                        "type": "string",
                        "description": "**Contact Sender** button background color in HEX color code.",
                        "x-stoplight": {
                          "id": "fqizk8vnxcw2l"
                        }
                      }
                    },
                    "description": "**Contact Sender** button object.",
                    "x-stoplight": {
                      "id": "82gon73lveei7"
                    }
                  },
                  "signnow_references": {
                    "type": "boolean",
                    "description": "Whether or not to show links to SignNow mobile apps."
                  },
                  "hide_download_image": {
                    "type": "boolean",
                    "description": "When a signer completes a document, whether to show or hide an image instruction on how to download the completed document."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "logo": {
                      "position": "middle"
                    },
                    "buttons": {
                      "color": "#E4F18B",
                      "background": "#EB4C7E"
                    },
                    "sender_email": "sender_email@gmail.com",
                    "signnow_references": true,
                    "hide_download_image": false
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "logo": {
                      "position": "middle"
                    },
                    "buttons": {
                      "color": "#ffffff",
                      "background": "#0777cf"
                    },
                    "sender_email": "mail@signnow.com",
                    "secondary_buttons": {
                      "color": "#38424b",
                      "background": "#e3e6e9"
                    },
                    "signnow_references": true,
                    "hide_download_image": false
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-general",
        "summary": "Get email general resource",
        "description": "This endpoint allows users to get brand resource email-general.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "ccd": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "logo": {
                          "type": "object",
                          "properties": {
                            "position": {
                              "type": "string"
                            }
                          }
                        },
                        "buttons": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string"
                            },
                            "background": {
                              "type": "string"
                            }
                          }
                        },
                        "sender_email": {
                          "type": "string"
                        },
                        "contact_sender": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "secondary_buttons": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string"
                            },
                            "background": {
                              "type": "string"
                            }
                          }
                        },
                        "signnow_references": {
                          "type": "boolean"
                        },
                        "hide_download_image": {
                          "type": "boolean"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "ccd": {
                          "visibility": true
                        },
                        "logo": {
                          "position": "left"
                        },
                        "buttons": {
                          "color": "#ffffff",
                          "background": "#0777cf"
                        },
                        "sender_email": "mail@signnow.com",
                        "contact_sender": {
                          "visibility": true
                        },
                        "secondary_buttons": {
                          "color": "#38424b",
                          "background": "#e3e6e9"
                        },
                        "signnow_references": true,
                        "hide_download_image": false
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "logo": {
                        "position": "middle"
                      },
                      "buttons": {
                        "color": "#ffffff",
                        "background": "#0777cf"
                      },
                      "sender_email": "mail@signnow.com",
                      "secondary_buttons": {
                        "color": "#38424b",
                        "background": "#e3e6e9"
                      },
                      "signnow_references": true,
                      "hide_download_image": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-general."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-general",
        "summary": "Delete email general resource",
        "description": "This endpoint allows users to delete brand resource email-general.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\r\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-general."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-invite": {
      "put": {
        "operationId": "put-v2-brands-brand-id-1-resources-email-invite",
        "summary": "Add and edit branding for email invite",
        "description": "This endpoint allows users to add and edit branding for the emails that inform signer or signers that they have a document or document group to sign.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Incorrect payload.\n* Incorrect language.\n* `subject` is not a string.\n* `subject` is longer than 300 characters.\n* `body_header` is not a string.\n* `body_header` is longer than 300 characters.\n* `body_message` is not a string.\n* `body_message` is longer than 300 characters.\n* `footer_message` is not a string.\n* `footer_message` is longer than 300 characters.\n* `from` is not a string.\n* `from` is not an email address.\n* `expiration` is not a string.\n* `expiration` is longer than 300 characters.\n* Incorrect placeholder found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "from not string": {
                    "value": {
                      "code": 25002050,
                      "message": "The 'from' attribute must be a string."
                    }
                  },
                  "subject too long": {
                    "value": {
                      "code": 25002058,
                      "message": "The 'subject' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "Incorrect language": {
                    "value": {
                      "code": 25002080,
                      "message": "The 'lang' attribute is invalid, allowed values: en, es, fr."
                    }
                  },
                  "subject not string": {
                    "value": {
                      "code": 25002049,
                      "message": "The 'subject' attribute must be a string."
                    }
                  },
                  "expiration too long": {
                    "value": {
                      "code": 25002078,
                      "message": "The 'expiration' attribute must be less, than 300 characters."
                    }
                  },
                  "body_header too long": {
                    "value": {
                      "code": 25002059,
                      "message": "The 'body_header' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect placeholder": {
                    "value": {
                      "code": 25002081,
                      "message": "Invalid placeholder found, expected {document_name}."
                    }
                  },
                  "body_message too long": {
                    "value": {
                      "code": 25002060,
                      "message": "The 'body_message' attribute must be less, than 300 characters."
                    }
                  },
                  "expiration not string": {
                    "value": {
                      "code": 25002079,
                      "message": "The 'expiration' attribute must be a string."
                    }
                  },
                  "body_header not string": {
                    "value": {
                      "code": 25002052,
                      "message": "The 'body_header' attribute must be a string."
                    }
                  },
                  "body_message not string": {
                    "value": {
                      "code": 25002053,
                      "message": "The 'body_message' attribute must be a string."
                    }
                  },
                  "footer_message too long": {
                    "value": {
                      "code": 25002061,
                      "message": "The 'footer_message' attribute must be less, than 300 characters."
                    }
                  },
                  "footer_message not string": {
                    "value": {
                      "code": 25002054,
                      "message": "The 'footer_message' attribute must be a string."
                    }
                  },
                  "from not an email address": {
                    "value": {
                      "code": 25002072,
                      "message": "The 'from' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/email-invite"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Language is not an array",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002093,
                      "message": "Invalid payload. Expected pair of languages with their settings."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom text indicating sender."
                      },
                      "subject": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email subject text. Placeholder `{document_name}` is available."
                      },
                      "expiration": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom message text for expiration email. Placeholder `{days}` is available: data from the invite `expiration_days` parameter is used."
                      },
                      "body_header": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email header text."
                      },
                      "body_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email body text. Placeholder `{document_name}` is available."
                      },
                      "footer_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email footer message."
                      }
                    },
                    "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/guides-branding#language-branding)."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "en": {
                      "from": "From user ",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message EN"
                    },
                    "es": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "fr": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "en": {
                      "from": "Sender Name",
                      "subject": "Needs Your Signature",
                      "expiration": "This invite will expire in {days} days",
                      "body_header": "You were invited to review and sign a document",
                      "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "es": {
                      "from": "Nombre del remitente",
                      "subject": "Necesita tu firma",
                      "expiration": "Esta invitación dejará de ser válida en {days} días",
                      "body_header": "Te han invitado a revisar y firmar un documento",
                      "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "fr": {
                      "from": "Nom de l'expéditeur",
                      "subject": "A besoin de votre signature",
                      "expiration": "Cette invitation expirera dans {days} jours",
                      "body_header": "Vous avez été invité à vérifier et signer un document",
                      "body_message": "Vous invite à compléter et signer le document {document_name}.",
                      "footer_message": "Unique Solutions Inc."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-invite",
        "summary": "Get email invite resource",
        "description": "This endpoint allows users to get brand resource email-invite.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "en": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "expiration": "Expiration message {days}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        },
                        "es": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "expiration": "Expiration message {days}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        },
                        "fr": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "expiration": "Expiration message {days}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-invite."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-invite",
        "summary": "Delete email invite resource",
        "description": "This endpoint allows users to delete brand resource email-invite.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\r\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-invite."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-logo": {
      "post": {
        "operationId": "post-v2-brands-brand-id-email-logo",
        "summary": "Create email logo brand resource",
        "description": "This endpoint allows users to create and update an email logo brand resource.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "multipart/form-data"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Email logo added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Email logo added": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Missing logo or incorrect payload.\n* Incorrect file format.\n* File is bigger than 20 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "File is too big": {
                    "value": {
                      "code": 25002051,
                      "message": "The file is too large. Allowed maximum size is 2 MB."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002047,
                      "message": "Brand logo is required."
                    }
                  },
                  "Incorrect file format": {
                    "value": {
                      "code": 25002048,
                      "message": "The mime type of the file is invalid (\"text/plain\"). Allowed mime types are \"image/x-ms-bmp\", \"image/svg+xml\", \"image/svg\", \"application/svg+xml\", \"image/gif\", \"image/jpeg\", \"image/png\", \"image/bmp\"."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/email-logo"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "logo": {
                    "type": "file",
                    "description": "file with image format"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "put-v2-brands-brand-id-resources-email-logo",
        "summary": "Add and update email logo for brand from URL",
        "description": "This endpoint allows users to add and update an email logo for a brand from URL.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Missing `url`.\n* Empty `url`.\n* Incorrect `url`.\n* `url` is not a string.\n* `url` does not contain an image of the proper format.\n* The image cannot be downloaded.\n* The image is too big. ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty url": {
                    "value": {
                      "code": 25002128,
                      "message": "The `url` is required."
                    }
                  },
                  "Missing url": {
                    "value": {
                      "code": 25002128,
                      "message": "The `url` is required."
                    }
                  },
                  "Incorrect url": {
                    "value": {
                      "code": 25002129,
                      "message": "The `url` should be a valid URL."
                    }
                  },
                  "url not string": {
                    "value": {
                      "code": 25002132,
                      "message": "The `url` should be a string."
                    }
                  },
                  "Image is too big": {
                    "value": {
                      "code": 25002051,
                      "message": "The file is too large (2.56 MB). Allowed maximum size is 2 MB."
                    }
                  },
                  "Image cannot be downloaded": {
                    "value": {
                      "code": 25002131,
                      "message": "Something went wrong during image download."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Missing image or incorrect format": {
                    "value": {
                      "code": 25002130,
                      "message": "Provided URL does not contains an image or wrong image format."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/email-logo"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Link address to  the email logo file.",
                    "x-stoplight": {
                      "id": "1r4ia1iys8gdu"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-email-logo",
        "summary": "Get email logo brand resource",
        "description": "This endpoint allows users to retrieve the picture file for email logo resource.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Success: picture file with email logo": {
                    "value": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": "25002036",
                      "message": "Brand resource not found. Resource name: email-logo."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-logo",
        "summary": "Delete email logo brand resource",
        "description": "This endpoint allows users to delete email logo brand resource.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\r\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-logo."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-invite-reassign": {
      "put": {
        "operationId": "put-v2-brands-brand-id-1-resources-email-invite-reassign",
        "summary": "Add and edit branding for reassign emails",
        "description": "This endpoint allows users to add and edit branding for the emails that signer or signers receive when an invite is reassigned to them.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Incorrect payload.\n* Incorrect language.\n* `subject` is not a string.\n* `subject` is longer than 300 characters.\n* `body_header` is not a string.\n* `body_header` is longer than 300 characters.\n* `body_message` is not a string.\n* `body_message` is longer than 300 characters.\n* `footer_message` is not a string.\n* `footer_message` is longer than 300 characters.\n* `forward_message` is not a string.\n* `forward_message` is longer than 300 characters.\n* `from` is not a string.\n* `from` is longer than 300 characters.\n* `expiration` is not a string.\n* `expiration` is longer than 300 characters.\n* Incorrect placeholder found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "from too long": {
                    "value": {
                      "code": 25002072,
                      "message": "The 'from' attribute must be less, than 300 characters."
                    }
                  },
                  "from not string": {
                    "value": {
                      "code": 25002050,
                      "message": "The 'from' attribute must be a string."
                    }
                  },
                  "subject too long": {
                    "value": {
                      "code": 25002058,
                      "message": "The 'subject' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "Incorrect language": {
                    "value": {
                      "code": 25002080,
                      "message": "The 'lang' attribute is invalid, allowed values: en, es, fr."
                    }
                  },
                  "subject not string": {
                    "value": {
                      "code": 25002049,
                      "message": "The 'subject' attribute must be a string."
                    }
                  },
                  "expiration too long": {
                    "value": {
                      "code": 25002078,
                      "message": "The 'expiration' attribute must be less, than 300 characters."
                    }
                  },
                  "body_header too long": {
                    "value": {
                      "code": 25002059,
                      "message": "The 'body_header' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect placeholder": {
                    "value": {
                      "code": 25002081,
                      "message": "Invalid placeholder found, expected {document_name}."
                    }
                  },
                  "body_message too long": {
                    "value": {
                      "code": 25002060,
                      "message": "The 'body_message' attribute must be less, than 300 characters."
                    }
                  },
                  "expiration not string": {
                    "value": {
                      "code": 25002079,
                      "message": "The 'expiration' attribute must be a string."
                    }
                  },
                  "body_header not string": {
                    "value": {
                      "code": 25002052,
                      "message": "The 'body_header' attribute must be a string."
                    }
                  },
                  "body_message not string": {
                    "value": {
                      "code": 25002053,
                      "message": "The 'body_message' attribute must be a string."
                    }
                  },
                  "footer_message too long": {
                    "value": {
                      "code": 25002061,
                      "message": "The 'footer_message' attribute must be less, than 300 characters."
                    }
                  },
                  "forward_message too long": {
                    "value": {
                      "code": 25002083,
                      "message": "The 'forward_message' attribute must be less, than 300 characters."
                    }
                  },
                  "footer_message not string": {
                    "value": {
                      "code": 25002054,
                      "message": "The 'footer_message' attribute must be a string."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "forward_message not string": {
                    "value": {
                      "code": 25002082,
                      "message": "The 'forward_message' attribute must be a string."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/email-invite-reassign"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Language is not an array",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002093,
                      "message": "Invalid payload. Expected pair of languages with their settings."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom text indicating sender."
                      },
                      "subject": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email subject text. Placeholder `{document_name}` is available."
                      },
                      "expiration": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom message text for expiration email. Placeholder `{days}` is available: data from the invite `expiration_days` parameter is used."
                      },
                      "body_header": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email header text."
                      },
                      "body_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email body text. Placeholder `{document_name}` is available."
                      },
                      "footer_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email footer text."
                      },
                      "forward_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email message from the signer who forwarded the email. Placeholder {email_from} is available."
                      }
                    },
                    "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/guides-branding#language-branding)."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "en": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message",
                      "forward_message": "Forward message {email_from}"
                    },
                    "es": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message",
                      "forward_message": "Forward message {email_from}"
                    },
                    "fr": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message",
                      "forward_message": "Forward message {email_from}"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "en": {
                      "from": "Sender Name",
                      "subject": "Needs Your Signature",
                      "expiration": "This invite will expire in {days} days",
                      "body_header": "You were invited to review and sign a document",
                      "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                      "footer_message": "Unique Solutions Inc.",
                      "forward_message": "This message is forwarded by {email_from}"
                    },
                    "es": {
                      "from": "Nombre del remitente",
                      "subject": "Necesita tu firma",
                      "expiration": "Esta invitación dejará de ser válida en {days} días",
                      "body_header": "Te han invitado a revisar y firmar un documento",
                      "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
                      "footer_message": "Unique Solutions Inc.",
                      "forward_message": "Este mensaje ha sido enviado por {email_from}"
                    },
                    "fr": {
                      "from": "Nom de l'expéditeur",
                      "subject": "A besoin de votre signature",
                      "expiration": "Cette invitation expirera dans {days} jours",
                      "body_header": "Vous avez été invité à vérifier et signer un document",
                      "body_message": "Vous invite à compléter et signer le document {document_name}.",
                      "footer_message": "Unique Solutions Inc.",
                      "forward_message": "Ce message est transféré par {email_from}"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-invite-reassign",
        "summary": "Get email reassign resource",
        "description": "This endpoint allows users to get brand resource email-invite-reassign.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "en": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "expiration": "Expiration message {days}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message",
                          "forward_message": "Forward message {email_from}"
                        },
                        "es": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "expiration": "Expiration message {days}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message",
                          "forward_message": "Forward message {email_from}"
                        },
                        "fr": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "expiration": "Expiration message {days}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message",
                          "forward_message": "Forward message {email_from}"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-invite-reassign."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-invite-reassign",
        "summary": "Delete email reassign resource",
        "description": "This endpoint allows users to delete brand resource email-invite-reassign.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\r\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-invite-reassign."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/brands/{brand_id}/resources/email-invite-reminder": {
      "put": {
        "operationId": "put-v2-brands-brand-id-resources-email-invite-reminder",
        "summary": "Add and edit branding for reminder emails",
        "description": "This endpoint allows users to add and edit branding for the emails that remind signer or signers about pending invites.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Incorrect payload.\n* Incorrect language.\n* `subject` is not a string.\n* `subject` is longer than 300 characters.\n* `body_header` is not a string.\n* `body_header` is longer than 300 characters.\n* `body_message` is not a string.\n* `body_message` is longer than 300 characters.\n* `footer_message` is not a string.\n* `footer_message` is longer than 300 characters.\n* `from` is not a string.\n* `from` is not an email address.\n* `expiration` is not a string.\n* `expiration` is longer than 300 characters.\n* Incorrect placeholder found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "from not string": {
                    "value": {
                      "code": 25002050,
                      "message": "The 'from' attribute must be a string."
                    }
                  },
                  "subject too long": {
                    "value": {
                      "code": 25002058,
                      "message": "The 'subject' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 25002002,
                      "message": "Invalid payload given."
                    }
                  },
                  "Incorrect language": {
                    "value": {
                      "code": 25002080,
                      "message": "The 'lang' attribute is invalid, allowed values: en, es, fr."
                    }
                  },
                  "subject not string": {
                    "value": {
                      "code": 25002049,
                      "message": "The 'subject' attribute must be a string."
                    }
                  },
                  "expiration too long": {
                    "value": {
                      "code": 25002078,
                      "message": "The 'expiration' attribute must be less, than 300 characters."
                    }
                  },
                  "body_header too long": {
                    "value": {
                      "code": 25002059,
                      "message": "The 'body_header' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect placeholder": {
                    "value": {
                      "code": 25002081,
                      "message": "Invalid placeholder found, expected {document_name}."
                    }
                  },
                  "body_message too long": {
                    "value": {
                      "code": 25002060,
                      "message": "The 'body_message' attribute must be less, than 300 characters."
                    }
                  },
                  "expiration not string": {
                    "value": {
                      "code": 25002079,
                      "message": "The 'expiration' attribute must be a string."
                    }
                  },
                  "body_header not string": {
                    "value": {
                      "code": 25002052,
                      "message": "The 'body_header' attribute must be a string."
                    }
                  },
                  "body_message not string": {
                    "value": {
                      "code": 25002053,
                      "message": "The 'body_message' attribute must be a string."
                    }
                  },
                  "footer_message too long": {
                    "value": {
                      "code": 25002061,
                      "message": "The 'footer_message' attribute must be less, than 300 characters."
                    }
                  },
                  "footer_message not string": {
                    "value": {
                      "code": 25002054,
                      "message": "The 'footer_message' attribute must be a string."
                    }
                  },
                  "from not an email address": {
                    "value": {
                      "code": 25002072,
                      "message": "The 'from' attribute must be less, than 300 characters."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Missing or incorrect `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Missing or incorrect brand_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/brand/null/email-invite"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Language is not an array",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002093,
                      "message": "Invalid payload. Expected pair of languages with their settings."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "en": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom text indicating sender."
                      },
                      "subject": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email subject text. Placeholder `{document_name}` is available."
                      },
                      "expiration": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Custom message text for expiration email. Placeholder `{days}` is available: data from the invite `expiration_days` parameter is used."
                      },
                      "body_header": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email header text."
                      },
                      "body_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email body text. Placeholder `{document_name}` is available."
                      },
                      "footer_message": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Email footer message."
                      }
                    },
                    "description": "Language of the email. Possible values: `en` for English, `es` for Spanish, and `fr` for French. You need to add translated texts. For more information, see [Language branding](/docs/guides-branding#language-branding)."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "en": {
                      "from": "From user ",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message EN"
                    },
                    "es": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    },
                    "fr": {
                      "from": "From user",
                      "subject": "My custom subject {document_name}",
                      "expiration": "Expiration message {days}",
                      "body_header": "Body header message",
                      "body_message": "Body message {document_name}",
                      "footer_message": "Footer message"
                    }
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "en": {
                      "from": "Sender Name",
                      "subject": "Reminder: {document_name}: Signature Request",
                      "expiration": "This invite will expire in {days} days",
                      "body_header": "You were invited to review and sign a document",
                      "body_message": "You’ve been invited to fill out and sign the {document_name} document.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "es": {
                      "from": "Nombre del remitente",
                      "subject": "Recordatorio: {document_name}: Solicitud de firma",
                      "expiration": "Esta invitación dejará de ser válida en {days} días",
                      "body_header": "Te han invitado a revisar y firmar un documento",
                      "body_message": "Has invitado para rellenar y firmar el documento {document_name}.",
                      "footer_message": "Unique Solutions Inc."
                    },
                    "fr": {
                      "from": "Nom de l'expéditeur",
                      "subject": "Rappel: {document_name}: demande de signature",
                      "expiration": "Cette invitation expirera dans {days} jours",
                      "body_header": "Vous avez été invité à vérifier et signer un document",
                      "body_message": "Vous invite à compléter et signer le document {document_name}.",
                      "footer_message": "Unique Solutions Inc."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-brands-brand-id-resources-email-reminder",
        "summary": "Get email reminder resource",
        "description": "This endpoint allows users to get brand resource email-reminder.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "en": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "expiration": "Expiration message {days}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        },
                        "es": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "expiration": "Expiration message {days}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        },
                        "fr": {
                          "from": "From user user@mail.com",
                          "subject": "My custom subject {document_name}",
                          "expiration": "Expiration message {days}",
                          "body_header": "Body header message",
                          "body_message": "Body message {document_name}",
                          "footer_message": "Footer message"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-reminder."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-brands-brand-id-resources-email-reminder",
        "summary": "Delete email reminder resource",
        "description": "This endpoint allows users to delete brand resource email-reminder.",
        "parameters": [
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\r\n* The user is authorized with a token from an app they don’t own.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Another user's token": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Brand with this `brand_id` doesn't exist\r\n* Resource doesn't exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand doesn't exist": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Resource doesn't exist": {
                    "value": {
                      "code": 25002036,
                      "message": "Brand resource not found. Resource name: email-reminder."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/team/{team_id}/admin": {
      "post": {
        "operationId": "grant-admin-permissions",
        "summary": "Grant admin permissions",
        "description": "This endpoint allows team primary admin to grant admin permissions to a team member",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Either request body or email address is missing.\r\n* User with this email address is not in the team.\r\n* User is not a primary admin of the team.\r\n* Team not found.\r\n* User not found.\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66391,
                      "message": "Team not found"
                    }
                  },
                  "User not found": {
                    "value": {
                      "code": 65582,
                      "message": "User not found"
                    }
                  },
                  "Email address missing": {
                    "value": {
                      "code": 65582,
                      "message": "Email is required."
                    }
                  },
                  "User not primary admin": {
                    "value": {
                      "code": 65615,
                      "message": "Operation not allowed"
                    }
                  },
                  "User is not in the team": {
                    "value": {
                      "code": 65582,
                      "message": "User is not a part of this team"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              },
              "examples": {
                "application/json": {
                  "value": {
                    "email": "admin1@email.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/team/{team_id}/admin/{user_id}": {
      "delete": {
        "operationId": "cancel-admin-permissions",
        "summary": "Cancel admin permissions",
        "description": "This endpoint cancels admin permissions for a team admin, removes the user from the team, revokes access of the user to shared folders, and removes all documents that the user shared from shared folders to user's folders.\n\nIf the path parameter `downgrade_only=true` is used, the user loses admin permissions but remains a member of the team and keeps access to shared folders.\n\n***Requires access token of team primary admin or admin.***",
        "parameters": [
          {
            "in": "query",
            "name": "downgrade_only",
            "type": "boolean",
            "default": false,
            "required": false,
            "description": "If true, the user remains a member of the team and keeps access to shared folders. "
          },
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Trying to cancel rights for a user that is not a team admin.\r\n* Admin is trying to cancel their own admin permissions.\r\n* Team admin cannot cancel rights for a primary admin.\r\n* User is not a team admin.\r\n* Team not found.\r\n* User not found.\r\n* `downgrade_only` is not a boolean.\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66391,
                      "message": "Team not found"
                    }
                  },
                  "User not admin": {
                    "value": {
                      "code": 65582,
                      "message": "User is not admin/secondary admin on team"
                    }
                  },
                  "User not found": {
                    "value": {
                      "code": 65582,
                      "message": "User not found"
                    }
                  },
                  "Cancelling your own right": {
                    "value": {
                      "code": 65582,
                      "message": "Admin cannot delete himself"
                    }
                  },
                  "downgrade_only not boolean": {
                    "value": {
                      "code": 65582,
                      "message": "The `downgrade_only` parameter value should be `true` or `false`"
                    }
                  },
                  "Cancelling primary admin's rights": {
                    "value": {
                      "code": 65582,
                      "message": "Secondary admin cannot delete Admin of the team"
                    }
                  },
                  "Cancelling rights for a non-admin": {
                    "value": {
                      "code": 66350,
                      "message": "Team admin not found"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/team/{team_id}/transferownership/{user_id}": {
      "post": {
        "operationId": "change-team-primary-admin",
        "summary": "Change team primary admin",
        "description": "This endpoint allows primary-admin of team to transfer team ownership to other team user.",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* User is not a primary admin of the team.\r\n* User is not in the team.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "User not in the team": {
                    "value": {
                      "code": 65582,
                      "message": "Operation not allowed - Provided User not a member of team"
                    }
                  },
                  "User not primary admin": {
                    "value": {
                      "code": 65582,
                      "message": "Operation not allowed"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/teams/{team_id}/admins": {
      "get": {
        "operationId": "get-team-admins",
        "summary": "Get team admins",
        "description": "This endpoint returns the list of team admins and primary admin",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "new": {
                    "value": {}
                  },
                  "application/json": {
                    "value": {
                      "data": [
                        {
                          "type": 1,
                          "email": "admin@signnow.com",
                          "created": 1573645637,
                          "primary": true,
                          "updated": 1573645752,
                          "user_id": "e13b50f63fd5492499b0ed346a3a3db6d045ca37"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User is not a member of the team",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Access denied."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Team is inactive",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "errors": [
                        {
                          "message": "Team `f89ace7e23c6422091d4ed88447ee3d3842d757b` is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/event-subscriptions": {
      "get": {
        "operationId": "get-v2-dashboard-event-subscriptions",
        "summary": "Get list of event subscriptions",
        "description": "This endpoint allows API users to retrieve the list of events the user account is subscribed to.\n\nThe results can be filtered and sorted. If the `sort` parameter is not indicated, the results are sorted by the `created` parameter in descending order. The `filters` and `sort` parameters need URL-encoding. ",
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "type": "string",
            "default": "1",
            "required": false,
            "description": "In how many pages to display the response."
          },
          {
            "in": "query",
            "name": "sort:created",
            "type": "string",
            "required": false,
            "description": "Sort results by the date. Possible values: asc, desc. Format: `?sort[created]=desc`"
          },
          {
            "in": "query",
            "name": "sort:event",
            "type": "string",
            "required": false,
            "description": "Sort results by the event type (from A to Z). Possible values: asc, desc. Format: `?sort[event]=desc`"
          },
          {
            "in": "query",
            "name": "sort:application",
            "type": "string",
            "required": false,
            "description": "Sort results by the application name (from A to Z). Possible values: asc, desc. Format: `?sort[application]=desc`"
          },
          {
            "in": "query",
            "name": "filters:entity_id, callback_url",
            "type": "string",
            "required": false,
            "description": "Search for a string in entity IDs and callback URLs. Format: `?filters=[{\"_OR\":[{\"entity_id\":{\"type\":\"like\",\"value\":\"21a28b47\"}},{\"callback_url\":{\"type\":\"like\",\"value\":\"21a28b47\"}}]}]`"
          },
          {
            "in": "query",
            "name": "filters:date",
            "type": "string",
            "required": false,
            "description": "Filter results by the timestamps. Format: `?filters=[{\"date\":{\"type\":\"between\",\"value\":[1580719773,1580720509]}}]`"
          },
          {
            "in": "query",
            "name": "filters:event",
            "type": "string",
            "required": false,
            "description": "Filter results by the specific type of event. Format: `?filters=[{\"event\":{\"type\": \"in\", \"value\":[\"document.create\", \"document.update\"]}}]`"
          },
          {
            "in": "query",
            "name": "filters:application",
            "type": "string",
            "required": false,
            "description": "Filter results by the application. Format: `?filters=[{\"application\":{\"type\": \"in\", \"value\":[\"applicationUniqueId1\", \"applicationUniqueId2\"]}}]`"
          },
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "query",
            "name": "include_event_count",
            "type": "boolean",
            "required": false,
            "description": "Include the number of events that triggered the webhook to the response. If set to `true`, the number is returned in the `event_count` field."
          }
        ],
        "responses": {
          "200": {
            "description": "Correct request with the filter by application ID.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier of the event subscription."
                          },
                          "event": {
                            "type": "string",
                            "description": "Event name that triggers the subscription. Check [list of events](/docs/guides-webhooks#entity-events)."
                          },
                          "action": {
                            "type": "string",
                            "description": "Action performed when the event occurs (for example, callback)."
                          },
                          "active": {
                            "type": "boolean",
                            "description": "Indicates whether the subscription is currently active."
                          },
                          "created": {
                            "type": "integer",
                            "description": "Timestamp (Unix time) indicating when the subscription was created."
                          },
                          "version": {
                            "type": "integer",
                            "description": "Subscription schema version."
                          },
                          "entity_id": {
                            "type": "integer",
                            "description": "Internal numeric ID of the entity."
                          },
                          "entity_type": {
                            "type": "string",
                            "description": "Type of entity the subscription is linked to (`document`, `document_group`, `user`)."
                          },
                          "event_count": {
                            "type": "null",
                            "description": "Number of events sent (null if none or not tracked)."
                          },
                          "request_method": {
                            "type": "string",
                            "description": "HTTP method used for the callback request."
                          },
                          "json_attributes": {
                            "type": "object",
                            "properties": {
                              "use_tls_12": {
                                "type": "boolean",
                                "description": "Whether TLS 1.2 should be used for the callback."
                              },
                              "callback_url": {
                                "type": "string",
                                "description": "URL that receives the event callback."
                              },
                              "docid_queryparam": {
                                "type": "boolean",
                                "description": "Whether the document ID is included as a query parameter."
                              },
                              "include_metadata": {
                                "type": "boolean",
                                "description": "Whether document metadata is included in the callback payload."
                              }
                            },
                            "description": "Additional callback configuration details."
                          },
                          "application_name": {
                            "type": "string",
                            "description": "Name of the application that owns the subscription."
                          },
                          "entity_unique_id": {
                            "type": "string",
                            "description": "Unique string ID of the entity."
                          },
                          "event_subscription_owner_email": {
                            "type": "string",
                            "description": "Email address of the user who created the subscription."
                          }
                        }
                      },
                      "description": "List of event subscriptions."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer",
                              "description": "Number of items returned in this response."
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {}
                              },
                              "description": "Pagination links (next, previous, etc)."
                            },
                            "total": {
                              "type": "integer",
                              "description": "Total number of items available."
                            },
                            "per_page": {
                              "type": "integer",
                              "description": "Number of items per page."
                            },
                            "total_pages": {
                              "type": "integer",
                              "description": "Total number of pages."
                            },
                            "current_page": {
                              "type": "integer",
                              "description": "The current page number."
                            }
                          }
                        }
                      },
                      "description": "Metadata for pagination."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "a1b2c3d4e5f67890123456789abcdef012345678",
                          "event": "document.open",
                          "action": "callback",
                          "active": true,
                          "created": 1709210000,
                          "version": 2,
                          "entity_id": 100100200,
                          "entity_type": "document",
                          "event_count": null,
                          "request_method": "post",
                          "json_attributes": {
                            "use_tls_12": true,
                            "callback_url": "https://api.your-domain.com/callbacks/handle_event",
                            "docid_queryparam": false,
                            "include_metadata": true
                          },
                          "application_name": "My_Integration_App",
                          "entity_unique_id": "d0c1d2d3d4d5d6d7d8d900000000000000000001",
                          "event_subscription_owner_email": "admin@example.com"
                        },
                        {
                          "id": "f9e8d7c6b5a432109876543210fedcba98765432",
                          "event": "document.complete",
                          "action": "callback",
                          "active": true,
                          "created": 1709215000,
                          "version": 2,
                          "entity_id": 100100200,
                          "entity_type": "document",
                          "event_count": null,
                          "request_method": "post",
                          "json_attributes": {
                            "use_tls_12": true,
                            "callback_url": "https://api.your-domain.com/callbacks/handle_event",
                            "docid_queryparam": false,
                            "include_metadata": true
                          },
                          "application_name": "My_Integration_App",
                          "entity_unique_id": "d0c1d2d3d4d5d6d7d8d900000000000000000001",
                          "event_subscription_owner_email": "admin@example.com"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "a1b2c3d4e5f67890123456789abcdef012345678",
                          "event": "document.open",
                          "action": "callback",
                          "active": true,
                          "created": 1709210000,
                          "version": 2,
                          "entity_id": 100100200,
                          "entity_type": "document",
                          "event_count": null,
                          "request_method": "post",
                          "json_attributes": {
                            "use_tls_12": true,
                            "callback_url": "https://api.your-domain.com/callbacks/handle_event",
                            "docid_queryparam": false,
                            "include_metadata": true
                          },
                          "application_name": "My_Integration_App",
                          "entity_unique_id": "d0c1d2d3d4d5d6d7d8d900000000000000000001",
                          "event_subscription_owner_email": "admin@example.com"
                        },
                        {
                          "id": "f9e8d7c6b5a432109876543210fedcba98765432",
                          "event": "document.complete",
                          "action": "callback",
                          "active": true,
                          "created": 1709215000,
                          "version": 2,
                          "entity_id": 100100200,
                          "entity_type": "document",
                          "event_count": null,
                          "request_method": "post",
                          "json_attributes": {
                            "use_tls_12": true,
                            "callback_url": "https://api.your-domain.com/callbacks/handle_event",
                            "docid_queryparam": false,
                            "include_metadata": true
                          },
                          "application_name": "My_Integration_App",
                          "entity_unique_id": "d0c1d2d3d4d5d6d7d8d900000000000000000001",
                          "event_subscription_owner_email": "admin@example.com"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Correct request": {
                    "value": {
                      "data": [
                        {
                          "id": "a1b2c3d4e5f67890123456789abcdef012345678",
                          "event": "document.open",
                          "action": "callback",
                          "active": true,
                          "created": 1709210000,
                          "version": 2,
                          "entity_id": 100100200,
                          "entity_type": "document",
                          "event_count": null,
                          "request_method": "post",
                          "json_attributes": {
                            "use_tls_12": true,
                            "callback_url": "https://api.your-domain.com/callbacks/handle_event",
                            "docid_queryparam": false,
                            "include_metadata": true
                          },
                          "application_name": "My_Integration_App",
                          "entity_unique_id": "d0c1d2d3d4d5d6d7d8d900000000000000000001",
                          "event_subscription_owner_email": "admin@example.com"
                        },
                        {
                          "id": "f9e8d7c6b5a432109876543210fedcba98765432",
                          "event": "document.complete",
                          "action": "callback",
                          "active": true,
                          "created": 1709215000,
                          "version": 2,
                          "entity_id": 100100200,
                          "entity_type": "document",
                          "event_count": null,
                          "request_method": "post",
                          "json_attributes": {
                            "use_tls_12": true,
                            "callback_url": "https://api.your-domain.com/callbacks/handle_event",
                            "docid_queryparam": false,
                            "include_metadata": true
                          },
                          "application_name": "My_Integration_App",
                          "entity_unique_id": "d0c1d2d3d4d5d6d7d8d900000000000000000001",
                          "event_subscription_owner_email": "admin@example.com"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect filter format (each filter must contain `type` and `value` fields)\n* Incorrect filter expression (must be a string)\n* Incorrect `application` filter expression (must be `\"type\": \"in\"`)\n* Incorrect `event` filter expression (must be `\"type\": \"=\"` or `\"type\": \"in\"`)\n* Incorrect `entity_id` or `callback_url` filter expression (must be `\"type\": \"like\"`)\n* Incorrect `application` or `event` filter value (must be an array of strings)\n* Incorrect `entity_id` or `callback_url` filter value (must be a string)\n* Incorrect `date` filter value (must be an array)\n\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect filter format": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006011,
                          "message": "Incorrect filter format, filter must have `type` and `value` fields."
                        }
                      ]
                    }
                  },
                  "Incorrect date filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006017,
                          "message": "The `date` filter value must be an array."
                        }
                      ]
                    }
                  },
                  "Incorrect filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006012,
                          "message": "Incorrect filter format, filter `type` must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect event filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "The `event` filter value should be array of strings."
                        }
                      ]
                    }
                  },
                  "Incorrect entity_id filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006020,
                          "message": "The `entity_id` filter value must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect event filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "The `event` filter expression should be equal to `=` or `in`"
                        }
                      ]
                    }
                  },
                  "Incorrect application filter value": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006023,
                          "message": "The `application` filter value should be an array of strings."
                        }
                      ]
                    }
                  },
                  "Incorrect entity_id filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006019,
                          "message": "The `entity_id` filter expression must be equal to `like`."
                        }
                      ]
                    }
                  },
                  "Incorrect application filter expression": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006021,
                          "message": "The `application` filter expression must be equal to `in`."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "operationId": "create-event-subscription-2",
        "summary": "Create event subscription",
        "description": "This endpoint allows users to subscribe an external service (`callback_url`) to a specific event related to a user, document, or document group. When the subscribed event occurs, your service receives a notification.\n\nSee the full list of available events in the [Webhooks user guide](/docs/guides-webhooks#entity-events).\nUse [HMAC verification](/docs/guides-webhooks#hmac-security) for an additional layer of security.\n\n> [!NOTE]\n> For the payload your service receives for each event, see the response examples in [Get callback info by ID](/docs/callbacks-info/operations/get-v2-dashboard-event-subscriptions-subscription-id-callbacks).",
        "responses": {
          "201": {
            "description": "Event subscription created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "id": "XXXXXXXXaa59418f996b81deb701697aa403fa72"
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "id": "XXXXXXXXaa59418f996b81deb701697aa403fa72"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* `event` format type is incorrect.\n* `event` is empty.\n* `event` does not exist.\n* `entity_id` format type is incorrect.\n* `entity_id` is empty.\n* `entity_id` length is incorrect.\n* `attributes` format type is incorrect.\n* `attributes` is empty.\n* `callback` is missing.\n* `callback` format type is incorrect.\n* `callback` is empty.\n* `callback` format is invalid URL.\n* `callback` host is not allowed.\n* `callback` host unreachable.\n* `use_tls_12` format type is incorrect.\n* `integration_id` format type is incorrect.\n* `integration_id` length is incorrect.\n* `integration_id` is invalid.\n* `docid_queryparam` format type is incorrect.\n* `headers` format type is incorrect.\n* `secret_key` format type is incorrect.\n* `secret_key` is empty.\n* `secret_key` length is incorrect.\n* `delete_access_token` format type is incorrect.\n* `include_metadata` format type is incorrect.\n* Payload is invalid.\n* `delay` not integer.\n* `delay` out of range.\n* `retry_count` not integer.\n* `retry_count` out of range.\n* Subscription limit reached.\n* This combination of `entity_id`, `event`, and `callback_url` has already been used.\n* API subscription not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 15007018,
                          "message": "The `attributes.callback` field must not be empty."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007018,
                          "message": "The `attributes.callback` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Limit reached": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006044,
                          "message": "Active subscriptions are limited to 20 subscriptions with this combination of entityId and eventName."
                        }
                      ]
                    }
                  },
                  "Event is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007010,
                          "message": "The `event` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Callback is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007018,
                          "message": "The `attributes.callback` field must not be empty."
                        }
                      ]
                    }
                  },
                  "delay not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007034,
                          "message": "The `attributes.delay` field must be an integer."
                        }
                      ]
                    }
                  },
                  "Entity_id is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007013,
                          "message": "The `entity_id` field must not be empty."
                        }
                      ]
                    }
                  },
                  "delay out of range": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007035,
                          "message": "The `attributes.delay` field must be between 0 and 100."
                        }
                      ]
                    }
                  },
                  "Attributes is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007016,
                          "message": "The `attributes` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Callback is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007028,
                          "message": "The \"callback\" field is missing."
                        }
                      ]
                    }
                  },
                  "Secret_key is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007025,
                          "message": "The `attributes.secret_key` must not be empty."
                        }
                      ]
                    }
                  },
                  "Event does not exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007011,
                          "message": "Provided event does not exist."
                        }
                      ]
                    }
                  },
                  "Payload is incorrect": {
                    "value": {
                      "code": 65536,
                      "message": "Invalid payload"
                    }
                  },
                  "retry_count not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007031,
                          "message": "The `attributes.retry_count` field must be an integer."
                        }
                      ]
                    }
                  },
                  "API subscription expired": {
                    "value": {
                      "errors": [
                        {
                          "code": 80001002,
                          "message": "Your API subscription could not be found."
                        }
                      ]
                    }
                  },
                  "retry_count out of range": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007032,
                          "message": "The `attributes.retry_count` field must be between 1 and 10."
                        }
                      ]
                    }
                  },
                  "Callback host unreachable": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007029,
                          "message": "Unknown callback host or callback host unreachable."
                        }
                      ]
                    }
                  },
                  "Integration_id is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007032,
                          "message": "Invalid integration id - {integration_id}"
                        }
                      ]
                    }
                  },
                  "Callback host is not allowed": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006001,
                          "message": "Host is not allowed."
                        }
                      ]
                    }
                  },
                  "Entity_id length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007014,
                          "message": "The `entity_id` field must have 40 characters."
                        }
                      ]
                    }
                  },
                  "Callback format is invalid URL": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007019,
                          "message": "The `attributes.callback` field must be url."
                        }
                      ]
                    }
                  },
                  "Event format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007009,
                          "message": "The `event` field must be string."
                        }
                      ]
                    }
                  },
                  "Secret_key length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007026,
                          "message": "The `secret_key` value is too long. It should have 300 character or less."
                        }
                      ]
                    }
                  },
                  "Headers format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007023,
                          "message": "The `attributes.headers` field must be array."
                        }
                      ]
                    }
                  },
                  "Callback format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007017,
                          "message": "The `attributes.callback` field must be string."
                        }
                      ]
                    }
                  },
                  "Duplicate subscription combination": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006045,
                          "message": "Active subscriptions must have different combinations of entityId, eventName, and callbackUrl."
                        }
                      ]
                    }
                  },
                  "Entity_id format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007012,
                          "message": "The `entity_id` field must be string."
                        }
                      ]
                    }
                  },
                  "Integration_id length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007031,
                          "message": "The `integration_id` field must have 40 characters."
                        }
                      ]
                    }
                  },
                  "Attributes format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007015,
                          "message": "The `attributes` field must be array."
                        }
                      ]
                    }
                  },
                  "Secret_key format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007024,
                          "message": "The `attributes.secret_key` must be string."
                        }
                      ]
                    }
                  },
                  "Use_tls_12 format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007020,
                          "message": "The `attributes.use_tls_12` field must be bool."
                        }
                      ]
                    }
                  },
                  "Integration_id format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007021,
                          "message": "The `attributes.integration_id` field must be string."
                        }
                      ]
                    }
                  },
                  "Docid_queryparam format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007022,
                          "message": "The `attributes.docid_queryparam` field must be bool."
                        }
                      ]
                    }
                  },
                  "Include_metadata format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007030,
                          "message": "The `attributes.include_metadata` field must be bool."
                        }
                      ]
                    }
                  },
                  "Delete_access_token format type is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007027,
                          "message": "The `attributes.delete_access_token` field must be bool."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "\n* The request is sent with a bearer token that does not belong to the user specified in the `entity_id` parameter.\n\n* The request is sent with a bearer token of a user who is not the owner of the document specified in the `entity_id` parameter.\n\n* API subscription is inactive.\n* API subscription has expired.\n* User reached the limit of event subscriptions.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 80001003,
                          "message": "Your API subscription is inactive."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 80001003,
                          "message": "Your API subscription is inactive."
                        }
                      ]
                    }
                  },
                  "Limit reached": {
                    "value": {
                      "errors": [
                        {
                          "code": 80001006,
                          "message": "You have reached the limit of event subscriptions."
                        }
                      ]
                    }
                  },
                  "Subscription expired": {
                    "value": {
                      "errors": [
                        {
                          "code": 80001005,
                          "message": "Your API subscription has expired."
                        }
                      ]
                    }
                  },
                  "Subscription inactive": {
                    "value": {
                      "errors": [
                        {
                          "code": 80001003,
                          "message": "Your API subscription is inactive."
                        }
                      ]
                    }
                  },
                  "Subscription not allowed for user (not an owner)": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006009,
                          "message": "Subscription to event is not allowed"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* `entity_id` not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "message": "Not found entity with id = {entity_id}"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "message": "Not found entity with id = {entity_id}"
                        }
                      ]
                    }
                  },
                  "Entity_id not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006005,
                          "message": "Not found entity with id = {entity_id}"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "event",
                  "entity_id"
                ],
                "properties": {
                  "event": {
                    "type": "string",
                    "example": "document.open",
                    "description": "Event name that triggers the subscription. Check [list of events](/docs/guides-webhooks#entity-events)."
                  },
                  "entity_id": {
                    "type": "string",
                    "example": "a1b2c3d4e5f67890123456789abcdef012345678",
                    "description": "Unique string ID of the entity (e.g., `document_id`, `user_id`, `document_group_id`)."
                  },
                  "attributes": {
                    "type": "object",
                    "required": [
                      "callback"
                    ],
                    "properties": {
                      "delay": {
                        "type": "integer",
                        "default": 0,
                        "maximum": 100,
                        "minimum": 0,
                        "description": "Delay in seconds before the webhook is sent after the event triggers."
                      },
                      "headers": {
                        "type": "object",
                        "properties": {
                          "int_head": {
                            "type": "integer",
                            "description": "Example integer header."
                          },
                          "bool_head": {
                            "type": "boolean",
                            "description": "Example boolean header."
                          },
                          "float_head": {
                            "type": "number",
                            "description": "Example float header."
                          },
                          "string_head": {
                            "type": "string",
                            "description": "Example string header."
                          }
                        },
                        "description": "Custom HTTP headers to be sent with the callback request (e.g., Authorization tokens)."
                      },
                      "callback": {
                        "type": "string",
                        "example": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
                        "description": "URL that receives the event callback."
                      },
                      "secret_key": {
                        "type": "string",
                        "example": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "maxLength": 300,
                        "description": "Secret key used to generate the HMAC signature for verifying request authenticity."
                      },
                      "use_tls_12": {
                        "type": "boolean",
                        "description": "Whether TLS 1.2 should be used for the callback request."
                      },
                      "retry_count": {
                        "type": "integer",
                        "maximum": 10,
                        "minimum": 1,
                        "multipleOf": 10,
                        "description": "Maximum number of retries if the webhook fails with a 5xx error."
                      },
                      "integration_id": {
                        "type": "string",
                        "description": "Optional unique ID to identify the external system integration."
                      },
                      "docid_queryparam": {
                        "type": "boolean",
                        "description": "Whether the document ID is included as a query parameter in the callback URL."
                      },
                      "include_metadata": {
                        "type": "boolean",
                        "description": "Whether document metadata is included in the callback payload."
                      },
                      "delete_access_token": {
                        "type": "boolean",
                        "default": true,
                        "description": "If `true`, the access token is removed from the webhook payload for security. Default is `true`."
                      }
                    },
                    "description": "Configuration for the webhook callback."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "event": "document.complete",
                    "entity_id": "document_id",
                    "attributes": {
                      "headers": {
                        "int_head": 12,
                        "bool_head": false,
                        "float_head": 12.24,
                        "string_head": "sample_text"
                      },
                      "callback": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
                      "use_tls_12": true,
                      "integration_id": "Unique ID Integration System",
                      "docid_queryparam": true
                    },
                    "secret_key": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "event": "document.complete",
                    "entity_id": "document_id",
                    "attributes": {
                      "delay": 50,
                      "headers": {
                        "int_head": 12,
                        "bool_head": false,
                        "float_head": 12.24,
                        "string_head": "sample_text"
                      },
                      "callback": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
                      "secret_key": "c8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "use_tls_12": true,
                      "retry_count": 3,
                      "integration_id": "Unique ID Integration System",
                      "docid_queryparam": true
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/event-subscriptions/{subscription_id}": {
      "get": {
        "operationId": "get-v2-dashboard-event-subscriptions-subscription-id",
        "summary": "Get subscription info",
        "description": "This endpoint allows users to get detailed information about an event subscription by its ID.",
        "parameters": [
          {
            "in": "path",
            "name": "subscription_id",
            "type": "string",
            "required": true,
            "description": "ID of the subscription. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "query",
            "name": "include_event_count",
            "type": "string",
            "required": false,
            "description": "If set to `true`, `event_count` returns the number of `callback_response_log` entries."
          }
        ],
        "responses": {
          "200": {
            "description": "Correct request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique identifier of the event subscription."
                        },
                        "event": {
                          "type": "string",
                          "description": "Event name that triggers the subscription. Check [list of events](/docs/guides-webhooks#entity-events)."
                        },
                        "action": {
                          "type": "string",
                          "description": "Action performed when the event occurs (for example, callback)."
                        },
                        "active": {
                          "type": "boolean",
                          "description": "Indicates whether the subscription is currently active."
                        },
                        "created": {
                          "type": "integer",
                          "description": "Timestamp (Unix time) indicating when the subscription was created."
                        },
                        "version": {
                          "type": "integer",
                          "description": "Subscription schema version."
                        },
                        "entity_id": {
                          "type": "integer",
                          "description": "Internal numeric ID of the entity."
                        },
                        "entity_type": {
                          "type": "string",
                          "description": "Type of entity the subscription is linked to (`document`, `document_group`, `user`)."
                        },
                        "event_count": {
                          "type": "integer",
                          "x-nullable": true,
                          "description": "Number of events sent (null if none or not tracked)."
                        },
                        "request_method": {
                          "type": "string",
                          "description": "HTTP method used for the callback request."
                        },
                        "json_attributes": {
                          "type": "object",
                          "properties": {
                            "use_tls_12": {
                              "type": "boolean",
                              "description": "Whether TLS 1.2 should be used for the callback."
                            },
                            "callback_url": {
                              "type": "string",
                              "description": "URL that receives the event callback."
                            },
                            "docid_queryparam": {
                              "type": "boolean",
                              "description": "Whether the document ID is included as a query parameter."
                            },
                            "include_metadata": {
                              "type": "boolean",
                              "description": "Whether document metadata is included in the callback payload."
                            }
                          },
                          "description": "Additional callback configuration details."
                        },
                        "application_name": {
                          "type": "string",
                          "description": "Name of the application that owns the subscription."
                        },
                        "entity_unique_id": {
                          "type": "string",
                          "description": "Unique string ID of the entity."
                        },
                        "event_subscription_owner_email": {
                          "type": "string",
                          "description": "Email address of the user who created the subscription."
                        }
                      },
                      "description": "Subscription details object."
                    }
                  }
                },
                "examples": {
                  "Correct request": {
                    "value": {
                      "data": {
                        "id": "19d209f7aa59418f996b81deb701697aa403fa72",
                        "event": "document.open",
                        "action": "callback",
                        "active": true,
                        "created": 1764244948,
                        "version": 2,
                        "entity_id": 552215426,
                        "entity_type": "document",
                        "event_count": null,
                        "request_method": "post",
                        "json_attributes": {
                          "use_tls_12": true,
                          "callback_url": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
                          "docid_queryparam": false,
                          "include_metadata": true
                        },
                        "application_name": "test_app",
                        "entity_unique_id": "f1c71db945974e2b847b0580d21c386561b415a0",
                        "event_subscription_owner_email": "greenanna070@gmail.com"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization error": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Anauthorized ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Subscription not allowed": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006004,
                          "message": "Event subscription is not allowed."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Subscription not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 15006003,
                          "message": "Event subscription not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006003,
                          "message": "Event subscription not found."
                        }
                      ]
                    }
                  },
                  "Non-existing subscription_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006003,
                          "message": "Event subscription not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "put-v2-event-subscriptions-subscription-id",
        "summary": "Edit event subscription",
        "description": "This endpoint allows users to update an existing event subscription.",
        "parameters": [
          {
            "in": "path",
            "name": "subscription_id",
            "type": "string",
            "required": true,
            "description": "ID of the subscription. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect Bearer token\n* `event` is not a string\n* `event` is empty\n* `event` doesn't exist\n* `entity_id` is not a string\n* `entity_id` is missing\n* `entity_id` is not 40 characters long\n* `attributes` is not an array\n* `attributes` is empty\n* `attributes` error\n* `callback` is not a string\n* `callback` is empty\n* `callback` is missing\n* `callback` is not a valid email address\n* `callback` URL is not allowed\n* `callback` host unknown or unreachable\n* `use_tls_12` is not a boolean\n* `integration_id` is not a string\n* `integration_id` is not 40 characters long\n* Incorrect `integration_id`\n* `docid_queryparam` is not a boolean\n* `headers` is not an array\n* `secret_key` is not a string\n* `secret_key` is empty\n* `secret_key` is longer than 300 characters\n* `delete_access_token` is not a boolean\n* `include_metadata` is not a boolean",
            "content": {
              "application/json": {
                "examples": {
                  "Empty event": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007010,
                          "message": "The `event` field must not be empty."
                        }
                      ]
                    }
                  },
                  "callback empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007018,
                          "message": "The `attributes.callback` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Attributes error": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "Empty attributes": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007016,
                          "message": "The `attributes` field must not be empty."
                        }
                      ]
                    }
                  },
                  "Empty secret_key": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007025,
                          "message": "The `attributes.secret_key` must not be empty."
                        }
                      ]
                    }
                  },
                  "callback missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007028,
                          "message": "The \"callback\" field is missing."
                        }
                      ]
                    }
                  },
                  "event not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007009,
                          "message": "The `event` field must be string."
                        }
                      ]
                    }
                  },
                  "include_metadata": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007030,
                          "message": "The `attributes.include_metadata` field must be bool."
                        }
                      ]
                    }
                  },
                  "entity_id missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007013,
                          "message": "The `entity_id` field must not be empty."
                        }
                      ]
                    }
                  },
                  "headers not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007023,
                          "message": "The `attributes.headers` field must be array."
                        }
                      ]
                    }
                  },
                  "callback not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007017,
                          "message": "The `attributes.callback` field must be string."
                        }
                      ]
                    }
                  },
                  "event doesn't exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007011,
                          "message": "Provided event does not exist."
                        }
                      ]
                    }
                  },
                  "secret_key too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007026,
                          "message": "The `secret_key` value is too long. It should have 300 character or less."
                        }
                      ]
                    }
                  },
                  "attributes not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007015,
                          "message": "The `attributes` field must be array."
                        }
                      ]
                    }
                  },
                  "entity_id not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007012,
                          "message": "The `entity_id` field must be string."
                        }
                      ]
                    }
                  },
                  "secret_key not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007024,
                          "message": "The `attributes.secret_key` must be string."
                        }
                      ]
                    }
                  },
                  "Incorrect Bearer token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "entity_id length error": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007014,
                          "message": "The `entity_id` field must have 40 characters."
                        }
                      ]
                    }
                  },
                  "use_tls_12 not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007020,
                          "message": "The `attributes.use_tls_12` field must be bool."
                        }
                      ]
                    }
                  },
                  "Incorrect integration_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007032,
                          "message": "Invalid integration id - 2d384c8a99ff4b6980a52c484b8ca0bdbf8cfc70"
                        }
                      ]
                    }
                  },
                  "callback URL not allowed": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006001,
                          "message": "Host is not allowed."
                        }
                      ]
                    }
                  },
                  "integration_id not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007021,
                          "message": "The `attributes.integration_id` field must be string."
                        }
                      ]
                    }
                  },
                  "integration_id length error": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007031,
                          "message": "The `integration_id` field must have 40 characters."
                        }
                      ]
                    }
                  },
                  "docid_queryparam not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007022,
                          "message": "The `attributes.docid_queryparam` field must be bool."
                        }
                      ]
                    }
                  },
                  "callback not an email address": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007019,
                          "message": "The `attributes.callback` field must be url."
                        }
                      ]
                    }
                  },
                  "delete_access_token not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007027,
                          "message": "The `attributes.delete_access_token` field must be bool."
                        }
                      ]
                    }
                  },
                  "callback host unknown or unreachable": {
                    "value": {
                      "errors": [
                        {
                          "code": 15007029,
                          "message": "Unknown callback host or callback host unreachable."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The bearer token is valid but it belongs to another user.\n* Subscription update is not allowed.\n* API subscription is not found.\n* API subscription is inactive.\n* API subscription has expired.",
            "content": {
              "application/json": {
                "examples": {
                  "Token of another user": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006004,
                          "message": "Event subscription is not allowed."
                        }
                      ]
                    }
                  },
                  "Expired API subscription": {
                    "value": {
                      "errors": [
                        {
                          "code": 80001005,
                          "message": "Your API subscription has expired."
                        }
                      ]
                    }
                  },
                  "Inactive API subscription": {
                    "value": {
                      "errors": [
                        {
                          "code": 80001003,
                          "message": "Your API subscription is inactive."
                        }
                      ]
                    }
                  },
                  "API subscription not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 80001002,
                          "message": "Your API subscription could not be found."
                        }
                      ]
                    }
                  },
                  "Subscription update not allowed": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006010,
                          "message": "Updating of subscription to event is not allowed"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The entity ID doesn't exist.\n* The subscription ID doesn't exist.",
            "content": {
              "application/json": {
                "examples": {
                  "Entity ID not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006005,
                          "message": "Not found entity with id = 4d184c8a99ff4b6980a52c484b8ca0bdbf8cfc70"
                        }
                      ]
                    }
                  },
                  "Subscription ID not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006003,
                          "message": "Event subscription not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "event",
                  "entity_id",
                  "attributes"
                ],
                "properties": {
                  "event": {
                    "type": "string",
                    "example": "document.open",
                    "description": "Event that should trigger the subscription."
                  },
                  "action": {
                    "type": "string",
                    "example": "callback",
                    "description": "Always only \"callback\""
                  },
                  "entity_id": {
                    "type": "string",
                    "example": "2e1fa467c4674e988a0542de8bf2f22cb0498410",
                    "maxLength": 40,
                    "minLength": 40,
                    "description": "ID of the entity that should trigger the subscription."
                  },
                  "attributes": {
                    "type": "object",
                    "required": [
                      "callback"
                    ],
                    "properties": {
                      "headers": {
                        "type": "object",
                        "properties": {
                          "int_head": {
                            "type": "integer"
                          },
                          "bool_head": {
                            "type": "boolean"
                          },
                          "float_head": {
                            "type": "number"
                          },
                          "string_head": {
                            "type": "string"
                          }
                        },
                        "description": "You can add any parameters to the \"headers\" array."
                      },
                      "callback": {
                        "type": "string",
                        "example": "https://webhook.site/a0093533-766c-456e-b625-97592745216a",
                        "description": "URL that should receive the callback."
                      },
                      "secret_key": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "Enables the HMAC security logic."
                      },
                      "use_tls_12": {
                        "type": "boolean",
                        "description": "If true, the 1.2 TLS version will be used. If false, the default TLS version will be used. "
                      },
                      "integration_id": {
                        "type": "string",
                        "description": "External system ID"
                      },
                      "docid_queryparam": {
                        "type": "boolean",
                        "description": "If true, a JSON that is sent in a callback will contain document ID as a query string parameter and as a part of \"callback_url\" parameter."
                      },
                      "include_metadata": {
                        "type": "boolean",
                        "description": "Whether the payload of the webhook should include metadata."
                      },
                      "delete_access_token": {
                        "type": "boolean",
                        "default": false,
                        "description": "Determines whether to keep access_token in the payload. If true, an access_token key id removed from the payload. If false, the access_token is kept in the payload attributes."
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-v2-event-subscriptions-subscription-id",
        "summary": "Delete event subscription",
        "description": "This endpoint allows users to delete an event subscription.",
        "parameters": [
          {
            "in": "path",
            "name": "subscription_id",
            "type": "string",
            "required": true,
            "description": "ID of the subscription. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect Bearer token",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The bearer token is valid but it belongs to another user.\n* Email notifications are turned on for this subscription",
            "content": {
              "application/json": {
                "examples": {
                  "Another user's token": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006004,
                          "message": "Event subscription is not allowed."
                        }
                      ]
                    }
                  },
                  "Email notifications error": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006040,
                          "message": "This webhook sends data to a callback URL that is used in your email notifications as a filter. The email address that receives notification is {notificationEmail}. First, remove the callback URL from the notification at API Dashboard, and then unsubscribe from the webhook."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The subscription ID doesn't exist.\n* The subscription ID value is incorrect (must match [a-z0-9]{40}).",
            "content": {
              "application/json": {
                "examples": {
                  "Incorrect subscription ID": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006003,
                          "message": "Event subscription not found."
                        }
                      ]
                    }
                  },
                  "Subscription ID doesn't exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006003,
                          "message": "Event subscription not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/event-subscriptions/{subscription_id}/activate": {
      "put": {
        "operationId": "put-v2-event-subscriptions-subscription-id-activate",
        "summary": "Activate event subscription",
        "description": "This endpoint allows users to activate an inactive event subscription.",
        "parameters": [
          {
            "in": "path",
            "name": "subscription_id",
            "type": "string",
            "required": true,
            "description": "ID of the subscription. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect Bearer token",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The bearer token is valid but it belongs to another user.",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006004,
                          "message": "Event subscription is not allowed."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The subscription ID doesn't exist.\n* The subscription ID value is incorrect (must match [a-z0-9]{40}).",
            "content": {
              "application/json": {
                "examples": {
                  "Incorrect subscription ID": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/dashboard/event-subscriptions/test"
                    }
                  },
                  "Subscription ID doesn't exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006003,
                          "message": "Event subscription not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "This subscription ID is already active.",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006008,
                          "message": "Event subscription is already active."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/event-subscriptions/{subscription_id}/deactivate": {
      "put": {
        "operationId": "put-v2-event-subscriptions-subscription-id-deactivate",
        "summary": "Deactivate event subscription",
        "description": "This enpoint allows users to deactivate an active event subscription. Deactivated event subscriptions are not processing callbacks, that they are related to.",
        "parameters": [
          {
            "in": "path",
            "name": "subscription_id",
            "type": "string",
            "required": true,
            "description": "ID of the subscription. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect Bearer token",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The bearer token is valid but it belongs to another user.",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006004,
                          "message": "Event subscription is not allowed."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The subscription ID doesn't exist.\n* The subscription ID value is incorrect (must match [a-z0-9]{40}).",
            "content": {
              "application/json": {
                "examples": {
                  "Incorrect subscription ID": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/dashboard/event-subscriptions/test"
                    }
                  },
                  "Subscription ID doesn't exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006003,
                          "message": "Event subscription not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "This subscription ID is already inactive.",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 15006007,
                          "message": "Event subscription is already deactivated."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/team": {
      "post": {
        "operationId": "create-team",
        "summary": "Create a team",
        "description": "This endpoint creates a new team.",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "e2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing `name`\r\n* Incorrect payload\r\n* Incorrect team type\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect payload": {
                    "value": {
                      "code": 65536,
                      "message": "Invalid payload"
                    }
                  },
                  "Incorrect team type": {
                    "value": {
                      "code": 65536,
                      "message": "Team type is not valid"
                    }
                  },
                  "Incorrect or missing name": {
                    "value": {
                      "code": 65701,
                      "message": "Name must not be empty"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              },
              "examples": {
                "application/json": {
                  "value": "{\n\n\"name\": \"New team\", //required. Possible values: any text up to 40 characters (but It's not allowed to use special symbols without letters or numbers)\n\n\"type\": \"VIEWABLE\" //optional. Possible values: VIEWABLE, SHAREABLE. In case this parameter is not specified, default VIEWABLE value is applied for created team.\n\n}"
                }
              }
            }
          }
        }
      }
    },
    "/team/{team_id}": {
      "get": {
        "operationId": "get-team",
        "summary": "Get team",
        "description": "This endpoint returns information about the team.",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "d94cfb24fa04bf2f564a943921b302c6cadfbd4e",
                      "name": "New team",
                      "type": "VIEWABLE",
                      "active": true,
                      "created": "1534928514",
                      "members": [
                        {
                          "id": "5a81a4ecc895e6ceab5aa0b090747745a6339b95",
                          "role": "member",
                          "emails": [
                            "member1@signnow.com"
                          ],
                          "status": "accepted",
                          "can_admin_view": true
                        },
                        {
                          "id": "caf31778ef8e4efdaa86e4e91067397f02d66508",
                          "role": "admin",
                          "emails": [
                            "admin@signnow.com"
                          ],
                          "status": "accepted",
                          "billing": 1,
                          "primary": false,
                          "can_admin_view": false,
                          "document_access": 1
                        },
                        {
                          "id": "79c7ec6b258346105e415ceae13b687c4231966b",
                          "role": "admin",
                          "emails": [
                            "admin2@signnow.com"
                          ],
                          "status": "accepted",
                          "billing": 1,
                          "primary": true,
                          "can_admin_view": false,
                          "document_access": 1
                        },
                        {
                          "id": "d4943d8c8814667018060c79c760c8acfc870d3a",
                          "role": "member",
                          "emails": [
                            "member2@signnow.com"
                          ],
                          "status": "pending",
                          "can_admin_view": false
                        }
                      ],
                      "updated": ""
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* User is not in the team.\r\n* Team not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66391,
                      "message": "Team not found"
                    }
                  },
                  "User not in the team": {
                    "value": {
                      "code": 65582,
                      "message": "User is not part of this team"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "rename-team",
        "summary": "Rename team",
        "description": "This endpoint allows users to rename a team",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "96XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Trying to rename team by user who is not primary admin",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "code": 65582,
                      "message": "User is not an admin of this team"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              },
              "examples": {
                "application/json": {
                  "value": {
                    "name": "New team name"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-team",
        "summary": "Delete team",
        "description": "This endpoint deletes a team.\n\n***Requires access token of primary team admin.***",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "status": "success"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* User is not a primary admin of the team.\r\n* Team not found.",
            "content": {
              "application/json": {
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66391,
                      "message": "Team not found"
                    }
                  },
                  "User not primary admin": {
                    "value": {
                      "code": 65582,
                      "message": "User is not an admin of this team"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/teams": {
      "get": {
        "operationId": "get-user-teams",
        "summary": "Get user's teams",
        "description": "This endpoint returns list of user teams",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "active": {
                            "type": "integer"
                          },
                          "created": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "links": {
                              "type": "object",
                              "properties": {
                                "next": {
                                  "type": "string"
                                }
                              }
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "id": "e87f5fcf97e74e81a97738b2bf25195fa90d1e6d",
                          "name": "Handcrafted Metal Cheese",
                          "role": "admin",
                          "type": "VIEWABLE",
                          "active": 1,
                          "created": 1573658889
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": {
                            "next": "https://api.signnow.com/v2/teams?page=2"
                          },
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "data": [
                        {
                          "id": "e8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Team 1",
                          "role": "admin",
                          "type": "VIEWABLE",
                          "active": 1,
                          "created": 1573658889
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": {
                            "next": "https://example.com/v2/teams?page=2"
                          },
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/team/{request_id}/request": {
      "put": {
        "operationId": "accept-decline-invitation-to-team",
        "summary": "Accept or decline invitation to a team",
        "description": "This endpoint allows user to accept or deny their invite to join a team",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              },
              "examples": {
                "application/json": {
                  "value": {
                    "accept": true
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-team-invite",
        "summary": "Get team invite",
        "description": "This endpoint returns information about user's invite.",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Possible statuses of `request_status`:\r\n\r\n* `waiting`: user didn't accept or reject the invite.\r\n* `approved`: user accepted the invite.\r\n* `denied`: user or team admin rejected the invite.\r\n* `unknown` - an error occured.\r\n\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "team_id": "c7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "team_name": "HR",
                      "request_id": "0aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "request_status": "approved"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* The invite is not for this user.\r\n* Invite not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Invite not found": {
                    "value": {
                      "code": 66392,
                      "message": "Team request not found"
                    }
                  },
                  "Invite belongs to another user": {
                    "value": {
                      "code": 65598,
                      "message": "You cannot access somebody else's team request"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/team/{team_id}/request": {
      "post": {
        "operationId": "invite-user-to-team",
        "summary": "Invite user to a team",
        "description": "This endpoint allows team member to invite new users to their team",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "team_requests": [
                        {
                          "id": "dfXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "user1@email.com",
                          "status": "success"
                        },
                        {
                          "id": "0eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "user2@email.com",
                          "status": "success"
                        },
                        {
                          "id": "d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "user3@email.com",
                          "status": "success"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or empty payload.\r\n* One or more emails adresses are incorrect.\r\n* User is not in the team.\r\n* Team not found.\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66391,
                      "message": "Team not found"
                    }
                  },
                  "User not in the team": {
                    "value": {
                      "code": 65615,
                      "message": "Operation not allowed"
                    }
                  },
                  "Incorrect email or emails": {
                    "value": {
                      "code": 65582,
                      "message": "Invalid Email."
                    }
                  },
                  "Incorrect or missing payload": {
                    "value": {
                      "code": 65582,
                      "message": "Emails are required."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              },
              "examples": {
                "application/json": {
                  "value": {
                    "emails": [
                      "user1@emaildomain.com",
                      "user2@emaildomain.com",
                      "user3@emaildomain.com"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/team/{team_id}/user/{user_id}": {
      "delete": {
        "operationId": "delete-user-from-team",
        "summary": "Delete user from team",
        "description": "This endpoint allows:\n* team primary admin to delete a user from a team \n* team members to delete themselves from a team",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect `access_token`: it must belong to the team primary admin or to the user being deleted.\n* Team not found.\n* User not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66362,
                      "message": "Team not found"
                    }
                  },
                  "User not found": {
                    "value": {
                      "code": 65582,
                      "message": "User not found"
                    }
                  },
                  "Insufficient rights": {
                    "value": {
                      "code": 65582,
                      "message": "Only the admin or person being deleted can delete themselves"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/teams/{request_id}/request": {
      "patch": {
        "operationId": "patch-v2-teams-request-id-request",
        "summary": "Update team invite status",
        "description": "Allows API users to update the status of invite to join the team. Works only for the invite requests with the `waiting` status.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "request_id",
            "type": "string",
            "required": true,
            "description": "ID of the invite to join the team."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Success": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* User declines the invite which is not in the `waiting` status\n* User accepts/denies invite which isn't addressed to them\n* Request ID doesn't exist\n* User who updates the invite is a member of the Organization with specific parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request ID doesn't exist": {
                    "value": {
                      "errors": [
                        {
                          "code": 66392,
                          "message": "Team request not found"
                        }
                      ]
                    }
                  },
                  "Accepts/denies somebody's invite ": {
                    "value": {
                      "errors": [
                        {
                          "code": 12023003,
                          "message": "You cannot access somebody else's team request"
                        }
                      ]
                    }
                  },
                  "Declines the not `waiting` invite ": {
                    "value": {
                      "errors": [
                        {
                          "code": 12023004,
                          "message": "This request is not pending"
                        }
                      ]
                    }
                  },
                  "Organization with specific parameters": {
                    "value": {
                      "errors": [
                        {
                          "code": 65615,
                          "message": "Your Organization restricts you from joining this team"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "request_status"
                ],
                "properties": {
                  "request_status": {
                    "type": "string",
                    "description": "The updated status of the invite request. Possible values:  `denied`, `declined`, `approved`."
                  }
                }
              },
              "examples": {
                "Updated status: approved": {
                  "value": {
                    "request_status": "approved"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/teams/{team_id}/members": {
      "get": {
        "operationId": "get-api-v2-teams-team-id-users",
        "summary": "Get team members",
        "description": "This endpoint allows users to get a list of members of a team, including admins.\r\n\r\nOnly team members can use the endpoint.",
        "parameters": [
          {
            "in": "query",
            "name": "with_declined_requests",
            "type": "boolean",
            "default": false,
            "required": false,
            "description": "Include users that declined an invitation to join the team."
          },
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "* Success\r\n* Success with `with_declined_requests=true`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "User ID"
                          },
                          "role": {
                            "type": "string",
                            "description": "User's role (member or admin)",
                            "x-stoplight": {
                              "id": "g3rco1yahqf07"
                            }
                          },
                          "emails": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "x-stoplight": {
                                "id": "3i5bp7j0keikq"
                              }
                            },
                            "description": "User's email addresses",
                            "x-stoplight": {
                              "id": "yfogwsrq31v6e"
                            }
                          },
                          "status": {
                            "type": "string",
                            "description": "User's status (accepted, declined, or pending)",
                            "x-stoplight": {
                              "id": "wv8nu69pf3tm9"
                            }
                          },
                          "billing": {
                            "type": "integer",
                            "description": "Is true if member is an admin",
                            "x-stoplight": {
                              "id": "z6a8kr0wicegg"
                            }
                          },
                          "primary": {
                            "type": "boolean",
                            "description": "Whether the user is a primary admin",
                            "x-stoplight": {
                              "id": "xptvn3zt0l5ls"
                            }
                          },
                          "full_name": {
                            "type": "string",
                            "description": "User's full name",
                            "x-stoplight": {
                              "id": "ei7bxp9sextx4"
                            }
                          },
                          "avatar_url": {
                            "type": "string",
                            "description": "URL of the avatar image",
                            "x-stoplight": {
                              "id": "aqi1amqay9fpo"
                            }
                          },
                          "invited_by": {
                            "type": "string",
                            "description": "Email address of the user who invited the member. Appears for pending members.",
                            "x-stoplight": {
                              "id": "xmxwn6h75eiia"
                            }
                          },
                          "request_uid": {
                            "type": "string",
                            "description": "ID of this member's invitation request. Appears for pending members.",
                            "x-stoplight": {
                              "id": "olrwzuzfrqmvr"
                            }
                          },
                          "request_role": {
                            "type": "string",
                            "description": "Is equal to `member` if a user is not an admin",
                            "x-stoplight": {
                              "id": "8ta5t7hxc61kk"
                            }
                          },
                          "can_admin_view": {
                            "type": "boolean",
                            "description": "Whether a user is a secondary admin (not a team owner) and is not a user sending the request",
                            "x-stoplight": {
                              "id": "etasi3kuiriys"
                            }
                          },
                          "document_access": {
                            "type": "integer",
                            "description": "Is true if member is an admin",
                            "x-stoplight": {
                              "id": "od1az748tj3e9"
                            }
                          },
                          "request_updated": {
                            "type": "number",
                            "description": "Timestamp of when the invitation to join the team was sent to this user. Appears for pending members.",
                            "x-stoplight": {
                              "id": "ddp8uej3mu8cf"
                            }
                          }
                        }
                      },
                      "description": "Array of members"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer",
                              "description": "Number of users on the current page"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              },
                              "description": "Links to the previous and next pages if they exist"
                            },
                            "total": {
                              "type": "integer",
                              "description": "Number of users found"
                            },
                            "per_page": {
                              "type": "integer",
                              "description": "Number of users to be displayed on a page"
                            },
                            "total_pages": {
                              "type": "integer",
                              "description": "Total number of pages "
                            },
                            "current_page": {
                              "type": "integer",
                              "description": "Current page number"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "1234567890123456789012345678901234567890",
                          "pro": 0,
                          "type": 1,
                          "email": "j.doe@email.com",
                          "active": 1,
                          "created": 1714404437,
                          "updated": 1714404437,
                          "is_admin": 1,
                          "last_name": "Doe",
                          "first_name": "Jane"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "data": [
                        {
                          "id": "21436a9a91c744239f02318d4090d3c188f4f378",
                          "role": "admin",
                          "emails": [
                            "member@mail.com"
                          ],
                          "status": "accepted",
                          "billing": 1,
                          "primary": true,
                          "full_name": "Jane Doe",
                          "avatar_url": "https://example.com/avatars/user12345.png",
                          "can_admin_view": false,
                          "document_access": 1
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "1234567890123456789012345678901234567890",
                          "pro": 0,
                          "type": 1,
                          "email": "j.doe@email.com",
                          "active": 1,
                          "created": 1714404437,
                          "updated": 1714404437,
                          "is_admin": 1,
                          "last_name": "Doe",
                          "first_name": "Jane"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "With declined requests": {
                    "value": {
                      "data": [
                        {
                          "id": "23278db3aa1e40069462f00b2074673a682731a6",
                          "role": "member",
                          "emails": [
                            "member1@mail.com"
                          ],
                          "status": "pending",
                          "full_name": "Jane Doe",
                          "avatar_url": "https://cdn.example.com/users/avatars/56789.jpg",
                          "invited_by": "admin@mail.com",
                          "request_uid": "983d5d4fca18841e78be8061622beeaed6a9da2cd",
                          "request_role": "member",
                          "request_updated": 1719840457
                        },
                        {
                          "id": "b215d678cb01420c850c354859e0b6d8b4425b89",
                          "role": "admin",
                          "emails": [
                            "admin@mail.com"
                          ],
                          "status": "accepted",
                          "billing": 1,
                          "primary": false,
                          "full_name": "Jane Doe",
                          "avatar_url": "https://app.signnow.com/api/v2/avatars/66de0c3d72a24682848dc5d87f4007c1f2de22b7/download",
                          "document_access": 1
                        },
                        {
                          "id": "399b9178e4244152878e85333a360a95608a2723",
                          "role": "member",
                          "emails": [
                            "member2@mail.com"
                          ],
                          "status": "accepted",
                          "full_name": "Anna Green",
                          "avatar_url": "https://app.signnow.com/api/v2/avatars/66de0c3d72a24682848dc5d87f4007c1f2de22a8/download",
                          "request_role": "member"
                        },
                        {
                          "id": "21436a9a91c744239f02318d4090d3c188f4f378",
                          "role": "member",
                          "emails": [
                            "member3@mail.com"
                          ],
                          "status": "accepted",
                          "full_name": "Jeremy Black",
                          "avatar_url": "https://app.signnow.com/api/v2/avatars/99de0c3d72a24682848dc5d87f4007c1f2de22b7/download",
                          "request_role": "member"
                        },
                        {
                          "id": "8bb5e7e301e4468fb54fcf1c0f4892d8aebca3f3",
                          "role": "admin",
                          "emails": [
                            "admin2@mail.com"
                          ],
                          "status": "accepted",
                          "billing": 1,
                          "primary": true,
                          "full_name": "Elaine Hicks",
                          "avatar_url": "https://app.signnow.com/api/v2/avatars/55de0c3d72a24682848dc5d87f4007c1f2de22b7/download",
                          "document_access": 1
                        },
                        {
                          "id": "0bc4a5b4f22548ec89344e9a5ecd94c6ba5baefd",
                          "role": "member",
                          "emails": [
                            "member4@mail.com"
                          ],
                          "status": "declined",
                          "full_name": "Kate Brown",
                          "avatar_url": "https://app.signnow.com/api/v2/avatars/33de0c3d72a24682848dc5d87f4007c1f2de22b7/download",
                          "request_role": "member"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 6,
                          "links": [],
                          "total": 6,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* User is not team member\r\n* Team not found\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Team not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 66391,
                          "message": "Team not found"
                        }
                      ]
                    }
                  },
                  "User not team member": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "User is not part of this team"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/oauth2/terminate": {
      "post": {
        "operationId": "post-oauth2-terminate",
        "summary": "Terminate access token",
        "description": "This endpoint allows users to terminate the current access token from the authorization header. The token will no longer be available for Bearer authentication.\n",
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "- Incorrect or expired access token.\n- Token authentication is missing.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "error": "invalid_request"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "error": "invalid_request"
                    }
                  },
                  "Token authentication missing": {
                    "value": {
                      "error": "invalid_request"
                    }
                  },
                  "Incorrect or expired access token": {
                    "value": {
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/oauth2/token": {
      "post": {
        "operationId": "post-oauth2-token",
        "summary": "Generate access token",
        "description": "This endpoint generates an access token for a user.\n\nIn the request, specify the `grant_type` to use:\n\n- `password`: generate an access token using the [password grant](/docs/authentication#password-grant).\n\n- `refresh_token`: generate an access token using the [refresh token grant](/docs/authentication#refresh-token-grant).\n\n- `authorization_code`: generate an access token using the [authorization code grant](/docs/authentication#authorization-code-grant).\n\nSee also: [Authentication](/docs/authentication#about-authentication).",
        "responses": {
          "200": {
            "description": "Returns an `access_token` for the user, along with its type, scope, expiration time, and `refresh_token`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string"
                    },
                    "expires_in": {
                      "type": "integer"
                    },
                    "last_login": {
                      "type": "integer"
                    },
                    "token_type": {
                      "type": "string"
                    },
                    "access_token": {
                      "type": "string"
                    },
                    "refresh_token": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "scope": "*",
                      "expires_in": 2592000,
                      "last_login": 1,
                      "token_type": "bearer",
                      "access_token": "7cXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "refresh_token": "59XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* The basic authorization token is incorrect.\n* A required parameter is missing.\n* The scope is incorrect.\n* The password or email is incorrect.\n* The `expiration_time` parameter must be greater than 0.\n* The user is permanently banned.\n* The user is temporarily banned.\n* The user is subject to SSO rules or added to an organization.\n* The user’s email is not verified.\n* Refresh token is incorrect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1538,
                      "error": "invalid_client"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1538,
                      "error": "invalid_client"
                    }
                  },
                  "Unverified email": {
                    "value": {
                      "code": 1545,
                      "error": "unverified_email"
                    }
                  },
                  "Scope is incorrect": {
                    "value": {
                      "error": "invalid_scope."
                    }
                  },
                  "Refresh token incorrect": {
                    "value": {
                      "code": 997,
                      "error": "Invalid refresh token. Please log out and log back in again."
                    }
                  },
                  "User is permanently banned": {
                    "value": {
                      "code": 65681,
                      "error": "This account has been deactivated permanently. Please contact SignNow Customer Service to reactivate your account."
                    }
                  },
                  "User is temporarily banned": {
                    "value": {
                      "code": 65681,
                      "error": "This account has been deactivated temporarily for %N% minutes. To reactivate the account sooner, please contact SignNow Customer Service."
                    }
                  },
                  "expiration_time is incorrect": {
                    "value": {
                      "error": "The `expiration_time` parameter must be greater than 0."
                    }
                  },
                  "Required parameter is missing": {
                    "value": {
                      "error": "invalid_request."
                    }
                  },
                  "Password or email is incorrect": {
                    "value": {
                      "code": 826,
                      "error": "Invalid credentials."
                    }
                  },
                  "Basic authorization token is incorrect": {
                    "value": {
                      "error": "invalid_client."
                    }
                  },
                  "User is restricted by SSO or organization": {
                    "value": {
                      "error": "Please use your corporate login page to login to SignNow."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User is not the application owner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 11005001,
                          "message": "Access denied."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 11005001,
                          "message": "Access denied."
                        }
                      ]
                    }
                  },
                  "User not an owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 11005001,
                          "message": "Access denied."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "username": {
                    "type": "string",
                    "description": "User email. Required if `grant_type`: `password`."
                  },
                  "password": {
                    "type": "string",
                    "description": "User password. Required if `grant_type`: `password`."
                  },
                  "grant_type": {
                    "type": "string",
                    "description": "Specifies the grant type for authorization. Possible values: `password`, `refresh_token`, `authorization_code`."
                  },
                  "scope": {
                    "type": "string",
                    "description": "Permissions for the issued token; `*` grants all permissions. Using scope, you can define a custom list of accessible URLs.  For example: `document/* GET/user` will allow access to:  1) all routes starting with `/document/` 2) `GET /user` route"
                  },
                  "refresh_token": {
                    "type": "string",
                    "description": "The refresh token value, obtained from the `Generate access token` response. Required if `grant_type`: `refresh_token`."
                  },
                  "code": {
                    "type": "string",
                    "description": "The authorization code, obtained from the [Get authorization code](/docs/oauth2/operations/get-oauth2-userauth) response. Required if `grant_type`: `authorization_code`."
                  },
                  "expiration_time": {
                    "type": "integer",
                    "description": "Time until the token expires in seconds. Default value is 2592000  seconds (30 days)."
                  }
                },
                "required": [
                  "username",
                  "password",
                  "grant_type"
                ]
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-oauth2-token",
        "summary": "Verify access token",
        "description": "This endpoint verifies an access token for a user.",
        "responses": {
          "200": {
            "description": "Returns the access_token itself as well as its' scope, expiration date, and type.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scope": {
                      "type": "string"
                    },
                    "expires_in": {
                      "type": "string"
                    },
                    "token_type": {
                      "type": "string"
                    },
                    "access_token": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "scope": "*",
                      "expires_in": "2517898",
                      "token_type": "bearer",
                      "access_token": "8dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "\"invalid_token\" - either incorrect or expired token provided",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_token": {
                    "value": {
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/oauth2/userauth": {
      "get": {
        "operationId": "get-oauth2-userauth",
        "summary": "Get authorization code via redirect",
        "description": "This endpoint allows API users to obtain an authorization code via an application redirect link. The code can then be used to generate an access token (bearer token) to make API requests on behalf of the user — without using their SignNow credentials. \n\nFor more information, see [Generate access token](/docs/oauth2/operations/post-oauth2-token).",
        "parameters": [
          {
            "in": "query",
            "name": "response_type",
            "type": "string",
            "required": true,
            "description": "Must be equal to `code`."
          },
          {
            "in": "query",
            "name": "redirect_uri",
            "type": "string",
            "required": true,
            "description": "URL to which the user is redirected after authorizing your app. The authorization code is sent to this URL."
          },
          {
            "in": "query",
            "name": "client_id",
            "type": "string",
            "required": true,
            "description": "Your application’s client ID, found in the [API Dashboard](https://app.signnow.com/webapp/api-dashboard/keys)."
          },
          {
            "in": "query",
            "name": "access_token",
            "type": "string",
            "required": true,
            "description": "An application-level access token. Used to request the user authorization page, which contains a link to obtain the authorization code."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns an HTML page that contains a link with the authorization code.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "html"
                },
                "examples": {
                  "text/html": {
                    "value": "<!DOCTYPE html> <html>\n<head> <meta charset=\"UTF-8\" /> <meta http-equiv=\"refresh\" content=\"0;url='https://www.example.com?code={{authorization_code}}'\" />\n<title>Redirecting to https://www.example.com?code={{authorization_code}} </title> </head>\n<body> Redirecting to <a href=\"https://www.example.com?code={{authorization_code}}\">https://www.example.com?code={{authorization_code}}</a>. </body>\n</html>"
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect `client_id`.\n* `access_token` is missing.\n* `client_id` is missing.\n* `response_type` is missing.\n* `redirect_url` is missing.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 65536,
                      "error": "internal api error"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 65536,
                      "error": "internal api error"
                    }
                  },
                  "Missing parameter": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_request"
                    }
                  },
                  "Incorrect client_id": {
                    "value": {
                      "code": 65536,
                      "error": "internal api error"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/email-footers": {
      "post": {
        "operationId": "post-v2-organizations-org-id-email-footers",
        "summary": "Create email footer",
        "description": "Allows users to create email footer text that is added to every email sent on behalf of the organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the email footer is set."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the footer id in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* The `footer` field is required, \"code\": 12010002. Message: \"The `footer` field is required.\"\n* The `footer` field must be a string, \"code\": 12010001. Message: \"The `footer` field must be a string.\"\n* The `footer` field length must be less than 65536 characters, \"code\": 12010005. Message: \"The `footer` field length must be less than 65536 characters.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "id": "unique_id"
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "footer"
                ],
                "properties": {
                  "footer": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The email footer text that is added to every email sent on behalf of the organization."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "footer": "footer text"
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "footer": "footer text"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-organizations-org-id-email-footers",
        "summary": "Get all email footers",
        "description": "Allows users to retrieve all email footers of the organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the email footer is set."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of footers in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "required": [
                          "id",
                          "footer",
                          "active",
                          "created_at",
                          "updated_at"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "footer": {
                            "type": "string",
                            "minLength": 1
                          },
                          "created_at": {
                            "type": "number"
                          },
                          "updated_at": {
                            "type": "number"
                          }
                        }
                      },
                      "minItems": 1,
                      "uniqueItems": true
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "pagination"
                      ],
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "required": [
                            "total",
                            "count",
                            "per_page",
                            "current_page",
                            "total_pages",
                            "links"
                          ],
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "required": [],
                                "properties": {}
                              }
                            },
                            "total": {
                              "type": "number"
                            },
                            "per_page": {
                              "type": "number"
                            },
                            "total_pages": {
                              "type": "number"
                            },
                            "current_page": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "id": "ca5fe90fc8cc46c9abf84fff101e0df3fcd34334",
                          "active": true,
                          "footer": "footer text",
                          "created_at": 1600251592,
                          "updated_at": 1600251592
                        },
                        {
                          "id": "e8ba8568015149188017aaea51610f70d6d1414f",
                          "active": false,
                          "footer": "footer text",
                          "created_at": 1600249745,
                          "updated_at": 1600251592
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 3,
                          "links": [],
                          "total": 3,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": [
                        {
                          "id": "caXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "active": true,
                          "footer": "footer text",
                          "created_at": 1600251592,
                          "updated_at": 1600251592
                        },
                        {
                          "id": "e8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "active": false,
                          "footer": "footer text",
                          "created_at": 1600249745,
                          "updated_at": 1600251592
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 3,
                          "links": [],
                          "total": 3,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/email-footers/{footer_id}": {
      "get": {
        "operationId": "get-v2-organizations-org-id-email-footers-footer-id",
        "summary": "Get email footer text",
        "description": "Allows users to retrieve a specific email footer text of the organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization the email footer is retrieved for."
          },
          {
            "in": "path",
            "name": "footer_id",
            "type": "string",
            "required": true,
            "description": "ID of the retrieved footer."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of footers in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* Email footer is not found, \"code\": 12010003. Message: \"EmailFooter `%` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "footer",
                        "active",
                        "created_at",
                        "updated_at"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "active": {
                          "type": "boolean"
                        },
                        "footer": {
                          "type": "string",
                          "minLength": 1
                        },
                        "created_at": {
                          "type": "number"
                        },
                        "updated_at": {
                          "type": "number"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": {
                        "id": "%?",
                        "active": true,
                        "footer": "footer text",
                        "created_at": 1600254668,
                        "updated_at": 1600254668
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": {
                        "id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "active": true,
                        "footer": "footer text",
                        "created_at": 1600254668,
                        "updated_at": 1600254668
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "put-v2-organizations-org-id-email-footers-footer-id",
        "summary": "Update email footer",
        "description": "Allows users to update a specific email footer text of the organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization the email footer is retrieved for."
          },
          {
            "in": "path",
            "name": "footer_id",
            "type": "string",
            "required": true,
            "description": "ID of the retrieved footer."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns the 204: No content in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* Email footer is not found, \"code\": 12010003. Message: \"EmailFooter `%` is not found.\"\n* The `footer` field must be a string, \"code\": 12010001. Message: \"The `footer` field must be a string.\"\n* The `footer` field length must be less than 65536 characters, \"code\": 12010005. Message: \"The `footer` field length must be less than 65536 characters.\"\n* The `active` field must be a boolean value, \"code\": 12010006. Message: \"The `active` field must be a boolean value.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "footer",
                  "active"
                ],
                "properties": {
                  "active": {
                    "type": "boolean",
                    "description": "Set this footer active or not. Possible values: `true` - set active, `false` - deactivate."
                  },
                  "footer": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The footer text."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "active": true,
                    "footer": "footer text"
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "active": true,
                    "footer": "footer text"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/organizations": {
      "post": {
        "operationId": "post-v2-organizations",
        "summary": "Create organization",
        "description": "Creates an Organization. The user who created the organization - automatically becomes the admin(old - super admin) of this organization",
        "responses": {
          "200": {
            "description": "Returns the id of the created organization in case of successful response. Returns an error when:\n\n* If user with a trial sub tries to create more than 5 organizations or If user with Professional or Enterprise subscription tries to create more than 50 organizationsIf user with Professional or Enterprise subscription tries to create more than 50 organizations, \"code\": 12001006. Message: \"The number of created organizations has been exceeded.\"\n* If user who does not have Trial, Professional or Enterprise subscription tries to create an organization, \"code\": 12003002. Message: \"Access denied for current subscription.\"\n* Request without mandatory parameters, \"code\": 12001002. Message: \"The `name` field is required.\"\n* Request with name more than 255 chars length, \"code\": 12001004. Message: \"The `name` field length must be less than 255 characters.\"\n* Request with invalid format of name parameter value, \"code\": 12001003. Message: \"The `name` field must be a string.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "id": "1afee427a35e404e9eb6f98cb6586f5e3ccef0a2"
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "id": "1afee427a35e404e9eb6f98cb6586f5e3ccef0a2"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Name of the organization. Max length: 255 chars."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "name": "Test ORG"
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "name": "Test ORG"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-organizations",
        "summary": "Get admin's organizations",
        "description": "Retrieves a list of organizations in which the user has the role of moderator/admin.",
        "parameters": [
          {
            "in": "query",
            "name": "per_page",
            "type": "string",
            "required": false,
            "description": "Allowed values: positive integers from 1 to 100."
          },
          {
            "in": "query",
            "name": "page",
            "type": "string",
            "required": false,
            "description": "Allowed values: any positive integer starting from 1."
          },
          {
            "in": "query",
            "name": "filter:status",
            "type": "string",
            "required": false,
            "description": "Possible values: active, pending. Format: `?filters=[{\"status\":{\"type\": \"=\", \"value\":\"active|pending\"}}]`"
          },
          {
            "in": "query",
            "name": "filter:type",
            "type": "string",
            "required": false,
            "description": "Possible values: member/admin/moderator. Format: `?filters=[{\"type\":{\"type\": \"in\", \"value\":[\"member|admin|moderator\"]}}]`"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of organization objects in case of successful response. Returns an error when:\n\n* Request with invalid format of parameters (page, per_page), \"code\": 12006001. Message: \"Query parameter `per_page` must be a digit\"; 12006003 - \"Query parameter `per_page` must be less than or equal 100\"; 12006004 - \"Query parameter `page` must be a digit\".",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "required": [
                          "id",
                          "name",
                          "active"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "logo": {},
                          "name": {
                            "type": "string",
                            "minLength": 1
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "membership": {
                            "type": "object",
                            "required": [
                              "type",
                              "status",
                              "invited_by"
                            ],
                            "properties": {
                              "type": {
                                "type": "string",
                                "minLength": 1
                              },
                              "status": {
                                "type": "string",
                                "minLength": 1
                              },
                              "invited_by": {
                                "type": "object",
                                "required": [
                                  "id",
                                  "email"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "email": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                }
                              }
                            }
                          }
                        }
                      },
                      "minItems": 1,
                      "uniqueItems": true
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "pagination"
                      ],
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "required": [
                            "total",
                            "count",
                            "per_page",
                            "current_page",
                            "total_pages",
                            "links"
                          ],
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "links": {
                              "type": "object",
                              "required": [
                                "next"
                              ],
                              "properties": {
                                "next": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              }
                            },
                            "total": {
                              "type": "number"
                            },
                            "per_page": {
                              "type": "number"
                            },
                            "total_pages": {
                              "type": "number"
                            },
                            "current_page": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "id": "960c8d6e24314f0d86118f128b3284d2bb36cb00",
                          "logo": null,
                          "name": "Test",
                          "active": true,
                          "membership": {
                            "type": "admin",
                            "status": "active",
                            "invited_by": {
                              "id": "user_unique_id",
                              "email": "test@signnow.com"
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": {
                            "next": "http://team.signnow-dev.int/v2/organizations?page=2"
                          },
                          "total": 22,
                          "per_page": 1,
                          "total_pages": 22,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": [
                        {
                          "id": "96XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "logo": null,
                          "name": "Sample Organization",
                          "active": true,
                          "membership": {
                            "type": "admin",
                            "status": "active",
                            "invited_by": {
                              "id": "user_unique_id",
                              "email": "user@email.com"
                            }
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": {
                            "next": "http://example.com/v2/organizations?page=2"
                          },
                          "total": 22,
                          "per_page": 1,
                          "total_pages": 22,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}": {
      "put": {
        "operationId": "put-v2-organizations-org-id",
        "summary": "Rename organization",
        "description": "Renames an Organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization"
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content\n\nReturns an error when:\n\n* If user who is not the superadmin of org tries to change name of org or user is not related to org at all, \"code\": 12003001. Message: \"Access denied.\"\n* If user tries to change org with expired trial, professional or enterprise subs or has another (not trial, professional or enterprise) type of subscription, \"code\": 12003002. Message: \"Access denied for current subscription.\"\n* If user tries to change deleted org or org, \"code\": 12003001. Message: \"Organization `63XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* If user who is not the superadmin tries to change org name, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* Request without mandatory parameters, \"code\": 12001002. Message: \"The `name` field is required.\"\nRequest with name more than 255 chars length, \"code\": 12001004. Message: \"The `name` field length must be less than 255 characters.\"\n* Request with invalid format of name parameter value, \"code\": 12001003. Message: \"The `name` field must be a string.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Name of the organization. Max length: 255 chars."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "name": "Test ORG"
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "name": "New organization name"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-v2-organizations-org-id",
        "summary": "Delete organization",
        "description": "Deletes an organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization"
          }
        ],
        "responses": {
          "204": {
            "description": "Returns empty 204 in case of successful response. Returns an error when:\n\n* If organization is not active, \"code\": 12003001. Message: \"Organization `475fe6e7894344e0ad200bc3442d022792b3b7e0` is not found.\"\n* If user who is not admin of org tries to delete it, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/activity": {
      "get": {
        "operationId": "get-v2-organizations-org-id-activity",
        "summary": "Get organization activity",
        "description": "Allows users to view fetching statistics about the organization.",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "type": "string",
            "required": false,
            "description": "Filter by the date. Format: `?date_from=timestamp&date_to=timestamp`"
          },
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the organization activity is retrieved."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the audit log of organization activity in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "documents",
                        "sent_documents",
                        "signed_documents",
                        "signers",
                        "senders",
                        "average_complete_time",
                        "active_users"
                      ],
                      "properties": {
                        "senders": {
                          "type": "number"
                        },
                        "signers": {
                          "type": "number"
                        },
                        "documents": {
                          "type": "number"
                        },
                        "active_users": {
                          "type": "number"
                        },
                        "sent_documents": {
                          "type": "number"
                        },
                        "signed_documents": {
                          "type": "number"
                        },
                        "average_complete_time": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": {
                        "senders": 26,
                        "signers": 218,
                        "documents": 2042,
                        "active_users": 4652,
                        "sent_documents": 451,
                        "signed_documents": 101,
                        "average_complete_time": "0:8:22"
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": {
                        "senders": 26,
                        "signers": 218,
                        "documents": 2042,
                        "active_users": 4652,
                        "sent_documents": 451,
                        "signed_documents": 101,
                        "average_complete_time": "0:8:22"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/admins": {
      "get": {
        "operationId": "get-v2-organizations-org-id-admins",
        "summary": "Get the list of admins",
        "description": "Retrieves a list of moderators and admins of an organization.",
        "parameters": [
          {
            "in": "query",
            "name": "filters:email",
            "type": "string",
            "required": false,
            "description": "Filter by email. Format: `?filters=[{\"email\":{\"type\": \"=\", \"value\": user_email}}] (email should be encoded as url)`"
          },
          {
            "in": "query",
            "name": "filter:type",
            "type": "string",
            "required": false,
            "description": "Filter by organization type. Possible values: active, pending, declined. Format: `?filters=[{\"status\":{\"type\": \"=\", \"value\":\"active/pending/declined\"}}]`"
          },
          {
            "in": "query",
            "name": "filter:type",
            "type": "string",
            "required": false,
            "description": "Possible values: admin/moderator. Format: `?filters=[{\"type\":{\"type\": \"in\", \"value\":[\"admin|moderator\"]}}]`"
          },
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of organization objects in case of successful response. Returns an error when:\n\n* If user does not have active trial professional or enterprise subscription, \"code\": 12003002. Message: \"Access denied for current subscription.\"\n* If user is not the moderator or admin of organization, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If org is not active or does not exist at all, \"code\": 12003001. Message: \"Organization `92XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* Request with invalid filter value or format, \"code\": 12006006. Message: \"Unsupported filter mail was given.\"; 12004018 - \"The `email` filter value should be of type string\"; 12004017 - \"The `email` filter expression should be equal to `=`\"; 12004019 - \"Invalid filter format, filter must have `type` and `value` fields\".",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "required": [
                          "id",
                          "email",
                          "type",
                          "status"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "type": {
                            "type": "string",
                            "minLength": 1
                          },
                          "email": {
                            "type": "string",
                            "minLength": 1
                          },
                          "status": {
                            "type": "string",
                            "minLength": 1
                          }
                        }
                      },
                      "minItems": 1,
                      "uniqueItems": true
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "pagination"
                      ],
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "required": [
                            "total",
                            "count",
                            "per_page",
                            "current_page",
                            "total_pages",
                            "links"
                          ],
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "properties": {}
                              }
                            },
                            "total": {
                              "type": "number"
                            },
                            "per_page": {
                              "type": "number"
                            },
                            "total_pages": {
                              "type": "number"
                            },
                            "current_page": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "id": "37a95ec9e51d4b168c74ffc23f6089b04ed679ff",
                          "type": "admin",
                          "email": "asdfhshhs@email.com",
                          "status": "active"
                        },
                        {
                          "id": "7d0083222c04fe245152739f977bf9f4741659b2",
                          "type": "moderator",
                          "email": "org_owner@email.com",
                          "status": "pending"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": [
                        {
                          "id": "37XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "type": "admin",
                          "email": "user@email.com",
                          "status": "active"
                        },
                        {
                          "id": "7dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "type": "moderator",
                          "email": "org_owner@email.com",
                          "status": "pending"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "operationId": "post-v2-organizations-org-id-admins",
        "summary": "Add moderator or admin",
        "description": "Adds admin or moderator to organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns ID of the invitation to become moderator/admin in case of successful response. Returns an error when:\n\n* If moderator tries to add admin to org, \"code\": 12004007. Message: \"Access denied.\"\n* If user who is not the admin or moderator tries to add admin or moderator to org or admin or moderator with pending status tries to add admin or moderator to org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to add admins or moderators to org, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to add admin or moderator who already exists in org, \"code\": 12004009. Message: \"Organization admin exists.\"\n* If user tries to add admin or moderator who is not registered in SignNow, \"code\": 12004008. Message: \"User `user@email.com` is not found.\"\n* If org is not active or does not exist at all, \"code\": 12003001. Message: \"Organization `92XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* Request without mandatory parameters, \"code\": 12004001. Message: \"The `email` field is required.\"; 12004003 - \"The `type` field is required.\";\n* Request with invalid value of type parameter, \"code\": 12004005. Message: \"The `type` should be equal to `moderator` or admin.\"\n* Request with invalid value of email parameter, \"code\": 12004006. Message: \"The `email` is invalid.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "id",
                        "email",
                        "type",
                        "status"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "type": {
                          "type": "string",
                          "minLength": 1
                        },
                        "email": {
                          "type": "string",
                          "minLength": 1
                        },
                        "status": {
                          "type": "string",
                          "minLength": 1
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": {
                        "id": "b593491c17154c55ad509ac06944499538fdab35",
                        "type": "admin",
                        "email": "new_admin@email.com",
                        "status": "pending"
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": {
                        "id": "b5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "type": "admin",
                        "email": "new_admin@email.com",
                        "status": "pending"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "type"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "description": "User's type of access in the organization. Possible values: `moderator`, `admin`."
                  },
                  "email": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Email of the user invited."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "type": "moderator | admin",
                    "email": "new_user@gmail.com"
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "type": "moderator",
                    "email": "new_user@email.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/organizations/{org_id}/admins/{admin_id}": {
      "delete": {
        "operationId": "delete-v2-organizations-org-id-admins-admin-id",
        "summary": "Remove admin/moderator",
        "description": "Allows users to remove the admin or moderator from the organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the admin/moderator is removed."
          },
          {
            "in": "path",
            "name": "admin_id",
            "type": "string",
            "required": true,
            "description": "ID of the user whose role is changed."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns 204: Success, no content in case of successful response. Returns an error when:\n\n* If admin with expired/without appropriate subscription tries to remove admin, \"code\": 12003002. Message: \"Access denied for current subscription.\"\n* If last admin tries to remove himself, \"code\": 12004022. Message: \"Can not delete the last admin.\"\n* If admin tries to remove admin in ‘pending’ status, \"code\": 12004025. Message: \"Organization admin `44XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* If moderator tries to remove admin, \"code\": 12004023. Message: \"Access denied.\"\n* If the organization is deleted or does not exist, \"code\": 12001001. Message: \"Organization `f2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* If admin who remove isn’t a member of the organization, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/admins/{user_id}": {
      "put": {
        "operationId": "put-v2-organizations-org-id-admins-user-id",
        "summary": "Change admin/moderator role",
        "description": "Allows users to manage the admin or moderator role of another user.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the role is changed."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the user whose role is changed."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns 204: Success, no content in case of successful response. Returns an error when:\n\n* If moderator tries to add admin to org, \"code\": 12004007. Message: \"Access denied.\"\n* If user tries to add admin or moderator to the organization that is not active or does not exist, \"code\": 12001001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* The `type` should be equal to `moderator` or admin., \"code\": 12004012. Message: \"The `type` should be equal to `moderator` or admin.\"\n* The `type` field is required, \"code\": 12004010. Message: \"The `type` field is required.\"\n* When moderator tries to change type for admin, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The type of role that is assigned. Possible values: `moderator`, `admin`."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "type": "moderator | admin"
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "type": "moderator"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/organizations/{org_id}/admins/{user_id}/accept | decline": {
      "post": {
        "operationId": "post-v2-organizations-org-id-admins-user-id-accept-decline",
        "summary": "Accept/decline invite to be admin",
        "description": "Allows users to accept or decline the invitation to become an admin or moderator.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the role is changed."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the user whose role is changed."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns 204: Success, no content in case of successful response. Returns an error when:\n\n* If one user attempts to accept another user's invite, \"code\": 12007012. Message: \"Access denied to accept invite.\"\n* If there is no invite to accept, \"code\": 12007013. Message: \"Organization invite is not found.\"\n* If there is no such organization id, \"code\": 12001001. Message: \"Organization `%s` is not found.\"\n* If there is no such user id, \"code\": 12005001. Message: \"User `53XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{destination_org_id}/move": {
      "put": {
        "operationId": "put-v2-organizations-destination-org-id-move",
        "summary": "Move users across organizations",
        "description": "Allows admins to move users between organizations in SignNow.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "destination_org_id",
            "type": "string",
            "required": true,
            "description": "The ID of the organization the user is being transferred to."
          }
        ],
        "responses": {
          "204": {
            "description": "Correct request: Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "403": {
            "description": "User with invite pending/invite declined status,\nor User is banned,\nor User has expired, basic, premium subscription,\nor Org setting is enabled Block leaving of the organization by member,\nor Limit on the number of users in the organization for a trial subscription",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User is banned": {
                    "value": {
                      "errors": [
                        {
                          "code": 12007052,
                          "message": "Can't move banned user between organizations"
                        }
                      ]
                    }
                  },
                  "User has expired, basic, premium subscription": {
                    "value": {
                      "errors": [
                        {
                          "code": 12007035,
                          "message": "Access denied for current subscription."
                        }
                      ]
                    }
                  },
                  "User with invite pending/invite declined status": {
                    "value": {
                      "errors": [
                        {
                          "code": 12007051,
                          "message": "Can't move user between organizations because user didn't accept invite to organization"
                        }
                      ]
                    }
                  },
                  "Org setting is enabled Block leaving of the organization by member": {
                    "value": {
                      "errors": [
                        {
                          "code": 12004039,
                          "message": "You cannot perform this action due to the organization settings."
                        }
                      ]
                    }
                  },
                  "Limit on the number of users in the organization for a trial subscription": {
                    "value": {
                      "errors": [
                        {
                          "code": 12007034,
                          "message": "The number of active and pending organization members has been exceeded for the current subscription plan."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "User or Organization Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "User not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12005001,
                          "message": "User `51b2e8bf2c5b45dca8fbe399508b27a9bb0a900r` is not found."
                        }
                      ]
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization `48be423e4c4c40bab3672bb77284756a0a94d924` is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "ID of the organization the user is being transferred from."
                  },
                  "user_id": {
                    "type": "string",
                    "description": "Id of the user who is being transferred."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "from": "source_org_unique_id",
                    "user_id": "unique_id"
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "from": "34XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                    "user_id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/organizations/{org_id}/members": {
      "get": {
        "operationId": "get-v2-organizations-org-id-members",
        "summary": "Get the list of members",
        "description": "Retrieve all members of the organization.",
        "parameters": [
          {
            "in": "query",
            "name": "filters:email",
            "type": "string",
            "required": false,
            "description": "Filter by email. Format: `?filters=[{\"email\":{\"type\": \"=\", \"value\": user_email}}]` (email should be encoded as url)"
          },
          {
            "in": "query",
            "name": "filter:type",
            "type": "string",
            "required": false,
            "description": "Filter by organization type. Possible values: active, pending, declined. Format: ?filters=[{\"status\":{\"type\": \"=\", \"value\":\"active/pending/declined\"}}]"
          },
          {
            "in": "query",
            "name": "sort:email",
            "type": "string",
            "required": false,
            "description": "Sort results in ascending or descending order. Possible values: asc/desc. Format: `?sort[email]=asc`"
          },
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of organization members in case of successful response. Returns an error when:\n\n* If user does not have active trial professional or enterprise subscription, \"code\": 12003002. Message: \"Access denied for current subscription.\"\n* If user is not the moderator or admin of organization, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If org is not active or does not exist at all, \"code\": 12003001. Message: \"Organization `92XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* Request with invalid filter value or format, \"code\": 12006006. Message: \"Unsupported filter mail was given.\"; 12004018 - \"The `email` filter value should be of type string\"; 12004017 - \"The `email` filter expression should be equal to `=`\"; 12004019 - \"Invalid filter format, filter must have `type` and `value` fields\".",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "required": [
                          "id",
                          "email",
                          "status"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "email": {
                            "type": "string",
                            "minLength": 1
                          },
                          "status": {
                            "type": "string",
                            "minLength": 1
                          },
                          "last_login": {
                            "type": "object",
                            "required": [
                              "last_login",
                              "ip",
                              "user_agent",
                              "application",
                              "created_at"
                            ],
                            "properties": {
                              "ip": {
                                "type": "string",
                                "minLength": 1
                              },
                              "created_at": {
                                "type": "number"
                              },
                              "last_login": {
                                "type": "number"
                              },
                              "user_agent": {
                                "type": "string",
                                "minLength": 1
                              },
                              "application": {
                                "type": "string",
                                "minLength": 1
                              }
                            }
                          }
                        }
                      },
                      "minItems": 1,
                      "uniqueItems": true
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "pagination"
                      ],
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "required": [
                            "total",
                            "count",
                            "per_page",
                            "current_page",
                            "total_pages",
                            "links"
                          ],
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "properties": {}
                              }
                            },
                            "total": {
                              "type": "number"
                            },
                            "per_page": {
                              "type": "number"
                            },
                            "total_pages": {
                              "type": "number"
                            },
                            "current_page": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "id": "d2f2cd05e5964708bf4d6d79a815267baf469a95",
                          "email": "signnow.user@email.com",
                          "status": "active",
                          "last_login": {
                            "ip": "217.20.164.1",
                            "created_at": 1592481155,
                            "last_login": 1603199032,
                            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36",
                            "application": "SignNow Web Application"
                          }
                        },
                        {
                          "id": "af496b9b504f4dc29e20cde5bb08726655b999af",
                          "email": "another.signnow.user@email.com",
                          "status": "pending",
                          "last_login": []
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": [
                        {
                          "id": "d2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "signnow.user@email.com",
                          "status": "active",
                          "last_login": {
                            "ip": "2X.XX.XXX.X",
                            "created_at": 1592481155,
                            "last_login": 1603199032,
                            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36",
                            "application": "Sample Application"
                          }
                        },
                        {
                          "id": "afXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "another.signnow.user@email.com",
                          "status": "pending",
                          "last_login": {
                            "ip": "1X.XX.XXX.X",
                            "created_at": 1592481156,
                            "last_login": 1603199033,
                            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36",
                            "application": "Sample Application 2"
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "operationId": "post-v2-organizations-org-id-members",
        "summary": "Add members",
        "description": "Adds members to the organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns 204: Success, no content in case of successful response. Returns an error when:\n\n* If user who is not the admin or moderator tries to add member to org or admin or moderator with pending status tries to add a member to org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to add a member to org, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to add member who already exists in org, \"code\": 12007005. Message: \"Organization user already exists.\"\n* If user tries to add member who is not registered in SignNow, \"code\": 12005001. Message: \"User `user@email.com` is not found.\"\n* If org is not active or does not exist at all, \"code\": 12003001. Message: \"Organization `92XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* Request without mandatory parameters, \"code\": 12007007. Message: \"The `email` field is required.\"; 12004003 - \"The `email` field is required.\";\n* Request with invalid value of email parameter, \"code\": 12007006. Message: \"The `email` field must be a string.\"\n* Request with invalid format of email parameter, \"code\": 12007008. Message: \"The `email` is invalid.\"\n* Trial admin/moderator tries to invite > 50 active+pending members, \"code\": 12007034. Message: \"The number of active and pending organization members has been exceeded for the current subscription plan.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Email of the user invited."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "email": "new_user@gmail.com"
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "email": "new_user@email.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/organizations/{org_id}/members/{user_id}": {
      "delete": {
        "operationId": "delete-v2-organizations-org-id-members-user-id",
        "summary": "Remove members",
        "description": "Allows users to remove a member from the organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the member is removed."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the member who is removed."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns 204: Success, no content in case of successful response. Returns an error when:\n\n* If admin with expired/without appropriate subscription tries to remove admin, \"code\": 12004024. Message: \"Access denied for current subscription.\"\n* If admin tries to remove not org member or deleted member, \"code\": 12007014. Message: \"Organization user is not found.\"\n* If the organization is deleted or does not exist, \"code\": 12003001. Message: \"Organization `f2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/members/{user_id}/accept": {
      "post": {
        "operationId": "post-v2-organizations-org-id-members-user-id-accept",
        "summary": "Accept invite to organization",
        "description": "Allows users to accept the invitation to join an organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization the member is invited to."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the member who is invited."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns 201: Success, no content in case of successful response. Returns an error when:\n\n* If one user attempts to accept another user's invite, \"code\": 12007012. Message: \"Access denied to accept invite.\"\n* If there is no invite to accept, \"code\": 12007013. Message: \"Organization invite is not found.\"\n* If there is no such organization id, \"code\": 12001001. Message: \"Organization `%s` is not found.\"\n* If there is no such user id, \"code\": 12005001. Message: \"User `53XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/members/{user_id}/decline": {
      "post": {
        "operationId": "post-v2-organizations-org-id-members-user-id-decline",
        "summary": "Decline invite to organization",
        "description": "Allows users to decline the invitation to join an organization.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization the member is invited to."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the member who is invited."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns 201: Success, no content in case of successful response. Returns an error when:\n\n* If one user attempts to accept another user's invite, \"code\": 12007012. Message: \"Access denied to decline invite.\"\n* If there is no invite to accept, \"code\": 12007013. Message: \"Organization invite is not found.\"\n* If there is no such organization id, \"code\": 12001001. Message: \"Organization `%s` is not found.\"\n* If there is no such user id, \"code\": 12005001. Message: \"User `53XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/members/last-logins": {
      "get": {
        "operationId": "get-v2-organizations-org-id-members-last-logins",
        "summary": "Get members' last logins",
        "description": "Allows users to view the list of last logins of members",
        "parameters": [
          {
            "in": "query",
            "name": "filters:email",
            "type": "string",
            "required": false,
            "description": "Filter by email. Format: `?filters=[{\"email\":{\"type\": \"=\", \"value\": user_email}}]` (email should be encoded as url)"
          },
          {
            "in": "query",
            "name": "sort:email",
            "type": "string",
            "required": false,
            "description": "Sort by email. Possible values: asc, desc. Format: `?sort[email]=asc`"
          },
          {
            "in": "query",
            "name": "sort:updated",
            "type": "string",
            "required": false,
            "description": "Sort by the time of updated. Possible values: asc, desc. Format: `?sort[updated]=asc`"
          },
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of members' last logins in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "required": [
                          "user_id",
                          "email",
                          "last_login",
                          "ip",
                          "user_agent",
                          "application",
                          "created_at"
                        ],
                        "properties": {
                          "ip": {
                            "type": "string",
                            "minLength": 1
                          },
                          "email": {
                            "type": "string",
                            "minLength": 1
                          },
                          "user_id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "created_at": {
                            "type": "number"
                          },
                          "last_login": {
                            "type": "number"
                          },
                          "user_agent": {
                            "type": "string",
                            "minLength": 1
                          },
                          "application": {
                            "type": "string",
                            "minLength": 1
                          }
                        }
                      },
                      "minItems": 1,
                      "uniqueItems": true
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "pagination"
                      ],
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "required": [
                            "total",
                            "count",
                            "per_page",
                            "current_page",
                            "total_pages",
                            "links"
                          ],
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "properties": {}
                              }
                            },
                            "total": {
                              "type": "number"
                            },
                            "per_page": {
                              "type": "number"
                            },
                            "total_pages": {
                              "type": "number"
                            },
                            "current_page": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "ip": "217.20.164.1",
                          "email": "signnowqas+11@gmail.com",
                          "user_id": "e4b02df7fad849819cf9135131cb7e014ab301c9",
                          "created_at": 1678032034,
                          "last_login": 1678032034,
                          "user_agent": "user agent test",
                          "application": "SignNow Web Application"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": [
                        {
                          "ip": "2XX.XX.XX.X",
                          "email": "user1@email.com",
                          "user_id": "e4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "created_at": 1678032034,
                          "last_login": 1678032034,
                          "user_agent": "user agent sample",
                          "application": "Sample Application"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/users-activity": {
      "get": {
        "operationId": "get-v2-organizations-org-id-users-activity",
        "summary": "Get users' activity",
        "description": "Allows users to view fetching statistics about users who exist in the organization.",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "type": "string",
            "required": false,
            "description": "Filter by the date. Format: `?date_from=timestamp&date_to=timestamp`"
          },
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the users' activity is retrieved."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the audit log of users activity in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "required": [
                          "id",
                          "email",
                          "documents",
                          "sent_documents",
                          "signed_documents",
                          "average_complete_time",
                          "signers"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "email": {
                            "type": "string",
                            "minLength": 1
                          },
                          "signers": {
                            "type": "number"
                          },
                          "documents": {
                            "type": "number"
                          },
                          "sent_documents": {
                            "type": "number"
                          },
                          "signed_documents": {
                            "type": "number"
                          },
                          "average_complete_time": {
                            "type": "string",
                            "minLength": 1
                          }
                        }
                      },
                      "minItems": 1,
                      "uniqueItems": true
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "pagination"
                      ],
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "required": [
                            "total",
                            "count",
                            "per_page",
                            "current_page",
                            "total_pages",
                            "links"
                          ],
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "properties": {}
                              }
                            },
                            "total": {
                              "type": "number"
                            },
                            "per_page": {
                              "type": "number"
                            },
                            "total_pages": {
                              "type": "number"
                            },
                            "current_page": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "id": "869c096ddc4f4b6e8fd09d41af313d2f72dac739",
                          "email": "user1@yopmail.com",
                          "signers": 2,
                          "documents": 5,
                          "sent_documents": 2,
                          "signed_documents": 2,
                          "average_complete_time": "0:0:0"
                        },
                        {
                          "id": "397f47a606df4a1e8ff9ce0c1a7c4a9e30efa929",
                          "email": "user2@yopmail.com",
                          "signers": 1,
                          "documents": 2,
                          "sent_documents": 1,
                          "signed_documents": 1,
                          "average_complete_time": "1:16:14"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": [
                        {
                          "id": "86XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "user1@email.com",
                          "signers": 2,
                          "documents": 5,
                          "sent_documents": 2,
                          "signed_documents": 2,
                          "average_complete_time": "0:0:0"
                        },
                        {
                          "id": "39XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "user2@email.com",
                          "signers": 1,
                          "documents": 2,
                          "sent_documents": 1,
                          "signed_documents": 1,
                          "average_complete_time": "1:16:14"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_unique_id}/documents/search": {
      "get": {
        "operationId": "get-v2-organizations-org-unique-id-documents-search",
        "summary": "Get user's documents",
        "description": "Endpoint allows you to search through the documents of users of the organization. Available only to the Administrator of the organization. \n\nThe `filters` query parameter is array of optional filter parameters. At least one filter must be added.\n\n**Pay attention**: emails must be encoded in such format `sample_name%40email.com`\n\n",
        "parameters": [
          {
            "in": "query",
            "name": "filters:name ",
            "type": "string",
            "required": false,
            "description": "Searches documents by document name. Example: `?filters=[{\"name\":{\"type\":\"=\",\"value\":\"sample name\"}}]`"
          },
          {
            "in": "query",
            "name": "filters:signer ",
            "type": "string",
            "required": false,
            "description": "Searches documents by signer email. Example: `?filters=[{\"signer\":{\"type\":\"=\",\"value\":\"signer%40email.com\"}}]`"
          },
          {
            "in": "query",
            "name": "filters:owner",
            "type": "string",
            "required": false,
            "description": "Searches documents by owner email. Example: `?filters=[{\"owner\":{\"type\":\"=\",\"value\":\"owner%40email.com\"}}]`"
          },
          {
            "in": "query",
            "name": "filters:text ",
            "type": "string",
            "required": false,
            "description": "Searches documents by the text in their text fields. Example: `?filters=[{\"text\":{\"type\":\"=\",\"value\":\"Some sample text\"}}]`"
          },
          {
            "in": "query",
            "name": "filters:status",
            "type": "string",
            "required": false,
            "description": "Searches documents by document status. Possible values: `waiting_for_signing`, `signed`, `pending_payment`. Example: `?filters=[{\"status\":{\"type\":\"=\",\"value\":\"signed\"}}]`"
          },
          {
            "in": "query",
            "name": "page",
            "type": "number",
            "required": false,
            "description": "Page number of the search results. Min: `1`. Example: `?page=3`"
          },
          {
            "in": "query",
            "name": "sort:name",
            "type": "string",
            "required": false,
            "description": "Sorts documents by document name. Possible values: `asc`, `desc`. Example: `?sort[name]=asc`"
          },
          {
            "in": "query",
            "name": "sort:added",
            "type": "string",
            "required": false,
            "description": "Sorts documents by the date they were added. Possible values: `asc`, `desc`. Example: `?sort[added]=asc`"
          },
          {
            "in": "query",
            "name": "sort:changed",
            "type": "string",
            "required": false,
            "description": "Sorts documents by the date they were last changed. Possible values: `asc`, `desc`. Example: `?sort[changed]=asc`"
          },
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "number",
            "required": false,
            "description": "Number of search results per page. Min: `1`. Example: `?per_page=12`"
          },
          {
            "in": "path",
            "name": "org_unique_id",
            "type": "string",
            "required": true,
            "description": "ID of organization"
          }
        ],
        "responses": {
          "200": {
            "description": "Search by Signer email",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "lines": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "owner": {
                            "type": "string"
                          },
                          "pages": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "src": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "object",
                                  "properties": {
                                    "width": {
                                      "type": "number"
                                    },
                                    "height": {
                                      "type": "number"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "unique_id": {
                                  "type": "string"
                                },
                                "signing_order": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "seals": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "texts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "checks": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "role": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "role_id": {
                                  "type": "string"
                                },
                                "field_id": {
                                  "type": "string"
                                },
                                "fulfiller": {
                                  "type": "string"
                                },
                                "element_id": {
                                  "type": "string"
                                },
                                "originator": {
                                  "type": "string"
                                },
                                "json_attributes": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "integer"
                                    },
                                    "y": {
                                      "type": "integer"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "width": {
                                      "type": "integer"
                                    },
                                    "height": {
                                      "type": "integer"
                                    },
                                    "required": {
                                      "type": "boolean"
                                    },
                                    "page_number": {
                                      "type": "integer"
                                    },
                                    "allowed_types": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                },
                                "field_request_id": {
                                  "type": "string"
                                },
                                "template_field_id": {
                                  "type": "null"
                                },
                                "field_request_canceled": {
                                  "type": "null"
                                }
                              }
                            }
                          },
                          "created": {
                            "type": "string"
                          },
                          "inserts": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "updated": {
                            "type": "string"
                          },
                          "user_id": {
                            "type": "string"
                          },
                          "payments": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "requests": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "settings": {
                            "type": "object",
                            "properties": {
                              "ololo": {
                                "type": "boolean"
                              },
                              "mytext": {
                                "type": "boolean"
                              },
                              "mytext1": {
                                "type": "boolean"
                              },
                              "enable_mfa": {
                                "type": "boolean"
                              },
                              "enable_pki": {
                                "type": "boolean"
                              },
                              "copy_export": {
                                "type": "boolean"
                              },
                              "enable_qwer": {
                                "type": "boolean"
                              },
                              "upload_limit": {
                                "type": "boolean"
                              },
                              "document_guide": {
                                "type": "boolean"
                              },
                              "sso-only-login": {
                                "type": "boolean"
                              },
                              "mobileweb_option": {
                                "type": "boolean"
                              },
                              "cloud_auto_export": {
                                "type": "boolean"
                              },
                              "logout_on_signing": {
                                "type": "boolean"
                              },
                              "restrict_download": {
                                "type": "boolean"
                              },
                              "common_experiments": {
                                "type": "boolean"
                              },
                              "enable_experiments": {
                                "type": "boolean"
                              },
                              "add_signature_stamp": {
                                "type": "boolean"
                              },
                              "email_logo_position": {
                                "type": "boolean"
                              },
                              "cfr_title_21_part_11": {
                                "type": "boolean"
                              },
                              "email_btn_bkgd_color": {
                                "type": "boolean"
                              },
                              "email_btn_text_color": {
                                "type": "boolean"
                              },
                              "email_custom_message": {
                                "type": "boolean"
                              },
                              "email_custom_subject": {
                                "type": "boolean"
                              },
                              "email_footer_enabled": {
                                "type": "boolean"
                              },
                              "enable_eu_date_format": {
                                "type": "boolean"
                              },
                              "require_email_subject": {
                                "type": "boolean"
                              },
                              "no_document_attachment": {
                                "type": "boolean"
                              },
                              "agree_to_be_beta_tester": {
                                "type": "boolean"
                              },
                              "electronic_consent_text": {
                                "type": "boolean"
                              },
                              "flatten_document_fields": {
                                "type": "boolean"
                              },
                              "org_allowed_team_admins": {
                                "type": "boolean"
                              },
                              "disable_email_recipients": {
                                "type": "boolean"
                              },
                              "document_schema_extended": {
                                "type": "boolean"
                              },
                              "enable_document_comments": {
                                "type": "boolean"
                              },
                              "front_end_session_length": {
                                "type": "boolean"
                              },
                              "no_user_signature_return": {
                                "type": "boolean"
                              },
                              "require_drawn_signatures": {
                                "type": "boolean"
                              },
                              "signature_stamp_position": {
                                "type": "boolean"
                              },
                              "allow_big_attachment_file": {
                                "type": "boolean"
                              },
                              "cloud_export_with_history": {
                                "type": "boolean"
                              },
                              "enable_full_story_tracker": {
                                "type": "boolean"
                              },
                              "require_login_for_signing": {
                                "type": "boolean"
                              },
                              "allow_download_certificate": {
                                "type": "boolean"
                              },
                              "disable_email_notifications": {
                                "type": "boolean"
                              },
                              "electronic_consent_required": {
                                "type": "boolean"
                              },
                              "email_admin_on_banned_login": {
                                "type": "boolean"
                              },
                              "enable_hyperlink_protection": {
                                "type": "boolean"
                              },
                              "enable_team_admin_move_docs": {
                                "type": "boolean"
                              },
                              "invite_decline_redirect_url": {
                                "type": "boolean"
                              },
                              "parse_only_signature_fields": {
                                "type": "boolean"
                              },
                              "allow_team_admin_rename_docs": {
                                "type": "boolean"
                              },
                              "emailed_docs_include_history": {
                                "type": "boolean"
                              },
                              "no_document_file_attachments": {
                                "type": "boolean"
                              },
                              "add_signature_stamp_with_name": {
                                "type": "boolean"
                              },
                              "digitally_sign_dowloaded_docs": {
                                "type": "boolean"
                              },
                              "watermark_downloaded_document": {
                                "type": "boolean"
                              },
                              "invite_completion_redirect_url": {
                                "type": "boolean"
                              },
                              "required_preset_signature_name": {
                                "type": "boolean"
                              },
                              "signing_link_document_download": {
                                "type": "boolean"
                              },
                              "block_login_via_social_networks": {
                                "type": "boolean"
                              },
                              "hide_upgrade_subscription_button": {
                                "type": "boolean"
                              },
                              "allow_edit_document_after_signing": {
                                "type": "boolean"
                              },
                              "default_field_invite_remind_after": {
                                "type": "boolean"
                              },
                              "disable_download_action_in_editor": {
                                "type": "boolean"
                              },
                              "enable_advanced_threat_protection": {
                                "type": "boolean"
                              },
                              "auto_deletion_documents_from_trash": {
                                "type": "boolean"
                              },
                              "default_field_invite_remind_before": {
                                "type": "boolean"
                              },
                              "default_field_invite_remind_repeat": {
                                "type": "boolean"
                              },
                              "document_completion_retention_days": {
                                "type": "boolean"
                              },
                              "require_authentication_for_invites": {
                                "type": "boolean"
                              },
                              "save_signer_signature_and_initials": {
                                "type": "boolean"
                              },
                              "signing_link_document_name_formula": {
                                "type": "boolean"
                              },
                              "disable_recipients_list_from_editor": {
                                "type": "boolean"
                              },
                              "document_attachment_only_for_signer": {
                                "type": "boolean"
                              },
                              "default_field_invite_expiration_time": {
                                "type": "boolean"
                              },
                              "unsuccessful_logout_attempts_allowed": {
                                "type": "boolean"
                              },
                              "audit_trail_completion_retention_days": {
                                "type": "boolean"
                              },
                              "block_organization_selfleave_by_member": {
                                "type": "boolean"
                              },
                              "allow_document_copying_to_other_accounts": {
                                "type": "boolean"
                              },
                              "allow_embedded_extended_token_expiration": {
                                "type": "boolean"
                              },
                              "pending_invite_document_view_notification": {
                                "type": "boolean"
                              },
                              "guide_signers_only_through_required_fields": {
                                "type": "boolean"
                              },
                              "redirect_to_registration_when_fields_saved": {
                                "type": "boolean"
                              },
                              "hide_decline_to_sign_option_in_signing_session": {
                                "type": "boolean"
                              },
                              "max_attachments_for_signnow_fields_per_document": {
                                "type": "boolean"
                              },
                              "only_administrator_is_able_to_invite_to_the_team": {
                                "type": "boolean"
                              },
                              "allow_big_count_of_attachment_fields_per_document": {
                                "type": "boolean"
                              },
                              "agreement_to_test_new_functionality_in_organization": {
                                "type": "boolean"
                              },
                              "auto_apply_signatures_and_initials_to_document_fields": {
                                "type": "boolean"
                              },
                              "block_export_options_when_credit_card_validation_is_used": {
                                "type": "boolean"
                              },
                              "invite_update_notifications_for_all_invites_at_invite_create": {
                                "type": "boolean"
                              },
                              "every_signature_and_initials_field_requires_user_authentication": {
                                "type": "boolean"
                              }
                            }
                          },
                          "template": {
                            "type": "boolean"
                          },
                          "parent_id": {
                            "type": "string"
                          },
                          "thumbnail": {
                            "type": "object",
                            "properties": {
                              "large": {
                                "type": "string"
                              },
                              "small": {
                                "type": "string"
                              },
                              "medium": {
                                "type": "string"
                              }
                            }
                          },
                          "hyperlinks": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "owner_name": {
                            "type": "string"
                          },
                          "page_count": {
                            "type": "string"
                          },
                          "signatures": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "string"
                                },
                                "y": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string"
                                },
                                "data": {
                                  "type": "string"
                                },
                                "email": {
                                  "type": "string"
                                },
                                "width": {
                                  "type": "string"
                                },
                                "height": {
                                  "type": "string"
                                },
                                "created": {
                                  "type": "string"
                                },
                                "subtype": {
                                  "type": "string"
                                },
                                "user_id": {
                                  "type": "string"
                                },
                                "page_number": {
                                  "type": "string"
                                },
                                "signature_request_id": {
                                  "type": "null"
                                }
                              }
                            }
                          },
                          "attachments": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "exported_to": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "integrations": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "radiobuttons": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "version_time": {
                            "type": "string"
                          },
                          "viewer_roles": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "document_name": {
                            "type": "string"
                          },
                          "field_invites": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "role": {
                                  "type": "string"
                                },
                                "email": {
                                  "type": "string"
                                },
                                "pfrid": {
                                  "type": "null"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "created": {
                                  "type": "string"
                                },
                                "pfrtype": {
                                  "type": "null"
                                },
                                "role_id": {
                                  "type": "string"
                                },
                                "updated": {
                                  "type": "string"
                                },
                                "declined": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {}
                                  }
                                },
                                "reassign": {
                                  "type": "string"
                                },
                                "reminder": {
                                  "type": "string"
                                },
                                "pframount": {
                                  "type": "null"
                                },
                                "pfrstatus": {
                                  "type": "null"
                                },
                                "pfrcreated": {
                                  "type": "null"
                                },
                                "id_verified": {
                                  "type": "string"
                                },
                                "is_embedded": {
                                  "type": "boolean"
                                },
                                "redirect_uri": {
                                  "type": "null"
                                },
                                "delivery_type": {
                                  "type": "string"
                                },
                                "password_type": {
                                  "type": "string"
                                },
                                "email_statuses": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {}
                                  }
                                },
                                "pfrmerchant_id": {
                                  "type": "null"
                                },
                                "signer_user_id": {
                                  "type": "string"
                                },
                                "embedded_signer": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {}
                                  }
                                },
                                "expiration_time": {
                                  "type": "string"
                                },
                                "is_draft_exists": {
                                  "type": "string"
                                },
                                "password_method": {
                                  "type": "string"
                                },
                                "payment_request": {
                                  "type": "null"
                                },
                                "is_full_declined": {
                                  "type": "boolean"
                                },
                                "pfrcurrency_name": {
                                  "type": "null"
                                },
                                "pfrmerchant_type": {
                                  "type": "null"
                                },
                                "is_document_locked": {
                                  "type": "string"
                                },
                                "password_protected": {
                                  "type": "string"
                                },
                                "pfrjson_attributes": {
                                  "type": "null"
                                },
                                "force_new_signature": {
                                  "type": "null"
                                },
                                "signer_phone_invite": {
                                  "type": "null"
                                },
                                "decline_by_signature": {
                                  "type": "string"
                                },
                                "signing_instructions": {
                                  "type": "null"
                                },
                                "electronic_consent_id": {
                                  "type": "string"
                                },
                                "prefill_signature_name": {
                                  "type": "null"
                                },
                                "id_verification_required": {
                                  "type": "string"
                                },
                                "pfrmerchant_account_name": {
                                  "type": "null"
                                },
                                "pfrpayment_transaction_id": {
                                  "type": "null"
                                },
                                "electronic_consent_required": {
                                  "type": "integer"
                                },
                                "required_preset_signature_name": {
                                  "type": "null"
                                },
                                "stripe_ach_bank_account_present": {
                                  "type": "string"
                                },
                                "stripe_ach_bank_account_verified": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "notary_invites": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "origin_user_id": {
                            "type": "null"
                          },
                          "originator_logo": {
                            "type": "string"
                          },
                          "routing_details": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {}
                                  }
                                },
                                "id": {
                                  "type": "string"
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string"
                                      },
                                      "role_id": {
                                        "type": "string"
                                      },
                                      "inviter_role": {
                                        "type": "boolean"
                                      },
                                      "default_email": {
                                        "type": "string"
                                      },
                                      "delivery_type": {
                                        "type": "string"
                                      },
                                      "signing_order": {
                                        "type": "integer"
                                      }
                                    }
                                  }
                                },
                                "cc_step": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {}
                                  }
                                },
                                "created": {
                                  "type": "string"
                                },
                                "updated": {
                                  "type": "string"
                                },
                                "viewers": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {}
                                  }
                                },
                                "invite_link_instructions": {
                                  "type": "null"
                                }
                              }
                            }
                          },
                          "field_validators": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "original_filename": {
                            "type": "string"
                          },
                          "origin_document_id": {
                            "type": "null"
                          },
                          "document_group_info": {
                            "type": "object",
                            "properties": {
                              "invite_id": {
                                "type": "null"
                              },
                              "invite_status": {
                                "type": "null"
                              },
                              "sign_as_merged": {
                                "type": "boolean"
                              },
                              "document_group_id": {
                                "type": "null"
                              },
                              "doc_count_in_group": {
                                "type": "integer"
                              },
                              "document_group_name": {
                                "type": "null"
                              }
                            }
                          },
                          "enumeration_options": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "viewer_field_invites": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "signing_session_settings": {
                            "type": "object",
                            "properties": {
                              "welcome_message": {
                                "type": "null"
                              }
                            }
                          },
                          "document_group_template_info": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "originator_organization_settings": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "setting": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {}
                              }
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "60dd7b11b901408ba68dd7f04c2c61adc57db0a2",
                          "tags": [
                            {
                              "name": "field_signature",
                              "type": "system"
                            },
                            {
                              "name": "fields",
                              "type": "system"
                            },
                            {
                              "name": "electronic_consent_required",
                              "type": "system"
                            }
                          ],
                          "lines": [],
                          "owner": "mitroshyn.i+super@gmail.com",
                          "pages": [
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=0",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=1",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=2",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=3",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=4",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=5",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=6",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=7",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=8",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=9",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=10",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=11",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=12",
                              "size": {
                                "width": 595.28,
                                "height": 841.89
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=13",
                              "size": {
                                "width": 595.28,
                                "height": 841.89
                              }
                            }
                          ],
                          "roles": [
                            {
                              "name": "Recipient 1",
                              "unique_id": "931b3afe68e94d05b0149c3dc02f9fc55b5f93e1",
                              "signing_order": "1"
                            }
                          ],
                          "seals": [],
                          "texts": [],
                          "checks": [],
                          "fields": [
                            {
                              "id": "d8c69f79c9da4839ab4a1b5bb5b7c7a41756c86e",
                              "role": "Recipient 1",
                              "type": "signature",
                              "role_id": "931b3afe68e94d05b0149c3dc02f9fc55b5f93e1",
                              "field_id": "140a51add7494328bf3af93f2b06746cab0c5eab",
                              "fulfiller": "mitroshyn.i+filter1@gmail.com",
                              "element_id": "c035557ff4814a78a342b3f3e52e251780768bbf",
                              "originator": "mitroshyn.i+super@gmail.com",
                              "json_attributes": {
                                "x": 450,
                                "y": 24,
                                "name": "Signature_1",
                                "width": 138,
                                "height": 69,
                                "required": true,
                                "page_number": 0,
                                "allowed_types": [
                                  "type",
                                  "draw",
                                  "upload"
                                ]
                              },
                              "field_request_id": "140a51add7494328bf3af93f2b06746cab0c5eab",
                              "template_field_id": null,
                              "field_request_canceled": null
                            }
                          ],
                          "created": "1655973025",
                          "inserts": [],
                          "updated": "1656321523",
                          "user_id": "cfc0e3708fc04dffa787ecc01112fb52099cb23b",
                          "payments": [],
                          "requests": [],
                          "settings": {
                            "ololo": false,
                            "mytext": false,
                            "mytext1": false,
                            "enable_mfa": false,
                            "enable_pki": false,
                            "copy_export": false,
                            "enable_qwer": false,
                            "upload_limit": false,
                            "document_guide": false,
                            "sso-only-login": false,
                            "mobileweb_option": false,
                            "cloud_auto_export": false,
                            "logout_on_signing": false,
                            "restrict_download": false,
                            "common_experiments": false,
                            "enable_experiments": false,
                            "add_signature_stamp": false,
                            "email_logo_position": false,
                            "cfr_title_21_part_11": false,
                            "email_btn_bkgd_color": false,
                            "email_btn_text_color": false,
                            "email_custom_message": false,
                            "email_custom_subject": false,
                            "email_footer_enabled": false,
                            "enable_eu_date_format": false,
                            "require_email_subject": false,
                            "no_document_attachment": true,
                            "agree_to_be_beta_tester": false,
                            "electronic_consent_text": false,
                            "flatten_document_fields": false,
                            "org_allowed_team_admins": false,
                            "disable_email_recipients": false,
                            "document_schema_extended": false,
                            "enable_document_comments": false,
                            "front_end_session_length": false,
                            "no_user_signature_return": false,
                            "require_drawn_signatures": false,
                            "signature_stamp_position": false,
                            "allow_big_attachment_file": false,
                            "cloud_export_with_history": false,
                            "enable_full_story_tracker": false,
                            "require_login_for_signing": false,
                            "allow_download_certificate": false,
                            "disable_email_notifications": false,
                            "electronic_consent_required": false,
                            "email_admin_on_banned_login": false,
                            "enable_hyperlink_protection": false,
                            "enable_team_admin_move_docs": false,
                            "invite_decline_redirect_url": false,
                            "parse_only_signature_fields": false,
                            "allow_team_admin_rename_docs": false,
                            "emailed_docs_include_history": false,
                            "no_document_file_attachments": false,
                            "add_signature_stamp_with_name": false,
                            "digitally_sign_dowloaded_docs": false,
                            "watermark_downloaded_document": false,
                            "invite_completion_redirect_url": false,
                            "required_preset_signature_name": false,
                            "signing_link_document_download": false,
                            "block_login_via_social_networks": false,
                            "hide_upgrade_subscription_button": false,
                            "allow_edit_document_after_signing": false,
                            "default_field_invite_remind_after": false,
                            "disable_download_action_in_editor": false,
                            "enable_advanced_threat_protection": false,
                            "auto_deletion_documents_from_trash": false,
                            "default_field_invite_remind_before": false,
                            "default_field_invite_remind_repeat": false,
                            "document_completion_retention_days": false,
                            "require_authentication_for_invites": false,
                            "save_signer_signature_and_initials": false,
                            "signing_link_document_name_formula": false,
                            "disable_recipients_list_from_editor": false,
                            "document_attachment_only_for_signer": false,
                            "default_field_invite_expiration_time": false,
                            "unsuccessful_logout_attempts_allowed": false,
                            "audit_trail_completion_retention_days": false,
                            "block_organization_selfleave_by_member": false,
                            "allow_document_copying_to_other_accounts": false,
                            "allow_embedded_extended_token_expiration": false,
                            "pending_invite_document_view_notification": false,
                            "guide_signers_only_through_required_fields": false,
                            "redirect_to_registration_when_fields_saved": false,
                            "hide_decline_to_sign_option_in_signing_session": false,
                            "max_attachments_for_signnow_fields_per_document": false,
                            "only_administrator_is_able_to_invite_to_the_team": false,
                            "allow_big_count_of_attachment_fields_per_document": false,
                            "agreement_to_test_new_functionality_in_organization": false,
                            "auto_apply_signatures_and_initials_to_document_fields": false,
                            "block_export_options_when_credit_card_validation_is_used": false,
                            "invite_update_notifications_for_all_invites_at_invite_create": false,
                            "every_signature_and_initials_field_requires_user_authentication": false
                          },
                          "template": false,
                          "parent_id": "0d515691541141afa868c00758422e50f5e29a48",
                          "thumbnail": {
                            "large": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large",
                            "small": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=small",
                            "medium": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=medium"
                          },
                          "hyperlinks": [],
                          "owner_name": "qwe qwe",
                          "page_count": "14",
                          "signatures": [
                            {
                              "x": "450",
                              "y": "24",
                              "id": "c035557ff4814a78a342b3f3e52e251780768bbf",
                              "data": "iVBORw0KAJGCwZ0oRYZxbTr2muG14J5ppi2s2p",
                              "email": "mitroshyn.i+filter1@gmail.com",
                              "width": "138",
                              "height": "55",
                              "created": "1656321523",
                              "subtype": "signature",
                              "user_id": "27fd5f4748c0495599295f222b33f5a31d7e0ab2",
                              "page_number": "0",
                              "signature_request_id": null
                            }
                          ],
                          "attachments": [],
                          "exported_to": [],
                          "integrations": [],
                          "radiobuttons": [],
                          "version_time": "1656321523",
                          "viewer_roles": [],
                          "document_name": "filter1",
                          "field_invites": [
                            {
                              "id": "85c5228512934ec48b1626f4124464299eb84eb9",
                              "role": "Recipient 1",
                              "email": "mitroshyn.i+filter1@gmail.com",
                              "pfrid": null,
                              "status": "fulfilled",
                              "created": "1655973182",
                              "pfrtype": null,
                              "role_id": "931b3afe68e94d05b0149c3dc02f9fc55b5f93e1",
                              "updated": "1656321523",
                              "declined": [],
                              "reassign": "0",
                              "reminder": "0",
                              "pframount": null,
                              "pfrstatus": null,
                              "pfrcreated": null,
                              "id_verified": "UNVERIFIED",
                              "is_embedded": false,
                              "redirect_uri": null,
                              "delivery_type": "email",
                              "password_type": "",
                              "email_statuses": [],
                              "pfrmerchant_id": null,
                              "signer_user_id": "27fd5f4748c0495599295f222b33f5a31d7e0ab2",
                              "embedded_signer": [],
                              "expiration_time": "1658565182",
                              "is_draft_exists": "0",
                              "password_method": "",
                              "payment_request": null,
                              "is_full_declined": false,
                              "pfrcurrency_name": null,
                              "pfrmerchant_type": null,
                              "is_document_locked": "0",
                              "password_protected": "0",
                              "pfrjson_attributes": null,
                              "force_new_signature": null,
                              "signer_phone_invite": null,
                              "decline_by_signature": "0",
                              "signing_instructions": null,
                              "electronic_consent_id": "be57fe8659ae4fa494aeffcc532a61cc35372a96",
                              "prefill_signature_name": null,
                              "id_verification_required": "NO",
                              "pfrmerchant_account_name": null,
                              "pfrpayment_transaction_id": null,
                              "electronic_consent_required": 1,
                              "required_preset_signature_name": null,
                              "stripe_ach_bank_account_present": "0",
                              "stripe_ach_bank_account_verified": "0"
                            }
                          ],
                          "notary_invites": [],
                          "origin_user_id": null,
                          "originator_logo": "",
                          "routing_details": [
                            {
                              "cc": [],
                              "id": "4b2d588b2f104f7ab1165b44562e9e91df8cf290",
                              "data": [
                                {
                                  "name": "Recipient 1",
                                  "role_id": "931b3afe68e94d05b0149c3dc02f9fc55b5f93e1",
                                  "inviter_role": false,
                                  "default_email": "mitroshyn.i+filter1@gmail.com",
                                  "delivery_type": "email",
                                  "signing_order": 1
                                }
                              ],
                              "cc_step": [],
                              "created": "1655973176",
                              "updated": "1655973181",
                              "viewers": [],
                              "invite_link_instructions": null
                            }
                          ],
                          "field_validators": [],
                          "original_filename": "asd 1 2 1.pdf",
                          "origin_document_id": null,
                          "document_group_info": {
                            "invite_id": null,
                            "invite_status": null,
                            "sign_as_merged": false,
                            "document_group_id": null,
                            "doc_count_in_group": 0,
                            "document_group_name": null
                          },
                          "enumeration_options": [],
                          "viewer_field_invites": [],
                          "signing_session_settings": {
                            "welcome_message": null
                          },
                          "document_group_template_info": [],
                          "originator_organization_settings": [
                            {
                              "value": "0",
                              "setting": "no_user_signature_return"
                            },
                            {
                              "value": "",
                              "setting": "invite_completion_redirect_url"
                            },
                            {
                              "value": "",
                              "setting": "invite_decline_redirect_url"
                            },
                            {
                              "value": "0",
                              "setting": "required_preset_signature_name"
                            },
                            {
                              "value": "0",
                              "setting": "require_email_subject"
                            },
                            {
                              "value": "0",
                              "setting": "require_login_for_signing"
                            },
                            {
                              "value": "1",
                              "setting": "logout_on_signing"
                            },
                            {
                              "value": "0",
                              "setting": "front_end_session_length"
                            },
                            {
                              "value": "1",
                              "setting": "add_signature_stamp_with_name"
                            },
                            {
                              "value": "0",
                              "setting": "cfr_title_21_part_11"
                            },
                            {
                              "value": "0",
                              "setting": "require_authentication_for_invites"
                            },
                            {
                              "value": "1",
                              "setting": "document_guide"
                            },
                            {
                              "value": "0",
                              "setting": "disable_email_notifications"
                            },
                            {
                              "value": "no",
                              "setting": "block_export_options_when_credit_card_validation_is_used"
                            },
                            {
                              "value": "no",
                              "setting": "block_login_via_social_networks"
                            },
                            {
                              "value": "0",
                              "setting": "common_experiments"
                            },
                            {
                              "value": "0",
                              "setting": "hide_decline_to_sign_option_in_signing_session"
                            },
                            {
                              "value": "0",
                              "setting": "hide_upgrade_subscription_button"
                            },
                            {
                              "value": "",
                              "setting": "do_no_consent_redirect_url"
                            },
                            {
                              "value": "0",
                              "setting": "lock_signing_date_by_default"
                            },
                            {
                              "value": "0",
                              "setting": "allow_download_certificate"
                            },
                            {
                              "value": "0",
                              "setting": "have_merged_document_group_option"
                            },
                            {
                              "value": "1",
                              "setting": "guide_signers_only_through_required_fields"
                            },
                            {
                              "value": "30",
                              "setting": "invite_expiration_days"
                            },
                            {
                              "value": "0",
                              "setting": "allow_big_attachment_file"
                            },
                            {
                              "value": "0",
                              "setting": "allow_big_count_of_attachment_fields_per_document"
                            },
                            {
                              "value": "0",
                              "setting": "enable_hyperlink_field"
                            },
                            {
                              "value": "0",
                              "setting": "disable_download_action_in_editor"
                            },
                            {
                              "value": "bottom",
                              "setting": "signature_stamp_position"
                            },
                            {
                              "value": "0",
                              "setting": "enable_pki"
                            },
                            {
                              "value": "1",
                              "setting": "save_signer_signature_and_initials"
                            },
                            {
                              "value": "1",
                              "setting": "auto_apply_signatures_and_initials_to_document_fields"
                            },
                            {
                              "value": "0",
                              "setting": "receive_signer_email_after_sent_field_invite_to_yourself"
                            },
                            {
                              "value": "0",
                              "setting": "allow_edit_document_after_signing"
                            },
                            {
                              "value": "off",
                              "setting": "every_signature_and_initials_field_requires_user_authentication"
                            },
                            {
                              "value": "0",
                              "setting": "enable_render_pages_in_editor_as_images"
                            },
                            {
                              "value": "0",
                              "setting": "allow_team_admin_rename_docs"
                            }
                          ]
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "60dd7b11b901408ba68dd7f04c2c61adc57db0a2",
                          "tags": [
                            {
                              "name": "field_signature",
                              "type": "system"
                            },
                            {
                              "name": "fields",
                              "type": "system"
                            },
                            {
                              "name": "electronic_consent_required",
                              "type": "system"
                            }
                          ],
                          "lines": [],
                          "owner": "mitroshyn.i+super@gmail.com",
                          "pages": [
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=0",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=1",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=2",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=3",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=4",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=5",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=6",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=7",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=8",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=9",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=10",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=11",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=12",
                              "size": {
                                "width": 595.28,
                                "height": 841.89
                              }
                            },
                            {
                              "src": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large&page=13",
                              "size": {
                                "width": 595.28,
                                "height": 841.89
                              }
                            }
                          ],
                          "roles": [
                            {
                              "name": "Recipient 1",
                              "unique_id": "931b3afe68e94d05b0149c3dc02f9fc55b5f93e1",
                              "signing_order": "1"
                            }
                          ],
                          "seals": [],
                          "texts": [],
                          "checks": [],
                          "fields": [
                            {
                              "id": "d8c69f79c9da4839ab4a1b5bb5b7c7a41756c86e",
                              "role": "Recipient 1",
                              "type": "signature",
                              "role_id": "931b3afe68e94d05b0149c3dc02f9fc55b5f93e1",
                              "field_id": "140a51add7494328bf3af93f2b06746cab0c5eab",
                              "fulfiller": "mitroshyn.i+filter1@gmail.com",
                              "element_id": "c035557ff4814a78a342b3f3e52e251780768bbf",
                              "originator": "mitroshyn.i+super@gmail.com",
                              "json_attributes": {
                                "x": 450,
                                "y": 24,
                                "name": "Signature_1",
                                "width": 138,
                                "height": 69,
                                "required": true,
                                "page_number": 0,
                                "allowed_types": [
                                  "type",
                                  "draw",
                                  "upload"
                                ]
                              },
                              "field_request_id": "140a51add7494328bf3af93f2b06746cab0c5eab",
                              "template_field_id": null,
                              "field_request_canceled": null
                            }
                          ],
                          "created": "1655973025",
                          "inserts": [],
                          "updated": "1656321523",
                          "user_id": "cfc0e3708fc04dffa787ecc01112fb52099cb23b",
                          "payments": [],
                          "requests": [],
                          "settings": {
                            "ololo": false,
                            "mytext": false,
                            "mytext1": false,
                            "enable_mfa": false,
                            "enable_pki": false,
                            "copy_export": false,
                            "enable_qwer": false,
                            "upload_limit": false,
                            "document_guide": false,
                            "sso-only-login": false,
                            "mobileweb_option": false,
                            "cloud_auto_export": false,
                            "logout_on_signing": false,
                            "restrict_download": false,
                            "common_experiments": false,
                            "enable_experiments": false,
                            "add_signature_stamp": false,
                            "email_logo_position": false,
                            "cfr_title_21_part_11": false,
                            "email_btn_bkgd_color": false,
                            "email_btn_text_color": false,
                            "email_custom_message": false,
                            "email_custom_subject": false,
                            "email_footer_enabled": false,
                            "enable_eu_date_format": false,
                            "require_email_subject": false,
                            "no_document_attachment": true,
                            "agree_to_be_beta_tester": false,
                            "electronic_consent_text": false,
                            "flatten_document_fields": false,
                            "org_allowed_team_admins": false,
                            "disable_email_recipients": false,
                            "document_schema_extended": false,
                            "enable_document_comments": false,
                            "front_end_session_length": false,
                            "no_user_signature_return": false,
                            "require_drawn_signatures": false,
                            "signature_stamp_position": false,
                            "allow_big_attachment_file": false,
                            "cloud_export_with_history": false,
                            "enable_full_story_tracker": false,
                            "require_login_for_signing": false,
                            "allow_download_certificate": false,
                            "disable_email_notifications": false,
                            "electronic_consent_required": false,
                            "email_admin_on_banned_login": false,
                            "enable_hyperlink_protection": false,
                            "enable_team_admin_move_docs": false,
                            "invite_decline_redirect_url": false,
                            "parse_only_signature_fields": false,
                            "allow_team_admin_rename_docs": false,
                            "emailed_docs_include_history": false,
                            "no_document_file_attachments": false,
                            "add_signature_stamp_with_name": false,
                            "digitally_sign_dowloaded_docs": false,
                            "watermark_downloaded_document": false,
                            "invite_completion_redirect_url": false,
                            "required_preset_signature_name": false,
                            "signing_link_document_download": false,
                            "block_login_via_social_networks": false,
                            "hide_upgrade_subscription_button": false,
                            "allow_edit_document_after_signing": false,
                            "default_field_invite_remind_after": false,
                            "disable_download_action_in_editor": false,
                            "enable_advanced_threat_protection": false,
                            "auto_deletion_documents_from_trash": false,
                            "default_field_invite_remind_before": false,
                            "default_field_invite_remind_repeat": false,
                            "document_completion_retention_days": false,
                            "require_authentication_for_invites": false,
                            "save_signer_signature_and_initials": false,
                            "signing_link_document_name_formula": false,
                            "disable_recipients_list_from_editor": false,
                            "document_attachment_only_for_signer": false,
                            "default_field_invite_expiration_time": false,
                            "unsuccessful_logout_attempts_allowed": false,
                            "audit_trail_completion_retention_days": false,
                            "block_organization_selfleave_by_member": false,
                            "allow_document_copying_to_other_accounts": false,
                            "allow_embedded_extended_token_expiration": false,
                            "pending_invite_document_view_notification": false,
                            "guide_signers_only_through_required_fields": false,
                            "redirect_to_registration_when_fields_saved": false,
                            "hide_decline_to_sign_option_in_signing_session": false,
                            "max_attachments_for_signnow_fields_per_document": false,
                            "only_administrator_is_able_to_invite_to_the_team": false,
                            "allow_big_count_of_attachment_fields_per_document": false,
                            "agreement_to_test_new_functionality_in_organization": false,
                            "auto_apply_signatures_and_initials_to_document_fields": false,
                            "block_export_options_when_credit_card_validation_is_used": false,
                            "invite_update_notifications_for_all_invites_at_invite_create": false,
                            "every_signature_and_initials_field_requires_user_authentication": false
                          },
                          "template": false,
                          "parent_id": "0d515691541141afa868c00758422e50f5e29a48",
                          "thumbnail": {
                            "large": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=large",
                            "small": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=small",
                            "medium": "https://api.signnow-dev.xyz/document/60dd7b11b901408ba68dd7f04c2c61adc57db0a2/thumbnail?size=medium"
                          },
                          "hyperlinks": [],
                          "owner_name": "qwe qwe",
                          "page_count": "14",
                          "signatures": [
                            {
                              "x": "450",
                              "y": "24",
                              "id": "c035557ff4814a78a342b3f3e52e251780768bbf",
                              "data": "iVBORw0KAJGCwZ0oRYZxbTr2muG14J5ppi2s2p",
                              "email": "mitroshyn.i+filter1@gmail.com",
                              "width": "138",
                              "height": "55",
                              "created": "1656321523",
                              "subtype": "signature",
                              "user_id": "27fd5f4748c0495599295f222b33f5a31d7e0ab2",
                              "page_number": "0",
                              "signature_request_id": null
                            }
                          ],
                          "attachments": [],
                          "exported_to": [],
                          "integrations": [],
                          "radiobuttons": [],
                          "version_time": "1656321523",
                          "viewer_roles": [],
                          "document_name": "filter1",
                          "field_invites": [
                            {
                              "id": "85c5228512934ec48b1626f4124464299eb84eb9",
                              "role": "Recipient 1",
                              "email": "mitroshyn.i+filter1@gmail.com",
                              "pfrid": null,
                              "status": "fulfilled",
                              "created": "1655973182",
                              "pfrtype": null,
                              "role_id": "931b3afe68e94d05b0149c3dc02f9fc55b5f93e1",
                              "updated": "1656321523",
                              "declined": [],
                              "reassign": "0",
                              "reminder": "0",
                              "pframount": null,
                              "pfrstatus": null,
                              "pfrcreated": null,
                              "id_verified": "UNVERIFIED",
                              "is_embedded": false,
                              "redirect_uri": null,
                              "delivery_type": "email",
                              "password_type": "",
                              "email_statuses": [],
                              "pfrmerchant_id": null,
                              "signer_user_id": "27fd5f4748c0495599295f222b33f5a31d7e0ab2",
                              "embedded_signer": [],
                              "expiration_time": "1658565182",
                              "is_draft_exists": "0",
                              "password_method": "",
                              "payment_request": null,
                              "is_full_declined": false,
                              "pfrcurrency_name": null,
                              "pfrmerchant_type": null,
                              "is_document_locked": "0",
                              "password_protected": "0",
                              "pfrjson_attributes": null,
                              "force_new_signature": null,
                              "signer_phone_invite": null,
                              "decline_by_signature": "0",
                              "signing_instructions": null,
                              "electronic_consent_id": "be57fe8659ae4fa494aeffcc532a61cc35372a96",
                              "prefill_signature_name": null,
                              "id_verification_required": "NO",
                              "pfrmerchant_account_name": null,
                              "pfrpayment_transaction_id": null,
                              "electronic_consent_required": 1,
                              "required_preset_signature_name": null,
                              "stripe_ach_bank_account_present": "0",
                              "stripe_ach_bank_account_verified": "0"
                            }
                          ],
                          "notary_invites": [],
                          "origin_user_id": null,
                          "originator_logo": "",
                          "routing_details": [
                            {
                              "cc": [],
                              "id": "4b2d588b2f104f7ab1165b44562e9e91df8cf290",
                              "data": [
                                {
                                  "name": "Recipient 1",
                                  "role_id": "931b3afe68e94d05b0149c3dc02f9fc55b5f93e1",
                                  "inviter_role": false,
                                  "default_email": "mitroshyn.i+filter1@gmail.com",
                                  "delivery_type": "email",
                                  "signing_order": 1
                                }
                              ],
                              "cc_step": [],
                              "created": "1655973176",
                              "updated": "1655973181",
                              "viewers": [],
                              "invite_link_instructions": null
                            }
                          ],
                          "field_validators": [],
                          "original_filename": "asd 1 2 1.pdf",
                          "origin_document_id": null,
                          "document_group_info": {
                            "invite_id": null,
                            "invite_status": null,
                            "sign_as_merged": false,
                            "document_group_id": null,
                            "doc_count_in_group": 0,
                            "document_group_name": null
                          },
                          "enumeration_options": [],
                          "viewer_field_invites": [],
                          "signing_session_settings": {
                            "welcome_message": null
                          },
                          "document_group_template_info": [],
                          "originator_organization_settings": [
                            {
                              "value": "0",
                              "setting": "no_user_signature_return"
                            },
                            {
                              "value": "",
                              "setting": "invite_completion_redirect_url"
                            },
                            {
                              "value": "",
                              "setting": "invite_decline_redirect_url"
                            },
                            {
                              "value": "0",
                              "setting": "required_preset_signature_name"
                            },
                            {
                              "value": "0",
                              "setting": "require_email_subject"
                            },
                            {
                              "value": "0",
                              "setting": "require_login_for_signing"
                            },
                            {
                              "value": "1",
                              "setting": "logout_on_signing"
                            },
                            {
                              "value": "0",
                              "setting": "front_end_session_length"
                            },
                            {
                              "value": "1",
                              "setting": "add_signature_stamp_with_name"
                            },
                            {
                              "value": "0",
                              "setting": "cfr_title_21_part_11"
                            },
                            {
                              "value": "0",
                              "setting": "require_authentication_for_invites"
                            },
                            {
                              "value": "1",
                              "setting": "document_guide"
                            },
                            {
                              "value": "0",
                              "setting": "disable_email_notifications"
                            },
                            {
                              "value": "no",
                              "setting": "block_export_options_when_credit_card_validation_is_used"
                            },
                            {
                              "value": "no",
                              "setting": "block_login_via_social_networks"
                            },
                            {
                              "value": "0",
                              "setting": "common_experiments"
                            },
                            {
                              "value": "0",
                              "setting": "hide_decline_to_sign_option_in_signing_session"
                            },
                            {
                              "value": "0",
                              "setting": "hide_upgrade_subscription_button"
                            },
                            {
                              "value": "",
                              "setting": "do_no_consent_redirect_url"
                            },
                            {
                              "value": "0",
                              "setting": "lock_signing_date_by_default"
                            },
                            {
                              "value": "0",
                              "setting": "allow_download_certificate"
                            },
                            {
                              "value": "0",
                              "setting": "have_merged_document_group_option"
                            },
                            {
                              "value": "1",
                              "setting": "guide_signers_only_through_required_fields"
                            },
                            {
                              "value": "30",
                              "setting": "invite_expiration_days"
                            },
                            {
                              "value": "0",
                              "setting": "allow_big_attachment_file"
                            },
                            {
                              "value": "0",
                              "setting": "allow_big_count_of_attachment_fields_per_document"
                            },
                            {
                              "value": "0",
                              "setting": "enable_hyperlink_field"
                            },
                            {
                              "value": "0",
                              "setting": "disable_download_action_in_editor"
                            },
                            {
                              "value": "bottom",
                              "setting": "signature_stamp_position"
                            },
                            {
                              "value": "0",
                              "setting": "enable_pki"
                            },
                            {
                              "value": "1",
                              "setting": "save_signer_signature_and_initials"
                            },
                            {
                              "value": "1",
                              "setting": "auto_apply_signatures_and_initials_to_document_fields"
                            },
                            {
                              "value": "0",
                              "setting": "receive_signer_email_after_sent_field_invite_to_yourself"
                            },
                            {
                              "value": "0",
                              "setting": "allow_edit_document_after_signing"
                            },
                            {
                              "value": "off",
                              "setting": "every_signature_and_initials_field_requires_user_authentication"
                            },
                            {
                              "value": "0",
                              "setting": "enable_render_pages_in_editor_as_images"
                            },
                            {
                              "value": "0",
                              "setting": "allow_team_admin_rename_docs"
                            }
                          ]
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Search by Signer email": {
                    "value": {
                      "data": [
                        {
                          "id": "60XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "tags": [
                            {
                              "name": "field_signature",
                              "type": "system"
                            },
                            {
                              "name": "fields",
                              "type": "system"
                            },
                            {
                              "name": "electronic_consent_required",
                              "type": "system"
                            }
                          ],
                          "lines": [],
                          "owner": "owner@email.com",
                          "pages": [
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=0",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=1",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=2",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=3",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=4",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=5",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=6",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=7",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=8",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=9",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=10",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=11",
                              "size": {
                                "width": 611.98,
                                "height": 791.97
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=12",
                              "size": {
                                "width": 595.28,
                                "height": 841.89
                              }
                            },
                            {
                              "src": "https://sample.com/thumbnail?size=large&page=13",
                              "size": {
                                "width": 595.28,
                                "height": 841.89
                              }
                            }
                          ],
                          "roles": [
                            {
                              "name": "Sample name 1",
                              "unique_id": "93XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "signing_order": "1"
                            }
                          ],
                          "seals": [],
                          "texts": [],
                          "checks": [],
                          "fields": [
                            {
                              "id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Sample name 1",
                              "type": "signature",
                              "role_id": "93XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_id": "14XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "fulfiller": "signer@email.com",
                              "element_id": "c0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "originator": "owner@email.com",
                              "json_attributes": {
                                "x": 450,
                                "y": 24,
                                "name": "Sample name 1",
                                "width": 138,
                                "height": 69,
                                "required": true,
                                "page_number": 0,
                                "allowed_types": [
                                  "type",
                                  "draw",
                                  "upload"
                                ]
                              },
                              "field_request_id": "14XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "template_field_id": null,
                              "field_request_canceled": null
                            }
                          ],
                          "created": "1655973025",
                          "inserts": [],
                          "updated": "1656321523",
                          "user_id": "cfXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "payments": [],
                          "requests": [],
                          "settings": {
                            "ololo": false,
                            "mytext": false,
                            "mytext1": false,
                            "enable_mfa": false,
                            "enable_pki": false,
                            "copy_export": false,
                            "enable_qwer": false,
                            "upload_limit": false,
                            "document_guide": false,
                            "sso-only-login": false,
                            "mobileweb_option": false,
                            "cloud_auto_export": false,
                            "logout_on_signing": false,
                            "restrict_download": false,
                            "common_experiments": false,
                            "enable_experiments": false,
                            "add_signature_stamp": false,
                            "email_logo_position": false,
                            "cfr_title_21_part_11": false,
                            "email_btn_bkgd_color": false,
                            "email_btn_text_color": false,
                            "email_custom_message": false,
                            "email_custom_subject": false,
                            "email_footer_enabled": false,
                            "enable_eu_date_format": false,
                            "require_email_subject": false,
                            "no_document_attachment": true,
                            "agree_to_be_beta_tester": false,
                            "electronic_consent_text": false,
                            "flatten_document_fields": false,
                            "org_allowed_team_admins": false,
                            "disable_email_recipients": false,
                            "document_schema_extended": false,
                            "enable_document_comments": false,
                            "front_end_session_length": false,
                            "no_user_signature_return": false,
                            "require_drawn_signatures": false,
                            "signature_stamp_position": false,
                            "allow_big_attachment_file": false,
                            "cloud_export_with_history": false,
                            "enable_full_story_tracker": false,
                            "require_login_for_signing": false,
                            "allow_download_certificate": false,
                            "disable_email_notifications": false,
                            "electronic_consent_required": false,
                            "email_admin_on_banned_login": false,
                            "enable_hyperlink_protection": false,
                            "enable_team_admin_move_docs": false,
                            "invite_decline_redirect_url": false,
                            "parse_only_signature_fields": false,
                            "allow_team_admin_rename_docs": false,
                            "emailed_docs_include_history": false,
                            "no_document_file_attachments": false,
                            "add_signature_stamp_with_name": false,
                            "digitally_sign_dowloaded_docs": false,
                            "watermark_downloaded_document": false,
                            "invite_completion_redirect_url": false,
                            "required_preset_signature_name": false,
                            "signing_link_document_download": false,
                            "block_login_via_social_networks": false,
                            "hide_upgrade_subscription_button": false,
                            "allow_edit_document_after_signing": false,
                            "default_field_invite_remind_after": false,
                            "disable_download_action_in_editor": false,
                            "enable_advanced_threat_protection": false,
                            "auto_deletion_documents_from_trash": false,
                            "default_field_invite_remind_before": false,
                            "default_field_invite_remind_repeat": false,
                            "document_completion_retention_days": false,
                            "require_authentication_for_invites": false,
                            "save_signer_signature_and_initials": false,
                            "signing_link_document_name_formula": false,
                            "disable_recipients_list_from_editor": false,
                            "document_attachment_only_for_signer": false,
                            "default_field_invite_expiration_time": false,
                            "unsuccessful_logout_attempts_allowed": false,
                            "audit_trail_completion_retention_days": false,
                            "block_organization_selfleave_by_member": false,
                            "allow_document_copying_to_other_accounts": false,
                            "allow_embedded_extended_token_expiration": false,
                            "pending_invite_document_view_notification": false,
                            "guide_signers_only_through_required_fields": false,
                            "redirect_to_registration_when_fields_saved": false,
                            "hide_decline_to_sign_option_in_signing_session": false,
                            "max_attachments_for_signnow_fields_per_document": false,
                            "only_administrator_is_able_to_invite_to_the_team": false,
                            "allow_big_count_of_attachment_fields_per_document": false,
                            "agreement_to_test_new_functionality_in_organization": false,
                            "auto_apply_signatures_and_initials_to_document_fields": false,
                            "block_export_options_when_credit_card_validation_is_used": false,
                            "invite_update_notifications_for_all_invites_at_invite_create": false,
                            "every_signature_and_initials_field_requires_user_authentication": false
                          },
                          "template": false,
                          "parent_id": "0dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "thumbnail": {
                            "large": "https://sample.com/thumbnail?size=large",
                            "small": "https://sample.com/thumbnail?size=small",
                            "medium": "https://sample.com/thumbnail?size=medium"
                          },
                          "hyperlinks": [],
                          "owner_name": "sample name",
                          "page_count": "14",
                          "signatures": [
                            {
                              "x": "450",
                              "y": "24",
                              "id": "c0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "data": "iVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "email": "owner@email.com",
                              "width": "138",
                              "height": "55",
                              "created": "1656321523",
                              "subtype": "signature",
                              "user_id": "27XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "page_number": "0",
                              "signature_request_id": null
                            }
                          ],
                          "attachments": [],
                          "exported_to": [],
                          "integrations": [],
                          "radiobuttons": [],
                          "version_time": "1656321523",
                          "viewer_roles": [],
                          "document_name": "Sample name",
                          "field_invites": [
                            {
                              "id": "85XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Sample name 1",
                              "email": "owner@email.com",
                              "pfrid": null,
                              "status": "fulfilled",
                              "created": "1655973182",
                              "pfrtype": null,
                              "role_id": "93XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "updated": "1656321523",
                              "declined": [],
                              "reassign": "0",
                              "reminder": "0",
                              "pframount": null,
                              "pfrstatus": null,
                              "pfrcreated": null,
                              "id_verified": "UNVERIFIED",
                              "is_embedded": false,
                              "redirect_uri": null,
                              "delivery_type": "email",
                              "password_type": "",
                              "email_statuses": [],
                              "pfrmerchant_id": null,
                              "signer_user_id": "27XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "embedded_signer": [],
                              "expiration_time": "1658565182",
                              "is_draft_exists": "0",
                              "password_method": "",
                              "payment_request": null,
                              "is_full_declined": false,
                              "pfrcurrency_name": null,
                              "pfrmerchant_type": null,
                              "is_document_locked": "0",
                              "password_protected": "0",
                              "pfrjson_attributes": null,
                              "force_new_signature": null,
                              "signer_phone_invite": null,
                              "decline_by_signature": "0",
                              "signing_instructions": null,
                              "electronic_consent_id": "beXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "prefill_signature_name": null,
                              "id_verification_required": "NO",
                              "pfrmerchant_account_name": null,
                              "pfrpayment_transaction_id": null,
                              "electronic_consent_required": 1,
                              "required_preset_signature_name": null,
                              "stripe_ach_bank_account_present": "0",
                              "stripe_ach_bank_account_verified": "0"
                            }
                          ],
                          "notary_invites": [],
                          "origin_user_id": null,
                          "originator_logo": "",
                          "routing_details": [
                            {
                              "cc": [],
                              "id": "4bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "data": [
                                {
                                  "name": "Sample name 1",
                                  "role_id": "93XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "inviter_role": false,
                                  "default_email": "owner@email.com",
                                  "delivery_type": "email",
                                  "signing_order": 1
                                }
                              ],
                              "cc_step": [],
                              "created": "1655973176",
                              "updated": "1655973181",
                              "viewers": [],
                              "invite_link_instructions": null
                            }
                          ],
                          "field_validators": [],
                          "original_filename": "sample name.pdf",
                          "origin_document_id": null,
                          "document_group_info": {
                            "invite_id": null,
                            "invite_status": null,
                            "sign_as_merged": false,
                            "document_group_id": null,
                            "doc_count_in_group": 0,
                            "document_group_name": null
                          },
                          "enumeration_options": [],
                          "viewer_field_invites": [],
                          "signing_session_settings": {
                            "welcome_message": null
                          },
                          "document_group_template_info": [],
                          "originator_organization_settings": [
                            {
                              "value": "0",
                              "setting": "no_user_signature_return"
                            },
                            {
                              "value": "",
                              "setting": "invite_completion_redirect_url"
                            },
                            {
                              "value": "",
                              "setting": "invite_decline_redirect_url"
                            },
                            {
                              "value": "0",
                              "setting": "required_preset_signature_name"
                            },
                            {
                              "value": "0",
                              "setting": "require_email_subject"
                            },
                            {
                              "value": "0",
                              "setting": "require_login_for_signing"
                            },
                            {
                              "value": "1",
                              "setting": "logout_on_signing"
                            },
                            {
                              "value": "0",
                              "setting": "front_end_session_length"
                            },
                            {
                              "value": "1",
                              "setting": "add_signature_stamp_with_name"
                            },
                            {
                              "value": "0",
                              "setting": "cfr_title_21_part_11"
                            },
                            {
                              "value": "0",
                              "setting": "require_authentication_for_invites"
                            },
                            {
                              "value": "1",
                              "setting": "document_guide"
                            },
                            {
                              "value": "0",
                              "setting": "disable_email_notifications"
                            },
                            {
                              "value": "no",
                              "setting": "block_export_options_when_credit_card_validation_is_used"
                            },
                            {
                              "value": "no",
                              "setting": "block_login_via_social_networks"
                            },
                            {
                              "value": "0",
                              "setting": "common_experiments"
                            },
                            {
                              "value": "0",
                              "setting": "hide_decline_to_sign_option_in_signing_session"
                            },
                            {
                              "value": "0",
                              "setting": "hide_upgrade_subscription_button"
                            },
                            {
                              "value": "",
                              "setting": "do_no_consent_redirect_url"
                            },
                            {
                              "value": "0",
                              "setting": "lock_signing_date_by_default"
                            },
                            {
                              "value": "0",
                              "setting": "allow_download_certificate"
                            },
                            {
                              "value": "0",
                              "setting": "have_merged_document_group_option"
                            },
                            {
                              "value": "1",
                              "setting": "guide_signers_only_through_required_fields"
                            },
                            {
                              "value": "30",
                              "setting": "invite_expiration_days"
                            },
                            {
                              "value": "0",
                              "setting": "allow_big_attachment_file"
                            },
                            {
                              "value": "0",
                              "setting": "allow_big_count_of_attachment_fields_per_document"
                            },
                            {
                              "value": "0",
                              "setting": "enable_hyperlink_field"
                            },
                            {
                              "value": "0",
                              "setting": "disable_download_action_in_editor"
                            },
                            {
                              "value": "bottom",
                              "setting": "signature_stamp_position"
                            },
                            {
                              "value": "0",
                              "setting": "enable_pki"
                            },
                            {
                              "value": "1",
                              "setting": "save_signer_signature_and_initials"
                            },
                            {
                              "value": "1",
                              "setting": "auto_apply_signatures_and_initials_to_document_fields"
                            },
                            {
                              "value": "0",
                              "setting": "receive_signer_email_after_sent_field_invite_to_yourself"
                            },
                            {
                              "value": "0",
                              "setting": "allow_edit_document_after_signing"
                            },
                            {
                              "value": "off",
                              "setting": "every_signature_and_initials_field_requires_user_authentication"
                            },
                            {
                              "value": "0",
                              "setting": "enable_render_pages_in_editor_as_images"
                            },
                            {
                              "value": "0",
                              "setting": "allow_team_admin_rename_docs"
                            }
                          ]
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "User is not the admin of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  },
                  "User is not admin": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Organization is not active or does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization `{organization_id}` is not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization `{organization_id}` is not found."
                        }
                      ]
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization `{organization_id}` is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{organization_id}/members/last-logins/export": {
      "post": {
        "operationId": "post-v2-organizations-org-id-members-last-logins-export",
        "summary": "Export last logins of members",
        "description": "This endpoint allows for admin of the organization to get a CSV file with login data for the selected date range. The file is sent by email.",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "type": "integer",
            "required": true,
            "description": "A timestamp that defines the timeframe for the data collection (from)."
          },
          {
            "in": "query",
            "name": "date_to",
            "type": "integer",
            "required": true,
            "description": "A timestamp that defines the timeframe for the data collection (to)."
          },
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization"
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Period values are missing.\n* Incorrect period value or format.\n* date_from is greater than date_to.\n* date_from is not integer.\n* date_to is not integer.\n* Report for this date range was requested 30 minutes again or less.",
            "content": {
              "application/json": {
                "examples": {
                  "date_to missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006009,
                          "message": "The `date_to` field is required."
                        }
                      ]
                    }
                  },
                  "Incorrect date_to": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006015,
                          "message": "The `date_to` field value must be positive, non zero value."
                        }
                      ]
                    }
                  },
                  "date_from missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006007,
                          "message": "The `date_from` field is required."
                        }
                      ]
                    }
                  },
                  "Incorrect date_from": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006014,
                          "message": "The `date_from` field value must be positive, non zero value."
                        }
                      ]
                    }
                  },
                  "date_to not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006010,
                          "message": "The `date_to` field must be an integer."
                        }
                      ]
                    }
                  },
                  "date_from not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006008,
                          "message": "The `date_from` field must be an integer."
                        }
                      ]
                    }
                  },
                  "This request already exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 12020001,
                          "message": "A report with the same filtering criteria is already being generated. Try again later."
                        }
                      ]
                    }
                  },
                  "date_from greater than date_to": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006011,
                          "message": "`date_to` should be greater than `date_from`."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* User doesn't have active trial professional or enterprise subscription.\n* User is not an administrator of the organization.\n* Organization is not active.",
            "content": {
              "application/json": {
                "examples": {
                  "User not admin": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  },
                  "Subscription error": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003002,
                          "message": "Access denied for current subscription."
                        }
                      ]
                    }
                  },
                  "Organization not active": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003005,
                          "message": "Organization is not active."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Organization is not active or doesn't exist.",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization {organization_id} is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{organization_id}/users-activity/export": {
      "post": {
        "operationId": "post-v2-organizations-organization-id-users-activity-export",
        "summary": "Export last activity of members",
        "description": "This endpoint allows for admin or moderator of the organization to get a CSV file of users activity of the organization. The file is sent by email.",
        "parameters": [
          {
            "in": "query",
            "name": "date_from",
            "type": "integer",
            "required": true,
            "description": "A timestamp that defines the timeframe for the data collection (from)."
          },
          {
            "in": "query",
            "name": "date_to",
            "type": "integer",
            "required": true,
            "description": "A timestamp that defines the timeframe for the data collection (to)."
          },
          {
            "in": "query",
            "name": "sort[email]",
            "type": "string",
            "required": false,
            "description": "Sort results by email. Possible values: asc, desc."
          },
          {
            "in": "query",
            "name": "email",
            "type": "string",
            "required": false,
            "description": "Filter results by email. Format: `&filters=[{\"email\":{\"type\":\"=\",\"value\":\"user@mail.com\"}}]`"
          },
          {
            "in": "query",
            "name": "ban",
            "type": "boolean",
            "required": false,
            "description": "Filter results by users that were banned from the organization or not. Format: `&filters=[{\"ban\":{\"type\": \"=\", \"value\": true/false}}]`"
          },
          {
            "in": "query",
            "name": "subscriptionStatus",
            "type": "string",
            "required": false,
            "description": "Filter results by subscription status. Possible values: active, not_active. Format: `&filters=[{\"subscriptionStatus\":{\"type\": \"=\", \"value\": active/not_active}}]`"
          },
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization"
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* The same request was made 30 minutes ago or less.\n* Incorrect period value or format.\n* Period values are missing.\n* date_from is greater than date_to.\n* date_from is not integer.\n* date_to is not integer.\n* The date range is more than 31 days.\n* email filter type is not string.\n* email filter type is not equal to '='.\n* email filter value is not string.\n* email filter value is not a valid email.\n* email filter type or value is missing.\n* ban filter type is not string.\n* ban filter type is not equal to '='.\n* ban filter value is not boolean.\n* ban filter type or value is missing.\n* subscriptionStatus filter type is not string.\n* subscriptionStatus filter type is not equal to '='.\n* subscriptionStatus filter value is not string.\n* subscriptionStatus filter value is not equal to 'active' or 'not_active'.\n* subscriptionStatus filter type or value is missing.\n* Problem with saving data to queue.",
            "content": {
              "application/json": {
                "examples": {
                  "ban type not =": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016007,
                          "message": "The `ban` filter expression must be equal to `=`."
                        }
                      ]
                    }
                  },
                  "date_to missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006009,
                          "message": "The `date_to` field is required."
                        }
                      ]
                    }
                  },
                  "email type not =": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016002,
                          "message": "The `email` filter expression must be equal to `=`."
                        }
                      ]
                    }
                  },
                  "Incorrect date_to": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006015,
                          "message": "The `date_to` field value must be positive, non zero value."
                        }
                      ]
                    }
                  },
                  "date_from missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006007,
                          "message": "The `date_from` field is required."
                        }
                      ]
                    }
                  },
                  "Incorrect date_from": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006014,
                          "message": "The `date_from` field value must be positive, non zero value."
                        }
                      ]
                    }
                  },
                  "ban type not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016006,
                          "message": "Invalid filter format, filter `type` must be a string."
                        }
                      ]
                    }
                  },
                  "date_to not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006010,
                          "message": "The `date_to` field must be an integer."
                        }
                      ]
                    }
                  },
                  "Date range is too big": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006012,
                          "message": "Date range should be less than 31 days."
                        }
                      ]
                    }
                  },
                  "ban value not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016008,
                          "message": "The `ban` filter value must be of type bool."
                        }
                      ]
                    }
                  },
                  "date_from not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006008,
                          "message": "The `date_from` field must be an integer."
                        }
                      ]
                    }
                  },
                  "email type not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016001,
                          "message": "Invalid filter format, filter `type` must be a string."
                        }
                      ]
                    }
                  },
                  "email value not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016003,
                          "message": "The `email` filter value must be of type string."
                        }
                      ]
                    }
                  },
                  "email not a valid email": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016005,
                          "message": "The `email` filter value should be a valid email."
                        }
                      ]
                    }
                  },
                  "ban type or value missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016009,
                          "message": "Invalid `ban` filter format, filter must have `type` and `value` fields."
                        }
                      ]
                    }
                  },
                  "This request already exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 12020001,
                          "message": "A report with the same filtering criteria is already being generated. Try again later."
                        }
                      ]
                    }
                  },
                  "email type or value missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016004,
                          "message": "Invalid `email` filter format, filter must have `type` and `value` fields."
                        }
                      ]
                    }
                  },
                  "Problem with saving to queue": {
                    "value": {
                      "errors": [
                        {
                          "code": 12021001,
                          "message": "Problem with saving to queue."
                        }
                      ]
                    }
                  },
                  "subscriptionStatus type not =": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016011,
                          "message": "The `subscriptionStatus` filter expression must be equal to `=`."
                        }
                      ]
                    }
                  },
                  "date_from greater than date_to": {
                    "value": {
                      "errors": [
                        {
                          "code": 12006011,
                          "message": "`date_to` should be greater than `date_from`."
                        }
                      ]
                    }
                  },
                  "Incorrect subscriptionStatus value": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016013,
                          "message": "The `subscriptionStatus` filter value must be equal to `active` or `not_active`."
                        }
                      ]
                    }
                  },
                  "subscriptionStatus type not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016010,
                          "message": "The `subscriptionStatus` filter expression must be a string."
                        }
                      ]
                    }
                  },
                  "subscriptionStatus value not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016012,
                          "message": "The `subscriptionStatus` filter value must be a string."
                        }
                      ]
                    }
                  },
                  "subscriptionStatus type or value missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 12016014,
                          "message": "Invalid `subscriptionStatus` filter format, filter must have `type` and `value` fields."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* User doesn't have active trial professional or enterprise subscription.\n* User is not an administrator of the organization.\n* Organization is not active.",
            "content": {
              "application/json": {
                "examples": {
                  "User not admin": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  },
                  "Subscription error": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003002,
                          "message": "Access denied for current subscription."
                        }
                      ]
                    }
                  },
                  "Organization not active": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003005,
                          "message": "Organization is not active."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Organization is not active or doesn't exist.",
            "content": {
              "application/json": {
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization {organization_id} is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/allowed-team-admins": {
      "post": {
        "operationId": "post-v2-organizations-org-id-allowed-team-admins",
        "summary": "Set an allowed team admin",
        "description": "Allows users to set an org allowed team admin.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the allowed admin is set."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns 201: Success, no content in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"\n* If user is not found, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* Request without mandatory parameters, \"code\": 12004001. Message: \"The `email` field is required.\"\n* Organization admin exists, \"code\": 12004009. Message: \"Organization admin exists.\"\n* Request with invalid value of email parameter, \"code\": 12004008. Message: \"User `user@email.com` is not found.\"\n* User already existing in team admins, \"code\": 12012012. Message: \"Provided organization allowed team admin exists.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Email address of the allowed team admin."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "email": "new_allowed_team_admin@email.com"
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "email": "new_allowed_team_admin@email.com"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "put-v2-organizations-org-id-allowed-team-admins",
        "summary": "Activate/deactivate allowed team admins",
        "description": "Allows users to activate/deactivate an org allowed team admin.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the allowed admin is set."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns 204: Success, no content in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* The `email` field must be a string, \"code\": 12012001. Message: \"The `email` field must be a string.\"\n* The `email` field is required, \"code\": 12012002. Message: \"The `email` field is required.\"\n* The `active` field is required, \"code\": 12012014. Message: \"The `active` field is required.\"\n* The `email` is invalid, \"code\": 12012003. Message: \"The `email` is invalid.\"\n* The `active` field must be a boolean, \"code\": 12005001. Message: \"Organization allowed team admin `email` is not found.\"\n* User is in the organization but not in the admins, \"code\": 12012015. Message: \"Organization allowed team admin `email` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "active"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Email address of the allowed team admin."
                  },
                  "active": {
                    "type": "boolean",
                    "description": "Boolean. Activate or deactivate the allowed team admin. Possible values: `true` - activate, `false` - deactivate."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "email": "new_allowed_team_admin@email.com",
                    "active": true
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "email": "new_allowed_team_admin@email.com",
                    "active": true
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-organizations-org-id-allowed-team-admins",
        "summary": "Get allowed team admins",
        "description": "Allows users to retrieve the list of allowed team admins.",
        "parameters": [
          {
            "in": "query",
            "name": "filters:email",
            "type": "string",
            "required": false,
            "description": "Filter by email. Format: `?filters=[{\"email\":{\"type\": \"=\", \"value\": user_email}}]` (email should be encoded as url)"
          },
          {
            "in": "query",
            "name": "filter:active",
            "type": "string",
            "required": false,
            "description": "Filter by activated/deactivated parameter. Possible values: true, false Format: `?filters=[{\"active\":{\"type\": \"=\", \"value\": false}}]`"
          },
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization where the allowed admin is set."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of allowed team admins in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "required": [
                          "user_id",
                          "email",
                          "active",
                          "created",
                          "updated"
                        ],
                        "properties": {
                          "email": {
                            "type": "string",
                            "minLength": 1
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "created": {
                            "type": "number"
                          },
                          "updated": {
                            "type": "number"
                          },
                          "user_id": {
                            "type": "string",
                            "minLength": 1
                          }
                        }
                      },
                      "minItems": 1,
                      "uniqueItems": true
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "pagination"
                      ],
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "required": [
                            "total",
                            "count",
                            "per_page",
                            "current_page",
                            "total_pages",
                            "links"
                          ],
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "properties": {}
                              }
                            },
                            "total": {
                              "type": "number"
                            },
                            "per_page": {
                              "type": "number"
                            },
                            "total_pages": {
                              "type": "number"
                            },
                            "current_page": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "email": "%user_email%",
                          "active": true,
                          "created": 1600689195,
                          "updated": 1600689195,
                          "user_id": "%user_id%"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 7,
                          "links": [],
                          "total": 7,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": [
                        {
                          "email": "user@email.com",
                          "active": true,
                          "created": 1600689195,
                          "updated": 1600689195,
                          "user_id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 7,
                          "links": [],
                          "total": 7,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/logo": {
      "post": {
        "operationId": "post-v2-organizations-org-id-logo",
        "summary": "Upload organization logo",
        "description": "Allows admin to upload organization logo.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns 204: Success, no content in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "logo": {
                    "type": "string",
                    "description": "@/path/to/your/file.pdf"
                  }
                },
                "required": [
                  "logo"
                ]
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-v2-organizations-org-id-logo",
        "summary": "Delete organization logo",
        "description": "Allows admin to remove organization logo.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns 204: Success, no content in case of successful response for the admins and moderators with trial, professional and enterprise subscription. Returns an error when:\n\n* If user is not admin/moderator of the Org, \"code\": 12003003. Message: \"Access denied for current administration role in your organization.\"\n* If user who does not have appropriate subscription tries to update settings, \"code\": 12003002. Message: \"Access denied for current asubscription.\"\n* If user tries to update settings of the organization that is not active or does not exist, \"code\": 12003001. Message: \"Organization `deXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` is not found.\""
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{org_id}/settings": {
      "put": {
        "operationId": "put-v2-organizations-org-id-settings",
        "summary": "Update organization settings",
        "description": "This endpoint allows admins to update settings for the specified organization.\n\nLearn more about [organization settings](/docs/organizations#organization-settings).",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization."
          }
        ],
        "responses": {
          "204": {
            "description": "Returns 204: Success, no content for admins and moderators with free trial, professional, or enterprise subscriptions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "- The `value` type is incorrect.\n- The `value` field is missing.\n- The `value` should be 1000 characters or fewer.\n- The `setting_name` field is missing.\n- The organization setting was not found.\n- The access token is incorrect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12009001,
                          "message": "The `setting_name` field is required."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12009001,
                          "message": "The `setting_name` field is required."
                        }
                      ]
                    }
                  },
                  "Value is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 12009005,
                          "message": "The value field is required."
                        }
                      ]
                    }
                  },
                  "Setting not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12009003,
                          "message": "Organization setting is not found."
                        }
                      ]
                    }
                  },
                  "Value is too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 12009006,
                          "message": "The value filed can not exceed the limit of 1000 characters."
                        }
                      ]
                    }
                  },
                  "Value type incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 12009004,
                          "message": "The value field must be a string."
                        }
                      ]
                    }
                  },
                  "Setting_name is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 12009001,
                          "message": "The setting_name field is required."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "- The user is not the organization admin.\n- The user cannot change settings with the current subscription plan.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  },
                  "User is not admin": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  },
                  "Subscription restricted": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003002,
                          "message": "Access denied for current subscription."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Organization not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization `4e9cdccb8e764fbe86a664cc9e24502d3dbYYYYY` is not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization `4e9cdccb8e764fbe86a664cc9e24502d3dbYYYYY` is not found."
                        }
                      ]
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization `4e9cdccb8e764fbe86a664cc9e24502d3dbYYYYY` is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "setting_name",
                  "value"
                ],
                "properties": {
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The new value of the setting. List of settings in the endpoint description."
                  },
                  "setting_name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The name of the setting that is changed."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "value": "setting_value",
                    "setting_name": "user_setting_name"
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "value": "setting_value",
                    "setting_name": "user_setting_name"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-organizations-org-id-settings",
        "summary": "Get organization settings",
        "description": "This endpoint allows admins to retrieve settings for the specified organization.\n\nLearn more about [organization settings](/docs/organizations#organization-settings).",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of organization settings for admins and moderators with free trial, professional, or enterprise subscriptions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string",
                            "x-nullable": true
                          },
                          "created": {
                            "type": "number",
                            "x-nullable": true
                          },
                          "setting": {
                            "type": "string"
                          },
                          "updated": {
                            "type": "number",
                            "x-nullable": true
                          },
                          "default_value": {
                            "type": [
                              "string"
                            ]
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "links": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "next": {
                                      "type": "string"
                                    }
                                  }
                                },
                                {
                                  "type": "array",
                                  "items": {}
                                }
                              ]
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "value": null,
                          "created": null,
                          "setting": "no_document_attachment",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "no_document_file_attachments",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "mobileweb_option",
                          "updated": null,
                          "default_value": "app_or_mobileweb_choice"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "require_drawn_signatures",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "org_allowed_team_admins",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "digitally_sign_dowloaded_docs",
                          "updated": null,
                          "default_value": "no"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "pending_invite_document_view_notification",
                          "updated": null,
                          "default_value": "no"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "cloud_export_with_history",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "emailed_docs_include_history",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": "0",
                          "created": 1736061495,
                          "setting": "require_email_subject",
                          "updated": 1736061497,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "document_completion_retention_days",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "require_login_for_signing",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "logout_on_signing",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "audit_trail_completion_retention_days",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "front_end_session_length",
                          "updated": null,
                          "default_value": "0"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 15,
                          "links": {
                            "next": "https://api.signnow.com/v2/organizations/5d07bfbb31bb486bb636fb992cd6d05ca677be54/settings?page=2"
                          },
                          "total": 42,
                          "per_page": 15,
                          "total_pages": 3,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "value": null,
                          "created": null,
                          "setting": "no_document_attachment",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "no_document_file_attachments",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "mobileweb_option",
                          "updated": null,
                          "default_value": "app_or_mobileweb_choice"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "require_drawn_signatures",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "org_allowed_team_admins",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "digitally_sign_dowloaded_docs",
                          "updated": null,
                          "default_value": "no"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "pending_invite_document_view_notification",
                          "updated": null,
                          "default_value": "no"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "cloud_export_with_history",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "emailed_docs_include_history",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": "0",
                          "created": 1736061495,
                          "setting": "require_email_subject",
                          "updated": 1736061497,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "document_completion_retention_days",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "require_login_for_signing",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "logout_on_signing",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "audit_trail_completion_retention_days",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "front_end_session_length",
                          "updated": null,
                          "default_value": "0"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 15,
                          "links": {
                            "next": "https://api.signnow.com/v2/organizations/5d07bfbb31bb486bb636fb992cd6d05ca677be54/settings?page=2"
                          },
                          "total": 42,
                          "per_page": 15,
                          "total_pages": 3,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Successful request": {
                    "value": {
                      "data": [
                        {
                          "value": null,
                          "created": null,
                          "setting": "no_document_attachment",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "no_document_file_attachments",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "mobileweb_option",
                          "updated": null,
                          "default_value": "app_or_mobileweb_choice"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "require_drawn_signatures",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "org_allowed_team_admins",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": "no",
                          "created": 1741698515,
                          "setting": "digitally_sign_dowloaded_docs",
                          "updated": 1764327181,
                          "default_value": "no"
                        },
                        {
                          "value": "https://app.signnow.com/webapp/",
                          "created": 1751549739,
                          "setting": "invite_completion_redirect_url",
                          "updated": 1751549739,
                          "default_value": ""
                        },
                        {
                          "value": "https://app.signnow.com/webapp/",
                          "created": 1751549740,
                          "setting": "invite_decline_redirect_url",
                          "updated": 1751549740,
                          "default_value": ""
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "pending_invite_document_view_notification",
                          "updated": null,
                          "default_value": "no"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "cloud_export_with_history",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "emailed_docs_include_history",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": "0",
                          "created": 1741699278,
                          "setting": "require_email_subject",
                          "updated": 1764327170,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "document_completion_retention_days",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "require_login_for_signing",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "logout_on_signing",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "audit_trail_completion_retention_days",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "front_end_session_length",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "email_admin_on_banned_login",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "add_signature_stamp_with_name",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "cfr_title_21_part_11",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "unsuccessful_logout_attempts_allowed",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": "0",
                          "created": 1750259982,
                          "setting": "require_authentication_for_invites",
                          "updated": 1750336980,
                          "default_value": "0"
                        },
                        {
                          "value": "no",
                          "created": 1741698577,
                          "setting": "electronic_consent_required",
                          "updated": 1750424245,
                          "default_value": "no"
                        },
                        {
                          "value": "",
                          "created": 1741698577,
                          "setting": "electronic_consent_text",
                          "updated": 1741699313,
                          "default_value": ""
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "document_guide",
                          "updated": null,
                          "default_value": "1"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "watermark_downloaded_document",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "sso-only-login",
                          "updated": null,
                          "default_value": "off"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "block_login_via_social_networks",
                          "updated": null,
                          "default_value": "no"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "hide_decline_to_sign_option_in_signing_session",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "guide_signers_only_through_required_fields",
                          "updated": null,
                          "default_value": "1"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "invite_expiration_days",
                          "updated": null,
                          "default_value": "30"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "save_signer_signature_and_initials",
                          "updated": null,
                          "default_value": "1"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "auto_apply_signatures_and_initials_to_document_fields",
                          "updated": null,
                          "default_value": "1"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "block_organization_selfleave_by_member",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "agreement_to_test_new_functionality_in_organization",
                          "updated": null,
                          "default_value": "1"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "default_field_invite_remind_before",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "default_field_invite_remind_after",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "default_field_invite_remind_repeat",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "email_logo_position",
                          "updated": null,
                          "default_value": "left"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "email_btn_bkgd_color",
                          "updated": null,
                          "default_value": "#0777CF"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "email_btn_text_color",
                          "updated": null,
                          "default_value": "#FFFFFF"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "every_signature_and_initials_field_requires_user_authentication",
                          "updated": null,
                          "default_value": "off"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "disable_email_recipients",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "email_footer_enabled",
                          "updated": null,
                          "default_value": "1"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "allow_qes",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "enable_qes",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": "https://www.signnow.com/",
                          "created": 1751469130,
                          "setting": "invite_canceled_redirect_url",
                          "updated": 1751469130,
                          "default_value": ""
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "allow_cfr_control",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": "https://app.signnow.com/webapp/",
                          "created": 1751549746,
                          "setting": "save_draft_redirect_url",
                          "updated": 1751549746,
                          "default_value": ""
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "allow_senders_edit_save_draft_redirect_url",
                          "updated": null,
                          "default_value": "1"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "allow_senders_edit_invite_completion_redirect_url",
                          "updated": null,
                          "default_value": "1"
                        },
                        {
                          "value": "1",
                          "created": 1751548687,
                          "setting": "allow_senders_edit_invite_decline_redirect_url",
                          "updated": 1751629748,
                          "default_value": "1"
                        },
                        {
                          "value": "0",
                          "created": 1769170532,
                          "setting": "restrict_payments_collection",
                          "updated": 1769170543,
                          "default_value": "0"
                        },
                        {
                          "value": "0",
                          "created": 1760440081,
                          "setting": "disable_branding_setup",
                          "updated": 1769170390,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "generate_signers_signatures_when_filling_signature_fields",
                          "updated": null,
                          "default_value": "1"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "disable_ai_chat",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "allow_member_invite_requests",
                          "updated": null,
                          "default_value": "0"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "allow_senders_edit_invite_expiration",
                          "updated": null,
                          "default_value": "1"
                        },
                        {
                          "value": null,
                          "created": null,
                          "setting": "allow_senders_edit_invite_reminders",
                          "updated": null,
                          "default_value": "1"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 59,
                          "links": [],
                          "total": 59,
                          "per_page": 59,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The access token is incorrect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Access token incorrect": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The user is not the organization admin.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  },
                  "User is not admin": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003003,
                          "message": "Access denied for current administration role in your organization."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Organization was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization `4e9cdccb8e764fbe86a664cc9e24502d3dbYYYYY` is not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization `4e9cdccb8e764fbe86a664cc9e24502d3dbYYYYY` is not found."
                        }
                      ]
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12003001,
                          "message": "Organization `4e9cdccb8e764fbe86a664cc9e24502d3dbYYYYY` is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{organization_id}/brand": {
      "get": {
        "operationId": "get-v2-organizations-org-id-brand",
        "summary": "Get brand assigned to organization",
        "description": "This endpoint allows users to get the brand that is assigned to an organization.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of an organization. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "No default brand": {
                    "value": {
                      "data": []
                    }
                  },
                  "Default brand exists": {
                    "value": {
                      "data": {
                        "title": "HR documents",
                        "resources": [],
                        "unique_id": "2274bf62786844e981584543275cdc0c88d67d45",
                        "owner_type": "organization"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The organization is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "put-v2-organizations-org-id-brand",
        "summary": "Assign brand to organization",
        "description": "This endpoint allows users to assign an organization brand to an organization. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of an organization. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n* Request body is missing\n* Incorrect payload\n* `title` is not string\n* `title` is empty\n* `title` is longer than 40 characters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Empty title": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002034,
                          "message": "Brand title must not be an empty string."
                        }
                      ]
                    }
                  },
                  "title not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002031,
                          "message": "Brand title must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002002,
                          "message": "Invalid payload given."
                        }
                      ]
                    }
                  },
                  "title is too long": {
                    "value": {
                      "code": 25002073,
                      "message": "Brand id length must be 40 characters."
                    }
                  },
                  "Request body missing": {
                    "value": {
                      "code": 25002033,
                      "message": "Brand title is required."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The brand is not an organization brand or a common brand.\n* The user is neither admin, nor moderator of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  },
                  "Not organization or common brand": {
                    "value": {
                      "code": 25002026,
                      "message": "Brand assignment is not allowed for provided entity."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The organization is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "brand_id"
                ],
                "properties": {
                  "brand_id": {
                    "type": "string",
                    "example": "2274bf62786844e981584543275cdc0c88d67d45",
                    "maxLength": 40,
                    "minLength": 40,
                    "description": "ID of the brand that should be default"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-v2-organizations-org-id-brand",
        "summary": "Unassign brand from organization",
        "description": "This endpoint allows users to unassign an organization brand from an organization. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of an organization. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The user is neither admin, nor moderator of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed."
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not an organization brand or a common brand.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect brand": {
                    "value": {
                      "code": 25002027,
                      "message": "Brand assignment not found."
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "brand_id"
                ],
                "properties": {
                  "brand_id": {
                    "type": "string",
                    "example": "2274bf62786844e981584543275cdc0c88d67d45",
                    "maxLength": 40,
                    "description": "ID of the brand that should not be default anymore"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/organizations/{organization_id}/brands": {
      "post": {
        "operationId": "post-v2-organizations-organization-id-brands",
        "summary": "Create organization brand",
        "description": "This endpoint allows users to create a brand for an organization. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n* Request body is missing\n* Incorrect payload\n* `title` is not string\n* `title` is empty\n* `title` is longer than 100 characters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Empty title": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002034,
                          "message": "Brand title must not be an empty string."
                        }
                      ]
                    }
                  },
                  "title not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002031,
                          "message": "Brand title must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002002,
                          "message": "Invalid payload given."
                        }
                      ]
                    }
                  },
                  "title is too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002032,
                          "message": "Brand title length must less, than 100 characters."
                        }
                      ]
                    }
                  },
                  "Request body missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002033,
                          "message": "Brand title is required."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\r\n* The user is neither admin, nor moderator of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The organization is not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Organization not found": {
                    "value": {
                      "code": 25006001,
                      "message": "Organization not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "title"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "example": "HR documents",
                    "maxLength": 100,
                    "description": "Brand name",
                    "x-stoplight": {
                      "id": "o4f6tpxsanwgr"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-organizations-organization-id-brands",
        "summary": "Get organization brands",
        "description": "This endpoint allows API users to retrieve all brands associated with an organization.\n\n**Notes**\n\nEach brand has an `owner_type` field that defines who owns it and what access is allowed. There are two ownership types returned by this endpoint:\n\n* **`common`** — system default SignNow brand. Read-only; cannot be edited or customized. Appears in the brand list, but any modification attempt returns a \"No access to brand\" error.\n* **`organization`** — custom brand owned by the organization. Full access for organization admins. This is the brand type you should create and use for customization.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "link": {
                            "type": "string",
                            "description": "Link to retrieve the brand."
                          },
                          "title": {
                            "type": "string",
                            "description": "Brand name."
                          },
                          "resources": {
                            "description": "Brand resources. Empty array `[]` if no resources are configured. Object with resource type keys (`general`, `editor`, `email`, `logo`, etc.) if resources exist.",
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "data": {
                                  "type": "object",
                                  "x-nullable": true,
                                  "description": "Resource data. `null` if not yet configured."
                                },
                                "link": {
                                  "type": "string",
                                  "description": "Link to retrieve the resource."
                                }
                              }
                            }
                          },
                          "unique_id": {
                            "type": "string",
                            "description": "Brand unique ID."
                          },
                          "owner_type": {
                            "type": "string",
                            "description": "Brand owner type. Allowed values: `common`, `organization`."
                          }
                        }
                      },
                      "description": "List of organization brands."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer",
                              "description": "Number of brands on the current page."
                            },
                            "links": {
                              "properties": {
                                "next": {
                                  "type": "string",
                                  "description": "Link to the next page. Present only if there are more pages."
                                }
                              },
                              "description": "Pagination links. Empty array `[]` if on the last page. Object with `next` key if more pages exist."
                            },
                            "total": {
                              "type": "integer",
                              "description": "Total number of brands."
                            },
                            "per_page": {
                              "type": "integer",
                              "description": "Number of items per page."
                            },
                            "total_pages": {
                              "type": "integer",
                              "description": "Total number of pages."
                            },
                            "current_page": {
                              "type": "integer",
                              "description": "Current page number."
                            }
                          }
                        }
                      },
                      "description": "Pagination metadata."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "link": "https://api.signnow.com/v2/brands/f403197bda9365ba4b30f8bc6046e4be6a4c3611",
                          "title": "signNow",
                          "resources": [],
                          "unique_id": "f403197bda9365ba4b30f8bc6046e4be6a4c3611",
                          "owner_type": "common"
                        },
                        {
                          "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3",
                          "title": "New Theme",
                          "resources": {
                            "email": {
                              "data": null,
                              "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3/resources/email"
                            },
                            "editor": {
                              "data": null,
                              "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3/resources/editor"
                            },
                            "general": {
                              "data": null,
                              "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3/resources/general"
                            }
                          },
                          "unique_id": "dbfbe9c51014492ea7e8f98a56b35254896a4ed3",
                          "owner_type": "organization"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 4,
                          "links": [],
                          "total": 4,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "link": "https://api.signnow.com/v2/brands/f403197bda9365ba4b30f8bc6046e4be6a4c3611",
                          "title": "signNow",
                          "resources": [],
                          "unique_id": "f403197bda9365ba4b30f8bc6046e4be6a4c3611",
                          "owner_type": "common"
                        },
                        {
                          "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3",
                          "title": "New Theme",
                          "resources": {
                            "email": {
                              "data": null,
                              "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3/resources/email"
                            },
                            "editor": {
                              "data": null,
                              "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3/resources/editor"
                            },
                            "general": {
                              "data": null,
                              "link": "https://api.signnow.com/v2/organizations/1e9cdccb8e764fbe86a664cc9e24502d3db7b297/brands/dbfbe9c51014492ea7e8f98a56b35254896a4ed3/resources/general"
                            }
                          },
                          "unique_id": "dbfbe9c51014492ea7e8f98a56b35254896a4ed3",
                          "owner_type": "organization"
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 4,
                          "links": [],
                          "total": 4,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The user is not a member, moderator, or admin of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not in organization": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The organization is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Organization not found": {
                    "value": {
                      "code": 25006001,
                      "message": "Organization not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{organization_id}/brands/{brand_id}": {
      "get": {
        "operationId": "get-v2-organizations-organization-id-brands-brand-id",
        "summary": "Get an organization brand",
        "description": "This endpoint allows users to get an organization brand by its ID.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "title": "HR documents",
                        "resources": [],
                        "unique_id": "4cbe9d4ea4b649ecb77205e7c3a96d5d38968587",
                        "owner_type": "organization"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The brand exists but it is not an organization brand.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The brand is not found.\n* The organization is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "put-v2-organizations-organization-id-brands-brand-id",
        "summary": "Update an organization brand",
        "description": "This endpoint allows users to rename an organization brand by its ID. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n* The user is neither admin, nor moderator of the organization\n* Request body is missing\n* Incorrect payload\n* `title` is not string\n* `title` is empty\n* `title` is longer than 100 characters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Empty title": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002034,
                          "message": "Brand title must not be an empty string."
                        }
                      ]
                    }
                  },
                  "title not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002031,
                          "message": "Brand title must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002002,
                          "message": "Invalid payload given."
                        }
                      ]
                    }
                  },
                  "title is too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002032,
                          "message": "Brand title length must less, than 100 characters."
                        }
                      ]
                    }
                  },
                  "Request body missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002033,
                          "message": "Brand title is required."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006002,
                          "message": "Insufficient organization rights."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The brand exists but it is not an organization brand.\n* The user is neither admin, nor moderator of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The brand is not found.\n* The organization is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "title"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "example": "HR documents",
                    "maxLength": 100,
                    "description": "Brand name",
                    "x-stoplight": {
                      "id": "8ujjf1yvjl2b6"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-v2-organizations-organization-id-brands-brand-id",
        "summary": "Delete an organization brand",
        "description": "This endpoint allows users to delete an organization brand by its ID. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The brand exists but it is not an organization brand.\n* The user is neither admin, nor moderator of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The brand is not found.\n* The organization is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{organization_id}/brands/{brand_id}/resources/editor": {
      "put": {
        "operationId": "put-v2-organizations-organization-id-brands-brand-id-resources-editor",
        "summary": "Create org editor brand resource",
        "description": "This endpoint allows users to create an editor brand resource for an organization. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* Request without body.\n* `visibility` is not a boolean.\n* `color` value is not a string.\n* `color` is not a HEX color code.\n* `active-color` is not a string.\n* `active-color` is not a HEX color code.\n* `hover-color` is not a string.\n* `hover-color` is not a HEX color code.\n* `default-color` is not a string.\n* `default-color` is not a HEX color code.\n* `completed-color` is not a string.\n* `completed-color` is not a HEX color code.\n* `background` is not a string.\n* `background` is not a HEX color code.\n* `active-background` is not a string.\n* `active-background` is not a HEX color code.\n* `hover-background` is not a string.\n* `hover-background` is not a HEX color code.\n* `border` is not a string.\n* `border` is not a HEX color code.\n* `active-border` is not a string.\n* `active-border` is not a HEX color code.\n* `hover-border` is not a string.\n* `hover-border` is not a HEX color code.\n* `enabled` is not a boolean.\n* `navigation` is not an array.\n* `navigation.visibility` is not a boolean.\n* `progress-bar` is not an array.\n* `sidebar` is not an array.\n* `sidebar.background` is not a string.\n* `sidebar.visibility` is not a boolean.\n* `complete-footer` field is not an array.\n* `complete-footer.visibility` is not a boolean.\n* `complete-footer.custom-text` is not an array.\n* `complete-footer.custom-text.en` is not a string.\n* `support-chat` is not an array.\n* `support-chat.visibility` is not a boolean.\n* `complete-page.success` is not an array.\n* `complete-page.success.header-text.en` is not a string.\n* `complete-page.success.body-text.en` is not a string.\n* `complete-page.decline` is not an array.\n* `complete-page.decline.header-text.en` is not a string.\n* `complete-page.decline.body-text.en` is not a string.\n* `registration` is not an array.\n* `registration.visibility` is not a boolean.\n* `button-to-signnow` is not an array.\n* `button-to-signnow.visibility` is not a boolean.\n* `button-download` is not an array.\n* `button-download.visibility` is not a boolean.\n* `sender-info` is not an array.\n* `sender-info.visibility` is not a boolean.\n* `page-dimension` is not an array.\n* `percent` is not an integer.\n* `contact-name` is not a string.\n* `contact-email` is not a string.\n* `close-button` is not an array.\n* `close-button.visibility` is not a boolean.\n* `close-button` is not an array.\n* `close-button.visibility` is not a boolean.\n* `close-button.title` is not an array.\n* `close-button.title.signing` is not an array.\n* `close-button.title.editor` is not an array.\n* `close-button.title.signing.en` is not a string.\n* `close-button.title.signing.fr` is not a string.\n* `close-button.title.signing.es` is not a string.\n* `close-button.title.editor.en` is not a string.\n* `close-button.title.editor.fr` is not a string.\n* `close-button.title.editor.es` is not a string.\n* `close-button.title.signing.en` is too long.\n* `close-button.title.signing.fr` is too long.\n* `close-button.title.signing.es` is too long.\n* `close-button.title.editor.en` is too long.\n* `close-button.title.editor.fr` is too long.\n* `close-button.title.editor.es` is too long.\n* `close-button.title.signing.en` contains UTF 4-byte characters.\n* `close-button.title.signing.fr` contains UTF 4-byte characters.\n* `close-button.title.signing.es` contains UTF 4-byte characters.\n* `close-button.title.editor.en` contains UTF 4-byte characters.\n* `close-button.title.editor.fr` contains UTF 4-byte characters.\n* `close-button.title.editor.es` contains UTF 4-byte characters.\n* `decline-button` is not an array.\n* `decline-button.visibility` is not a boolean.\n* `document-name` is not an array.\n* `document-name.visibility` is not a boolean.\n* `toolbar` is not an array.\n* `toolbar.visibility` is not a boolean.\n* `toolbar.background` not a string.\n* `toolbar.background` has incorrect format.\n* `editing-tools` is not an array.\n* `editing-tools.background` is not a string.\n* `editing-tools.background` has incorrect format.\n* `manage-recipients` is not an array.\n* `manage-recipients.visibility` is not a boolean.\n* `preview-button` is not an array.\n* `preview-button.visibility` is not a boolean.\n* `thumbnails-button` is not an array.\n* `thumbnails-button.visibility` is not a boolean.\n* `request-payment` is not an array.\n* `request-payment.visibility` is not a boolean.\n* `continue-button` is not an array.\n* `continue-button.visibility` is not a boolean.\n* `step-progress-bar` is not an array.\n* `step-progress-bar.visibility` is not a boolean.\n* `signing-settings` type is incorrect.\n* `signing-settings.guide-signers-only-through-required-fields` type is incorrect.\n* `signing-settings.auto-apply-signatures-and-initials-to-document-fields` type is incorrect.\n* `fields` is not an array.\n* `fields.signature` is not an array.\n* `fields.signature.visibility` is not a boolean.\n* `fields.text` is not an array.\n* `fields.text.visibility` is not a boolean.\n* `fields.date` is not an array.\n* `fields.date.visibility` is not a boolean.\n* `fields.initials` is not an array.\n* `fields.initials.visibility` is not a boolean.\n* `fields.fullname` is not an array.\n* `fields.fullname.visibility` is not a boolean.\n* `fields.email` is not an array.\n* `fields.email.visibility` is not a boolean.\n* `fields.checkbox` is not an array.\n* `fields.checkbox.visibility` is not a boolean.\n* `fields.radiobutton` is not an array.\n* `fields.radiobutton.visibility` is not a boolean.\n* `fields.attachment` is not an array.\n* `fields.attachment.visibility` is not a boolean.\n* `fields.dropdown` is not an array.\n* `fields.dropdown.visibility` is not a boolean.\n* `fields.stamp` is not an array.\n* `fields.stamp.visibility` is not a boolean.\n* `fields.formula` is not an array.\n* `fields.formula.visibility` is not a boolean.\n* `fields.hyperlink` is not an array.\n* `fields.hyperlink.visibility` is not a boolean.\n* `field-settings` is not an array.\n* `field-settings.visibility` is not a boolean.\n* `default-fields` is not an array.\n* `default-fields.visibility` is not a boolean.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 25002007,
                          "message": "The 'color' attribute format is invalid"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002007,
                          "message": "The 'color' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002006,
                          "message": "The 'color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002008,
                          "message": "The 'background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "sidebar not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002145,
                          "message": "The 'sidebar' field must be an array."
                        }
                      ]
                    }
                  },
                  "sidebar.visibility": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002148,
                          "message": "The 'sidebar.visibility' must be a boolean."
                        }
                      ]
                    }
                  },
                  "enabled not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002190,
                          "message": "The 'accessibility.enabled' field must be a boolean."
                        }
                      ]
                    }
                  },
                  "percent not integer": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002215,
                          "message": "The `page-dimension.percent` field must be an integer."
                        }
                      ]
                    }
                  },
                  "Request without body": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002002,
                          "message": "Invalid payload given."
                        }
                      ]
                    }
                  },
                  "navigation not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002088,
                          "message": "The 'navigation' attribute must be an array."
                        }
                      ]
                    }
                  },
                  "background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002004,
                          "message": "The 'background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "custom-text not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002151,
                          "message": "The 'complete-footer.custom-text' must be an array."
                        }
                      ]
                    }
                  },
                  "sender-info not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002207,
                          "message": "The `sender-info` field must be an array."
                        }
                      ]
                    }
                  },
                  "close-button not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002218,
                          "message": "The close-button field must be an array."
                        }
                      ]
                    }
                  },
                  "fields is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002295,
                          "message": "The `fields` field must be an array."
                        }
                      ]
                    }
                  },
                  "hover-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002012,
                          "message": "The 'hover-color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "progress-bar not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002089,
                          "message": "The 'progress-bar' attribute must be an array."
                        }
                      ]
                    }
                  },
                  "registration not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002139,
                          "message": "This value should be of type array."
                        }
                      ]
                    }
                  },
                  "support-chat not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002158,
                          "message": "The 'support-chat' field must be an array."
                        }
                      ]
                    }
                  },
                  "visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002003,
                          "message": "The visibility should be a boolean."
                        }
                      ]
                    }
                  },
                  "active-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002039,
                          "message": "The 'active-color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "contact-name not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002212,
                          "message": "The `sender-info.contact-name` must be a string."
                        }
                      ]
                    }
                  },
                  "hover-border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002014,
                          "message": "The 'hover-border' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "toolbar is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002276,
                          "message": "The `toolbar` field must be an array."
                        }
                      ]
                    }
                  },
                  "active-border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002041,
                          "message": "The 'active-border' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "color not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002007,
                          "message": "The 'color' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "contact-email not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002209,
                          "message": "The `sender-info.contact-email` must be a string."
                        }
                      ]
                    }
                  },
                  "decline-button not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002220,
                          "message": "The decline-button field must be an array."
                        }
                      ]
                    }
                  },
                  "default-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002043,
                          "message": "The 'default-color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "page-dimension not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002214,
                          "message": "The `page-dimension` field must be an array."
                        }
                      ]
                    }
                  },
                  "border not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002009,
                          "message": "The 'border' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "complete-footer not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002149,
                          "message": "The 'complete-footer' field must be an array."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "completed-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002045,
                          "message": "The 'completed-color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "default-color is not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002043,
                          "message": "The 'default-color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "fields.date is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002300,
                          "message": "The `fields.date` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.text is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002298,
                          "message": "The `fields.text` must be an array."
                        }
                      ]
                    }
                  },
                  "hover-background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002010,
                          "message": "The 'hover-background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "active-background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002037,
                          "message": "The 'active-background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "close-button.title not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002355,
                          "message": "The `close-button.title` must be an array."
                        }
                      ]
                    }
                  },
                  "completed-color in ot string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002045,
                          "message": "The 'completed-color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "custom-text value not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002152,
                          "message": "The 'complete-footer.custom-text.en' must be a string."
                        }
                      ]
                    }
                  },
                  "fields.email is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002306,
                          "message": "The `fields.email` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.stamp is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002316,
                          "message": "The `fields.stamp` must be an array."
                        }
                      ]
                    }
                  },
                  "background not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002005,
                          "message": "The 'background' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "document-name is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002274,
                          "message": "The `document-name` field must be an array."
                        }
                      ]
                    }
                  },
                  "editing-tools is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002280,
                          "message": "The `editing-tools` field must be an array."
                        }
                      ]
                    }
                  },
                  "sidebar.background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002146,
                          "message": "The 'sidebar.background' must be a string."
                        }
                      ]
                    }
                  },
                  "toolbar.background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002278,
                          "message": "The `toolbar.background` must be a string."
                        }
                      ]
                    }
                  },
                  "fields.formula is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002318,
                          "message": "The `fields.formula` must be an array."
                        }
                      ]
                    }
                  },
                  "hover-color not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002013,
                          "message": "The 'hover-color' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "preview-button is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002285,
                          "message": "The `preview-button` field must be an array."
                        }
                      ]
                    }
                  },
                  "toolbar.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002277,
                          "message": "The `toolbar.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "active-color not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002040,
                          "message": "The 'active-color' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "complete-page.decline not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002173,
                          "message": "The 'complete-page.decline' attribute must be an array."
                        }
                      ]
                    }
                  },
                  "continue-button is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002291,
                          "message": "The `continue-button` field must be an array."
                        }
                      ]
                    }
                  },
                  "decline.body-text.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002180,
                          "message": "The 'complete-page.decline.body-text.en' must be a string."
                        }
                      ]
                    }
                  },
                  "fields.checkbox is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002308,
                          "message": "The `fields.checkbox` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.dropdown is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002314,
                          "message": "The `fields.dropdown` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.fullname is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002304,
                          "message": "The `fields.fullname` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.initials is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002302,
                          "message": "The `fields.initials` must be an array."
                        }
                      ]
                    }
                  },
                  "hover-border not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002015,
                          "message": "The 'hover-border' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "request-payment is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002289,
                          "message": "The `request-payment` field must be an array."
                        }
                      ]
                    }
                  },
                  "signing-settings type incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002376,
                          "message": "The 'signing-settings' field must be an array."
                        }
                      ]
                    }
                  },
                  "success.body-text.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002167,
                          "message": "The 'complete-page.success.body-text.en' must be a string."
                        }
                      ]
                    }
                  },
                  "active-border not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002042,
                          "message": "The 'active-border' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "complete-page.success not array ": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002160,
                          "message": "The 'complete-page.success' attribute must be an array."
                        }
                      ]
                    }
                  },
                  "default-color not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002044,
                          "message": "The 'default-color' attribute format is invalid."
                        }
                      ]
                    }
                  },
                  "fields.hyperlink is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002320,
                          "message": "The `fields.hyperlink` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.signature is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002296,
                          "message": "The `fields.signature` must be an array."
                        }
                      ]
                    }
                  },
                  "decline.header-text.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002174,
                          "message": "The 'complete-page.decline.header-text.en' must be a string."
                        }
                      ]
                    }
                  },
                  "fields.attachment is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002312,
                          "message": "The `fields.attachment` must be an array."
                        }
                      ]
                    }
                  },
                  "manage-recipients is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002283,
                          "message": "The `manage-recipients` field must be an array."
                        }
                      ]
                    }
                  },
                  "step-progress-bar is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002293,
                          "message": "The `step-progress-bar` field must be an array."
                        }
                      ]
                    }
                  },
                  "success.header-text.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002161,
                          "message": "The 'complete-page.success.header-text.en' must be a string."
                        }
                      ]
                    }
                  },
                  "thumbnails-button is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002287,
                          "message": "The `thumbnails-button` field must be an array."
                        }
                      ]
                    }
                  },
                  "toolbar.background invalid format": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002279,
                          "message": "The `toolbar.background` must contain a valid HTML color format."
                        }
                      ]
                    }
                  },
                  "completed-color not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002046,
                          "message": "The 'completed-color' attribute format is invalid."
                        }
                      ]
                    }
                  },
                  "fields.date.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002301,
                          "message": "The `fields.date.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.radiobutton is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002310,
                          "message": "The `fields.radiobutton` must be an array."
                        }
                      ]
                    }
                  },
                  "fields.text.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002299,
                          "message": "The `fields.text.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "sender-info.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002208,
                          "message": "The `sender-info.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002357,
                          "message": "The `close-button.title.editor` must be an array."
                        }
                      ]
                    }
                  },
                  "close-button.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002219,
                          "message": "The `close-button.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "editing-tools.background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002281,
                          "message": "The `editing-tools.background` must be a string."
                        }
                      ]
                    }
                  },
                  "fields.email.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002307,
                          "message": "The `fields.email.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.stamp.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002317,
                          "message": "The `fields.stamp.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "hover-background not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002011,
                          "message": "The 'hover-background' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "registration.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002186,
                          "message": "The 'complete-page.registration.visibility' must be boolean."
                        }
                      ]
                    }
                  },
                  "support-chat.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002159,
                          "message": "The 'support-chat.visibility' must be a boolean."
                        }
                      ]
                    }
                  },
                  "active-background not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002038,
                          "message": "The 'active-background' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "close-button.title.signing not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002356,
                          "message": "The `close-button.title.signing` must be an array."
                        }
                      ]
                    }
                  },
                  "default-fields field is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002381,
                          "message": "The `default-fields` field must be an array."
                        }
                      ]
                    }
                  },
                  "document-name.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002275,
                          "message": "The `document-name.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "field-settings field is not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002379,
                          "message": "The `field-settings` field must be an array."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.en too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002367,
                          "message": "The `close-button.title.editor.en` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.es too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002369,
                          "message": "The `close-button.title.editor.es` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.fr too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002368,
                          "message": "The `close-button.title.editor.fr` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "decline-button.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002221,
                          "message": "The `decline-button.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.formula.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002319,
                          "message": "The `fields.formula.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "preview-button.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002286,
                          "message": "The `preview-button.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "button_download.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002188,
                          "message": "The 'complete-page.button_download.visibility' must be boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.en too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002364,
                          "message": "The `close-button.title.signing.en` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.es too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002366,
                          "message": "The `close-button.title.signing.es` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.fr too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002365,
                          "message": "The `close-button.title.signing.fr` must contain no more than 50 characters."
                        }
                      ]
                    }
                  },
                  "complete-footer.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002150,
                          "message": "The 'complete-footer.visibility' must be a boolean."
                        }
                      ]
                    }
                  },
                  "continue-button.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002292,
                          "message": "The `continue-button.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.checkbox.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002309,
                          "message": "The `fields.checkbox.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.dropdown.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002315,
                          "message": "The `fields.dropdown.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.fullname.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002305,
                          "message": "The `fields.fullname.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.initials.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002303,
                          "message": "The `fields.initials.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "request-payment.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002290,
                          "message": "The `request-payment.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002361,
                          "message": "The `close-button.title.editor.en` must be a string."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.es not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002363,
                          "message": "The `close-button.title.editor.es` must be a string."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.fr not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002362,
                          "message": "The `close-button.title.editor.fr` must be a string."
                        }
                      ]
                    }
                  },
                  "fields.hyperlink.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002321,
                          "message": "The `fields.hyperlink.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.signature.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002297,
                          "message": "The `fields.signature.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "button_to_signnow.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002187,
                          "message": "The 'complete-page.button_to_signnow.visibility' must be boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.en not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002358,
                          "message": "The `close-button.title.signing.en` must be a string."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.es not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002360,
                          "message": "The `close-button.title.signing.es` must be a string."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.fr not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002359,
                          "message": "The `close-button.title.signing.fr` must be a string."
                        }
                      ]
                    }
                  },
                  "default-fields.visibility is not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002382,
                          "message": "The `default-fields.visibility` field must be a boolean."
                        }
                      ]
                    }
                  },
                  "field-settings.visibility is not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002380,
                          "message": "The `field-settings.visibility` field must be a boolean."
                        }
                      ]
                    }
                  },
                  "fields.attachment.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002313,
                          "message": "The `fields.attachment.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "manage-recipients.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002284,
                          "message": "The `manage-recipients.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "step-progress-bar.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002294,
                          "message": "The `step-progress-bar.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "thumbnails-button.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002288,
                          "message": "The `thumbnails-button.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "editing-tools.background incorrect format": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002282,
                          "message": "The `editing-tools.background` must contain a valid HTML color format."
                        }
                      ]
                    }
                  },
                  "fields.radiobutton.visibility not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002311,
                          "message": "The `fields.radiobutton.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.fr utf4byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002371,
                          "message": "UTF 4-byte characters in `close-button.title.signing.fr` are not supported."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.en utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002373,
                          "message": "UTF 4-byte characters in `close-button.title.editor.en` are not supported."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.es utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002375,
                          "message": "UTF 4-byte characters in `close-button.title.editor.es` are not supported."
                        }
                      ]
                    }
                  },
                  "close-button.title.editor.fr utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002374,
                          "message": "UTF 4-byte characters in `close-button.title.editor.fr` are not supported."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.en utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002370,
                          "message": "UTF 4-byte characters in `close-button.title.signing.en` are not supported."
                        }
                      ]
                    }
                  },
                  "close-button.title.signing.es utf 4-byte not supported": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002372,
                          "message": "UTF 4-byte characters in `close-button.title.signing.es` are not supported."
                        }
                      ]
                    }
                  },
                  "guide-signers-only-through-required-fields type incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002377,
                          "message": "The 'signing-settings.guide-signers-only-through-required-fields' attribute must be a boolean."
                        }
                      ]
                    }
                  },
                  "auto-apply-signatures-and-initials-to-document-fields type incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002378,
                          "message": "The 'signing-settings.auto-apply-signatures-and-initials-to-document-fields' attribute must be a boolean."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Request with a valid bearer token from another user logged in.\n* The user is authorized with a token from an app they don’t own.\n* The user is neither admin, nor moderator of the organization.\n* The brand exists but it is not an organization brand.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "Another user's token": {
                    "value": {
                      "code": 25002002,
                      "message": "No access to the brand"
                    }
                  },
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not found.\n* `brand_id` cannot be null.\n* Editor resource for this `brand_id` doesn't exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  },
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/general"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  },
                  "Editor resource not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002036,
                          "message": "Brand resource not found. Resource name: editor."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "date": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the date field in the fields panel."
                      },
                      "text": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the text field in the fields panel."
                      },
                      "email": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the email field in the fields panel."
                      },
                      "stamp": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the stamp field in the fields panel."
                      },
                      "formula": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the formula field in the fields panel."
                      },
                      "checkbox": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the checkbox field in the fields panel."
                      },
                      "dropdown": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the dropdown field in the fields panel."
                      },
                      "fullname": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the fullname field in the fields panel."
                      },
                      "initials": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the initials field in the fields panel."
                      },
                      "hyperlink": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the hyperlink field in the fields panel."
                      },
                      "signature": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the signature field in the fields panel."
                      },
                      "attachment": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the attachment field in the fields panel."
                      },
                      "radiobutton": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "description": "Whether to show the radiobutton field in the fields panel."
                      }
                    },
                    "description": "Settings of the fields panel on the left sidebar. Available for embedded sending, embedded editor, and FreeForm invite."
                  },
                  "sidebar": {
                    "type": "object",
                    "properties": {
                      "background": {
                        "type": "string",
                        "description": "Background color for a signing session sidebar in HEX color code."
                      },
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether the sidebar should be visible or not."
                      }
                    }
                  },
                  "toolbar": {
                    "type": "object",
                    "properties": {
                      "background": {
                        "type": "string",
                        "example": "#ffffff",
                        "description": "Background color of the toolbar in HEX color code."
                      },
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the toolbar in the header."
                      }
                    },
                    "description": "Configuration of the toolbar in the header. Available for embedded sending and embedded editor."
                  },
                  "settings": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Enable/disable the Settings button. Possible values: `true`, `false`."
                      }
                    },
                    "description": "Settings object that contains attributes for the Settings dropdown button."
                  },
                  "auth-page": {
                    "type": "object",
                    "properties": {
                      "check-pin": {
                        "type": "object",
                        "properties": {
                          "phone": {
                            "type": "object",
                            "properties": {
                              "body-text": {
                                "type": "object",
                                "properties": {
                                  "en": {
                                    "type": "string",
                                    "example": "Enter the document password sent you by voice call or sms.",
                                    "maxLength": 900,
                                    "description": "Custom text in English."
                                  },
                                  "es": {
                                    "type": "string",
                                    "example": "Introduce la contraseña del documento que te ha enviado por llamada de voz o sms.",
                                    "maxLength": 900,
                                    "description": "Custom text in Spanish."
                                  },
                                  "fr": {
                                    "type": "string",
                                    "example": "Entrez le mot de passe du document que vous avez reçu par appel vocal ou sms.",
                                    "maxLength": 900,
                                    "description": "Custom text in French."
                                  }
                                },
                                "description": "Custom text displayed for phone/SMS-protected invites."
                              }
                            },
                            "description": "Customizes text for phone/SMS-protected invites."
                          },
                          "password": {
                            "type": "object",
                            "properties": {
                              "body-text": {
                                "type": "object",
                                "properties": {
                                  "en": {
                                    "type": "string",
                                    "example": "Enter the document password below to unlock the document.",
                                    "maxLength": 900,
                                    "description": "Custom text in English."
                                  },
                                  "es": {
                                    "type": "string",
                                    "example": "Introduce la contraseña del documento a continuación para desbloquear el documento.",
                                    "maxLength": 900,
                                    "description": "Custom text in Spanish."
                                  },
                                  "fr": {
                                    "type": "string",
                                    "example": "Entrez le mot de passe du document ci-dessous pour déverrouiller le document.",
                                    "maxLength": 900,
                                    "description": "Custom text in French."
                                  }
                                },
                                "description": "Custom text displayed for password-protected invites."
                              }
                            },
                            "description": "Customizes text for password-protected invites."
                          }
                        },
                        "description": "Customizes text prompting the signer to enter the password."
                      },
                      "header-text": {
                        "type": "object",
                        "properties": {
                          "en": {
                            "type": "string",
                            "example": "{sender_email} invited you to sign {document_name}",
                            "maxLength": 300,
                            "description": "Custom header text in English. Placeholders `{sender_email}` and `{document_name}` are available."
                          },
                          "es": {
                            "type": "string",
                            "example": "{sender_email} te ha invitado a firmar {document_name}",
                            "maxLength": 300,
                            "description": "Custom header text in Spanish. Placeholders `{sender_email}` and `{document_name}` are available."
                          },
                          "fr": {
                            "type": "string",
                            "example": "{sender_email} vous a invité à signer {document_name}",
                            "maxLength": 300,
                            "description": "Custom header text in French. Placeholders `{sender_email}` and `{document_name}` are available."
                          }
                        },
                        "description": "Customizes a header text displayed to the signer on the two-factor authentication page."
                      },
                      "request-pin": {
                        "type": "object",
                        "properties": {
                          "body-text": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "example": "Press the button below to have the password sent to you by voice call or sms message.",
                                "maxLength": 900,
                                "description": "Custom text with instructions in English."
                              },
                              "es": {
                                "type": "string",
                                "example": "Pulsa el botón de abajo para que te envíen la contraseña por llamada de voz o mensaje sms.",
                                "maxLength": 900,
                                "description": "Custom text with instructions in Spanish."
                              },
                              "fr": {
                                "type": "string",
                                "example": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoyé par appel vocal ou sms.",
                                "maxLength": 900,
                                "description": "Custom text with instructions in French."
                              }
                            },
                            "description": "Custom text displayed to the signer with instructions for obtaining a password."
                          }
                        },
                        "description": "Customizes text with instructions for obtaining a password via voice call or SMS. Displayed only for phone/SMS-protected invites."
                      }
                    },
                    "description": "An object that customizes the authentication page for invites protected by two-factor authentication, including phone calls, SMS, and passwords set by the sender."
                  },
                  "navigation": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "string",
                        "description": "Enable/disable the Navigation elements. Possible values: `true`, `false`."
                      }
                    },
                    "description": "Navigation object that contains attributes for the Navigation elements."
                  },
                  "sender-info": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether the **Contact Sender** option on the **More Actions** menu should be visible or not."
                      },
                      "contact-name": {
                        "type": "string",
                        "maxLength": 300,
                        "description": "The name of the sender that should appear if a signer clicks **Contact Sender**."
                      },
                      "contact-email": {
                        "type": "string",
                        "maxLength": 254,
                        "description": "The email of the sender that should appear if a signer clicks **Contact Sender**."
                      }
                    }
                  },
                  "close-button": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "object",
                        "properties": {
                          "editor": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "example": "Save and Close",
                                "maxLength": 50,
                                "description": "Button title in English."
                              },
                              "es": {
                                "type": "string",
                                "example": "Guardar y cerrar",
                                "maxLength": 50,
                                "description": "Button title in Spanish."
                              },
                              "fr": {
                                "type": "string",
                                "example": "Enregistrer et fermer",
                                "maxLength": 50,
                                "description": "Button title in French."
                              }
                            },
                            "description": "Customizes text of the **Save and Close** button in the editor. Available for the embedded editor and embedded sending mode."
                          },
                          "signing": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "example": "Save Progress and Finish Later",
                                "maxLength": 50,
                                "description": "Text in English for signing session."
                              },
                              "es": {
                                "type": "string",
                                "example": "Guardar progresos y terminar más tarde",
                                "maxLength": 50,
                                "description": "Text in Spanish for signing session."
                              },
                              "fr": {
                                "type": "string",
                                "example": "Enregistrer la progression et terminer plus tard",
                                "maxLength": 50,
                                "description": "Text in French for signing session."
                              }
                            },
                            "description": "Customizes text of the **Save Progress and Finish Later** option during the signing session."
                          }
                        },
                        "description": "Localized text for the closing options in signing session, embedded sending and editor modes."
                      },
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether the **Close** button (in the header in view mode) or **Save progress and Finish Later** option (in the **More Actions** menu during the signing session) should be visible."
                      }
                    },
                    "description": "Object that defines the visibility and text for the closing options."
                  },
                  "progress-bar": {
                    "type": "object",
                    "properties": {
                      "default-color": {
                        "type": "string",
                        "description": "Default color of the progress bar."
                      },
                      "completed-color": {
                        "type": "string",
                        "description": "Progress bar color when the signer has completed the invite to sign."
                      }
                    },
                    "description": "Progress bar object that contains attributes for the progress bar elements."
                  },
                  "support-chat": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "string",
                        "description": "Whether the support chat icon should be visible or not."
                      }
                    }
                  },
                  "accessibility": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "Text color for the Accessibility button in hex color code."
                      },
                      "border": {
                        "type": "string",
                        "description": "Border color for the Accessibility button in hex color code."
                      },
                      "enabled": {
                        "type": "boolean",
                        "description": "Whether to enable or disable the accessibility mode. By default accessibility is off."
                      },
                      "background": {
                        "type": "string",
                        "description": "Background color for the Accessibility button in hex color code."
                      },
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether to show or hide the accessibility option in the **More Actions** menu."
                      },
                      "hover-color": {
                        "type": "string",
                        "description": "Hover over text button color in hex color code."
                      },
                      "active-color": {
                        "type": "string",
                        "description": "Text button color in hex color code when active."
                      },
                      "hover-border": {
                        "type": "string",
                        "description": "Hover over border button color in hex color code."
                      },
                      "active-border": {
                        "type": "string",
                        "description": "Border button color in hex color code when active."
                      },
                      "hover-background": {
                        "type": "string",
                        "description": "Hover over background button color in hex color code."
                      },
                      "active-background": {
                        "type": "string",
                        "description": "Background button color in hex color code when active."
                      }
                    },
                    "description": "Accessibility object that contains attributes for the Accessibility button."
                  },
                  "complete-page": {
                    "type": "object",
                    "properties": {
                      "decline": {
                        "type": "object",
                        "properties": {
                          "body-text": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "description": "Decline main text in English."
                              },
                              "es": {
                                "type": "string",
                                "description": "Decline main text in Spanish."
                              },
                              "fr": {
                                "type": "string",
                                "description": "Decline main text in French."
                              }
                            }
                          },
                          "header-text": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "description": "Decline header text in English."
                              },
                              "es": {
                                "type": "string",
                                "description": "Decline header text in Spanish."
                              },
                              "fr": {
                                "type": "string",
                                "description": "Decline header text in French."
                              }
                            }
                          }
                        },
                        "description": "Custom text that appears on the page after a signer confirms declining a document."
                      },
                      "success": {
                        "type": "object",
                        "properties": {
                          "body-text": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "description": "Success main text in English."
                              },
                              "es": {
                                "type": "string",
                                "description": "Success main text in Spanish."
                              },
                              "fr": {
                                "type": "string",
                                "description": "Success main text in French."
                              }
                            }
                          },
                          "header-text": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string",
                                "description": "Success header text in English."
                              },
                              "es": {
                                "type": "string",
                                "description": "Success header text in Spanish."
                              },
                              "fr": {
                                "type": "string",
                                "description": "Success header text in French."
                              }
                            }
                          }
                        },
                        "description": "Custom text that appears on the page after a signer completes a document."
                      },
                      "registration": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "description": "Whether the registration button on the completion page should be visible or not for new users."
                          }
                        }
                      },
                      "button-download": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "description": "Whether the button to download a document on the completion page should be visible or not."
                          }
                        }
                      },
                      "button-to-signnow": {
                        "type": "object",
                        "properties": {
                          "visibility": {
                            "type": "boolean",
                            "description": "Whether the button with a link to signNow on the completion page should be visible or not."
                          }
                        }
                      }
                    },
                    "description": "Customization of the page that opens after a document is signed or declined."
                  },
                  "document-name": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the document name in the header."
                      }
                    },
                    "description": "Configuration of the document name. Available for embedded signing, embedded sending (in the editor), embedded editor, FreeForm invite, and embedded view."
                  },
                  "editing-tools": {
                    "type": "object",
                    "properties": {
                      "background": {
                        "type": "string",
                        "example": "#ffffff",
                        "description": "Background color of the editing tools panel in HEX color code."
                      }
                    },
                    "description": "Configuration of the left-side editing tools panel. Available for embedded sending, embedded editor, and FreeForm invite."
                  },
                  "decline-button": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether the **Decline** option should be visible in the **More Actions** menu."
                      }
                    },
                    "description": "An object that determines the availability of the decline option to the recipient."
                  },
                  "default-fields": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "example": true,
                        "description": "Whether to show the Default fields tab in the left sidebar. When set to `false`, the Custom fields tab becomes the only tab and the Default / Custom fields tab switcher disappears. The default value is `true`."
                      }
                    },
                    "description": "Configuration of the Default fields tab. Available for embedded sending and embedded editor."
                  },
                  "field-settings": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "example": true,
                        "description": "Whether to show the Element settings button on the right side of the header. The default value is true."
                      }
                    },
                    "description": "Configuration of the Element settings in the right sidebar. The Element settings allows users to customize field settings. Available for embedded sending and embedded editor."
                  },
                  "page-dimension": {
                    "type": "object",
                    "properties": {
                      "percent": {
                        "type": "integer",
                        "maximum": 300,
                        "minimum": 10,
                        "multipleOf": 10,
                        "description": "The dimension of the signing session page when it is opened in percents."
                      }
                    }
                  },
                  "preview-button": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the Open Preview button in the toolbar."
                      }
                    },
                    "description": "Configuration of the Open Preview button in the toolbar. Available for embedded sending and embedded editor."
                  },
                  "complete-footer": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether the footer about completion of all the required fields should be visible or not."
                      },
                      "custom-text": {
                        "type": "object",
                        "properties": {
                          "en": {
                            "type": "string",
                            "description": "Footer text in English."
                          },
                          "es": {
                            "type": "string",
                            "description": "Footer text in Spanish."
                          },
                          "fr": {
                            "type": "string",
                            "description": "Footer text in French."
                          }
                        }
                      }
                    }
                  },
                  "continue-button": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the Continue button in the header."
                      }
                    },
                    "description": "Configuration of the Continue button. Available for embedded sending."
                  },
                  "download-button": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Defines the visibility of the **Download** and **History** buttons during the signing session and **Download**, **Download With History** and **Document History** buttons in view mode."
                      }
                    },
                    "description": "An object that defines the download options for the recipient."
                  },
                  "request-payment": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the Payment Request option in the settings dropdown."
                      }
                    },
                    "description": "Configuration of the request payment option in the editor. Available for embedded sending and embedded editor."
                  },
                  "signing-settings": {
                    "type": "object",
                    "properties": {
                      "guide-signers-only-through-required-fields": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to guide signers through required fields only. `true` - the **Go Through Required Fields** checkbox is checked in **More Actions**; the signer will be guided only through required fields; `false` – the **Go Through Required Fields** checkbox is not checked in **More Actions**; the signer will be guided through all fields."
                      },
                      "auto-apply-signatures-and-initials-to-document-fields": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to offer a signer to automatically apply signature and initials to all corresponding empty fields in a document after filling out the first field. `true` – the signer will be prompted to automatically fill all empty signature and initials fields after completing the first one; `false` – the signer will need to fill each signature and initials field individually; no prompt will be shown. "
                      }
                    },
                    "description": "Settings configured for the signing experience."
                  },
                  "manage-recipients": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the Manage Recipients link."
                      }
                    },
                    "description": "Configuration of the Manage Recipients link. Available for embedded sending and embedded editor."
                  },
                  "step-progress-bar": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the steps progress bar in the header."
                      }
                    },
                    "description": "Configuration of the steps progress bar. Available for embedded sending and embedded editor."
                  },
                  "thumbnails-button": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether to show the Thumbnails button in the toolbar."
                      }
                    },
                    "description": "Configuration of the Thumbnails button in the toolbar. Available for embedded sending and embedded editor."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "settings": {
                      "visibility": "true"
                    },
                    "navigation": {
                      "visibility": "true"
                    },
                    "progress-bar": {
                      "default-color": "#232323",
                      "completed-color": "#232323"
                    },
                    "accessibility": {
                      "color": "#232323",
                      "border": "#232323",
                      "enabled": false,
                      "background": "#232323",
                      "visibility": "true",
                      "hover-color": "#232323",
                      "active-color": "#232323",
                      "hover-border": "#232323",
                      "active-border": "#232323",
                      "hover-background": "#232323",
                      "active-background": "#232323"
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "fields": {
                      "date": {
                        "visibility": true
                      },
                      "text": {
                        "visibility": true
                      },
                      "email": {
                        "visibility": true
                      },
                      "stamp": {
                        "visibility": true
                      },
                      "formula": {
                        "visibility": true
                      },
                      "checkbox": {
                        "visibility": true
                      },
                      "dropdown": {
                        "visibility": true
                      },
                      "fullname": {
                        "visibility": true
                      },
                      "initials": {
                        "visibility": true
                      },
                      "hyperlink": {
                        "visibility": true
                      },
                      "signature": {
                        "visibility": true
                      },
                      "attachment": {
                        "visibility": true
                      },
                      "radiobutton": {
                        "visibility": true
                      }
                    },
                    "sidebar": {
                      "background": "#ffffff",
                      "visibility": true
                    },
                    "toolbar": {
                      "background": "#ffffff",
                      "visibility": true
                    },
                    "settings": {
                      "visibility": true
                    },
                    "auth-page": {
                      "check-pin": {
                        "phone": {
                          "body-text": {
                            "en": "Enter the document password sent you by voice call or sms.",
                            "es": "Introduce la contraseña del documento que te ha enviado por llamada de voz o sms.",
                            "fr": "Entrez le mot de passe du document que vous avez reçu par appel vocal ou sms."
                          }
                        },
                        "password": {
                          "body-text": {
                            "en": "Enter the document password below to unlock the document.",
                            "es": "Introduce la contraseña del documento a continuación para desbloquear el documento.",
                            "fr": "Entrez le mot de passe du document ci-dessous pour déverrouiller le document."
                          }
                        }
                      },
                      "header-text": {
                        "en": "{sender_email} invited you to sign {document_name}",
                        "es": "{sender_email} te ha invitado a firmar {document_name}",
                        "fr": "{sender_email} vous a invité à signer {document_name}"
                      },
                      "request-pin": {
                        "body-text": {
                          "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
                          "es": "Pulsa el botón de abajo para que te envíen la contraseña por llamada de voz o mensaje sms.",
                          "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoyé par appel vocal ou sms."
                        }
                      }
                    },
                    "navigation": {
                      "visibility": true
                    },
                    "sender-info": {
                      "visibility": true,
                      "contact-name": "Contact Name",
                      "contact-email": "contact@email.com"
                    },
                    "close-button": {
                      "title": {
                        "editor": {
                          "en": "Save and Close",
                          "es": "Guardar y cerrar",
                          "fr": "Enregistrer et fermer"
                        },
                        "signing": {
                          "en": "Save Progress and Finish Later",
                          "es": "Guardar progresos y terminar más tarde",
                          "fr": "Enregistrer la progression et terminer plus tard"
                        }
                      },
                      "visibility": true
                    },
                    "progress-bar": {
                      "default-color": "#e3e6e9",
                      "completed-color": "#0777cf"
                    },
                    "support-chat": {
                      "visibility": true
                    },
                    "accessibility": {
                      "color": "#546470",
                      "border": "#ffffff",
                      "enabled": false,
                      "background": "#ffffff",
                      "visibility": true,
                      "hover-color": "#546470",
                      "active-color": "#546470",
                      "hover-border": "#f1f2f4",
                      "active-border": "#dadee2",
                      "hover-background": "#f1f2f4",
                      "active-background": "#dadee2"
                    },
                    "complete-page": {
                      "decline": {
                        "body-text": {
                          "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you’d like to. Contact the sender to find out what to do next.",
                          "es": "No has dado tu consentimiento para hacer negocios electrónicamente con el remitente. La Divulgación de Firma Electrónica aún se puede aceptar antes de que el remitente cancele la invitación. Puedes encontrar la invitación en tu bandeja de entrada y en la cuenta de signNow. Aún puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qué hacer a continuación.",
                          "fr": "Vous n’avez pas consenti à traiter par voie électronique avec l’expéditeur. La Divulgation par signature électronique peut toujours être acceptée avant que l’expéditeur n’annule l’invitation. L’invitation se trouve dans votre boîte de réception et dans votre compte signNow. Vous pouvez néanmoins télécharger le document si vous le souhaitez. Contactez l’expéditeur pour connaître les prochaines étapes."
                        },
                        "header-text": {
                          "en": "You've declined the Electronic Signature Disclosure agreement",
                          "es": "Has rechazado el acuerdo de Divulgación de firmas electrónicas",
                          "fr": "Vous avez refusé l’accord de Divulgation par signature électronique"
                        }
                      },
                      "success": {
                        "body-text": {
                          "en": "The sender will be notified and receive the signed document.",
                          "es": "El remitente recibirá una notificación y el documento firmado. También se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
                          "fr": "L'expéditeur sera informé et recevra le document signé. Une copie a également été envoyée dans votre boîte de réception et enregistrée dans votre compte signNow."
                        },
                        "header-text": {
                          "en": "You've filled out and signed the document",
                          "es": "Has completado y firmado el documento",
                          "fr": "Vous avez rempli et signé le document"
                        }
                      },
                      "registration": {
                        "visibility": true
                      },
                      "button-download": {
                        "visibility": true
                      },
                      "button-to-signnow": {
                        "visibility": false
                      }
                    },
                    "document-name": {
                      "visibility": true
                    },
                    "editing-tools": {
                      "background": "#ffffff"
                    },
                    "decline-button": {
                      "visibility": true
                    },
                    "default-fields": {
                      "visibility": true
                    },
                    "field-settings": {
                      "visibility": true
                    },
                    "page-dimension": {
                      "percent": 150
                    },
                    "preview-button": {
                      "visibility": true
                    },
                    "complete-footer": {
                      "visibility": true,
                      "custom-text": {
                        "en": "You've completed all required fields. Review your document and click Finish.",
                        "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
                        "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
                      }
                    },
                    "continue-button": {
                      "visibility": true
                    },
                    "download-button": {
                      "visibility": true
                    },
                    "request-payment": {
                      "visibility": true
                    },
                    "signing-settings": {
                      "guide-signers-only-through-required-fields": true,
                      "auto-apply-signatures-and-initials-to-document-fields": true
                    },
                    "manage-recipients": {
                      "visibility": true
                    },
                    "step-progress-bar": {
                      "visibility": true
                    },
                    "thumbnails-button": {
                      "visibility": true
                    },
                    "decline-invite-text": {
                      "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
                      "es": "Estás a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perderán.",
                      "fr": "Vous êtes sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apportées à ce document seront perdues."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-organizations-organization-id-brands-brand-id-resources-editor",
        "summary": "Get org editor brand resource",
        "description": "This endpoint allows users to retrieve organization branding for an editor resource.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "fields": {
                          "type": "object",
                          "properties": {
                            "date": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "text": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "email": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "stamp": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "formula": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "checkbox": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "dropdown": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "fullname": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "initials": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "hyperlink": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "signature": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "attachment": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "radiobutton": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            }
                          }
                        },
                        "sidebar": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "type": "string"
                            },
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "toolbar": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "type": "string"
                            },
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "settings": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "auth-page": {
                          "type": "object",
                          "properties": {
                            "check-pin": {
                              "type": "object",
                              "properties": {
                                "phone": {
                                  "type": "object",
                                  "properties": {
                                    "body-text": {
                                      "type": "object",
                                      "properties": {
                                        "en": {
                                          "type": "string"
                                        },
                                        "es": {
                                          "type": "string"
                                        },
                                        "fr": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                },
                                "password": {
                                  "type": "object",
                                  "properties": {
                                    "body-text": {
                                      "type": "object",
                                      "properties": {
                                        "en": {
                                          "type": "string"
                                        },
                                        "es": {
                                          "type": "string"
                                        },
                                        "fr": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "header-text": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                },
                                "fr": {
                                  "type": "string"
                                }
                              }
                            },
                            "request-pin": {
                              "type": "object",
                              "properties": {
                                "body-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "navigation": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "sender-info": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            },
                            "contact-name": {
                              "type": "string"
                            },
                            "contact-email": {
                              "type": "string"
                            }
                          }
                        },
                        "close-button": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "object",
                              "properties": {
                                "editor": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "signing": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            },
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "progress-bar": {
                          "type": "object",
                          "properties": {
                            "default-color": {
                              "type": "string"
                            },
                            "completed-color": {
                              "type": "string"
                            }
                          }
                        },
                        "support-chat": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "accessibility": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string"
                            },
                            "border": {
                              "type": "string"
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "background": {
                              "type": "string"
                            },
                            "visibility": {
                              "type": "boolean"
                            },
                            "hover-color": {
                              "type": "string"
                            },
                            "active-color": {
                              "type": "string"
                            },
                            "hover-border": {
                              "type": "string"
                            },
                            "active-border": {
                              "type": "string"
                            },
                            "hover-background": {
                              "type": "string"
                            },
                            "active-background": {
                              "type": "string"
                            }
                          }
                        },
                        "complete-page": {
                          "type": "object",
                          "properties": {
                            "decline": {
                              "type": "object",
                              "properties": {
                                "body-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "header-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            },
                            "success": {
                              "type": "object",
                              "properties": {
                                "body-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "header-text": {
                                  "type": "object",
                                  "properties": {
                                    "en": {
                                      "type": "string"
                                    },
                                    "es": {
                                      "type": "string"
                                    },
                                    "fr": {
                                      "type": "string"
                                    }
                                  }
                                }
                              }
                            },
                            "registration": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "button-download": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "button-to-signnow": {
                              "type": "object",
                              "properties": {
                                "visibility": {
                                  "type": "boolean"
                                }
                              }
                            }
                          }
                        },
                        "document-name": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "editing-tools": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "type": "string"
                            }
                          }
                        },
                        "decline-button": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "default-fields": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "field-settings": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "page-dimension": {
                          "type": "object",
                          "properties": {
                            "percent": {
                              "type": "integer"
                            }
                          }
                        },
                        "preview-button": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "complete-footer": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            },
                            "custom-text": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                },
                                "fr": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "continue-button": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "download-button": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "request-payment": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "signing-settings": {
                          "type": "object",
                          "properties": {
                            "guide-signers-only-through-required-fields": {
                              "type": "boolean"
                            },
                            "auto-apply-signatures-and-initials-to-document-fields": {
                              "type": "boolean"
                            }
                          }
                        },
                        "manage-recipients": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "step-progress-bar": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "thumbnails-button": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "decline-invite-text": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "string"
                            },
                            "es": {
                              "type": "string"
                            },
                            "fr": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "fields": {
                          "date": {
                            "visibility": true
                          },
                          "text": {
                            "visibility": true
                          },
                          "email": {
                            "visibility": true
                          },
                          "stamp": {
                            "visibility": true
                          },
                          "formula": {
                            "visibility": true
                          },
                          "checkbox": {
                            "visibility": true
                          },
                          "dropdown": {
                            "visibility": true
                          },
                          "fullname": {
                            "visibility": true
                          },
                          "initials": {
                            "visibility": true
                          },
                          "hyperlink": {
                            "visibility": true
                          },
                          "signature": {
                            "visibility": true
                          },
                          "attachment": {
                            "visibility": true
                          },
                          "radiobutton": {
                            "visibility": true
                          }
                        },
                        "sidebar": {
                          "background": "#ffffff",
                          "visibility": true
                        },
                        "toolbar": {
                          "background": "#ffffff",
                          "visibility": true
                        },
                        "settings": {
                          "visibility": true
                        },
                        "auth-page": {
                          "check-pin": {
                            "phone": {
                              "body-text": {
                                "en": "Enter the document password sent you by voice call or sms.",
                                "es": "Introduce la contraseña del documento que te ha enviado por llamada de voz o sms.",
                                "fr": "Entrez le mot de passe du document que vous avez reçu par appel vocal ou sms."
                              }
                            },
                            "password": {
                              "body-text": {
                                "en": "Enter the document password below to unlock the document.",
                                "es": "Introduce la contraseña del documento a continuación para desbloquear el documento.",
                                "fr": "Entrez le mot de passe du document ci-dessous pour déverrouiller le document."
                              }
                            }
                          },
                          "header-text": {
                            "en": "{sender_email} invited you to sign {document_name}",
                            "es": "{sender_email} te ha invitado a firmar {document_name}",
                            "fr": "{sender_email} vous a invité à signer {document_name}"
                          },
                          "request-pin": {
                            "body-text": {
                              "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
                              "es": "Pulsa el botón de abajo para que te envíen la contraseña por llamada de voz o mensaje sms.",
                              "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoyé par appel vocal ou sms."
                            }
                          }
                        },
                        "navigation": {
                          "visibility": true
                        },
                        "sender-info": {
                          "visibility": true,
                          "contact-name": "Contact Name",
                          "contact-email": "contact@email.com"
                        },
                        "close-button": {
                          "visibility": false
                        },
                        "progress-bar": {
                          "default-color": "#e3e6e9",
                          "completed-color": "#0777cf"
                        },
                        "support-chat": {
                          "visibility": true
                        },
                        "accessibility": {
                          "color": "#546470",
                          "border": "#ffffff",
                          "enabled": false,
                          "background": "#ffffff",
                          "visibility": true,
                          "hover-color": "#546470",
                          "active-color": "#546470",
                          "hover-border": "#f1f2f4",
                          "active-border": "#dadee2",
                          "hover-background": "#f1f2f4",
                          "active-background": "#dadee2"
                        },
                        "complete-page": {
                          "decline": {
                            "body-text": {
                              "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you’d like to. Contact the sender to find out what to do next.",
                              "es": "No has dado tu consentimiento para hacer negocios electrónicamente con el remitente. La Divulgación de Firma Electrónica aún se puede aceptar antes de que el remitente cancele la invitación. Puedes encontrar la invitación en tu bandeja de entrada y en la cuenta de signNow. Aún puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qué hacer a continuación.",
                              "fr": "Vous n’avez pas consenti à traiter par voie électronique avec l’expéditeur. La Divulgation par signature électronique peut toujours être acceptée avant que l’expéditeur n’annule l’invitation. L’invitation se trouve dans votre boîte de réception et dans votre compte signNow. Vous pouvez néanmoins télécharger le document si vous le souhaitez. Contactez l’expéditeur pour connaître les prochaines étapes."
                            },
                            "header-text": {
                              "en": "You've declined the Electronic Signature Disclosure agreement",
                              "es": "Has rechazado el acuerdo de Divulgación de firmas electrónicas",
                              "fr": "Vous avez refusé l’accord de Divulgation par signature électronique"
                            }
                          },
                          "success": {
                            "body-text": {
                              "en": "The sender will be notified and receive the signed document.",
                              "es": "El remitente recibirá una notificación y el documento firmado. También se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
                              "fr": "L'expéditeur sera informé et recevra le document signé. Une copie a également été envoyée dans votre boîte de réception et enregistrée dans votre compte signNow."
                            },
                            "header-text": {
                              "en": "You've filled out and signed the document",
                              "es": "Has completado y firmado el documento",
                              "fr": "Vous avez rempli et signé le document"
                            }
                          },
                          "registration": {
                            "visibility": true
                          },
                          "button-download": {
                            "visibility": true
                          },
                          "button-to-signnow": {
                            "visibility": false
                          }
                        },
                        "document-name": {
                          "visibility": true
                        },
                        "editing-tools": {
                          "background": "#ffffff"
                        },
                        "decline-button": {
                          "visibility": true
                        },
                        "default-fields": {
                          "visibility": true
                        },
                        "field-settings": {
                          "visibility": true
                        },
                        "page-dimension": {
                          "percent": 150
                        },
                        "preview-button": {
                          "visibility": true
                        },
                        "complete-footer": {
                          "visibility": true,
                          "custom-text": {
                            "en": "You've completed all required fields. Review your document and click Finish.",
                            "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
                            "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
                          }
                        },
                        "continue-button": {
                          "visibility": true
                        },
                        "download-button": {
                          "visibility": true
                        },
                        "request-payment": {
                          "visibility": true
                        },
                        "signing-settings": {
                          "guide-signers-only-through-required-fields": true,
                          "auto-apply-signatures-and-initials-to-document-fields": true
                        },
                        "manage-recipients": {
                          "visibility": true
                        },
                        "step-progress-bar": {
                          "visibility": true
                        },
                        "thumbnails-button": {
                          "visibility": true
                        },
                        "decline-invite-text": {
                          "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
                          "es": "Estás a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perderán.",
                          "fr": "Vous êtes sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apportées à ce document seront perdues."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "fields": {
                          "date": {
                            "visibility": true
                          },
                          "text": {
                            "visibility": true
                          },
                          "email": {
                            "visibility": true
                          },
                          "stamp": {
                            "visibility": true
                          },
                          "formula": {
                            "visibility": true
                          },
                          "checkbox": {
                            "visibility": true
                          },
                          "dropdown": {
                            "visibility": true
                          },
                          "fullname": {
                            "visibility": true
                          },
                          "initials": {
                            "visibility": true
                          },
                          "hyperlink": {
                            "visibility": true
                          },
                          "signature": {
                            "visibility": true
                          },
                          "attachment": {
                            "visibility": true
                          },
                          "radiobutton": {
                            "visibility": true
                          }
                        },
                        "sidebar": {
                          "background": "#ffffff",
                          "visibility": true
                        },
                        "toolbar": {
                          "background": "#ffffff",
                          "visibility": true
                        },
                        "settings": {
                          "visibility": true
                        },
                        "auth-page": {
                          "check-pin": {
                            "phone": {
                              "body-text": {
                                "en": "Enter the document password sent you by voice call or sms.",
                                "es": "Introduce la contraseña del documento que te ha enviado por llamada de voz o sms.",
                                "fr": "Entrez le mot de passe du document que vous avez reçu par appel vocal ou sms."
                              }
                            },
                            "password": {
                              "body-text": {
                                "en": "Enter the document password below to unlock the document.",
                                "es": "Introduce la contraseña del documento a continuación para desbloquear el documento.",
                                "fr": "Entrez le mot de passe du document ci-dessous pour déverrouiller le document."
                              }
                            }
                          },
                          "header-text": {
                            "en": "{sender_email} invited you to sign {document_name}",
                            "es": "{sender_email} te ha invitado a firmar {document_name}",
                            "fr": "{sender_email} vous a invité à signer {document_name}"
                          },
                          "request-pin": {
                            "body-text": {
                              "en": "Press the button bellow to have the password sent to you by voice call or sms message.",
                              "es": "Pulsa el botón de abajo para que te envíen la contraseña por llamada de voz o mensaje sms.",
                              "fr": "Appuyez sur le bouton ci-dessous pour que le mot de passe vous soit envoyé par appel vocal ou sms."
                            }
                          }
                        },
                        "navigation": {
                          "visibility": true
                        },
                        "sender-info": {
                          "visibility": true,
                          "contact-name": "Contact Name",
                          "contact-email": "contact@email.com"
                        },
                        "close-button": {
                          "visibility": false
                        },
                        "progress-bar": {
                          "default-color": "#e3e6e9",
                          "completed-color": "#0777cf"
                        },
                        "support-chat": {
                          "visibility": true
                        },
                        "accessibility": {
                          "color": "#546470",
                          "border": "#ffffff",
                          "enabled": false,
                          "background": "#ffffff",
                          "visibility": true,
                          "hover-color": "#546470",
                          "active-color": "#546470",
                          "hover-border": "#f1f2f4",
                          "active-border": "#dadee2",
                          "hover-background": "#f1f2f4",
                          "active-background": "#dadee2"
                        },
                        "complete-page": {
                          "decline": {
                            "body-text": {
                              "en": "You did not consent to do business electronically with the sender. The Electronic Signature Disclosure can still be accepted before the sender cancels the invite. The invite can be found in your inbox and signNow account. You can still download the document if you’d like to. Contact the sender to find out what to do next.",
                              "es": "No has dado tu consentimiento para hacer negocios electrónicamente con el remitente. La Divulgación de Firma Electrónica aún se puede aceptar antes de que el remitente cancele la invitación. Puedes encontrar la invitación en tu bandeja de entrada y en la cuenta de signNow. Aún puedes descargar el documento si lo deseas. Ponte en contacto con el remitente para saber qué hacer a continuación.",
                              "fr": "Vous n’avez pas consenti à traiter par voie électronique avec l’expéditeur. La Divulgation par signature électronique peut toujours être acceptée avant que l’expéditeur n’annule l’invitation. L’invitation se trouve dans votre boîte de réception et dans votre compte signNow. Vous pouvez néanmoins télécharger le document si vous le souhaitez. Contactez l’expéditeur pour connaître les prochaines étapes."
                            },
                            "header-text": {
                              "en": "You've declined the Electronic Signature Disclosure agreement",
                              "es": "Has rechazado el acuerdo de Divulgación de firmas electrónicas",
                              "fr": "Vous avez refusé l’accord de Divulgation par signature électronique"
                            }
                          },
                          "success": {
                            "body-text": {
                              "en": "The sender will be notified and receive the signed document.",
                              "es": "El remitente recibirá una notificación y el documento firmado. También se ha enviado una copia a tu bandeja de entrada y se ha guardado en tu cuenta de signNow.",
                              "fr": "L'expéditeur sera informé et recevra le document signé. Une copie a également été envoyée dans votre boîte de réception et enregistrée dans votre compte signNow."
                            },
                            "header-text": {
                              "en": "You've filled out and signed the document",
                              "es": "Has completado y firmado el documento",
                              "fr": "Vous avez rempli et signé le document"
                            }
                          },
                          "registration": {
                            "visibility": true
                          },
                          "button-download": {
                            "visibility": true
                          },
                          "button-to-signnow": {
                            "visibility": false
                          }
                        },
                        "document-name": {
                          "visibility": true
                        },
                        "editing-tools": {
                          "background": "#ffffff"
                        },
                        "decline-button": {
                          "visibility": true
                        },
                        "default-fields": {
                          "visibility": true
                        },
                        "field-settings": {
                          "visibility": true
                        },
                        "page-dimension": {
                          "percent": 150
                        },
                        "preview-button": {
                          "visibility": true
                        },
                        "complete-footer": {
                          "visibility": true,
                          "custom-text": {
                            "en": "You've completed all required fields. Review your document and click Finish.",
                            "es": "Has completado todos los campos obligatorios. Revisa tu documento y haz clic en Finalizar.",
                            "fr": "Vous avez rempli tous les champs obligatoires. Relisez votre document et cliquez sur Terminer."
                          }
                        },
                        "continue-button": {
                          "visibility": true
                        },
                        "download-button": {
                          "visibility": true
                        },
                        "request-payment": {
                          "visibility": true
                        },
                        "signing-settings": {
                          "guide-signers-only-through-required-fields": true,
                          "auto-apply-signatures-and-initials-to-document-fields": true
                        },
                        "manage-recipients": {
                          "visibility": true
                        },
                        "step-progress-bar": {
                          "visibility": true
                        },
                        "thumbnails-button": {
                          "visibility": true
                        },
                        "decline-invite-text": {
                          "en": "You're about to decline to sign {document_name} from {invite_owner_email}. Note that all the changes you've made to this document will be lost.",
                          "es": "Estás a punto de rechazar para firmar {document_name} de {invite_owner_email}. Ten en cuenta en cuenta que todos los cambios que hayas realizado en este documento se perderán.",
                          "fr": "Vous êtes sur le point de refuser de signer {document_name} de {invite_owner_email}. Notez que toutes les modifications que vous avez apportées à ce document seront perdues."
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The user is neither admin, nor moderator of the organization.\n* The brand exists but it is not an organization brand.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  },
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not found.\n* `brand_id` cannot be null.\n* Editor resource for this `brand_id` doesn't exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  },
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/editor"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  },
                  "Editor resource not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002036,
                          "message": "Brand resource not found. Resource name: editor."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-organizations-organization-id-brands-brand-id-resources-editor",
        "summary": "Delete org editor brand resource",
        "description": "This endpoint allows users to delete an editor brand resource for an organization. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The user is neither admin, nor moderator of the organization.\n* The brand exists but it is not an organization brand.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not found.\n* `brand_id` cannot be null.\n* Editor resource for this `brand_id` doesn't exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/general"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  },
                  "Editor resource not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002036,
                          "message": "Brand resource not found. Resource name: editor."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{organization_id}/brands/{brand_id}/resources/email": {
      "put": {
        "operationId": "put-v2-organizations-organization-id-brands-brand-id-resources-email",
        "summary": "Create org email brand resource",
        "description": "This endpoint allows users to create an email brand resource for an organization. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n* Brand resource logo already exists for this `brand_id`\n* Request without body\n*  `position` is incorrect\n*  `position` is not a string\n*  `color` is not a string\n*  `color` is not a HEX color code\n*  `background` is not a string\n*  `background` is not a HEX color code\n*  `subject-text` is not a string\n*  `subject-text` is longer than 300 characters\n*  `contact-sender` is not a string\n*  `contact-sender` is not a valid email address\n*  `from-email` is not a string\n*  `from-email` is not a valid email address\n*  `header-text` is not a string\n*  `header-text` is longer than 300 characters\n*  `body_message` is not a string\n*  `body_message` is longer than 300 characters\n*  `footer_message` is not a string\n*  `footer_message` is longer than 300 characters\n*  `signnow_references` is not a boolean\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002006,
                          "message": "The 'color' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "position not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002047,
                          "message": "The 'position' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Request without body": {
                    "value": {
                      "errors": [
                        {
                          "code": 2500202,
                          "message": "Invalid payload given."
                        }
                      ]
                    }
                  },
                  "header-text too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002059,
                          "message": "The 'header-text' attribute must be less, than 300 characters."
                        }
                      ]
                    }
                  },
                  "background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002004,
                          "message": "The 'background' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "body_message too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002060,
                          "message": "The 'body_message' attribute must be less, than 300 characters."
                        }
                      ]
                    }
                  },
                  "from-email not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002050,
                          "message": "The 'from-email' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "subject-text too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002058,
                          "message": "The 'subject' attribute must be less, than 300 characters."
                        }
                      ]
                    }
                  },
                  "header-text not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002052,
                          "message": "The 'header-text' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "body_message not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002053,
                          "message": "The 'body_message' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "footer_message too long": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002061,
                          "message": "The 'footer_message' attribute must be less, than 300 characters."
                        }
                      ]
                    }
                  },
                  "subject-text not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002049,
                          "message": "The 'subject' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect position value": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002048,
                          "message": "The 'position' attribute is invalid, allowed values: left, middle, right."
                        }
                      ]
                    }
                  },
                  "color not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002007,
                          "message": "The 'color' attribute format is invalid."
                        }
                      ]
                    }
                  },
                  "contact-sender not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002056,
                          "message": "The 'sender_email' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "footer_message not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002054,
                          "message": "The 'footer_message' attribute must be a string."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "from-email not email address": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002051,
                          "message": "The 'from-email' attribute must be a valid email address."
                        }
                      ]
                    }
                  },
                  "Email resource already exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002035,
                          "message": "Brand resource already exists. Resource name: email."
                        }
                      ]
                    }
                  },
                  "background not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002005,
                          "message": "The 'background' attribute format is invalid."
                        }
                      ]
                    }
                  },
                  "signnow_references not boolean": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002055,
                          "message": "The 'signnow_references' attribute must be a boolean."
                        }
                      ]
                    }
                  },
                  "contact-sender not email address": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002057,
                          "message": "The 'sender_email' attribute must be a valid email address."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The brand exists but it is not an organization brand.\n* The user is neither admin, nor moderator of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not found.\n* `brand_id` cannot be null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/email"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "Sender's email address."
                  },
                  "logo": {
                    "type": "object",
                    "properties": {
                      "position": {
                        "type": "string",
                        "description": "Logo position on the email page. Possible values: `left`, `middle`, and `right`."
                      }
                    },
                    "description": "Logo object that contains attributes for logo positioning on the email page."
                  },
                  "buttons": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "Button main color in HEX color code."
                      },
                      "background": {
                        "type": "string",
                        "description": "Button background in HEX color code."
                      }
                    },
                    "description": "Button object that contains button attributes."
                  },
                  "subject": {
                    "type": "string",
                    "description": "Email subject."
                  },
                  "body_header": {
                    "type": "string",
                    "description": "Email header text. Up to 300 symbols."
                  },
                  "body_message": {
                    "type": "string",
                    "description": "Body text. Up to 300 symbols."
                  },
                  "sender_email": {
                    "type": "string",
                    "description": "Valid email address for `Contact Sender` button."
                  },
                  "footer_message": {
                    "type": "string",
                    "description": "Footer text. Up to 300 symbols."
                  },
                  "signnow_references": {
                    "type": "boolean",
                    "description": "Whether or not to show links to SignNow mobile apps."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "from": "valid@email",
                    "logo": {
                      "position": "left|middle|right"
                    },
                    "buttons": {
                      "color": "#232323",
                      "background": "#232323"
                    },
                    "subject": "Some subject text.",
                    "body_header": "any text",
                    "body_message": "any text",
                    "sender_email": "valid@email",
                    "footer_message": "any text",
                    "signnow_references": true
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "from": "from@email.com",
                    "logo": {
                      "position": "left"
                    },
                    "buttons": {
                      "color": "#232323",
                      "background": "#232323"
                    },
                    "subject": "Subject text",
                    "body_header": "Body header text",
                    "body_message": "Body text",
                    "sender_email": "sender@email.com",
                    "footer_message": "Footer text",
                    "signnow_references": true
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-organizations-organization-id-brands-brand-id-resources-email",
        "summary": "Get org email brand resource",
        "description": "This endpoint allows users to retrieve organization branding for an email resource.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "from": "from@email.com",
                        "logo": {
                          "position": "left"
                        },
                        "buttons": {
                          "color": "#232323",
                          "background": "#232323"
                        },
                        "subject": "Subject text",
                        "body_header": "Body header text",
                        "body_message": "Body text",
                        "sender_email": "sender@email.com",
                        "footer_message": "Footer text",
                        "signnow_references": true
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is neither admin, nor moderator of the organization.\n* The user is authorized with a token from an app they don’t own.\n* The brand exists but it is not an organization brand.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not found.\n* `brand_id` cannot be null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/email"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-organizations-organization-id-brands-brand-id-resources-email",
        "summary": "Delete org email brand resource",
        "description": "This endpoint allows users to delete an email brand resource for an organization. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The brand exists but it is not an organization brand.\n* The user is neither admin, nor moderator of the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not found.\n* `brand_id` cannot be null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/email"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{organization_id}/brands/{brand_id}/resources/general": {
      "put": {
        "operationId": "put-v2-organizations-organization-id-brands-brand-id-resources-general",
        "summary": "Create org general brand resource",
        "description": "This endpoint allows users to create a general brand resource for an organization. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* The request body is empty.\n* `background` is not a string.\n* `background` is not a HEX color code.\n* `color` is not a string.\n* `color` is not a HEX color code.\n* `border` is not a string.\n* `border` is not a HEX color code.\n* `hover-background` is not a string.\n* `hover-background` is not a HEX color code.\n* `hover-color` is not a string.\n* `hover-color` is not a HEX color code.\n* `hover-border` is not a string.\n* `hover-border` is not a HEX color code.\n* `active-background` is not a string.\n* `active-background` is not a HEX color code.\n* `active-color` is not a string.\n* `active-color` is not a HEX color code.\n* `active-border` is not a string.\n* `active-border` is not a HEX color code.\n* `main-background` is not a string.\n* `consent-text` is not an array.\n* `consent-text` value is not a string.\n* `welcome-message` is not an array.\n* `welcome-message.visibility` value is not a boolean.\n* `welcome-message.body-text` is not an array.\n* `body-text` value is not a string.\n* `help-center` is not an array.\n* `help-center.visibility` is not a boolean.\n* The `hyperlink` is not an array.\n* The `hyperlink.color` is not a string.\n* The `hyperlink.color` is not a valid HTML color format.\n* The `hyperlink.hover-color` is not a string.\n* The `hyperlink.hover-color` is not a valid HTML color format.\n* The `hyperlink.active-color` is not a string.\n* The `hyperlink.active-color` is not a valid HTML color format.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 25002002,
                          "message": "Invalid payload given."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002002,
                          "message": "Invalid payload given."
                        }
                      ]
                    }
                  },
                  "Empty body": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002002,
                          "message": "Invalid payload given."
                        }
                      ]
                    }
                  },
                  "color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002006,
                          "message": "The 'color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002008,
                          "message": "The 'border' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "hyperlink not array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002322,
                          "message": "The 'hyperlink' attribute must be an array"
                        }
                      ]
                    }
                  },
                  "background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002004,
                          "message": "The 'background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "hover-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002012,
                          "message": "The 'hover-color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "active-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002039,
                          "message": "The 'active-color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "hover-border not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002014,
                          "message": "The 'hover-border' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "color not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002007,
                          "message": "The 'color' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "help-center not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002205,
                          "message": "The `help-center` field must be an array."
                        }
                      ]
                    }
                  },
                  "active-border  not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002041,
                          "message": "The 'active-border' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "border not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002009,
                          "message": "The 'border' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "consent-text not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002191,
                          "message": "The `consent-text` attribute must be an array."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "hyperlink.color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002323,
                          "message": "The 'color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "hover-background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002010,
                          "message": "The 'hover-background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "active-background not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002037,
                          "message": "The 'active-background' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "body-text value not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002199,
                          "message": "The `welcome-message.body-text.en` must be a string."
                        }
                      ]
                    }
                  },
                  "main-background not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002143,
                          "message": "The 'main-background' field must be a string."
                        }
                      ]
                    }
                  },
                  "welcome-message not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002196,
                          "message": "The `welcome-message` field must be an array."
                        }
                      ]
                    }
                  },
                  "background not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002005,
                          "message": "The 'background' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "hover-color not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002013,
                          "message": "The 'hover-color' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "active-color not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002040,
                          "message": "The 'active-color' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "consent-text value not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002192,
                          "message": "The `consent-text.en` attribute must be a string."
                        }
                      ]
                    }
                  },
                  "hover-border not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002015,
                          "message": "The 'hover-border' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "active-border not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002042,
                          "message": "The 'active-border' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "hyperlink.active-color not valid": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002328,
                          "message": "The 'active-color' attribute must contain a valid HTML color format"
                        }
                      ]
                    }
                  },
                  "hyperlink.color format incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002324,
                          "message": "The 'color' attribute must contain a valid HTML color format"
                        }
                      ]
                    }
                  },
                  "hyperlink.hover-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002325,
                          "message": "The 'hover-color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "help-center.visibility not a bool": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002206,
                          "message": "The `help-center.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "hyperlink.active-color not string": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002327,
                          "message": "The 'active-color' attribute must be a string"
                        }
                      ]
                    }
                  },
                  "hover-background not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002011,
                          "message": "The 'hover-background' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "active-background not HEX color code": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002038,
                          "message": "The 'active-background' attribute format is invalid"
                        }
                      ]
                    }
                  },
                  "welcome-message.visibility not a bool": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002197,
                          "message": "The `welcome-message.visibility` must be a boolean."
                        }
                      ]
                    }
                  },
                  "hyperlink.hover-color format incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002326,
                          "message": "The 'hover-color' attribute must contain a valid HTML color format"
                        }
                      ]
                    }
                  },
                  "welcome-message.body-text not an array": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002198,
                          "message": "The `welcome-message.body-text` must be an array."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The user is neither admin, nor moderator of the organization.\n* The brand exists but it is not an organization brand.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not found.\n* `brand_id` cannot be null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  },
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/general"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "icons": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "Text color in HEX color code."
                      },
                      "border": {
                        "type": "string",
                        "description": "Border color in HEX color code."
                      },
                      "background": {
                        "type": "string",
                        "description": "Background color in HEX color code."
                      },
                      "hover-color": {
                        "type": "string",
                        "description": "Text color in HEX color code when the button is hovered over."
                      },
                      "hover-border": {
                        "type": "string",
                        "description": "Border color in HEX color code when the button is hovered over."
                      },
                      "hover-background": {
                        "type": "string",
                        "description": "Background color in HEX color code when the button is hovered over."
                      }
                    },
                    "description": "Icons object that contains attributes for all icons in the resource."
                  },
                  "texts": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "Text color in the HEX color code."
                      }
                    },
                    "description": "Text object that contains attributes for texts in the resource."
                  },
                  "header": {
                    "type": "object",
                    "properties": {
                      "background": {
                        "type": "string",
                        "description": "Background color in HEX color code."
                      }
                    },
                    "description": "Header object. Contains attributes for headers."
                  },
                  "buttons": {
                    "type": "object",
                    "properties": {
                      "default": {
                        "type": "object",
                        "properties": {
                          "color": {
                            "type": "string",
                            "description": "Text color in HEX color code."
                          },
                          "border": {
                            "type": "string",
                            "description": "Border color in HEX color code."
                          },
                          "background": {
                            "type": "string",
                            "description": "Background color in HEX color code."
                          },
                          "hover-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is hovered over."
                          },
                          "active-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is active."
                          },
                          "hover-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is hovered over."
                          },
                          "active-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is active."
                          },
                          "hover-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is hovered over."
                          },
                          "active-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is active."
                          }
                        },
                        "description": "Default button object."
                      },
                      "primary": {
                        "type": "object",
                        "properties": {
                          "color": {
                            "type": "string",
                            "description": "Text color in HEX color code."
                          },
                          "border": {
                            "type": "string",
                            "description": "Border color in HEX color code."
                          },
                          "background": {
                            "type": "string",
                            "description": "Background color in HEX color code."
                          },
                          "hover-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is hovered over."
                          },
                          "active-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is active."
                          },
                          "hover-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is hovered over."
                          },
                          "active-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is active."
                          },
                          "hover-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is hovered over."
                          },
                          "active-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is active."
                          }
                        },
                        "description": "Primary button object."
                      },
                      "dropdown": {
                        "type": "object",
                        "properties": {
                          "color": {
                            "type": "string",
                            "description": "Text color in HEX color code."
                          },
                          "border": {
                            "type": "string",
                            "description": "Border color in HEX color code."
                          },
                          "background": {
                            "type": "string",
                            "description": "Background color in HEX color code."
                          },
                          "hover-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is hovered over."
                          },
                          "active-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is active."
                          },
                          "hover-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is hovered over."
                          },
                          "active-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is active."
                          },
                          "hover-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is hovered over."
                          },
                          "active-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is active."
                          }
                        },
                        "description": "Dropdown button object."
                      },
                      "secondary": {
                        "type": "object",
                        "properties": {
                          "color": {
                            "type": "string",
                            "description": "Text color in HEX color code."
                          },
                          "border": {
                            "type": "string",
                            "description": "Border color in HEX color code."
                          },
                          "background": {
                            "type": "string",
                            "description": "Background color in HEX color code."
                          },
                          "hover-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is hovered over."
                          },
                          "active-color": {
                            "type": "string",
                            "description": "Text color in HEX color code when the button is active."
                          },
                          "hover-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is hovered over."
                          },
                          "active-border": {
                            "type": "string",
                            "description": "Border color in HEX color code when the button is active."
                          },
                          "hover-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is hovered over."
                          },
                          "active-background": {
                            "type": "string",
                            "description": "Background color in HEX color code when the button is active."
                          }
                        },
                        "description": "Secondary button object."
                      }
                    },
                    "description": "Button object that contains `primary`, `secondary`, `default`, and `dropdown` button attributes."
                  },
                  "hyperlink": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "example": "#546470",
                        "description": "Default color of the hyperlink text in HEX color code."
                      },
                      "hover-color": {
                        "type": "string",
                        "example": "#667988",
                        "description": "Color of the hyperlink text when hovered in HEX color code."
                      },
                      "active-color": {
                        "type": "string",
                        "example": "#4b5963",
                        "description": "Color of the hyperlink text when clicked in HEX color code."
                      }
                    },
                    "description": "Defines hyperlink colors for default, hover, and active (clicked) states. Available for embedded sending and embedded editor."
                  },
                  "help-center": {
                    "type": "object",
                    "properties": {
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether the button with a link to signNow help center should be visible or not."
                      }
                    }
                  },
                  "consent-text": {
                    "type": "object",
                    "properties": {
                      "en": {
                        "type": "string",
                        "maxLength": 900,
                        "description": "Custom consent text in English that can be updated. Placeholder {sender_email} is available."
                      },
                      "es": {
                        "type": "string",
                        "maxLength": 900,
                        "description": "Custom consent text in Spanish that can be updated. Placeholder {sender_email} is available."
                      },
                      "fr": {
                        "type": "string",
                        "maxLength": 900,
                        "description": "Custom consent text in French that can be updated. Placeholder {sender_email} is available."
                      }
                    },
                    "description": "Consent text object that contains attributes for consent text that appears when a signer opens the document. Consent text appears if sender is in organization and consent text is enabled for the organization."
                  },
                  "main-background": {
                    "type": "string",
                    "description": "Main background color in HEX color code."
                  },
                  "welcome-message": {
                    "type": "object",
                    "properties": {
                      "body-text": {
                        "type": "object",
                        "properties": {
                          "en": {
                            "type": "string",
                            "maxLength": 300,
                            "description": "Custom welcome message in English that can be updated. Placeholder {sender_email} is available."
                          },
                          "es": {
                            "type": "string",
                            "maxLength": 300,
                            "description": "Custom welcome message in Spanish that can be updated. Placeholder {sender_email} is available."
                          },
                          "fr": {
                            "type": "string",
                            "maxLength": 300,
                            "description": "Custom welcome message in French that can be updated. Placeholder {sender_email} is available."
                          }
                        },
                        "description": "Custom welcome message."
                      },
                      "visibility": {
                        "type": "boolean",
                        "description": "Whether a welcome message should appear or not."
                      },
                      "header-text": {
                        "type": "object",
                        "properties": {
                          "en": {
                            "type": "string",
                            "example": "Hi, {signer_email}",
                            "maxLength": 300,
                            "description": "Custom header text in English. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or “Guest Signer” (for signing links); and “Guest Signer” (for document group signing links)."
                          },
                          "es": {
                            "type": "string",
                            "example": "Hola, {signer_email}",
                            "maxLength": 300,
                            "description": "Custom header text in Spanish. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or “Guest Signer” (for signing links); and “Guest Signer” (for document group signing links)."
                          },
                          "fr": {
                            "type": "string",
                            "example": "Bonjour, {signer_email}",
                            "maxLength": 300,
                            "description": "Custom header text in French. The placeholder `{signer_email}` is replaced with the recipient's name or email/phone number (for regular documents); name or email (for embedded invites); name or “Guest Signer” (for signing links); and “Guest Signer” (for document group signing links)."
                          }
                        },
                        "description": "Custom text displayed in the welcome message header."
                      }
                    },
                    "description": "Welcome message object that contains attributes for a welcome message that appears when a signer opens the document or clicks the notification icon on the header."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "icons": {
                      "color": "#546470",
                      "border": "#ffffff",
                      "background": "#ffffff",
                      "hover-color": "#546470",
                      "hover-border": "#f1f2f4",
                      "hover-background": "#f1f2f4"
                    },
                    "texts": {
                      "color": "#2f373e"
                    },
                    "header": {
                      "background": "#ffffff"
                    },
                    "buttons": {
                      "default": {
                        "color": "#546470",
                        "border": "#ffffff",
                        "background": "#ffffff",
                        "hover-color": "#546470",
                        "active-color": "#546470",
                        "hover-border": "#f1f2f4",
                        "active-border": "#ffffff",
                        "hover-background": "#f1f2f4",
                        "active-background": "#ffffff"
                      },
                      "primary": {
                        "color": "#ffffff",
                        "border": "#0777cf",
                        "background": "#0777cf",
                        "hover-color": "#ffffff",
                        "active-color": "#ffffff",
                        "hover-border": "#348fd7",
                        "active-border": "#003458",
                        "hover-background": "#348fd7",
                        "active-background": "#076dbd"
                      },
                      "dropdown": {
                        "color": "#546470",
                        "border": "#ffffff",
                        "background": "#ffffff",
                        "hover-color": "#546470",
                        "active-color": "#546470",
                        "hover-border": "#f1f2f4",
                        "active-border": "#ffffff",
                        "hover-background": "#f1f2f4",
                        "active-background": "#ffffff"
                      },
                      "secondary": {
                        "color": "#38424b",
                        "border": "#e3e6e9",
                        "background": "#e3e6e9",
                        "hover-color": "#38424b",
                        "active-color": "#38424b",
                        "hover-border": "#f1f2f4",
                        "active-border": "#d5dade",
                        "hover-background": "#f1f2f4",
                        "active-background": "#d5dade"
                      }
                    },
                    "hyperlink": {
                      "color": "#546470",
                      "hover-color": "#667988",
                      "active-color": "#4b5963"
                    },
                    "help-center": {
                      "visibility": true
                    },
                    "consent-text": {
                      "en": "{sender_email} has invited you to fill out and sign this in one place.",
                      "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                      "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                    },
                    "main-background": "#efefef",
                    "welcome-message": {
                      "body-text": {
                        "en": "{sender_email} has invited you to fill out and sign this in one place.",
                        "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                        "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                      },
                      "visibility": true,
                      "header-text": {
                        "en": "Hi, {signer_email}",
                        "es": "Hola, {signer_email}",
                        "fr": "Bonjour, {signer_email}"
                      }
                    }
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "icons": {
                      "color": "#546470",
                      "border": "#ffffff",
                      "background": "#ffffff",
                      "hover-color": "#546470",
                      "hover-border": "#f1f2f4",
                      "hover-background": "#f1f2f4"
                    },
                    "texts": {
                      "color": "#2f373e"
                    },
                    "header": {
                      "background": "#ffffff"
                    },
                    "buttons": {
                      "default": {
                        "color": "#546470",
                        "border": "#ffffff",
                        "background": "#ffffff",
                        "hover-color": "#546470",
                        "active-color": "#546470",
                        "hover-border": "#f1f2f4",
                        "active-border": "#ffffff",
                        "hover-background": "#f1f2f4",
                        "active-background": "#ffffff"
                      },
                      "primary": {
                        "color": "#ffffff",
                        "border": "#0777cf",
                        "background": "#0777cf",
                        "hover-color": "#ffffff",
                        "active-color": "#ffffff",
                        "hover-border": "#348fd7",
                        "active-border": "#003458",
                        "hover-background": "#348fd7",
                        "active-background": "#076dbd"
                      },
                      "dropdown": {
                        "color": "#546470",
                        "border": "#ffffff",
                        "background": "#ffffff",
                        "hover-color": "#546470",
                        "active-color": "#546470",
                        "hover-border": "#f1f2f4",
                        "active-border": "#ffffff",
                        "hover-background": "#f1f2f4",
                        "active-background": "#ffffff"
                      },
                      "secondary": {
                        "color": "#38424b",
                        "border": "#e3e6e9",
                        "background": "#e3e6e9",
                        "hover-color": "#38424b",
                        "active-color": "#38424b",
                        "hover-border": "#f1f2f4",
                        "active-border": "#d5dade",
                        "hover-background": "#f1f2f4",
                        "active-background": "#d5dade"
                      }
                    },
                    "hyperlink": {
                      "color": "#546470",
                      "hover-color": "#667988",
                      "active-color": "#4b5963"
                    },
                    "help-center": {
                      "visibility": true
                    },
                    "consent-text": {
                      "en": "{sender_email} has invited you to fill out and sign this in one place.",
                      "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                      "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                    },
                    "main-background": "#efefef",
                    "welcome-message": {
                      "body-text": {
                        "en": "{sender_email} has invited you to fill out and sign this in one place.",
                        "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                        "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                      },
                      "visibility": true,
                      "header-text": {
                        "en": "Hi, {signer_email}",
                        "es": "Hola, {signer_email}",
                        "fr": "Bonjour, {signer_email}"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-organizations-organization-id-brands-brand-id-resources-general",
        "summary": "Get org general brand resource",
        "description": "This endpoint allows users to retrieve organization branding for a general resource.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "icons": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string"
                            },
                            "border": {
                              "type": "string"
                            },
                            "background": {
                              "type": "string"
                            },
                            "hover-color": {
                              "type": "string"
                            },
                            "hover-border": {
                              "type": "string"
                            },
                            "hover-background": {
                              "type": "string"
                            }
                          }
                        },
                        "texts": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string"
                            }
                          }
                        },
                        "header": {
                          "type": "object",
                          "properties": {
                            "background": {
                              "type": "string"
                            }
                          }
                        },
                        "buttons": {
                          "type": "object",
                          "properties": {
                            "default": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "border": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "active-color": {
                                  "type": "string"
                                },
                                "hover-border": {
                                  "type": "string"
                                },
                                "active-border": {
                                  "type": "string"
                                },
                                "hover-background": {
                                  "type": "string"
                                },
                                "active-background": {
                                  "type": "string"
                                }
                              }
                            },
                            "primary": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "border": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "active-color": {
                                  "type": "string"
                                },
                                "hover-border": {
                                  "type": "string"
                                },
                                "active-border": {
                                  "type": "string"
                                },
                                "hover-background": {
                                  "type": "string"
                                },
                                "active-background": {
                                  "type": "string"
                                }
                              }
                            },
                            "dropdown": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "border": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "active-color": {
                                  "type": "string"
                                },
                                "hover-border": {
                                  "type": "string"
                                },
                                "active-border": {
                                  "type": "string"
                                },
                                "hover-background": {
                                  "type": "string"
                                },
                                "active-background": {
                                  "type": "string"
                                }
                              }
                            },
                            "secondary": {
                              "type": "object",
                              "properties": {
                                "color": {
                                  "type": "string"
                                },
                                "border": {
                                  "type": "string"
                                },
                                "background": {
                                  "type": "string"
                                },
                                "hover-color": {
                                  "type": "string"
                                },
                                "active-color": {
                                  "type": "string"
                                },
                                "hover-border": {
                                  "type": "string"
                                },
                                "active-border": {
                                  "type": "string"
                                },
                                "hover-background": {
                                  "type": "string"
                                },
                                "active-background": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "hyperlink": {
                          "type": "object",
                          "properties": {
                            "color": {
                              "type": "string"
                            },
                            "hover-color": {
                              "type": "string"
                            },
                            "active-color": {
                              "type": "string"
                            }
                          }
                        },
                        "help-center": {
                          "type": "object",
                          "properties": {
                            "visibility": {
                              "type": "boolean"
                            }
                          }
                        },
                        "consent-text": {
                          "type": "object",
                          "properties": {
                            "en": {
                              "type": "string"
                            },
                            "es": {
                              "type": "string"
                            },
                            "fr": {
                              "type": "string"
                            }
                          }
                        },
                        "main-background": {
                          "type": "string"
                        },
                        "welcome-message": {
                          "type": "object",
                          "properties": {
                            "body-text": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                },
                                "fr": {
                                  "type": "string"
                                }
                              }
                            },
                            "visibility": {
                              "type": "boolean"
                            },
                            "header-text": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string"
                                },
                                "es": {
                                  "type": "string"
                                },
                                "fr": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "icons": {
                          "color": "#546470",
                          "border": "#ffffff",
                          "background": "#ffffff",
                          "hover-color": "#546470",
                          "hover-border": "#f1f2f4",
                          "hover-background": "#f1f2f4"
                        },
                        "texts": {
                          "color": "#2f373e"
                        },
                        "header": {
                          "background": "#ffffff"
                        },
                        "buttons": {
                          "default": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#ffffff",
                            "hover-background": "#f1f2f4",
                            "active-background": "#ffffff"
                          },
                          "primary": {
                            "color": "#ffffff",
                            "border": "#0777cf",
                            "background": "#0777cf",
                            "hover-color": "#ffffff",
                            "active-color": "#ffffff",
                            "hover-border": "#348fd7",
                            "active-border": "#003458",
                            "hover-background": "#348fd7",
                            "active-background": "#076dbd"
                          },
                          "dropdown": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#ffffff",
                            "hover-background": "#f1f2f4",
                            "active-background": "#ffffff"
                          },
                          "secondary": {
                            "color": "#38424b",
                            "border": "#e3e6e9",
                            "background": "#e3e6e9",
                            "hover-color": "#38424b",
                            "active-color": "#38424b",
                            "hover-border": "#f1f2f4",
                            "active-border": "#d5dade",
                            "hover-background": "#f1f2f4",
                            "active-background": "#d5dade"
                          }
                        },
                        "hyperlink": {
                          "color": "#546470",
                          "hover-color": "#667988",
                          "active-color": "#4b5963"
                        },
                        "help-center": {
                          "visibility": true
                        },
                        "consent-text": {
                          "en": "{sender_email} has invited you to fill out and sign this in one place.",
                          "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                          "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                        },
                        "main-background": "#efefef",
                        "welcome-message": {
                          "body-text": {
                            "en": "{sender_email} has invited you to fill out and sign this in one place.",
                            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                            "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                          },
                          "visibility": true,
                          "header-text": {
                            "en": "Hi, {signer_email}",
                            "es": "Hola, {signer_email}",
                            "fr": "Bonjour, {signer_email}"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "icons": {
                          "color": "#546470",
                          "border": "#ffffff",
                          "background": "#ffffff",
                          "hover-color": "#546470",
                          "hover-border": "#f1f2f4",
                          "hover-background": "#f1f2f4"
                        },
                        "texts": {
                          "color": "#2f373e"
                        },
                        "header": {
                          "background": "#ffffff"
                        },
                        "buttons": {
                          "default": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#ffffff",
                            "hover-background": "#f1f2f4",
                            "active-background": "#ffffff"
                          },
                          "primary": {
                            "color": "#ffffff",
                            "border": "#0777cf",
                            "background": "#0777cf",
                            "hover-color": "#ffffff",
                            "active-color": "#ffffff",
                            "hover-border": "#348fd7",
                            "active-border": "#003458",
                            "hover-background": "#348fd7",
                            "active-background": "#076dbd"
                          },
                          "dropdown": {
                            "color": "#546470",
                            "border": "#ffffff",
                            "background": "#ffffff",
                            "hover-color": "#546470",
                            "active-color": "#546470",
                            "hover-border": "#f1f2f4",
                            "active-border": "#ffffff",
                            "hover-background": "#f1f2f4",
                            "active-background": "#ffffff"
                          },
                          "secondary": {
                            "color": "#38424b",
                            "border": "#e3e6e9",
                            "background": "#e3e6e9",
                            "hover-color": "#38424b",
                            "active-color": "#38424b",
                            "hover-border": "#f1f2f4",
                            "active-border": "#d5dade",
                            "hover-background": "#f1f2f4",
                            "active-background": "#d5dade"
                          }
                        },
                        "hyperlink": {
                          "color": "#546470",
                          "hover-color": "#667988",
                          "active-color": "#4b5963"
                        },
                        "help-center": {
                          "visibility": true
                        },
                        "consent-text": {
                          "en": "{sender_email} has invited you to fill out and sign this in one place.",
                          "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                          "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                        },
                        "main-background": "#efefef",
                        "welcome-message": {
                          "body-text": {
                            "en": "{sender_email} has invited you to fill out and sign this in one place.",
                            "es": "{sender_email} lo ha invitado a completar y firmar esto en un solo lugar.",
                            "fr": "{sender_email} vous a invité à remplir et signer ce document dans un endroit."
                          },
                          "visibility": true,
                          "header-text": {
                            "en": "Hi, {signer_email}",
                            "es": "Hola, {signer_email}",
                            "fr": "Bonjour, {signer_email}"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The user is neither admin, nor moderator of the organization.\n* The brand exists but it is not an organization brand.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  },
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not found.\n* `brand_id` cannot be null.\n* General resource for this `brand_id` doesn't exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  },
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/general"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  },
                  "General resource not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002036,
                          "message": "Brand resource not found. Resource name: general."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-organizations-organization-id-brands-brand-id-resources-general",
        "summary": "Delete org general brand resource",
        "description": "This endpoint allows users to delete a general brand resource for an organization. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The user is neither admin, nor moderator of the organization.\n* The brand exists but it is not an organization brand.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not found.\n* `brand_id` cannot be null.\n* General resource for this `brand_id` doesn't exist.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/general"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  },
                  "General resource not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002036,
                          "message": "Brand resource not found. Resource name: general."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/organizations/{organization_id}/brands/{brand_id}/resources/logo": {
      "post": {
        "operationId": "post-v2-organizations-organization-id-brands-brand-id-resources-logo",
        "summary": "Create org logo brand resource",
        "description": "This endpoint allows users to create a logo brand resource for an organization. Only an admin or moderator of the organization can perform this action.\n\nAccepts .png, .jpeg, .gif, and .bmp file types. Maximum file size per upload is 2 MB.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n* Request without logo\n* Incorrect logo format\n* The logo file is too large\n* Brand resource logo already exists for this `brand_id`",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Logo is missing": {
                    "value": {
                      "code": 25002047,
                      "message": "Brand logo is required."
                    }
                  },
                  "Incorrect logo format": {
                    "value": {
                      "code": 25002048,
                      "message": "The mime type of the file is invalid (\"text/plain\"). Allowed mime types are \"image/x-ms-bmp\", \"image/gif\", \"image/jpeg\", \"image/png\", \"image/bmp\"."
                    }
                  },
                  "Logo file is too large": {
                    "value": {
                      "code": 25002051,
                      "message": "The file is too large. Allowed maximum size is 2 MB."
                    }
                  },
                  "Brand logo already exists": {
                    "value": {
                      "code": 25002050,
                      "message": "Brand logo already exists. Resource name: logo."
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is authorized with a token from an app they don’t own.\n* The user is neither admin, nor moderator of the organization.\n* The brand exists but it is not an organization brand.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User doesn't own the app": {
                    "value": {
                      "code": 25002001,
                      "message": "Brand action not allowed"
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found\n* The brand is not found\n* `brand_id` cannot be null",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "code": 25002016,
                      "message": "Brand not found."
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/logo"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "code": 25006001,
                      "message": "Organization not found."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "logo": {
                    "type": "file",
                    "description": "Logo file with image format"
                  }
                },
                "required": [
                  "logo"
                ]
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-organizations-organization-id-brands-brand-id-resources-logo",
        "summary": "Get org logo brand resource",
        "description": "This endpoint allows users to get a logo brand resource of an organization.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "200": {
            "description": "Success, returns the logo",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "The brand exists but it is not an organization brand.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found\n* The brand is not found\n* `brand_id` cannot be null",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/logo"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-organizations-organization-id-brands-brand-id-resources-logo",
        "summary": "Delete org logo brand resource",
        "description": "This endpoint allows users to delete a logo brand resource for an organization. Only an admin or moderator of the organization can perform this action.",
        "parameters": [
          {
            "in": "path",
            "name": "organization_id",
            "type": "string",
            "required": true,
            "description": "ID of the organization. Must match the pattern: [a-z0-9]{40}."
          },
          {
            "in": "path",
            "name": "brand_id",
            "type": "string",
            "required": true,
            "description": "ID of the brand. Must match the pattern: [a-z0-9]{40}."
          }
        ],
        "responses": {
          "204": {
            "description": "Success, no content",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* The user is neither admin, nor moderator of the organization.\n* The brand exists but it is not an organization brand.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Non-organization brand": {
                    "value": {
                      "code": 25002030,
                      "message": "No access to the brand."
                    }
                  },
                  "User not admin or moderator": {
                    "value": {
                      "code": 25006002,
                      "message": "Insufficient organization rights."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* The organization is not found.\n* The brand is not found\n* `brand_id` cannot be null",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Brand not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25002016,
                          "message": "Brand not found."
                        }
                      ]
                    }
                  },
                  "brand_id is null": {
                    "value": {
                      "404": "Unable to find a route to match the URI: /v2/organizations/3d73e416095d4734a0e0d8bce4bd33f7b44b7585/brands/resources/logo"
                    }
                  },
                  "Organization not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 25006001,
                          "message": "Organization not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/documentgroup/{group_id}/groupinvite": {
      "post": {
        "operationId": "post",
        "summary": "Send doc group invite with payment request",
        "description": "This endpoint allows users to send a document group invite with a payment request. Recipients will be redirected to the payment page after completing the documents.\n\n> To request a payment, users must either connect to the payment service individually or accept an invitation to an organization already connected to the payment service.\n\n- To connect your organization to the payment service, see [Connect to merchant account](/docs/request-payments/operations/post-organizations-org-id-merchantaccount).\n\n- To connect a personal SignNow account to the payment service, see [Connect to personal merchant account](/docs/request-payments/operations/post-v2-merchant-accounts).\n\nA payment request can be linked to a specific field (`calculated` type) or set as a fixed amount (`fixed`type).\n\nThis article lists only the parameters required for a payment request. For other document group invite parameters, see [Invite to sign doc group](/docs/doc-group-field-invite/operations/invite-to-sign-document-group).\n\n\n<details>\n\n**<summary>Use additional attributes to customize the request</summary>**\n\n| Parameter | Description | Example |\n| --- | --- | --- |\n| `field_type` | Type of the field that sets the payment amount. Required if the request `type` is `calculated`. For a payment request invite, `filed_type` is `text_fields`. |<img src=\"/reference-assets/images/Request_payments/payment_request_field_name_type.png\" alt=\"Field type\"> |\n| `field_name` | Name of the field that sets the payment amount. Used if the `type` is `calculated`. Can be found in the [Get document response](/docs/document/operations/get-document) (fields.name). | See the screenshot above.  |\n| `type` | Defines how the payment amount is set. Allowed values: `fixed` (the amount is set in the amount field) and `calculated` (set using a document field).<br><br> Learn how to [add a payment request field](/docs/request-payments/operations/put-document-document-id). |<img src=\"/reference-assets/images/Request_payments/payment_request_type.png\" alt=\"Payment type\"> |\n| `currency` | Payment currency in ISO format. |<img src=\"/reference-assets/images/Request_payments/payment_request_amount_currency.png\" alt=\"Currency\"> |\n| `amount` | Amount of payment. Required if `type` is 'fixed'. | See the screenshot above. |\n\n</details>",
        "parameters": [
          {
            "in": "path",
            "name": "group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "pending_invite_link": {
                      "type": "null"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "XXXXe0ea656944f3b833d0baeb1067f02490YYYY",
                      "pending_invite_link": null
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "XXXXe0ea656944f3b833d0baeb1067f02490YYYY",
                      "pending_invite_link": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- `field_id` is empty or missing. \n- `field_type` is missing or incorrect.\n- `amount` is empty or missing.\n- `currency` is missing.\n- `type` is missing.\n- `merchants` is empty.\n- Merchant ID is incorrect.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid field type, valid types are: text_fields"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid field type, valid types are: text_fields"
                        }
                      ]
                    }
                  },
                  "Merchants empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Required at least one merchant account in payment request"
                        }
                      ]
                    }
                  },
                  "currency missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Must provide currency type for payments"
                        }
                      ]
                    }
                  },
                  "Merchant ID incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid merchant_id in payment_field_request"
                        }
                      ]
                    }
                  },
                  "amount empty or missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "For fixed payment types, please enter non zero amount"
                        }
                      ]
                    }
                  },
                  "field_id empty or missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid field id provided"
                        }
                      ]
                    }
                  },
                  "field_type missing or incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid field type, valid types are: text_fields"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "invite_steps"
                ],
                "properties": {
                  "invite_steps": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "order",
                        "invite_actions"
                      ],
                      "properties": {
                        "order": {
                          "type": "integer",
                          "example": 1,
                          "description": "Signing order step. All signers assigned to a specific order step (e.g., order: 1) receive the invite email simultaneously. Emails for the next order step (e.g., order: 2) are sent only after all actions in the previous order step are completed."
                        },
                        "invite_emails": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "email"
                            ],
                            "properties": {
                              "email": {
                                "type": "string",
                                "example": "signer@email.com",
                                "description": "Recipient email address."
                              }
                            }
                          },
                          "description": "An array of recipient emails within this step."
                        },
                        "invite_actions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "email": {
                                "type": "string",
                                "example": "signer@email.com",
                                "description": "Recipient email address."
                              },
                              "action": {
                                "type": "string",
                                "example": "sign",
                                "description": "The action required from the recipient in the document. Allowed values: `sign`, `view`, `approve`."
                              },
                              "role_name": {
                                "type": "string",
                                "example": "Signer",
                                "description": "Recipient role name."
                              },
                              "document_id": {
                                "type": "string",
                                "example": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
                                "description": "ID of the document on which the action is required."
                              },
                              "payment_request": {
                                "type": "object",
                                "required": [
                                  "type",
                                  "currency",
                                  "merchants",
                                  "field_type",
                                  "field_id",
                                  "amount"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "example": "fixed",
                                    "description": "The type of the payment request. Allowed values: `fixed`, `calculated`."
                                  },
                                  "amount": {
                                    "type": "string",
                                    "example": "1000",
                                    "description": "Payment amount. Required for the `fixed` payment type."
                                  },
                                  "currency": {
                                    "type": "string",
                                    "example": "USD",
                                    "description": "Payment currency in ISO format."
                                  },
                                  "field_id": {
                                    "type": "string",
                                    "example": "eb1dc1e1946f47cd87fa4a63664803bddbazzzz",
                                    "description": "The ID of the field that defines the payment amount. Required for the `calculated` payment type. Can be found in the [Get document](/docs/document/operations/get-document) response."
                                  },
                                  "merchants": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "IDs of connected payment service accounts. Can be found in the [Get merchant account](/docs/request-payments/operations/get-organizations-org-id-merchantaccount-merchant-account-id) response."
                                  },
                                  "field_name": {
                                    "type": "string",
                                    "example": "payment_field",
                                    "description": "The name of the field that defines the payment amount. Used for the `calculated` payment type. Can be found in the [Get document](/docs/document/operations/get-document) response."
                                  },
                                  "field_type": {
                                    "type": "string",
                                    "example": "text_fields",
                                    "description": "The field type that defines the payment amount. Required for the `calculated` payment type. Allowed value is `text_fields`."
                                  }
                                },
                                "description": "An object with the payment request configuration."
                              }
                            }
                          },
                          "description": "An array of objects, where each object defines a recipient, their role, and the corresponding action for a document."
                        }
                      }
                    },
                    "description": "Steps of the document group invite. Every step contains the `order` number, `invite_emails` and `invite_actions` within this step."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "invite_steps": [
                      {
                        "order": 1,
                        "invite_emails": [
                          {
                            "email": "seller@email.com"
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "seller@email.com",
                            "action": "sign",
                            "role_name": "Seller",
                            "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
                            "payment_request": {
                              "type": "calculated",
                              "currency": "USD",
                              "field_id": "eb1dc1e1946f47cd87fa4a63664803bddbazzzz",
                              "merchants": [
                                "5ef7e3853f4a4624a037d90d20513a195937dxxx"
                              ],
                              "field_name": "payment_buyer",
                              "field_type": "text_fields"
                            }
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "invite_emails": [
                          {
                            "email": "buyer@email.com"
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "buyer@email.com",
                            "action": "sign",
                            "role_name": "Buyer",
                            "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
                            "payment_request": {
                              "type": "fixed",
                              "amount": "1000",
                              "currency": "USD",
                              "merchants": [
                                "yyyye3853f4a4624a037d90d20513a195937dxxx"
                              ]
                            }
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              "examples": {
                "Request with `fixed` payment type": {
                  "value": {
                    "invite_steps": [
                      {
                        "order": 1,
                        "invite_emails": [
                          {
                            "email": "seller@email.com"
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "seller@email.com",
                            "action": "sign",
                            "role_name": "Seller",
                            "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye"
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "invite_emails": [
                          {
                            "email": "buyer@email.com"
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "buyer@email.com",
                            "action": "sign",
                            "role_name": "Buyer",
                            "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
                            "payment_request": {
                              "type": "fixed",
                              "amount": "1000",
                              "currency": "USD",
                              "merchants": [
                                "5ef7e3853f4a4624a037d90d20513a195937dxxx"
                              ]
                            }
                          }
                        ]
                      }
                    ]
                  }
                },
                "Request with `calculated` payment type": {
                  "value": {
                    "invite_steps": [
                      {
                        "order": 1,
                        "invite_emails": [
                          {
                            "email": "seller@email.com"
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "seller@email.com",
                            "action": "sign",
                            "role_name": "Seller",
                            "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye"
                          }
                        ]
                      },
                      {
                        "order": 2,
                        "invite_emails": [
                          {
                            "email": "buyer@email.com"
                          }
                        ],
                        "invite_actions": [
                          {
                            "email": "buyer@email.com",
                            "action": "sign",
                            "role_name": "Buyer",
                            "document_id": "d31bb646ccca47aa9ab91eeb04c27458aeyyyyye",
                            "payment_request": {
                              "type": "calculated",
                              "currency": "USD",
                              "field_id": "eb1dc1e1946f47cd87fa4a63664803bddba6fff",
                              "merchants": [
                                "5ef7e3853f4a4624a037d90d20513a195937dxxx"
                              ],
                              "field_name": "payment_buyer",
                              "field_type": "text_fields"
                            }
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/merchant-accounts": {
      "post": {
        "operationId": "post-v2-merchant-accounts",
        "summary": "Connect to personal merchant account",
        "description": "This endpoint allows API users to connect their personal SignNow account to the payment service.\n\nCurrently, users can connect to Stripe and Stripe Connect. To receive payments, you'll need a valid payment system account.\n\n<details>\n\n**<summary>Use additional attributes to customize the request</summary>**\n\n| Parameter | Description | Example |\n| --- | --- | --- |\n| `display_ach_form` | Boolean indicating whether to display the ACH payment form by Stripe to the recipient. | <img src=\"/reference-assets/images/Request_payments/stripe_ach.png\" alt=\"ACH form\"> |\n| `display_credit_card_form` | Boolean indicating whether to display the credit card form by Stripe to the recipient. Note that either `display_ach_form` or `display_credit_card_form` should be set to `true`. | <img src=\"/reference-assets/images/Request_payments/stripe_card.png\" alt=\"Card form\">  |\n\n\n</details>",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "XXXX3dfe081e4bf7a3dd25d245cdff1bebe3YYYY"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "XXXX3dfe081e4bf7a3dd25d245cdff1bebe3YYYY"
                    }
                  },
                  "example-1": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- `account_type` is incorrect or empty.\n- `account_name` is empty.\n- `publishable_key` is empty.\n- `secure_key` is empty.\n- Either `display_ach_form`or `display_credit_card_form` must be set to `true`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 29004017,
                          "message": "Parameter `account_type` is required and must be one of: Stripe, StripeConnect, PayPal."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "secure_key empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 29004007,
                          "message": "Secure key is empty."
                        }
                      ]
                    }
                  },
                  "account_name empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 29004001,
                          "message": "Account name is required."
                        }
                      ]
                    }
                  },
                  "Display form required": {
                    "value": {
                      "errors": [
                        {
                          "code": 29004014,
                          "message": "At least one display form is required"
                        }
                      ]
                    }
                  },
                  "publishable_key empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 29004004,
                          "message": "Publishable key is empty."
                        }
                      ]
                    }
                  },
                  "account_type incorrect or empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 29004017,
                          "message": "Parameter `account_type` is required and must be one of: Stripe, StripeConnect, PayPal."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Too many active accounts.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 132,
                          "message": "Forbidden to create multiple active accounts of the same type."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Active accounts limit": {
                    "value": {
                      "errors": [
                        {
                          "code": 132,
                          "message": "Forbidden to create multiple active accounts of the same type."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "account_name",
                  "account_type"
                ],
                "properties": {
                  "currency": {
                    "type": "string",
                    "default": "USD",
                    "example": "USD",
                    "description": "The currency used for recipient transactions."
                  },
                  "secure_key": {
                    "type": "string",
                    "example": "sk_yyyy_yyyyyjcpCb9qbdk8IMXNyyyy",
                    "description": "Secure API key (secret) given by Stripe. Required if `account_type` is `Stripe`."
                  },
                  "account_name": {
                    "type": "string",
                    "example": "My Stripe",
                    "description": "Name of the new merchant account."
                  },
                  "account_type": {
                    "type": "string",
                    "example": "Stripe",
                    "description": "The type of payment service. Allowed values: `Stripe`, `StripeConnect`."
                  },
                  "publishable_key": {
                    "type": "string",
                    "example": "pk_xxxx_xxxxxGDlOVChs1OowXjAiYYY",
                    "description": "Publishable API key given by Stripe. Required if `account_type` is `Stripe`."
                  },
                  "display_ach_form": {
                    "type": "boolean",
                    "description": "Boolean indicating whether to display the ACH payment form by Stripe. Required if `account_type` is `Stripe`."
                  },
                  "display_credit_card_form": {
                    "type": "boolean",
                    "description": "Boolean indicating whether to display the credit card form by Stripe. Required if `account_type` is `Stripe`.\n"
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "currency": "USD",
                    "secure_key": "sk_yyyy_yyyyyjcpCb9qbdk8IMXNyyyy",
                    "account_name": "My Stripe",
                    "account_type": "Stripe",
                    "publishable_key": "pk_xxxx_xxxxxGDlOVChs1OowXjAiYYY",
                    "display_ach_form": true,
                    "display_credit_card_form": true
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "currency": "USD",
                    "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
                    "account_name": "My Stripe",
                    "account_type": "Stripe",
                    "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
                    "display_ach_form": true,
                    "display_credit_card_form": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/merchant-accounts/{merchant_account_id}": {
      "get": {
        "operationId": "get-v2-merchant-accounts",
        "summary": "Get personal merchant account",
        "description": "This endpoint allows API users to retrieve details about their connected payment account(s).\n\nIf you use the request without `merchant_account_id`, you will retrieve all connected payment accounts for the user.\n\n",
        "parameters": [
          {
            "in": "path",
            "name": "merchant_account_id",
            "type": "string",
            "required": true,
            "description": "ID of the connected payment account."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns details of the connected payment account in case of successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "active": {
                          "type": "boolean"
                        },
                        "created": {
                          "type": "integer"
                        },
                        "updated": {
                          "type": "integer"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "secure_key": {
                          "type": "string"
                        },
                        "entity_type": {
                          "type": "string"
                        },
                        "currency_name": {
                          "type": "string"
                        },
                        "merchant_type": {
                          "type": "string"
                        },
                        "publishable_key": {
                          "type": "string"
                        },
                        "display_ach_form": {
                          "type": "boolean"
                        },
                        "merchant_account_name": {
                          "type": "string"
                        },
                        "display_credit_card_form": {
                          "type": "boolean"
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": {
                        "id": "XXXXadb11c8c4658bc2170ded433617b237233ba",
                        "active": true,
                        "created": 1761755047,
                        "updated": 1761755047,
                        "currency": "USD",
                        "secure_key": "********yyyy",
                        "entity_type": "user",
                        "currency_name": "US Dollar",
                        "merchant_type": "Stripe",
                        "publishable_key": "********iYYY",
                        "display_ach_form": false,
                        "merchant_account_name": "Stripe 1",
                        "display_credit_card_form": true
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": {
                        "id": "XXXXadb11c8c4658bc2170ded433617b237233ba",
                        "active": true,
                        "created": 1761755047,
                        "updated": 1761755047,
                        "currency": "USD",
                        "secure_key": "********yyyy",
                        "entity_type": "user",
                        "currency_name": "US Dollar",
                        "merchant_type": "Stripe",
                        "publishable_key": "********iYYY",
                        "display_ach_form": false,
                        "merchant_account_name": "Stripe 1",
                        "display_credit_card_form": true
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-merchant-accounts",
        "summary": "Delete personal merchant account",
        "description": "This endpoint allows API users to disconnect their payment account.",
        "parameters": [
          {
            "in": "path",
            "name": "merchant_account_id",
            "type": "string",
            "required": true,
            "description": "ID of the connected payment account."
          }
        ],
        "responses": {
          "204": {
            "description": "No content"
          },
          "404": {
            "description": "User account not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "message": "User merchant account `xxxxe3853f4a4624a037d90d20513a195937yyyy` is not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "message": "User merchant account `xxxxe3853f4a4624a037d90d20513a195937yyyy` is not found."
                        }
                      ]
                    }
                  },
                  "Account not found": {
                    "value": {
                      "errors": [
                        {
                          "message": "User merchant account `xxxxe3853f4a4624a037d90d20513a195937yyyy` is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/organizations/{org_id}/merchantaccount": {
      "post": {
        "operationId": "post-organizations-org-id-merchantaccount",
        "summary": "Connect to merchant account",
        "description": "This endpoint allows an organization admin to connect a SignNow organization to the payment service. \n\nCurrently, the organization can be connected to Stripe and Stripe Connect. To receive payments, you'll need a valid payment system account.\n\n> An organization is limited to one active account per payment service. The connected payment service will apply to all organization members by default.\n\n<details>\n\n**<summary>Use additional attributes to customize the request</summary>**\n\n| Parameter | Description | Example |\n| --- | --- | --- |\n| `display_ach_form` | Boolean indicating whether to display the ACH payment form by Stripe to the recipient. | <img src=\"/reference-assets/images/Request_payments/stripe_ach.png\" alt=\"ACH form\"> |\n| `display_credit_card_form` | Boolean indicating whether to display the credit card form by Stripe to the recipient. Note that either `display_ach_form` or `display_credit_card_form` should be set to `true`. | <img src=\"/reference-assets/images/Request_payments/stripe_card.png\" alt=\"Card form\">  |\n\n\n</details>",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "5f793dfe081e4bf7a3dd25d245cdff1bebe3a188"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "5f793dfe081e4bf7a3dd25d245cdff1bebe3a188"
                    }
                  },
                  "example-1": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- `account_type` is incorrect or empty.\n- `account_name` is empty.\n- `publishable_key` is empty.\n- `secure_key` is empty.\n- Either `display_ach_form`or `display_credit_card_form` must be set to `true`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 29004017,
                          "message": "Parameter `account_type` is required and must be one of: Stripe, StripeConnect, PayPal."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "secure_key empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 29004007,
                          "message": "Secure key is empty."
                        }
                      ]
                    }
                  },
                  "account_name empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 29004001,
                          "message": "Account name is required."
                        }
                      ]
                    }
                  },
                  "Display form required": {
                    "value": {
                      "errors": [
                        {
                          "code": 29004014,
                          "message": "At least one display form is required"
                        }
                      ]
                    }
                  },
                  "publishable_key empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 29004004,
                          "message": "Publishable key is empty."
                        }
                      ]
                    }
                  },
                  "account_type incorrect or empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 29004017,
                          "message": "Parameter `account_type` is required and must be one of: Stripe, StripeConnect, PayPal."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The organization has too many active accounts.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 132,
                          "message": "Forbidden to create multiple active accounts of the same type."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Active accounts limit": {
                    "value": {
                      "errors": [
                        {
                          "code": 132,
                          "message": "Forbidden to create multiple active accounts of the same type."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "account_name",
                  "account_type"
                ],
                "properties": {
                  "currency": {
                    "type": "string",
                    "default": "USD",
                    "example": "USD",
                    "description": "The currency used for recipient transactions."
                  },
                  "secure_key": {
                    "type": "string",
                    "example": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
                    "description": "Secure API key (secret) given by Stripe. Required if `account_type` is `Stripe`."
                  },
                  "account_name": {
                    "type": "string",
                    "example": "My Stripe",
                    "description": "Name of the new merchant account."
                  },
                  "account_type": {
                    "type": "string",
                    "example": "Stripe",
                    "description": "The type of payment service. Allowed values: `Stripe`, `StripeConnect`."
                  },
                  "publishable_key": {
                    "type": "string",
                    "example": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
                    "description": "Publishable API key given by Stripe. Required if `account_type` is `Stripe`."
                  },
                  "display_ach_form": {
                    "type": "boolean",
                    "description": "Boolean indicating whether to display the ACH payment form by Stripe. Required if `account_type` is `Stripe`."
                  },
                  "display_credit_card_form": {
                    "type": "boolean",
                    "description": "Boolean indicating whether to display the credit card form by Stripe. Required if `account_type` is `Stripe`.\n"
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "currency": "USD",
                    "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
                    "account_name": "My Stripe",
                    "account_type": "Stripe",
                    "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
                    "display_ach_form": true,
                    "display_credit_card_form": true
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "currency": "USD",
                    "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
                    "account_name": "My Stripe",
                    "account_type": "Stripe",
                    "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
                    "display_ach_form": true,
                    "display_credit_card_form": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/organizations/{org_id}/merchantaccount/{merchant_account_id}": {
      "get": {
        "operationId": "get-organizations-org-id-merchantaccount-merchant-account-id",
        "summary": "Get merchant account",
        "description": "This endpoint allows API users to retrieve details of all payment accounts within a specific organization. Use the payment account ID to retrieve details of a specific account.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization."
          },
          {
            "in": "path",
            "name": "merchant_account_id",
            "type": "string",
            "required": true,
            "description": "The account ID of merchant account(s) to get details for."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns details of the organization payment account(s) in case of successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "secure_key": {
                      "type": "string"
                    },
                    "account_name": {
                      "type": "string"
                    },
                    "currency_name": {
                      "type": "string"
                    },
                    "merchant_type": {
                      "type": "string"
                    },
                    "publishable_key": {
                      "type": "string"
                    },
                    "display_ach_form": {
                      "type": "boolean"
                    },
                    "merchant_account_id": {
                      "type": "string"
                    },
                    "display_credit_card_form": {
                      "type": "boolean"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "5ef7e3853f4a4624a037d90d20513a195937d255",
                      "currency": "USD",
                      "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
                      "account_name": "My Stripe",
                      "currency_name": "US Dollar",
                      "merchant_type": "Stripe",
                      "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
                      "display_ach_form": true,
                      "merchant_account_id": "Stripe",
                      "display_credit_card_form": true
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "5ef7e3853f4a4624a037d90d20513a195937d255",
                      "currency": "USD",
                      "secure_key": "sk_yyyy_0vkrljcpCb9qbdk8IMXNyyyy",
                      "account_name": "My Stripe",
                      "currency_name": "US Dollar",
                      "merchant_type": "Stripe",
                      "publishable_key": "pk_xxxx_y16i7GDlOVChs1OowXjAiYYY",
                      "display_ach_form": true,
                      "merchant_account_id": "Stripe",
                      "display_credit_card_form": true
                    }
                  },
                  "example-1": {
                    "value": {
                      "id": "unique_id",
                      "account_name": "account_name",
                      "merchant_type": "merchant_name",
                      "json_attributes": "json_attributes",
                      "merchant_account_id": "merchant_account_id"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-organizations-org-id-merchantaccount-merchant-account-id",
        "summary": "Delete merchant account",
        "description": "Delete the merchant account.",
        "parameters": [
          {
            "in": "path",
            "name": "org_id",
            "type": "string",
            "required": true,
            "description": "ID of the requested organization."
          },
          {
            "in": "path",
            "name": "merchant_account_id",
            "type": "string",
            "required": true,
            "description": "The account ID of merchant account(s) to get details for."
          }
        ],
        "responses": {
          "200": {
            "description": "Returns successful status in case of successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status"
                  ],
                  "properties": {
                    "status": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "status": "success"
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/documentgroup/{document_group_id}/scheduled-invite": {
      "post": {
        "operationId": "post-document-group-scheduled-invite",
        "summary": "Create scheduled invite",
        "description": "This endpoint allows API users to create a scheduled document group invite. At the moment specified by `scheduled_timestamp`, the invite is sent to recipients automatically. Both freeform invite and field invite can be sent.\n\n**Notes**\n\n* A paid API plan or Site License is required to create a scheduled invite.\n* `scheduled_timestamp` must be a Unix timestamp (in seconds) that points to a moment in the future.\n* The invite type is detected from the `invite_data` payload shape:\n    * If the documents in the group do **not** contain fields, pass a [freeform invite payload](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites) in `invite_data`.\n    * If the documents in the group contain fields, pass a [field invite payload](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) in `invite_data`.\n* Each document group can have only one scheduled invite in the `active` status.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group for which the scheduled invite is created."
          }
        ],
        "responses": {
          "204": {
            "description": "Returned when the scheduled invite passes validation and is stored with the `active` status. The response body is empty."
          },
          "400": {
            "description": "Validation errors for the scheduled invite payload:\n\n* `scheduled_timestamp` is missing, null, not an integer, or points to a moment in the past.\n* `invite_data` is missing, null, of the wrong type, or empty.\n* The document group already has an active scheduled invite.\n* The document group already has an active group invite.\n* The user is not the document group owner.\n\nIn addition, all validation errors that apply to the regular invite payload also apply to the contents of `invite_data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "invite_data is null": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `invite_data` value should not be null."
                        }
                      ]
                    }
                  },
                  "invite_data is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `invite_data` value must not be an empty array."
                        }
                      ]
                    }
                  },
                  "invite_data wrong type": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `invite_data` value should be of type array."
                        }
                      ]
                    }
                  },
                  "Incorrect scheduled time": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Incorrect scheduled time for invite."
                        }
                      ]
                    }
                  },
                  "Group invite already exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "An invite already exists for this document group."
                        }
                      ]
                    }
                  },
                  "scheduled_timestamp is null": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `scheduled_timestamp` value should not be null."
                        }
                      ]
                    }
                  },
                  "scheduled_timestamp wrong type": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `scheduled_timestamp` value should be of type int."
                        }
                      ]
                    }
                  },
                  "Scheduled invite already exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "A scheduled invite already exists."
                        }
                      ]
                    }
                  },
                  "User is not document group owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "User is not document group owner"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scheduled_timestamp",
                  "invite_data"
                ],
                "properties": {
                  "invite_data": {
                    "type": "object",
                    "description": "The full document group invite payload. The invite type is detected from the payload shape:\n\n* Send the same body as the [Create freeform document group invite](/docs/doc-group-freeform-invite/operations/post-v2-document-groups-document-group-id-free-form-invites) endpoint when the documents in the group do not contain fields.\n* Send the same body as the [Create field invite](/docs/doc-group-field-invite/operations/invite-to-sign-document-group) endpoint when the documents in the group contain fields."
                  },
                  "scheduled_timestamp": {
                    "type": "integer",
                    "example": 1820000000,
                    "description": "Unix timestamp (in seconds) of the moment when the prepared invite must be sent. Must be a positive integer that points to a moment in the future."
                  }
                },
                "x-examples": {
                  "Field invite (document group with fields)": {
                    "invite_data": {
                      "cc": [
                        "cc-recipient@email.com"
                      ],
                      "order_type": "recipient_order",
                      "invite_steps": [
                        {
                          "order": 1,
                          "invite_emails": [
                            {
                              "email": "approver@email.com",
                              "message": "Review and approve before sending to the signer.",
                              "subject": "Please approve the document",
                              "expiration_days": 30
                            }
                          ],
                          "invite_actions": [
                            {
                              "email": "approver@email.com",
                              "action": "approve",
                              "role_name": "Approver",
                              "document_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "redirect_uri": "https://example.com/",
                              "authentication": {
                                "type": "phone",
                                "phone": "+12025550123",
                                "method": "phone_call"
                              },
                              "redirect_target": "blank"
                            }
                          ]
                        },
                        {
                          "order": 2,
                          "invite_emails": [
                            {
                              "email": "signer1@email.com",
                              "message": "Hi, please sign this document group.",
                              "subject": "Please sign",
                              "reminder": {
                                "remind_after": 5,
                                "remind_before": 3,
                                "remind_repeat": 2
                              },
                              "expiration_days": 30
                            }
                          ],
                          "invite_actions": [
                            {
                              "email": "signer1@email.com",
                              "action": "sign",
                              "role_name": "Signer 1",
                              "document_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "redirect_uri": "https://example.com/",
                              "allow_reassign": "0",
                              "authentication": {
                                "type": "password",
                                "value": "123456"
                              },
                              "redirect_target": "blank",
                              "decline_by_signature": "0",
                              "decline_redirect_uri": "https://example.com/"
                            }
                          ]
                        },
                        {
                          "order": 3,
                          "invite_emails": [
                            {
                              "email": "viewer@email.com",
                              "message": "The document has been signed. You can view it.",
                              "subject": "Signed document"
                            }
                          ],
                          "invite_actions": [
                            {
                              "email": "viewer@email.com",
                              "action": "view",
                              "role_name": "Viewer",
                              "document_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                            }
                          ]
                        }
                      ],
                      "sign_as_merged": false
                    },
                    "scheduled_timestamp": 1820000000
                  },
                  "Freeform invite (document group without fields)": {
                    "invite_data": {
                      "cc": [
                        {
                          "email": "cc-recipient@email.com"
                        }
                      ],
                      "to": [
                        {
                          "email": "signer1@email.com",
                          "language": "en",
                          "redirect_uri": "https://example.com/",
                          "redirect_target": "blank"
                        }
                      ],
                      "message": "Please sign this document group.",
                      "subject": "Please sign this document group",
                      "redirect_uri": "https://example.com/",
                      "client_timestamp": 1820000000
                    },
                    "scheduled_timestamp": 1820000000
                  }
                }
              },
              "examples": {
                "Field invite (document group with fields)": {
                  "value": {
                    "invite_data": {
                      "cc": [
                        "cc-recipient@email.com"
                      ],
                      "order_type": "recipient_order",
                      "invite_steps": [
                        {
                          "order": 1,
                          "invite_emails": [
                            {
                              "email": "approver@email.com",
                              "message": "Review and approve before sending to the signer.",
                              "subject": "Please approve the document",
                              "expiration_days": 30
                            }
                          ],
                          "invite_actions": [
                            {
                              "email": "approver@email.com",
                              "action": "approve",
                              "role_name": "Approver",
                              "document_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "redirect_uri": "https://example.com/",
                              "authentication": {
                                "type": "phone",
                                "phone": "+12025550123",
                                "method": "phone_call"
                              },
                              "redirect_target": "blank"
                            }
                          ]
                        },
                        {
                          "order": 2,
                          "invite_emails": [
                            {
                              "email": "signer1@email.com",
                              "message": "Hi, please sign this document group.",
                              "subject": "Please sign",
                              "reminder": {
                                "remind_after": 5,
                                "remind_before": 3,
                                "remind_repeat": 2
                              },
                              "expiration_days": 30
                            }
                          ],
                          "invite_actions": [
                            {
                              "email": "signer1@email.com",
                              "action": "sign",
                              "role_name": "Signer 1",
                              "document_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "redirect_uri": "https://example.com/",
                              "allow_reassign": "0",
                              "authentication": {
                                "type": "password",
                                "value": "123456"
                              },
                              "redirect_target": "blank",
                              "decline_by_signature": "0",
                              "decline_redirect_uri": "https://example.com/"
                            }
                          ]
                        },
                        {
                          "order": 3,
                          "invite_emails": [
                            {
                              "email": "viewer@email.com",
                              "message": "The document has been signed. You can view it.",
                              "subject": "Signed document"
                            }
                          ],
                          "invite_actions": [
                            {
                              "email": "viewer@email.com",
                              "action": "view",
                              "role_name": "Viewer",
                              "document_id": "30XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                            }
                          ]
                        }
                      ],
                      "sign_as_merged": false
                    },
                    "scheduled_timestamp": 1820000000
                  }
                },
                "Freeform invite (document group without fields)": {
                  "value": {
                    "invite_data": {
                      "cc": [
                        {
                          "email": "cc-recipient@email.com"
                        }
                      ],
                      "to": [
                        {
                          "email": "signer1@email.com",
                          "language": "en",
                          "redirect_uri": "https://example.com/",
                          "redirect_target": "blank"
                        }
                      ],
                      "message": "Please sign this document group.",
                      "subject": "Please sign this document group",
                      "redirect_uri": "https://example.com/",
                      "client_timestamp": 1820000000
                    },
                    "scheduled_timestamp": 1820000000
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "put-document-group-scheduled-invite",
        "summary": "Update scheduled invite",
        "description": "This endpoint allows API users to update the `scheduled_timestamp` of an active scheduled document group invite. Only the timing can be changed; to change the invite payload itself, cancel the active scheduled invite and create a new one.\n\n**Notes**\n\n* A paid API plan or Site License is required.\n* The new `scheduled_timestamp` must be a Unix timestamp (in seconds) that points to a moment in the future.\n* The document group must have a scheduled invite in the `active` status.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group for which the scheduled invite is created."
          }
        ],
        "responses": {
          "200": {
            "description": "Returned when the scheduled invite is successfully rescheduled.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Success": {
                      "result": "success"
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation errors for the update payload:\n\n* `scheduled_timestamp` is missing, null, not an integer, or points to a moment in the past.\n* The document group does not have an active scheduled invite.\n* The user is not the document group owner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Incorrect scheduled time": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Incorrect scheduled time for invite."
                        }
                      ]
                    }
                  },
                  "scheduled_timestamp is null": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `scheduled_timestamp` value should not be null."
                        }
                      ]
                    }
                  },
                  "scheduled_timestamp wrong type": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `scheduled_timestamp` value should be of type int."
                        }
                      ]
                    }
                  },
                  "User is not document group owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "User is not document group owner"
                        }
                      ]
                    }
                  },
                  "Active scheduled invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Active scheduled invite not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scheduled_timestamp"
                ],
                "properties": {
                  "scheduled_timestamp": {
                    "type": "integer",
                    "example": 1820000000,
                    "description": "New Unix timestamp (in seconds) of the moment when the prepared invite must be sent. Must be a positive integer that points to a moment in the future."
                  }
                },
                "x-examples": {
                  "Correct request": {
                    "scheduled_timestamp": 1820000000
                  }
                }
              },
              "examples": {
                "Correct request": {
                  "value": {
                    "scheduled_timestamp": 1820000000
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-document-group-scheduled-invite",
        "summary": "Cancel scheduled invite",
        "description": "This endpoint allows API users to cancel an active scheduled document group invite. Once cancelled, the scheduled invite is no longer in the `active` status and will not be sent at the originally scheduled time. After cancellation, a new scheduled invite can be created for the same document group.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group for which the scheduled invite is created."
          }
        ],
        "responses": {
          "200": {
            "description": "Returned when the active scheduled invite is successfully cancelled.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Success": {
                      "result": "success"
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Errors:\n\n* The document group does not have an active scheduled invite.\n* The user is not the document group owner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "User is not document group owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "User is not document group owner"
                        }
                      ]
                    }
                  },
                  "Active scheduled invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Active scheduled invite not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/documentgroup/{document_group_id}/scheduled-invite/send": {
      "post": {
        "operationId": "post-document-group-scheduled-invite-send",
        "summary": "Send scheduled invite",
        "description": "This endpoint allows API users to send an active scheduled document group invite immediately, bypassing the originally scheduled time. After the invite is sent, the scheduled record is removed from the `active` status.",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group whose scheduled invite is sent immediately."
          }
        ],
        "responses": {
          "200": {
            "description": "Returned when the scheduled invite is sent successfully. The response shape depends on the invite type: field invite returns `id` and `pending_invite_link`; freeform invite returns a `data` object that contains `id`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Field invite shape: `{id, pending_invite_link}`. <br> Freeform invite shape: `{data: {id}}`. <br> See examples."
                },
                "examples": {
                  "Field invite": {
                    "value": {
                      "id": "cf167dedcbe2466287033ddffb32fb18c4ad5340",
                      "pending_invite_link": null
                    }
                  },
                  "Freeform invite": {
                    "value": {
                      "data": {
                        "id": "cf167dedcbe2466287033ddffb32fb18c4ad5346"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Errors:\n\n* The document group does not have an active scheduled invite.\n* The user is not the document group owner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "User is not document group owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "User is not document group owner"
                        }
                      ]
                    }
                  },
                  "Active scheduled invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Active scheduled invite not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/{document_id}/scheduled-invite": {
      "post": {
        "operationId": "post-document-scheduled-invite",
        "summary": "Create scheduled invite",
        "description": "This endpoint allows API users to create a scheduled document invite. At the moment specified by `scheduled_timestamp`, the invite is sent to recipients automatically. Both freeform invite and field invite can be sent.\n\n**Notes**\n\n* A paid API plan or Site License is required to create a scheduled invite.\n* `scheduled_timestamp` must be a Unix timestamp (in seconds) that points to a moment in the future.\n* The invite type is detected from the `invite_data` payload shape:\n    * If the document does **not** contain fields, pass a [freeform invite payload](/docs/document-field-invite/operations/post-field-invite) in `invite_data`.\n    * If the document contains fields, pass a [field invite payload](/docs/document-field-invite/operations/post-field-invite) in `invite_data`.\n* Each document can have only one scheduled invite in the `active` status.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document for which the scheduled invite is created."
          }
        ],
        "responses": {
          "204": {
            "description": "Returned when the scheduled invite passes validation and is stored with the `active` status. The response body is empty."
          },
          "400": {
            "description": "Validation errors for the scheduled invite payload:\n\n* `scheduled_timestamp` is missing, null, not an integer, or points to a moment in the past.\n* `invite_data` is missing, null, of the wrong type, or empty.\n* The document already has an active scheduled invite.\n* The user is not the document owner.\n\nIn addition, all validation errors that apply to the regular invite payload also apply to the contents of `invite_data`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "invite_data is null": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `invite_data` value should not be null."
                        }
                      ]
                    }
                  },
                  "invite_data is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `invite_data` value must not be an empty array."
                        }
                      ]
                    }
                  },
                  "invite_data wrong type": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `invite_data` value should be of type array."
                        }
                      ]
                    }
                  },
                  "Incorrect scheduled time": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Incorrect scheduled time for invite."
                        }
                      ]
                    }
                  },
                  "User is not document owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "User is not document owner"
                        }
                      ]
                    }
                  },
                  "scheduled_timestamp is null": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `scheduled_timestamp` value should not be null."
                        }
                      ]
                    }
                  },
                  "scheduled_timestamp wrong type": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `scheduled_timestamp` value should be of type int."
                        }
                      ]
                    }
                  },
                  "Scheduled invite already exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "A scheduled invite already exists."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scheduled_timestamp",
                  "invite_data"
                ],
                "properties": {
                  "invite_data": {
                    "type": "object",
                    "description": "The full document invite payload. The invite type is detected from the payload shape:\n\n* Send the same body as the [Create freeform invite](/docs/document-field-invite/operations/post-field-invite) endpoint when the document does not contain fields.\n* Send the same body as the [Create field invite](/docs/document-field-invite/operations/post-field-invite) endpoint when the document contains fields."
                  },
                  "scheduled_timestamp": {
                    "type": "integer",
                    "example": 1820000000,
                    "description": "Unix timestamp (in seconds) of the moment when the prepared invite must be sent. Must be a positive integer that points to a moment in the future."
                  }
                },
                "x-examples": {
                  "Field invite (document with fields)": {
                    "invite_data": {
                      "cc": [
                        "cc-recipient@email.com"
                      ],
                      "to": [
                        {
                          "role": "Signer",
                          "email": "signer1@email.com",
                          "order": 2,
                          "message": "Hi, please sign this document.",
                          "subject": "New signature request",
                          "password": "123456",
                          "reminder": {
                            "remind_after": 5,
                            "remind_before": 3,
                            "remind_repeat": 2
                          },
                          "redirect_uri": "https://example.com/",
                          "expiration_days": 30,
                          "redirect_target": "blank",
                          "authentication_type": "password",
                          "decline_redirect_uri": "https://example.com/"
                        }
                      ],
                      "from": "sender@email.com",
                      "message": "Please sign the attached document.",
                      "subject": "Needs your signature",
                      "viewers": [
                        {
                          "role": "Viewer",
                          "email": "viewer@email.com",
                          "order": 3,
                          "message": "Please review the document.",
                          "subject": "Document for your review"
                        }
                      ],
                      "approvers": [
                        {
                          "role": "Approver",
                          "email": "approver@email.com",
                          "order": 1,
                          "phone": "+12025550123",
                          "method": "phone_call",
                          "message": "Review and approve before sending to the signer.",
                          "subject": "Please approve the document",
                          "redirect_uri": "https://example.com/",
                          "expiration_days": 30,
                          "redirect_target": "blank",
                          "authentication_type": "phone"
                        }
                      ],
                      "cc_message": "CC on a signature request.",
                      "cc_subject": "Signature requested"
                    },
                    "scheduled_timestamp": 1820000000
                  },
                  "Freeform invite (document without fields)": {
                    "invite_data": {
                      "cc": [
                        "cc-recipient@email.com"
                      ],
                      "to": "signer1@email.com",
                      "from": "sender@email.com",
                      "message": "Please sign this document.",
                      "subject": "Please sign this document",
                      "language": "en",
                      "cc_message": "CC on a signature request.",
                      "cc_subject": "Signature requested",
                      "redirect_uri": "https://example.com/",
                      "redirect_target": "blank"
                    },
                    "scheduled_timestamp": 1820000000
                  }
                }
              },
              "examples": {
                "Field invite (document with fields)": {
                  "value": {
                    "invite_data": {
                      "cc": [
                        "cc-recipient@email.com"
                      ],
                      "to": [
                        {
                          "role": "Signer",
                          "email": "signer1@email.com",
                          "order": 2,
                          "message": "Hi, please sign this document.",
                          "subject": "New signature request",
                          "password": "123456",
                          "reminder": {
                            "remind_after": 5,
                            "remind_before": 3,
                            "remind_repeat": 2
                          },
                          "redirect_uri": "https://example.com/",
                          "expiration_days": 30,
                          "redirect_target": "blank",
                          "authentication_type": "password",
                          "decline_redirect_uri": "https://example.com/"
                        }
                      ],
                      "from": "sender@email.com",
                      "message": "Please sign the attached document.",
                      "subject": "Needs your signature",
                      "viewers": [
                        {
                          "role": "Viewer",
                          "email": "viewer@email.com",
                          "order": 3,
                          "message": "Please review the document.",
                          "subject": "Document for your review"
                        }
                      ],
                      "approvers": [
                        {
                          "role": "Approver",
                          "email": "approver@email.com",
                          "order": 1,
                          "phone": "+12025550123",
                          "method": "phone_call",
                          "message": "Review and approve before sending to the signer.",
                          "subject": "Please approve the document",
                          "redirect_uri": "https://example.com/",
                          "expiration_days": 30,
                          "redirect_target": "blank",
                          "authentication_type": "phone"
                        }
                      ],
                      "cc_message": "CC on a signature request.",
                      "cc_subject": "Signature requested"
                    },
                    "scheduled_timestamp": 1820000000
                  }
                },
                "Freeform invite (document without fields)": {
                  "value": {
                    "invite_data": {
                      "cc": [
                        "cc-recipient@email.com"
                      ],
                      "to": "signer1@email.com",
                      "from": "sender@email.com",
                      "message": "Please sign this document.",
                      "subject": "Please sign this document",
                      "language": "en",
                      "cc_message": "CC on a signature request.",
                      "cc_subject": "Signature requested",
                      "redirect_uri": "https://example.com/",
                      "redirect_target": "blank"
                    },
                    "scheduled_timestamp": 1820000000
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "put-document-scheduled-invite",
        "summary": "Update scheduled invite",
        "description": "This endpoint allows API users to update the `scheduled_timestamp` of an active scheduled document invite. Only the timing can be changed; to change the invite payload itself, cancel the active scheduled invite and create a new one.\n\n**Notes**\n\n* A paid API plan or Site License is required.\n* The new `scheduled_timestamp` must be a Unix timestamp (in seconds) that points to a moment in the future.\n* The document must have a scheduled invite in the `active` status.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document for which the scheduled invite is created."
          }
        ],
        "responses": {
          "200": {
            "description": "Returned when the scheduled invite is successfully rescheduled.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Success": {
                      "result": "success"
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation errors for the update payload:\n\n* `scheduled_timestamp` is missing, null, not an integer, or points to a moment in the past.\n* The document does not have an active scheduled invite.\n* The user is not the document owner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Incorrect scheduled time": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Incorrect scheduled time for invite."
                        }
                      ]
                    }
                  },
                  "User is not document owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "User is not document owner"
                        }
                      ]
                    }
                  },
                  "scheduled_timestamp is null": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `scheduled_timestamp` value should not be null."
                        }
                      ]
                    }
                  },
                  "scheduled_timestamp wrong type": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The `scheduled_timestamp` value should be of type int."
                        }
                      ]
                    }
                  },
                  "Active scheduled invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Active scheduled invite not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "scheduled_timestamp"
                ],
                "properties": {
                  "scheduled_timestamp": {
                    "type": "integer",
                    "example": 1820000000,
                    "description": "New Unix timestamp (in seconds) of the moment when the prepared invite must be sent. Must be a positive integer that points to a moment in the future."
                  }
                },
                "x-examples": {
                  "Correct request": {
                    "scheduled_timestamp": 1820000000
                  }
                }
              },
              "examples": {
                "Correct request": {
                  "value": {
                    "scheduled_timestamp": 1820000000
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-document-scheduled-invite",
        "summary": "Cancel scheduled invite",
        "description": "This endpoint allows API users to cancel an active scheduled document invite. Once cancelled, the scheduled invite is no longer in the `active` status and will not be sent at the originally scheduled time. After cancellation, a new scheduled invite can be created for the same document.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document for which the scheduled invite is created."
          }
        ],
        "responses": {
          "200": {
            "description": "Returned when the active scheduled invite is successfully cancelled.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Success": {
                      "result": "success"
                    }
                  }
                },
                "examples": {
                  "Success": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Errors:\n\n* The document does not have an active scheduled invite.\n* The user is not the document owner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "User is not document owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "User is not document owner"
                        }
                      ]
                    }
                  },
                  "Active scheduled invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Active scheduled invite not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/{document_id}/scheduled-invite/send": {
      "post": {
        "operationId": "post-document-scheduled-invite-send",
        "summary": "Send scheduled invite",
        "description": "This endpoint allows API users to send an active scheduled document invite immediately, bypassing the originally scheduled time. After the invite is sent, the scheduled record is removed from the `active` status.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "ID of the document whose scheduled invite is sent immediately."
          }
        ],
        "responses": {
          "200": {
            "description": "Returned when the scheduled invite is sent successfully. The response shape depends on the invite type: field invite returns `status`; freeform invite returns `result`, `id`, and `callback_url`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Field invite shape: `{status}`. <br> Freeform invite shape: `{result, id, callback_url}`. <br> See examples."
                },
                "examples": {
                  "Field invite": {
                    "value": {
                      "status": "success"
                    }
                  },
                  "Freeform invite": {
                    "value": {
                      "id": "cf167dedcbe2466287033ddffb32fb18c4ad5346",
                      "result": "success",
                      "callback_url": "none"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Errors:\n\n* The document does not have an active scheduled invite.\n* The user is not the document owner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "User is not document owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "User is not document owner"
                        }
                      ]
                    }
                  },
                  "Active scheduled invite not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Active scheduled invite not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/search": {
      "get": {
        "operationId": "get-v2-search",
        "summary": "Search for documents, templates, and document groups",
        "description": "This endpoint allows users to search across their documents, templates, document groups, and document group templates. Search covers all folders accessible to the user, including own, shared, and team folders. Results are sorted by the date updated, from newest to oldest.\n\nEach `search_by` value uses its own matching logic and minimum `search_key` length:\n\n| `search_by` value | Searches | Matching | Min `search_key` length |\n|---|---|---|---|\n| `name` | Entity name | Contains | 1 |\n| `id` | Entity ID | Exact match | — |\n| `inviter-email` | Inviter email | Prefix | 2 |\n| `signer-email` | Signer email | Prefix | 2 |\n| `document-text` | Text inside the document | Substring | 3 |\n\nMatching is case-insensitive. Leading and trailing whitespace in `search_key` is trimmed before the length check. If `search_key` is shorter than the minimum for a given field, that field returns no results without a validation error. For `inviter-email` and `signer-email`, the prefix match applies to the first 40 characters of the email; a longer `search_key` matches by exact email value.\n\nThe maximum number of results before pagination is 1,000.",
        "parameters": [
          {
            "in": "query",
            "name": "search_key",
            "type": "string",
            "required": true,
            "description": "Search phrase. Must be a non-empty string."
          },
          {
            "in": "query",
            "name": "search_by",
            "type": "string",
            "required": true,
            "description": "Comma-separated list of fields to search by. Possible values: `name`, `id`, `inviter-email`, `signer-email`, `document-text`."
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "integer",
            "default": 15,
            "required": false,
            "description": "Number of results per page. Possible values: 1–20."
          },
          {
            "in": "query",
            "name": "page",
            "type": "integer",
            "default": 1,
            "required": false,
            "description": "Page number. Must be greater than 0."
          }
        ],
        "responses": {
          "200": {
            "description": "Success. `entity_properties` content depends on `entity_type`. An empty result returns HTTP 200 with an empty `data` array and `meta.pagination.total` set to `0`. Document text and emails are used for matching only and are not returned in the response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "ID of the entity."
                          },
                          "name": {
                            "type": "string",
                            "description": "Name of the entity."
                          },
                          "owner": {
                            "type": "string",
                            "description": "Email address of the entity owner."
                          },
                          "created": {
                            "type": "string",
                            "description": "Unix timestamp of when the entity was created."
                          },
                          "updated": {
                            "type": "string",
                            "description": "Unix timestamp of when the entity was last updated."
                          },
                          "folder_id": {
                            "type": "string",
                            "description": "ID of the folder the entity belongs to."
                          },
                          "entity_type": {
                            "type": "string",
                            "description": "Type of the entity. Possible values: `document`, `template`, `document-group`, `dgt`."
                          },
                          "entity_properties": {
                            "type": "object",
                            "description": "Type-specific properties of the entity. Content varies by `entity_type`."
                          }
                        }
                      },
                      "description": "List of matching entities."
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer",
                              "description": "Number of results on the current page."
                            },
                            "links": {
                              "type": "object",
                              "description": "Pagination links."
                            },
                            "total": {
                              "type": "integer",
                              "description": "Total number of matching results."
                            },
                            "per_page": {
                              "type": "integer",
                              "description": "Number of results per page."
                            },
                            "total_pages": {
                              "type": "integer",
                              "description": "Total number of pages."
                            },
                            "current_page": {
                              "type": "integer",
                              "description": "Current page number."
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "data": [
                        {
                          "id": "4fXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Sales invoice.pdf",
                          "owner": "owner@email.com",
                          "created": "1696492112",
                          "updated": "1696492114",
                          "folder_id": "e6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "entity_type": "document-group",
                          "entity_properties": {
                            "state": "created",
                            "documents": [
                              {
                                "id": "60XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "owner": {
                                  "id": "57XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "email": "owner@email.com"
                                },
                                "roles": [],
                                "updated": 1696492113,
                                "folder_id": null,
                                "thumbnail": {
                                  "large": "https://api.signnow.com/document/60XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                                  "small": "https://api.signnow.com/document/60XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                                  "medium": "https://api.signnow.com/document/60XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                                },
                                "has_fields": false,
                                "page_count": 1,
                                "signatures": [],
                                "document_name": "Sales invoice.pdf",
                                "field_invites": [],
                                "freeform_invites": []
                              }
                            ],
                            "invite_id": null,
                            "origin_dgt": null,
                            "entity_labels": [],
                            "sign_as_merged": null,
                            "scheduled_invite": null,
                            "freeform_invite_id": null
                          }
                        },
                        {
                          "id": "d0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "name": "Contract",
                          "owner": "owner@email.com",
                          "created": "1696492100",
                          "updated": "1696492110",
                          "folder_id": "e6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "entity_type": "document",
                          "entity_properties": {
                            "roles": [
                              {
                                "name": "Signer 1",
                                "unique_id": "59XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                "signing_order": "1"
                              }
                            ],
                            "thumbnail": {
                              "large": "https://api.signnow.com/document/d0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                              "small": "https://api.signnow.com/document/d0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                              "medium": "https://api.signnow.com/document/d0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                            },
                            "page_count": "1",
                            "signatures": [],
                            "entity_labels": [],
                            "field_invites": [],
                            "scheduled_invite": null,
                            "origin_document_id": null
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": {
                            "next": "https://api.signnow.com/v2/search?search_key=invoice&search_by=name&per_page=15&page=2"
                          },
                          "total": 118,
                          "per_page": 15,
                          "total_pages": 8,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token.\n* The `search_key` field is not a string.\n* The `search_key` field is empty.\n* The `search_by` field is not a string.\n* The `search_by` field is empty.\n* The `search_by` field values are not in the available value list: `name`, `id`, `inviter-email`, `signer-email`, `document-text`.\n* The `per_page` field is not a digit.\n* The `per_page` field value is 0 or less.\n* The `per_page` field value is greater than 20.\n* The `page` field is not a digit.\n* The `page` field value is 0 or less.\n* Could not find search info.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "search_by is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003010,
                          "message": "The `search_by` field is empty."
                        }
                      ]
                    }
                  },
                  "page is not a digit": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003015,
                          "message": "The `page` field is not a digit."
                        }
                      ]
                    }
                  },
                  "search_key is empty": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003008,
                          "message": "The `search_key` field is empty."
                        }
                      ]
                    }
                  },
                  "Search info not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003021,
                          "message": "Could not find search info."
                        }
                      ]
                    }
                  },
                  "page value is 0 or less": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003016,
                          "message": "The `page` field value is 0 or less."
                        }
                      ]
                    }
                  },
                  "per_page is not a digit": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003012,
                          "message": "The `per_page` field is not a digit."
                        }
                      ]
                    }
                  },
                  "search_by is not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003009,
                          "message": "The `search_by` field is not a string."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "search_key is not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003007,
                          "message": "The `search_key` field is not a string."
                        }
                      ]
                    }
                  },
                  "per_page value is 0 or less": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003013,
                          "message": "The `per_page` field value is 0 or less."
                        }
                      ]
                    }
                  },
                  "search_by value is not valid": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003011,
                          "message": "The `search_by` field values are not in the available value list: `name`, `id`, `inviter-email`, `signer-email`, `document-text`."
                        }
                      ]
                    }
                  },
                  "per_page value is greater than 20": {
                    "value": {
                      "errors": [
                        {
                          "code": 26003014,
                          "message": "The `per_page` field value is greater than 20."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "* Internal API error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Internal server error": {
                    "value": {
                      "error": [
                        {
                          "code": 26000005,
                          "message": "Internal Api Error"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/application/signing-links": {
      "get": {
        "operationId": "get-v2-application-signing-links",
        "summary": "Get signing links",
        "description": "Retrieve the list of user's signing links.",
        "parameters": [
          {
            "in": "query",
            "name": "per_page",
            "type": "string",
            "required": false,
            "description": "How many links to show per page in response. Default value: 15"
          },
          {
            "in": "query",
            "name": "page",
            "type": "string",
            "required": false,
            "description": "In how many pages to display the response. Default value: 1"
          },
          {
            "in": "query",
            "name": "count",
            "type": "string",
            "required": false,
            "description": "Possible values: array with 2 items. Item type is null or integer. Format: `?filters=[{\"count\":{\"type\":\"between\",\"value\":[2,5]}}]`"
          },
          {
            "in": "query",
            "name": "active",
            "type": "string",
            "required": false,
            "description": "Filter only active or inactive links. Possible values: true/false. Format: `?filters=[{\"active\":{\"type\":\"=\",\"value\":false}}]`"
          },
          {
            "in": "query",
            "name": "created",
            "type": "string",
            "required": false,
            "description": "Filter by the date of creation. Possible values: desc (descending order)/asc (ascending order). Example: `?sort[created]=desc`"
          },
          {
            "in": "query",
            "name": "count",
            "type": "string",
            "required": false,
            "description": "Filter by count. Possible values: desc (descending order)/asc (ascending order). Example: `?sort[count]=desc`"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns data about links. Returns an error when:\n\n* Invalid authorization, \"code\": 1537. Message: \"invalid_token\"",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "meta"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "required": [
                          "id",
                          "active",
                          "created",
                          "count",
                          "hash"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "hash": {
                            "type": "string",
                            "minLength": 1
                          },
                          "count": {
                            "type": "number"
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "created": {
                            "type": "number"
                          }
                        }
                      },
                      "minItems": 1,
                      "uniqueItems": true
                    },
                    "meta": {
                      "type": "object",
                      "required": [
                        "pagination"
                      ],
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "required": [
                            "total",
                            "count",
                            "per_page",
                            "current_page",
                            "total_pages",
                            "links"
                          ],
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "links": {
                              "type": "object",
                              "required": [
                                "previous",
                                "next"
                              ],
                              "properties": {
                                "next": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "previous": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              }
                            },
                            "total": {
                              "type": "number"
                            },
                            "per_page": {
                              "type": "number"
                            },
                            "total_pages": {
                              "type": "number"
                            },
                            "current_page": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "data": [
                        {
                          "id": "247a8c718b48958df42e0556e205453bf5151f5a",
                          "hash": "HaSh",
                          "count": 7,
                          "active": true,
                          "created": 1554801793
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": {
                            "next": "http://127.0.0.1:84/v2/signing-links?per_page=1&page=3",
                            "previous": "http://127.0.0.1:84/v2/signing-links?per_page=1&page=1"
                          },
                          "total": 3,
                          "per_page": 1,
                          "total_pages": 3,
                          "current_page": 2
                        }
                      }
                    }
                  },
                  "description": ""
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "data": [
                        {
                          "id": "24XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "hash": "HaSh",
                          "count": 7,
                          "active": true,
                          "created": 1554801793
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": {
                            "next": "http://example.com/v2/signing-links?per_page=1&page=3",
                            "previous": "http://example.com/v2/signing-links?per_page=1&page=1"
                          },
                          "total": 3,
                          "per_page": 1,
                          "total_pages": 3,
                          "current_page": 2
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          }
        ]
      }
    },
    "/link": {
      "post": {
        "operationId": "post-link-smart-fields",
        "summary": "Add smart fields values to redirect URI",
        "description": "Add smart field values into the redirect URI via placeholders when creating a link for a template that contains smart fields.\n\n1. Create a template with smart fields\n2. Create a single signing link for the template with `redirect_uri` parameter that contains field placeholders to match field values.\n\n*Example*\n\n```\nhttps://example.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]\n\n```",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "url_no_signup": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "url": "http://signnow.com/s/1IFqEIt",
                      "url_no_signup": "https://google.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]"
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "url": "http://example.com/12XXXXXX",
                      "url_no_signup": "https://example.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "document_id",
                  "redirect_uri"
                ],
                "properties": {
                  "document_id": {
                    "type": "string",
                    "description": "ID of the document to create link for."
                  },
                  "redirect_uri": {
                    "type": "string",
                    "description": "The URI that opens after completing the document."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "document_id": "{{document_id}}",
                    "redirect_uri": "https://google.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]"
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "document_id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                    "redirect_uri": "https://example.com?firstname=[smart_fields.firstname]&lastname=[smart_fields.lastname]"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/application/signing-links/{signing_link_short_url_id}": {
      "put": {
        "operationId": "put-v2-application-signing-links-signing-link-short-url-id",
        "summary": "Activate/deactivate signing link",
        "description": "Allows API users to activate or deactivate the existing signing links.\n\nFor more information, check out our video tutorial.\n\n<details open>\n\n**<summary>Video tutorial</summary>**\n\n<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>\n\n[Video tutorial](https://www.youtube.com/watch?v=XbUwX_2S5eU)\n\n</details>",
        "parameters": [
          {
            "in": "path",
            "name": "signing_link_short_url_id",
            "type": "string",
            "required": true,
            "description": "ID of a Signing Link that should be activated/deactivated"
          }
        ],
        "responses": {
          "204": {
            "description": "Returns empty 204 successul request. Returns an error when:\n\n* Empty \"active\" parameter, \"code\": 0. Message: \"Field `active` must be not null\"\n* Incorrect value of \"active\" parameter, \"code\": 0. Message: \"Field `active` must be a boolean\"\n* API user is not the owner of the signing link, \"code\": 0. Message: \"Access for the resource `signingLinkId` is forbidden\"\n* Invalid \"from\" email, \"code\": 65582. Message: \"Document not found\"\n* Invalid authorization, \"code\": 1537. Message: \"invalid_token\""
          }
        },
        "security": [
          {
            "Basic": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "active"
                ],
                "properties": {
                  "active": {
                    "type": "boolean",
                    "description": "Boolean. Determines if the link must be active. Possible values: `true` - yes, the link must be active, `false` - deactivate the link."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "active": true
                  }
                },
                "description": ""
              },
              "examples": {
                "application/json": {
                  "value": {
                    "active": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/document-groups/{document_group_id}/signing-links": {
      "post": {
        "operationId": "post-v2-document-group-document-group-id-signing-links",
        "summary": "Create/edit signing link for doc group",
        "description": "Allows users to update a short link to a document group, if one already exists, or create a short link, if there isn't any for the specified document group.\n\nThis endpoint can be used only:\n* by the owner of the document group\n* when there are no documents within the document group that have Viewers in the routing details\n* all the roles specified in the documents are mapped with recipients of the signing link\n* when there are no roles with Viewer level of access to all documents\n* at least one of the documents has active fields",
        "parameters": [
          {
            "in": "path",
            "name": "document_group_id",
            "type": "string",
            "required": true,
            "description": "ID of the document group."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "examples": {
                  "data": {
                    "value": {
                      "id": "2aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "url": "https://example.com/dispatch?route=document_group_signing_link&signing_link_id=84XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "hash": "rXXXXXXX",
                      "created": 1625239864,
                      "short_url": "shorturl.at/wXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request without headers\n* There are no fields on the documents\n* Document group has active invite\n* There is no recipient on the document group\n* There is no guest signer on the first signing step.\n* There is more than one guest signer on the document group.\n* Documents should not be deleted.\n* Not all signers mapped to recipients.\n* There cannot exist view only recipient on the document group.\n* `Require Login to Sign` organization setting is enabled.\n* `Invites Must Use Two Factor Authentication` organization setting is enabled. \n* At least one recipient contain email group\n\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request without headers": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Document group has active invite": {
                    "value": {
                      "errors": [
                        {
                          "code": 19040003,
                          "message": "Document group has active invite."
                        }
                      ]
                    }
                  },
                  "Documents should not be deleted.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19040007,
                          "message": "Documents should not be deleted."
                        }
                      ]
                    }
                  },
                  "Not all signers mapped to recipients.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19040008,
                          "message": "Not all signers mapped to recipients."
                        }
                      ]
                    }
                  },
                  "There are no fields on the documents.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19040002,
                          "message": "There are no fields on the documents."
                        }
                      ]
                    }
                  },
                  "At least one recipient contain email group": {
                    "value": {
                      "errors": [
                        {
                          "code": 190400012,
                          "message": "At least one recipient contains email group."
                        }
                      ]
                    }
                  },
                  "There is no recipient on the document group.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19040004,
                          "message": "There is no recipient on the document group."
                        }
                      ]
                    }
                  },
                  "There is no guest signer on the first signing step.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19040005,
                          "message": "There is no guest signer on the first signing step."
                        }
                      ]
                    }
                  },
                  "`Require Login to Sign` organization setting is enabled.": {
                    "value": {
                      "errors": [
                        {
                          "code": 190400011,
                          "message": "Require Login to Sign organization setting is enabled."
                        }
                      ]
                    }
                  },
                  "There is more than one guest signer on the document group.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19040006,
                          "message": "There is more than one guest signer on the document group."
                        }
                      ]
                    }
                  },
                  "There cannot exist view only recipient on the document group.": {
                    "value": {
                      "errors": [
                        {
                          "code": 190400010,
                          "message": "There cannot exist view only recipient on the document group."
                        }
                      ]
                    }
                  },
                  "`Invites Must Use Two Factor Authentication` organization setting is enabled": {
                    "value": {
                      "errors": [
                        {
                          "code": 190400012,
                          "message": "`Invites Must Use Two Factor Authentication` organization setting is enabled."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Current user is not document group owner.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Current user is not document group owner.": {
                    "value": {
                      "errors": [
                        {
                          "code": 19040001,
                          "message": "Current user is not document group owner."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/{document_id}/integration/object/smartfields": {
      "post": {
        "operationId": "prefill-smart-fields",
        "summary": "Prefill smart fields",
        "description": "Prefills smart fields.\n\n**Note:** names of smart fields are case-sensitive.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Document not found": {
                    "value": {
                      "code": 65582,
                      "message": "Document not found"
                    }
                  },
                  "Invalid Authorization": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Field invite not found": {
                    "value": {
                      "code": 66502,
                      "message": "Field invite not found"
                    }
                  },
                  "Authentication type must not be empty": {
                    "value": {
                      "code": 65536,
                      "message": "authentication type must not be empty"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "data",
                  "client_timestamp"
                ],
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field_name1": {
                          "type": "string"
                        },
                        "field_name2": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "client_timestamp": {
                    "type": "string"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "data": [
                      {
                        "field_name1": "value1"
                      },
                      {
                        "field_name2": "value2"
                      }
                    ],
                    "client_timestamp": "UTC time stamp"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/document/{template_id}/integration_objects": {
      "post": {
        "operationId": "add-smart-fields-to-template-integraion-objects",
        "summary": "Add smart fields to template",
        "description": "Allows API users to add smart fields to a template - fillable fields in the template mapped with the fields in a CSV file. With smart fields, users can have their documents generated from a template and pre-filled automatically with data from a CSV file (spreadsheet) before sending.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": true,
            "description": "application/json"
          },
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "ID of the template"
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a new document ID in SignNow.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "3dXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect or missing token\n* Incorrect payload\n* User doesn’t own the document\n* Document is a part of a document group that is being changed\n* `integration_objects` not an array\n* Empty `integration_objects`\n* `api_integration_id` is not a string\n* `api_integration_id` is not found\n* Incorrect `color` format\n* `bold`, `italic`, or `underline` is not a boolean\n* `line_height` is not numeric\n* `line_height` is less than 0 or greater than 999.99\n* `size` is not numeric\n* Empty `size`\n* `size` is less than 0 or greater than 2147483647\n* `x` or `y` is not numeric\n* Empty `x` or `y`\n* `x` or `y` is less than 0\n* `x` or `y` is greater than 16777215\n* `data` is not a string\n* Empty `data`\n* `data` contains an ampersand (&)\n* `height` or `width` is not an integer\n* `height` or `width` is not within the 0-16777215 range\n* `font` is not a string\n* Empty `font`\n* `page_number` is not an integer\n* Empty `page_number`\n* `page_number` is less than 0",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Empty x": {
                    "value": {
                      "code": 66014,
                      "message": "X must not be empty"
                    }
                  },
                  "Empty y": {
                    "value": {
                      "code": 66015,
                      "message": "Y must not be empty"
                    }
                  },
                  "Empty data": {
                    "value": {
                      "code": 66008,
                      "message": "Data must not be empty"
                    }
                  },
                  "Empty font": {
                    "value": {
                      "code": 66016,
                      "message": "Font must not be empty"
                    }
                  },
                  "Empty size": {
                    "value": {
                      "code": 66017,
                      "message": "Size must not be empty"
                    }
                  },
                  "x less than 0": {
                    "value": {
                      "code": 65582,
                      "message": "Invalid data provided for X"
                    }
                  },
                  "x not numeric": {
                    "value": {
                      "code": 66014,
                      "message": "X must be numeric."
                    }
                  },
                  "y not numeric": {
                    "value": {
                      "code": 66015,
                      "message": "Y must be numeric."
                    }
                  },
                  "Incorrect width": {
                    "value": {
                      "code": 65582,
                      "message": "The `width` should be between 1 and 16777215."
                    }
                  },
                  "data not string": {
                    "value": {
                      "code": 66008,
                      "message": "Data must be a string"
                    }
                  },
                  "font not string": {
                    "value": {
                      "code": 66016,
                      "message": "Font must be string."
                    }
                  },
                  "Incorrect height": {
                    "value": {
                      "code": 65582,
                      "message": "The `height` should be between 1 and 16777215."
                    }
                  },
                  "bold not boolean": {
                    "value": {
                      "code": 65582,
                      "message": "The bold attribute must be boolean"
                    }
                  },
                  "size less than 0": {
                    "value": {
                      "code": 66017,
                      "message": "Size must not be less than 0."
                    }
                  },
                  "size not numeric": {
                    "value": {
                      "code": 66017,
                      "message": "Size must be numeric."
                    }
                  },
                  "Empty page_number": {
                    "value": {
                      "code": 66013,
                      "message": "Page number must not be empty"
                    }
                  },
                  "Incorrect payload": {
                    "value": {
                      "code": 65536,
                      "error": "Invalid payload"
                    }
                  },
                  "width not integer": {
                    "value": {
                      "code": 65582,
                      "message": "The `width` should be of type integer."
                    }
                  },
                  "height not integer": {
                    "value": {
                      "code": 65582,
                      "message": "The `height` should be of type integer."
                    }
                  },
                  "italic not boolean": {
                    "value": {
                      "code": 65582,
                      "message": "The italic attribute must be boolean"
                    }
                  },
                  "underline not boolean": {
                    "value": {
                      "code": 65582,
                      "message": "The underline attribute must be boolean"
                    }
                  },
                  "Incorrect color format": {
                    "value": {
                      "code": 65582,
                      "message": "The color attribute format is invalid"
                    }
                  },
                  "data contains ampersand": {
                    "value": {
                      "code": 66008,
                      "message": "Data must not contain ampersand character"
                    }
                  },
                  "line_height less than 0": {
                    "value": {
                      "code": 66018,
                      "message": "Line height must not be less than 0."
                    }
                  },
                  "line_height not numeric": {
                    "value": {
                      "code": 66018,
                      "message": "Line height must be numeric."
                    }
                  },
                  "page_number less than 0": {
                    "value": {
                      "code": 66013,
                      "message": "Page number must not be less then 0."
                    }
                  },
                  "page_number not integer": {
                    "value": {
                      "code": 66013,
                      "message": "Page number must be numeric."
                    }
                  },
                  "y greater than 16777215": {
                    "value": {
                      "code": 65582,
                      "message": "Invalid data provided for Y"
                    }
                  },
                  "Empty integration_objects": {
                    "value": {
                      "code": 65536,
                      "message": "Integration objects array is required."
                    }
                  },
                  "User doesn't own document": {
                    "value": {
                      "code": 65610,
                      "message": "not writable"
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "api_integration_id not found": {
                    "value": {
                      "code": 65582,
                      "message": "Api integration not found"
                    }
                  },
                  "size greater than 2147483647": {
                    "value": {
                      "code": 65582,
                      "message": "Invalid data provided for size"
                    }
                  },
                  "Doc group in correction state": {
                    "value": {
                      "code": 65582,
                      "message": "Document group in correction state."
                    }
                  },
                  "api_integration_id not string": {
                    "value": {
                      "code": 66011,
                      "message": "Invalid api_integration_id"
                    }
                  },
                  "integration_objects not array": {
                    "value": {
                      "code": 65536,
                      "message": "Integration objects must be an array."
                    }
                  },
                  "line_height greater than 99.999": {
                    "value": {
                      "code": 65582,
                      "message": "Invalid data provided for line_height"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Document not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Document not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "integration_objects"
                ],
                "properties": {
                  "integration_objects": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "page_number",
                        "font",
                        "data",
                        "api_integration_id",
                        "size",
                        "x",
                        "y"
                      ],
                      "properties": {
                        "x": {
                          "type": "integer",
                          "maximum": 16777215,
                          "minimum": 0,
                          "description": "X coordinates of a pixel on the page where the smart field should be placed.",
                          "exclusiveMaximum": true
                        },
                        "y": {
                          "type": "integer",
                          "maximum": 16777215,
                          "minimum": 0,
                          "description": "X coordinates of a pixel on the page where the smart field should be placed.",
                          "exclusiveMaximum": true
                        },
                        "data": {
                          "type": "string",
                          "description": "The name of the smart field."
                        },
                        "font": {
                          "type": "string",
                          "description": "Font for the text in the smart field. Possible values: `Arial`, `Times New Roman`, `Courier New`, `Tahoma`, and `Comic Sans MS`."
                        },
                        "size": {
                          "type": "integer",
                          "maximum": 2147483647,
                          "minimum": 0,
                          "description": "Font size for the text in the field.",
                          "exclusiveMaximum": true
                        },
                        "width": {
                          "type": "number",
                          "maximum": 16777215,
                          "minimum": 0,
                          "description": "Field width",
                          "x-stoplight": {
                            "id": "t9u1avlii4wr1"
                          },
                          "exclusiveMaximum": true
                        },
                        "height": {
                          "type": "number",
                          "maximum": 16777215,
                          "minimum": 0,
                          "description": "Field height",
                          "x-stoplight": {
                            "id": "395a74spbplk9"
                          },
                          "exclusiveMaximum": true
                        },
                        "page_number": {
                          "type": "integer",
                          "minimum": 0,
                          "description": "The page in the document where the smart field should be placed."
                        },
                        "api_integration_id": {
                          "type": "string",
                          "description": "Always set to `b98fc00add6b43a606bc527c81eee741bf16a7d8`"
                        }
                      }
                    },
                    "description": "Array of Smart Field objects."
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "integration_objects": [
                      {
                        "x": 217,
                        "y": 32,
                        "data": "First name",
                        "font": "Arial",
                        "size": 12,
                        "page_number": 0,
                        "api_integration_id": "b98fc00add6b43a606bc527c81eee741bf16a7d8"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-document-template-id-integration-objects",
        "summary": "Delete smart fields from template",
        "description": "Allows API users to delete smart fields from a template. ",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "ID of the template"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "examples": {
                  "example-1": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Invalid Authorization": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Integration objects array is required": {
                    "value": {
                      "code": 65536,
                      "message": "Integration objects array is required."
                    }
                  },
                  "Invalid data provided for integration objects": {
                    "value": {
                      "code": 65536,
                      "message": "Invalid data provided for integration objects"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "integration_objects"
                ],
                "properties": {
                  "integration_objects": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Array of integration objects to be deleted."
                  }
                },
                "x-examples": {
                  "example-1": {
                    "integration_objects": [
                      "10a31fb24b874f6bafe25898b203869798927398",
                      "fdd70ca993ec4141ab082426e7df592467ea485e"
                    ]
                  }
                }
              },
              "examples": {
                "example-1": {
                  "value": {
                    "integration_objects": [
                      "10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "fdXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-smart-fields-from-template-id-integration-objects",
        "summary": "Get smart fields from template",
        "description": "Allows API users to get info about smart fields from a template. ",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "ID of the template"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "integration_objects": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "string",
                            "description": "X coordinates of the field on the page."
                          },
                          "y": {
                            "type": "string",
                            "description": "Y coordinates of the field on the page."
                          },
                          "id": {
                            "type": "string",
                            "description": "ID of the smart field."
                          },
                          "data": {
                            "type": "string",
                            "description": "Name of the field."
                          },
                          "font": {
                            "type": "string",
                            "description": "Font type of the text in the field."
                          },
                          "size": {
                            "type": "string",
                            "description": "Font size of the text in the field."
                          },
                          "email": {
                            "type": "string"
                          },
                          "created": {
                            "type": "string",
                            "description": "Timestamp of when the field was created."
                          },
                          "user_id": {
                            "type": "string",
                            "description": "User ID of the user who added the field."
                          },
                          "document_id": {
                            "type": "string"
                          },
                          "line_height": {
                            "type": "string",
                            "description": "Line height of the field (in pixels)"
                          },
                          "page_number": {
                            "type": "integer",
                            "description": "The page number in the template where the smart field is located."
                          },
                          "json_attributes": {
                            "type": "object",
                            "properties": {
                              "bold": {
                                "type": "boolean",
                                "description": "Whether the text in the field is bold."
                              },
                              "color": {
                                "type": "string",
                                "description": "Color of the field."
                              },
                              "italic": {
                                "type": "boolean",
                                "description": "Whether the text in the field is italicized."
                              },
                              "underline": {
                                "type": "boolean",
                                "description": "Whether the text in the field is underlined."
                              }
                            },
                            "description": "Text attributes."
                          },
                          "api_integration_id": {
                            "type": "string",
                            "description": "Identifies whether it's a smart field or a Salesforce field."
                          }
                        }
                      },
                      "description": "Array of integration objects (smart fields) in the template."
                    }
                  },
                  "x-examples": {
                    "example-1": {
                      "integration_objects": [
                        {
                          "x": "217",
                          "y": "32",
                          "id": "678ffc7c375ca7b36b4bdee97e29d471f04c2607",
                          "data": "NameOfSigninglink",
                          "font": "Arial",
                          "size": "12",
                          "email": "flow.team@yopmail.com",
                          "created": "1553867317",
                          "user_id": "802339f5618c5f50be13c96f0badf54e7acbcdde",
                          "document_id": "902e430e783cec15b8513d4accc8839c5e69d527",
                          "line_height": "0.00",
                          "page_number": 0,
                          "json_attributes": {
                            "bold": true,
                            "color": "FFFAF0",
                            "italic": false,
                            "underline": false
                          },
                          "api_integration_id": "b98fc00add6b43a606bc527c81eee741bf16a7d8"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "example-1": {
                    "value": {
                      "integration_objects": [
                        {
                          "x": "217",
                          "y": "32",
                          "id": "67XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "data": "Some Data",
                          "font": "Arial",
                          "size": "12",
                          "email": "user@email.com",
                          "created": "1553867317",
                          "user_id": "80XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "document_id": "90XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "line_height": "0.00",
                          "page_number": 0,
                          "json_attributes": {
                            "bold": true,
                            "color": "FFFAF0",
                            "italic": false,
                            "underline": false
                          },
                          "api_integration_id": "b9XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Document not found": {
                    "value": {
                      "code": 65582,
                      "message": "Document not found"
                    }
                  },
                  "Invalid Authorization": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  },
                  "Field invite not found": {
                    "value": {
                      "code": 66502,
                      "message": "Field invite not found"
                    }
                  },
                  "authentication type must not be empty": {
                    "value": {
                      "code": 65536,
                      "message": "authentication type must not be empty"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/team/{team_id}/shared/document/folder": {
      "post": {
        "operationId": "enable-documents-folder",
        "summary": "Enable Documents folder",
        "description": "This endpoint enables Documents folder for a team. \n\n***accepts access token of team primary admin or admin***",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "c3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* User is not an admin\r\n* Team not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66391,
                      "message": "Team not found"
                    }
                  },
                  "User not admin": {
                    "value": {
                      "code": 65615,
                      "message": "Operation not allowed"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-team-team-id-shared-document-folder",
        "summary": "Disable Documents folder",
        "description": "This endpoint allows users to disable \"Documents\" folder for a team.",
        "parameters": [
          {
            "in": "path",
            "name": "team_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "result": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* User is not an admin\r\n* Team not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Team not found": {
                    "value": {
                      "code": 66391,
                      "message": "Team not found"
                    }
                  },
                  "User not admin": {
                    "value": {
                      "code": 65615,
                      "message": "Operation not allowed"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/import/document-templates": {
      "post": {
        "operationId": "post-import-document-templates",
        "summary": "Import template from DocuSign",
        "description": "Upload a zip file containing JSON from DocuSign as a template to the user’s account and receive a unique template ID.\n\n**How to download a template from DocuSign as a zip file**\n\n1. Log in to your DocuSign account and go to the **Templates** tab.\n2. Select the template you’d like to download and click **Use** > **Download** next to it.\n3. The template will be downloaded to your device in ZIP format.\n\n*Note*: To download multiple DocuSign templates at once, select all the templates you need and click **More** > **Download** in the action panel above your templates.",
        "parameters": [
          {
            "in": "header",
            "name": "Content-type",
            "type": "string",
            "required": false,
            "description": "multipart/form-data"
          }
        ],
        "responses": {
          "200": {
            "description": "List of created document templates",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "file_size": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "document_id": {
                        "type": [
                          "null",
                          "string"
                        ]
                      },
                      "document_name": {
                        "type": "string"
                      },
                      "processing_error": {
                        "type": "string"
                      }
                    }
                  },
                  "x-examples": {
                    "example-1": [
                      {
                        "file_size": 12345,
                        "document_id": "f38b14c3da4aad10beee7fd76074ab7f08c57759",
                        "document_name": "document name 1"
                      },
                      {
                        "file_size": 12345,
                        "document_id": "45b21ec8a9e7c18fba33cd4cbba72c9c3925ff62",
                        "document_name": "document name 2"
                      },
                      {
                        "file_size": null,
                        "document_id": null,
                        "document_name": "document name 3",
                        "processing_error": "Data does not contain valid json'"
                      }
                    ]
                  }
                },
                "examples": {
                  "example-1": {
                    "value": [
                      {
                        "file_size": 12345,
                        "document_id": "f38b14c3da4aad10beee7fd76074ab7f08c57759",
                        "document_name": "document name 1"
                      },
                      {
                        "file_size": 12345,
                        "document_id": "45b21ec8a9e7c18fba33cd4cbba72c9c3925ff62",
                        "document_name": "document name 2"
                      },
                      {
                        "file_size": null,
                        "document_id": null,
                        "document_name": "document name 3",
                        "processing_error": "Data does not contain valid json'"
                      }
                    ]
                  },
                  "Created document templates": {
                    "value": [
                      {
                        "file_size": 12345,
                        "document_id": "f3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "document_name": "document name 1"
                      },
                      {
                        "file_size": 12345,
                        "document_id": "45XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                        "document_name": "document name 2"
                      },
                      {
                        "file_size": null,
                        "document_id": null,
                        "document_name": "document name 3",
                        "processing_error": "Data does not contain valid json'"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "* No file in the request: 65536\n  Message: \"Must upload one file\"\n* File size more than 50 MB: 65580\n  Message: \"File is too big.\"\n* Using the file with incorrect file type (must be application/json in a zip file): 65578\n  Message: \"Invalid file type.\"  \n* Request with any of these cases: \n  - invalid token of user\n  - expired token of user\n  - empty header\n  - authorization = null  \n  Message: 1537, \"invalid_token\"  \n* Something wrong with generating document dimensions: 21001101\n  Message: \"PdfProcessor. Couldn't get dimensions\"  \n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Authorization": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "No file in the request": {
                    "value": {
                      "code": 65536,
                      "message": "Must upload one file"
                    }
                  },
                  "File size more than 50 MB": {
                    "value": {
                      "code": 65580,
                      "message": "File is too big."
                    }
                  },
                  "Using the file with incorrect file type": {
                    "value": {
                      "code": 65578,
                      "message": "Invalid file type."
                    }
                  },
                  "Something wrong with generating document dimensions": {
                    "value": {
                      "code": 21001101,
                      "message": "PdfProcessor. Couldn't get dimensions"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "@your-file.zip"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/template": {
      "post": {
        "operationId": "create-template",
        "summary": "Create template",
        "description": "This endpoint allows API users to create a template by flattening an existing document.\n\n**Template** - an entity that holds the structure of a document and serves for generating its copies.\n\nSignNow users cannot make a template without uploading a document first. They can generate (clone) a new instance of a document from it. \n \nRecipients always sign a document generated from the template, never the template itself. Each generated document can be customized for its recipient, for example prefilled with account info. Templates can be shared within a team and edited only by the owner.\n\nFor the full flow, from creating the template to sending the generated document for signature, see [Documents, doc groups, and templates](/docs/entities).\n\nFor more information, check out our video tutorial.\n\n<details open>\n\n**<summary>Video tutorial</summary>**\n\n<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>\n\n[Video tutorial](https://www.youtube.com/watch?v=WjohB0P5S8M)\n\n</details>",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "ceXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "document_id",
                  "document_name"
                ],
                "properties": {
                  "document_id": {
                    "type": "string",
                    "description": "ID of the document which is the source of a template"
                  },
                  "document_name": {
                    "type": "string",
                    "description": "the new template name"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "document_id": "5eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                    "document_name": "Sample template"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/template/{document_id}/bulkinvite": {
      "post": {
        "operationId": "bulk-invite",
        "summary": "Bulk invite",
        "description": "This endpoint allows users to create multiple invites to different signers from one template. A new document is generated for each signer and stored in the needed folder.\n\nTo create a bulk invite, you need a CSV file with signers' roles, emails, and document names. The format is the following:\n\n**For one role**\n\n```json\n\nRecipient 1|signer1@email.com,document_name\nRecipient 1|signer2@email.com,document_name\n\n```\n\n**For multiple roles**\n\n```json\n\nRecipient 1|signer1@email.com,Recipient 2|signer2@email.com,document_name1\nRecipient 1|signer3@email.com,Recipient 2|signer4@email.com,document_name2\n\n```\n\nAll the roles in the CSV must be assigned to at least one field in the template, and all the roles that exist in the template must be in the CSV.",
        "parameters": [
          {
            "in": "path",
            "name": "document_id",
            "type": "string",
            "required": true,
            "description": "unique id of the template"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "status": "job queued"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Incorrect file type (must be a CSV)\r\n* Missing CSV file\r\n* Missing `folder_id`\r\n* Missing or extra recipients in the CSV file\r\n* Document name in the CSV file is missing or incorrect\r\n* QES is not set for this user's organization\r\n* User cannot use QES if not in organization\r\n* Incorrect `signature_type`. Allowed values: `eideasy`,`eideasy-pdf`, `nom151`\r\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Missing CSV file": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Must upload one file"
                        }
                      ]
                    }
                  },
                  "Missing folder_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 65544,
                          "message": "The folder_id field is required."
                        }
                      ]
                    }
                  },
                  "Incorrect file type": {
                    "value": {
                      "errors": [
                        {
                          "code": 65578,
                          "message": "Invalid file type."
                        }
                      ]
                    }
                  },
                  "Incorrect signature type": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The signature_type should have one of the following values: \"eideasy\", \"nom151\", \"eideasy-pdf\"."
                        }
                      ]
                    }
                  },
                  "User not in organization": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Organization required to send invite with advanced signing"
                        }
                      ]
                    }
                  },
                  "Missing or extra recipients": {
                    "value": {
                      "errors": [
                        {
                          "code": 65581,
                          "message": "CSV file,line no 1 - missing required Actor's information. Required Actors = 2 and CSV provided information for Actors = 1"
                        }
                      ]
                    }
                  },
                  "QES not set for organization": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Invalid advanced sign provider for sender organization"
                        }
                      ]
                    }
                  },
                  "Document name missing or incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65581,
                          "message": "CSV file, line no 2 - document name is missing or invalid "
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "file",
                    "description": "A CSV file with a list of roles, email addresses, and document names"
                  },
                  "folder_id": {
                    "type": "string",
                    "description": "ID of the folder to store the documents in. To find the ID, use [`GET /user/folder`](/docs/folder/operations/get-all-folders)."
                  },
                  "subject": {
                    "type": "string",
                    "description": "Custom email subject for all signers"
                  },
                  "email_message": {
                    "type": "string",
                    "description": "Custom email message for all signers"
                  },
                  "client_timestamp": {
                    "type": "integer",
                    "description": "The timestamp in UNIX code"
                  },
                  "signature_type": {
                    "type": "string",
                    "description": "Type of QES signature requested from signers. Possible values: `eideasy`, `eideasy-pdf`, `nom151`. Available to members of an organization with QES settings enabled. For more information, see the [QES user guide](/docs/qualified-electronic-signature)."
                  }
                },
                "required": [
                  "file",
                  "folder_id"
                ]
              }
            }
          }
        }
      }
    },
    "/template/{template_id}/copy": {
      "post": {
        "operationId": "get-template-copy",
        "summary": "Create document from template",
        "description": "This endpoint allows API users to create a new document from a template. If a name is not supplied, the document takes the name of the template.\n\nThe new document is a signable copy: the template stays untouched as the master version. The response returns the new document's `id`. The copy has its own document, field, and role IDs, all different from the template's, so read the current roles and fields from [Get document](/docs/document/operations/get-document) for the new document rather than reusing the template's. For the full flow, from preparing the document to sending the copy for signature, see [Documents, doc groups, and templates](/docs/entities). To let recipients sign the copy inside your own site or app, see [Embedded signing](/docs/guides-embedded-signing). To copy the template itself instead of generating a signable document, use [Duplicate template](/docs/template/operations/post-v2-templates-template-id-copy).\n\nFor more information, check out our video tutorial.\n\n<details open>\n\n**<summary>Video tutorial</summary>**\n\n<sub><sup>Note: The design shown in the video is outdated, but the flow is still accurate. You can go ahead and follow the steps as demonstrated.</sup></sub>\n\n[Video tutorial](https://www.youtube.com/watch?v=WjohB0P5S8M)\n\n</details>",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "document_name": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "ceXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "document_name": "New document"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "document_name": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/templates/{template_id}/copies": {
      "get": {
        "operationId": "get-v2-templates-template-id-copies",
        "summary": "Get list of documents from template",
        "description": "The endpoint allows users to retrieve a list of all the documents created from a template. \n\n**Example of a request with query parameters**\n\n```json\n\n/v2/templates/{template_id}/copies?sort_by=created&sort_order=desc&per_page=20&filters[signing_status]=pending`\n\n```",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          },
          {
            "in": "query",
            "name": "sort_by",
            "type": "string",
            "default": "updated",
            "required": false,
            "description": "Field to sort documents by. Possible values: `updated`, `created`, `document_name`."
          },
          {
            "in": "query",
            "name": "sort_order",
            "type": "string",
            "default": "desc",
            "required": false,
            "description": "Sort the list in ascending or descending order. Possible values: `asc`, `desc`."
          },
          {
            "in": "query",
            "name": "page",
            "type": "integer",
            "default": 1,
            "required": false,
            "description": "Page number to view."
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "integer",
            "default": 15,
            "required": false,
            "description": "Number of documents per page."
          },
          {
            "in": "query",
            "name": "filters[signing_status]",
            "type": "string",
            "required": false,
            "description": "Signing status to filter documents by. Possible values: `waiting-for-me`, `waiting-for-others`, `signed`, `pending`, `has-invites`, `expired`."
          },
          {
            "in": "query",
            "name": "filters[entity_labels]",
            "type": "string",
            "required": false,
            "description": "Label to filter documents by. Possible values: `declined` (the invite was declined), `undelivered` (the invite email wasn't delivered). You can use both values together."
          },
          {
            "in": "query",
            "name": "search_key",
            "type": "string",
            "required": false,
            "description": "Search by a key word, part of word, or phrase."
          },
          {
            "in": "query",
            "name": "search_by",
            "type": "string",
            "required": false,
            "description": "Field to search by. Possible values: `document-name`, `signer-email`, `inviter-email`, `document-text`, `document-id`."
          },
          {
            "in": "query",
            "name": "exclude",
            "type": "string",
            "required": false,
            "description": "Entities to exclude from the response. Possible value: `doc-from-dg` (documents that are in document groups)."
          },
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "The ID of the template."
          }
        ],
        "responses": {
          "200": {
            "description": "* Valid field invite. Without query parameters.\n* Valid request. With specified sort and ordering.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The ID of the document in the Document table"
                          },
                          "owner": {
                            "type": "string"
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "unique_id": {
                                  "type": "string"
                                },
                                "signing_order": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "role": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "role_id": {
                                  "type": "string"
                                },
                                "field_id": {
                                  "type": "string"
                                },
                                "fulfiller": {
                                  "type": "string"
                                },
                                "element_id": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "originator": {
                                  "type": "string"
                                },
                                "json_attributes": {
                                  "type": "object",
                                  "properties": {
                                    "x": {
                                      "type": "integer"
                                    },
                                    "y": {
                                      "type": "integer"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "width": {
                                      "type": "integer"
                                    },
                                    "height": {
                                      "type": "integer"
                                    },
                                    "required": {
                                      "type": "boolean"
                                    },
                                    "page_number": {
                                      "type": "integer"
                                    },
                                    "allowed_types": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                },
                                "field_request_id": {
                                  "type": "string"
                                },
                                "template_field_id": {
                                  "type": "string"
                                },
                                "field_request_canceled": {
                                  "type": "boolean",
                                  "x-nullable": true
                                }
                              }
                            }
                          },
                          "created": {
                            "type": "integer"
                          },
                          "updated": {
                            "type": "integer"
                          },
                          "user_id": {
                            "type": "string",
                            "description": "The ID of the user"
                          },
                          "requests": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "settings": {
                            "type": "object",
                            "properties": {
                              "ololo": {
                                "type": "boolean"
                              },
                              "mytext": {
                                "type": "boolean"
                              },
                              "mytext1": {
                                "type": "boolean"
                              },
                              "enable_mfa": {
                                "type": "boolean"
                              },
                              "enable_pki": {
                                "type": "boolean"
                              },
                              "copy_export": {
                                "type": "boolean"
                              },
                              "date_format": {
                                "type": "boolean"
                              },
                              "enable_qwer": {
                                "type": "boolean"
                              },
                              "upload_limit": {
                                "type": "boolean"
                              },
                              "document_guide": {
                                "type": "boolean"
                              },
                              "sso-only-login": {
                                "type": "boolean"
                              },
                              "mobileweb_option": {
                                "type": "boolean"
                              },
                              "cloud_auto_export": {
                                "type": "boolean"
                              },
                              "logout_on_signing": {
                                "type": "boolean"
                              },
                              "restrict_download": {
                                "type": "boolean"
                              },
                              "common_experiments": {
                                "type": "boolean"
                              },
                              "enable_experiments": {
                                "type": "boolean"
                              },
                              "add_signature_stamp": {
                                "type": "boolean"
                              },
                              "email_logo_position": {
                                "type": "boolean"
                              },
                              "cfr_title_21_part_11": {
                                "type": "boolean"
                              },
                              "email_btn_bkgd_color": {
                                "type": "boolean"
                              },
                              "email_btn_text_color": {
                                "type": "boolean"
                              },
                              "email_custom_message": {
                                "type": "boolean"
                              },
                              "email_custom_subject": {
                                "type": "boolean"
                              },
                              "email_footer_enabled": {
                                "type": "boolean"
                              },
                              "enable_eu_date_format": {
                                "type": "boolean"
                              },
                              "require_email_subject": {
                                "type": "boolean"
                              },
                              "enable_hyperlink_field": {
                                "type": "boolean"
                              },
                              "invite_expiration_days": {
                                "type": "boolean"
                              },
                              "no_document_attachment": {
                                "type": "boolean"
                              },
                              "agree_to_be_beta_tester": {
                                "type": "boolean"
                              },
                              "electronic_consent_text": {
                                "type": "boolean"
                              },
                              "flatten_document_fields": {
                                "type": "boolean"
                              },
                              "org_allowed_team_admins": {
                                "type": "boolean"
                              },
                              "document_schema_extended": {
                                "type": "boolean"
                              },
                              "enable_document_comments": {
                                "type": "boolean"
                              },
                              "front_end_session_length": {
                                "type": "boolean"
                              },
                              "no_user_signature_return": {
                                "type": "boolean"
                              },
                              "require_drawn_signatures": {
                                "type": "boolean"
                              },
                              "signature_stamp_position": {
                                "type": "boolean"
                              },
                              "allow_big_attachment_file": {
                                "type": "boolean"
                              },
                              "cloud_export_with_history": {
                                "type": "boolean"
                              },
                              "enable_full_story_tracker": {
                                "type": "boolean"
                              },
                              "require_login_for_signing": {
                                "type": "boolean"
                              },
                              "allow_download_certificate": {
                                "type": "boolean"
                              },
                              "do_no_consent_redirect_url": {
                                "type": "boolean"
                              },
                              "disable_email_notifications": {
                                "type": "boolean"
                              },
                              "electronic_consent_required": {
                                "type": "boolean"
                              },
                              "email_admin_on_banned_login": {
                                "type": "boolean"
                              },
                              "enable_hyperlink_protection": {
                                "type": "boolean"
                              },
                              "enable_team_admin_move_docs": {
                                "type": "boolean"
                              },
                              "invite_decline_redirect_url": {
                                "type": "boolean"
                              },
                              "allow_team_admin_rename_docs": {
                                "type": "boolean"
                              },
                              "emailed_docs_include_history": {
                                "type": "boolean"
                              },
                              "lock_signing_date_by_default": {
                                "type": "boolean"
                              },
                              "no_document_file_attachments": {
                                "type": "boolean"
                              },
                              "add_signature_stamp_with_name": {
                                "type": "boolean"
                              },
                              "digitally_sign_dowloaded_docs": {
                                "type": "boolean"
                              },
                              "watermark_downloaded_document": {
                                "type": "boolean"
                              },
                              "invite_completion_redirect_url": {
                                "type": "boolean"
                              },
                              "required_preset_signature_name": {
                                "type": "boolean"
                              },
                              "signing_link_document_download": {
                                "type": "boolean"
                              },
                              "block_login_via_social_networks": {
                                "type": "boolean"
                              },
                              "hide_upgrade_subscription_button": {
                                "type": "boolean"
                              },
                              "allow_edit_document_after_signing": {
                                "type": "boolean"
                              },
                              "default_field_invite_remind_after": {
                                "type": "boolean"
                              },
                              "disable_download_action_in_editor": {
                                "type": "boolean"
                              },
                              "enable_advanced_threat_protection": {
                                "type": "boolean"
                              },
                              "have_merged_document_group_option": {
                                "type": "boolean"
                              },
                              "auto_deletion_documents_from_trash": {
                                "type": "boolean"
                              },
                              "default_field_invite_remind_before": {
                                "type": "boolean"
                              },
                              "default_field_invite_remind_repeat": {
                                "type": "boolean"
                              },
                              "document_completion_retention_days": {
                                "type": "boolean"
                              },
                              "require_authentication_for_invites": {
                                "type": "boolean"
                              },
                              "save_signer_signature_and_initials": {
                                "type": "boolean"
                              },
                              "signing_link_document_name_formula": {
                                "type": "boolean"
                              },
                              "disable_recipients_list_from_editor": {
                                "type": "boolean"
                              },
                              "document_attachment_only_for_signer": {
                                "type": "boolean"
                              },
                              "default_field_invite_expiration_time": {
                                "type": "boolean"
                              },
                              "unsuccessful_logout_attempts_allowed": {
                                "type": "boolean"
                              },
                              "audit_trail_completion_retention_days": {
                                "type": "boolean"
                              },
                              "block_organization_selfleave_by_member": {
                                "type": "boolean"
                              },
                              "enable_render_pages_in_editor_as_images": {
                                "type": "boolean"
                              },
                              "allow_document_copying_to_other_accounts": {
                                "type": "boolean"
                              },
                              "allow_embedded_extended_token_expiration": {
                                "type": "boolean"
                              },
                              "pending_invite_document_view_notification": {
                                "type": "boolean"
                              },
                              "guide_signers_only_through_required_fields": {
                                "type": "boolean"
                              },
                              "redirect_to_registration_when_fields_saved": {
                                "type": "boolean"
                              },
                              "hide_decline_to_sign_option_in_signing_session": {
                                "type": "boolean"
                              },
                              "max_attachments_for_signnow_fields_per_document": {
                                "type": "boolean"
                              },
                              "only_administrator_is_able_to_invite_to_the_team": {
                                "type": "boolean"
                              },
                              "allow_big_count_of_attachment_fields_per_document": {
                                "type": "boolean"
                              },
                              "agreement_to_test_new_functionality_in_organization": {
                                "type": "boolean"
                              },
                              "auto_apply_signatures_and_initials_to_document_fields": {
                                "type": "boolean"
                              },
                              "block_export_options_when_credit_card_validation_is_used": {
                                "type": "boolean"
                              },
                              "receive_signer_email_after_sent_field_invite_to_yourself": {
                                "type": "boolean"
                              },
                              "enable_document_download_link_for_invite_completion_mails": {
                                "type": "boolean"
                              },
                              "cc_completion_email_contain_only_downloading_document_link": {
                                "type": "boolean"
                              },
                              "invite_update_notifications_for_all_invites_at_invite_create": {
                                "type": "boolean"
                              },
                              "every_signature_and_initials_field_requires_user_authentication": {
                                "type": "boolean"
                              }
                            }
                          },
                          "parent_id": {
                            "type": "string"
                          },
                          "thumbnail": {
                            "type": "object",
                            "properties": {
                              "large": {
                                "type": "string"
                              },
                              "small": {
                                "type": "string"
                              },
                              "medium": {
                                "type": "string"
                              }
                            }
                          },
                          "page_count": {
                            "type": "integer"
                          },
                          "signatures": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "attachments": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "viewer_roles": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "document_name": {
                            "type": "string",
                            "description": "The name of the document"
                          },
                          "field_invites": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "role": {
                                  "type": "string"
                                },
                                "email": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                },
                                "created": {
                                  "type": "integer"
                                },
                                "role_id": {
                                  "type": "string"
                                },
                                "updated": {
                                  "type": "integer"
                                },
                                "declined": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "reassign": {
                                  "type": "boolean"
                                },
                                "reminder": {
                                  "type": "boolean"
                                },
                                "id_verified": {
                                  "type": "string"
                                },
                                "is_embedded": {
                                  "type": "boolean"
                                },
                                "delivery_type": {
                                  "type": "string"
                                },
                                "password_type": {
                                  "type": "string"
                                },
                                "signer_user_id": {
                                  "type": "string"
                                },
                                "expiration_time": {
                                  "type": "integer"
                                },
                                "is_draft_exists": {
                                  "type": "boolean"
                                },
                                "password_method": {
                                  "type": "string"
                                },
                                "payment_request": {
                                  "type": "object",
                                  "x-nullable": true
                                },
                                "is_full_declined": {
                                  "type": "boolean"
                                },
                                "is_document_locked": {
                                  "type": "boolean"
                                },
                                "password_protected": {
                                  "type": "boolean"
                                },
                                "email_sent_statuses": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "status": {
                                        "type": "string"
                                      },
                                      "created_at": {
                                        "type": "integer"
                                      },
                                      "last_reaction_at": {
                                        "type": "integer"
                                      }
                                    }
                                  }
                                },
                                "force_new_signature": {
                                  "type": "boolean",
                                  "x-nullable": true
                                },
                                "signer_phone_invite": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "decline_by_signature": {
                                  "type": "string"
                                },
                                "signing_instructions": {
                                  "type": "boolean",
                                  "x-nullable": true
                                },
                                "electronic_consent_id": {
                                  "type": "string",
                                  "x-nullable": true
                                },
                                "prefill_signature_name": {
                                  "type": "boolean",
                                  "x-nullable": true
                                },
                                "id_verification_required": {
                                  "type": "string"
                                },
                                "electronic_consent_required": {
                                  "type": "integer"
                                },
                                "required_preset_signature_name": {
                                  "type": "boolean",
                                  "x-nullable": true
                                }
                              }
                            }
                          },
                          "origin_user_id": {
                            "type": "string"
                          },
                          "routing_details": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "cc": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "id": {
                                  "type": "string"
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string"
                                      },
                                      "role_id": {
                                        "type": "string"
                                      },
                                      "reassign": {
                                        "type": "boolean"
                                      },
                                      "reminder": {
                                        "type": "object",
                                        "properties": {
                                          "remind_after": {
                                            "type": "integer"
                                          },
                                          "remind_before": {
                                            "type": "integer"
                                          },
                                          "remind_repeat": {
                                            "type": "integer"
                                          }
                                        }
                                      },
                                      "inviter_role": {
                                        "type": "boolean"
                                      },
                                      "default_email": {
                                        "type": "string"
                                      },
                                      "delivery_type": {
                                        "type": "string"
                                      },
                                      "signing_order": {
                                        "type": "integer"
                                      },
                                      "expiration_days": {
                                        "type": "integer"
                                      },
                                      "decline_by_signature": {
                                        "type": "boolean"
                                      }
                                    }
                                  }
                                },
                                "cc_step": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "created": {
                                  "type": "integer"
                                },
                                "updated": {
                                  "type": "integer"
                                },
                                "viewers": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "invite_link_instructions": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "original_filename": {
                            "type": "string"
                          },
                          "origin_document_id": {
                            "type": "string"
                          },
                          "document_group_info": {
                            "type": "object",
                            "x-nullable": true
                          },
                          "enumeration_options": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "viewer_field_invites": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          }
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "pagination": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "integer"
                            },
                            "links": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              }
                            },
                            "total": {
                              "type": "integer"
                            },
                            "per_page": {
                              "type": "integer"
                            },
                            "total_pages": {
                              "type": "integer"
                            },
                            "current_page": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "id": "5b99617cacb54336a81a112b37aa97715997d6dd",
                          "owner": "skochok.denys+5@airslate.com",
                          "roles": [
                            {
                              "name": "Recipient 1",
                              "unique_id": "d8f95fea6ac54de7a723bc2c87c2f5a783b1d955",
                              "signing_order": 1
                            }
                          ],
                          "fields": [
                            {
                              "id": "13b217bda6b44ee1a76189a93bab55a688546703",
                              "role": "Recipient 1",
                              "type": "signature",
                              "role_id": "d8f95fea6ac54de7a723bc2c87c2f5a783b1d955",
                              "field_id": "6738efc957b54a898c4a63157db829b288b6c6ad",
                              "fulfiller": "skochok.denys+7@airslate.com",
                              "element_id": null,
                              "originator": "skochok.denys+5@airslate.com",
                              "json_attributes": {
                                "x": 131,
                                "y": 119,
                                "name": "Signature_1",
                                "width": 80,
                                "height": 20,
                                "required": true,
                                "page_number": 0,
                                "allowed_types": [
                                  "type",
                                  "draw",
                                  "upload"
                                ]
                              },
                              "field_request_id": "6738efc957b54a898c4a63157db829b288b6c6ad",
                              "template_field_id": "bec6a2bc1df34c8eaf8dad14fa91219efcde812f",
                              "field_request_canceled": null
                            }
                          ],
                          "created": 1651820262,
                          "updated": 1651820264,
                          "user_id": "fc1ca0e9b4964754be3c0c25b45b4891f06d6914",
                          "requests": [],
                          "settings": {
                            "ololo": false,
                            "mytext": false,
                            "mytext1": false,
                            "enable_mfa": false,
                            "enable_pki": false,
                            "copy_export": false,
                            "date_format": false,
                            "enable_qwer": false,
                            "upload_limit": false,
                            "document_guide": false,
                            "sso-only-login": false,
                            "mobileweb_option": false,
                            "cloud_auto_export": false,
                            "logout_on_signing": false,
                            "restrict_download": false,
                            "common_experiments": false,
                            "enable_experiments": false,
                            "add_signature_stamp": false,
                            "email_logo_position": false,
                            "cfr_title_21_part_11": false,
                            "email_btn_bkgd_color": false,
                            "email_btn_text_color": false,
                            "email_custom_message": false,
                            "email_custom_subject": false,
                            "email_footer_enabled": false,
                            "enable_eu_date_format": false,
                            "require_email_subject": false,
                            "enable_hyperlink_field": false,
                            "invite_expiration_days": false,
                            "no_document_attachment": false,
                            "agree_to_be_beta_tester": false,
                            "electronic_consent_text": false,
                            "flatten_document_fields": false,
                            "org_allowed_team_admins": false,
                            "document_schema_extended": false,
                            "enable_document_comments": false,
                            "front_end_session_length": false,
                            "no_user_signature_return": false,
                            "require_drawn_signatures": false,
                            "signature_stamp_position": false,
                            "allow_big_attachment_file": false,
                            "cloud_export_with_history": false,
                            "enable_full_story_tracker": false,
                            "require_login_for_signing": false,
                            "allow_download_certificate": false,
                            "do_no_consent_redirect_url": false,
                            "disable_email_notifications": false,
                            "electronic_consent_required": false,
                            "email_admin_on_banned_login": false,
                            "enable_hyperlink_protection": false,
                            "enable_team_admin_move_docs": false,
                            "invite_decline_redirect_url": false,
                            "allow_team_admin_rename_docs": false,
                            "emailed_docs_include_history": false,
                            "lock_signing_date_by_default": false,
                            "no_document_file_attachments": false,
                            "add_signature_stamp_with_name": false,
                            "digitally_sign_dowloaded_docs": false,
                            "watermark_downloaded_document": false,
                            "invite_completion_redirect_url": false,
                            "required_preset_signature_name": false,
                            "signing_link_document_download": false,
                            "block_login_via_social_networks": false,
                            "hide_upgrade_subscription_button": false,
                            "allow_edit_document_after_signing": false,
                            "default_field_invite_remind_after": false,
                            "disable_download_action_in_editor": false,
                            "enable_advanced_threat_protection": false,
                            "have_merged_document_group_option": false,
                            "auto_deletion_documents_from_trash": false,
                            "default_field_invite_remind_before": false,
                            "default_field_invite_remind_repeat": false,
                            "document_completion_retention_days": false,
                            "require_authentication_for_invites": false,
                            "save_signer_signature_and_initials": false,
                            "signing_link_document_name_formula": false,
                            "disable_recipients_list_from_editor": false,
                            "document_attachment_only_for_signer": false,
                            "default_field_invite_expiration_time": false,
                            "unsuccessful_logout_attempts_allowed": false,
                            "audit_trail_completion_retention_days": false,
                            "block_organization_selfleave_by_member": false,
                            "enable_render_pages_in_editor_as_images": false,
                            "allow_document_copying_to_other_accounts": false,
                            "allow_embedded_extended_token_expiration": false,
                            "pending_invite_document_view_notification": false,
                            "guide_signers_only_through_required_fields": false,
                            "redirect_to_registration_when_fields_saved": false,
                            "hide_decline_to_sign_option_in_signing_session": false,
                            "max_attachments_for_signnow_fields_per_document": false,
                            "only_administrator_is_able_to_invite_to_the_team": false,
                            "allow_big_count_of_attachment_fields_per_document": false,
                            "agreement_to_test_new_functionality_in_organization": false,
                            "auto_apply_signatures_and_initials_to_document_fields": false,
                            "block_export_options_when_credit_card_validation_is_used": false,
                            "receive_signer_email_after_sent_field_invite_to_yourself": false,
                            "enable_document_download_link_for_invite_completion_mails": false,
                            "cc_completion_email_contain_only_downloading_document_link": false,
                            "invite_update_notifications_for_all_invites_at_invite_create": false,
                            "every_signature_and_initials_field_requires_user_authentication": false
                          },
                          "parent_id": "eb6bf72b6fb24ebdadb09dd3186880bd69f89a58",
                          "thumbnail": {
                            "large": "https://api.signnow-dev.xyz//document/5b99617cacb54336a81a112b37aa97715997d6dd/thumbnail?size=large",
                            "small": "https://api.signnow-dev.xyz//document/5b99617cacb54336a81a112b37aa97715997d6dd/thumbnail?size=small",
                            "medium": "https://api.signnow-dev.xyz//document/5b99617cacb54336a81a112b37aa97715997d6dd/thumbnail?size=medium"
                          },
                          "page_count": 1,
                          "signatures": [],
                          "attachments": [],
                          "viewer_roles": [],
                          "document_name": "test copy 11",
                          "field_invites": [
                            {
                              "id": "d57289ea57854323b1090f283fc475334a5fc065",
                              "role": "Recipient 1",
                              "email": "skochok.denys+7@airslate.com",
                              "status": "pending",
                              "created": 1651820263,
                              "role_id": "d8f95fea6ac54de7a723bc2c87c2f5a783b1d955",
                              "updated": 1651820264,
                              "declined": [],
                              "reassign": false,
                              "reminder": true,
                              "id_verified": "UNVERIFIED",
                              "is_embedded": false,
                              "delivery_type": "email",
                              "password_type": "",
                              "signer_user_id": "509c873b2d8e4f278e7ae0db652a49288fd67cbc",
                              "expiration_time": 1654412264,
                              "is_draft_exists": false,
                              "password_method": "",
                              "payment_request": null,
                              "is_full_declined": false,
                              "is_document_locked": false,
                              "password_protected": false,
                              "email_sent_statuses": [
                                {
                                  "status": "sent",
                                  "created_at": 1651820264,
                                  "last_reaction_at": 1651820264
                                }
                              ],
                              "force_new_signature": null,
                              "signer_phone_invite": null,
                              "decline_by_signature": "0",
                              "signing_instructions": null,
                              "electronic_consent_id": null,
                              "prefill_signature_name": null,
                              "id_verification_required": "NO",
                              "electronic_consent_required": 0,
                              "required_preset_signature_name": null
                            }
                          ],
                          "origin_user_id": "fc1ca0e9b4964754be3c0c25b45b4891f06d6914",
                          "routing_details": [
                            {
                              "cc": [],
                              "id": "e2f2ee66c80844afb8d28978deaa90ce23a33984",
                              "data": [
                                {
                                  "name": "Recipient 1",
                                  "role_id": "d8f95fea6ac54de7a723bc2c87c2f5a783b1d955",
                                  "reassign": false,
                                  "reminder": {
                                    "remind_after": 10,
                                    "remind_before": 11,
                                    "remind_repeat": 7
                                  },
                                  "inviter_role": false,
                                  "default_email": "",
                                  "delivery_type": "email",
                                  "signing_order": 1,
                                  "expiration_days": 30,
                                  "decline_by_signature": false
                                }
                              ],
                              "cc_step": [],
                              "created": 1651820263,
                              "updated": 1651820263,
                              "viewers": [],
                              "invite_link_instructions": ""
                            }
                          ],
                          "original_filename": "test copy 11.pdf",
                          "origin_document_id": "3e04d53cb02f4dc68482d8fe441b6c54bcc15301",
                          "document_group_info": null,
                          "enumeration_options": [],
                          "viewer_field_invites": []
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "id": "5b99617cacb54336a81a112b37aa97715997d6dd",
                          "owner": "skochok.denys+5@airslate.com",
                          "roles": [
                            {
                              "name": "Recipient 1",
                              "unique_id": "d8f95fea6ac54de7a723bc2c87c2f5a783b1d955",
                              "signing_order": 1
                            }
                          ],
                          "fields": [
                            {
                              "id": "13b217bda6b44ee1a76189a93bab55a688546703",
                              "role": "Recipient 1",
                              "type": "signature",
                              "role_id": "d8f95fea6ac54de7a723bc2c87c2f5a783b1d955",
                              "field_id": "6738efc957b54a898c4a63157db829b288b6c6ad",
                              "fulfiller": "skochok.denys+7@airslate.com",
                              "element_id": null,
                              "originator": "skochok.denys+5@airslate.com",
                              "json_attributes": {
                                "x": 131,
                                "y": 119,
                                "name": "Signature_1",
                                "width": 80,
                                "height": 20,
                                "required": true,
                                "page_number": 0,
                                "allowed_types": [
                                  "type",
                                  "draw",
                                  "upload"
                                ]
                              },
                              "field_request_id": "6738efc957b54a898c4a63157db829b288b6c6ad",
                              "template_field_id": "bec6a2bc1df34c8eaf8dad14fa91219efcde812f",
                              "field_request_canceled": null
                            }
                          ],
                          "created": 1651820262,
                          "updated": 1651820264,
                          "user_id": "fc1ca0e9b4964754be3c0c25b45b4891f06d6914",
                          "requests": [],
                          "settings": {
                            "ololo": false,
                            "mytext": false,
                            "mytext1": false,
                            "enable_mfa": false,
                            "enable_pki": false,
                            "copy_export": false,
                            "date_format": false,
                            "enable_qwer": false,
                            "upload_limit": false,
                            "document_guide": false,
                            "sso-only-login": false,
                            "mobileweb_option": false,
                            "cloud_auto_export": false,
                            "logout_on_signing": false,
                            "restrict_download": false,
                            "common_experiments": false,
                            "enable_experiments": false,
                            "add_signature_stamp": false,
                            "email_logo_position": false,
                            "cfr_title_21_part_11": false,
                            "email_btn_bkgd_color": false,
                            "email_btn_text_color": false,
                            "email_custom_message": false,
                            "email_custom_subject": false,
                            "email_footer_enabled": false,
                            "enable_eu_date_format": false,
                            "require_email_subject": false,
                            "enable_hyperlink_field": false,
                            "invite_expiration_days": false,
                            "no_document_attachment": false,
                            "agree_to_be_beta_tester": false,
                            "electronic_consent_text": false,
                            "flatten_document_fields": false,
                            "org_allowed_team_admins": false,
                            "document_schema_extended": false,
                            "enable_document_comments": false,
                            "front_end_session_length": false,
                            "no_user_signature_return": false,
                            "require_drawn_signatures": false,
                            "signature_stamp_position": false,
                            "allow_big_attachment_file": false,
                            "cloud_export_with_history": false,
                            "enable_full_story_tracker": false,
                            "require_login_for_signing": false,
                            "allow_download_certificate": false,
                            "do_no_consent_redirect_url": false,
                            "disable_email_notifications": false,
                            "electronic_consent_required": false,
                            "email_admin_on_banned_login": false,
                            "enable_hyperlink_protection": false,
                            "enable_team_admin_move_docs": false,
                            "invite_decline_redirect_url": false,
                            "allow_team_admin_rename_docs": false,
                            "emailed_docs_include_history": false,
                            "lock_signing_date_by_default": false,
                            "no_document_file_attachments": false,
                            "add_signature_stamp_with_name": false,
                            "digitally_sign_dowloaded_docs": false,
                            "watermark_downloaded_document": false,
                            "invite_completion_redirect_url": false,
                            "required_preset_signature_name": false,
                            "signing_link_document_download": false,
                            "block_login_via_social_networks": false,
                            "hide_upgrade_subscription_button": false,
                            "allow_edit_document_after_signing": false,
                            "default_field_invite_remind_after": false,
                            "disable_download_action_in_editor": false,
                            "enable_advanced_threat_protection": false,
                            "have_merged_document_group_option": false,
                            "auto_deletion_documents_from_trash": false,
                            "default_field_invite_remind_before": false,
                            "default_field_invite_remind_repeat": false,
                            "document_completion_retention_days": false,
                            "require_authentication_for_invites": false,
                            "save_signer_signature_and_initials": false,
                            "signing_link_document_name_formula": false,
                            "disable_recipients_list_from_editor": false,
                            "document_attachment_only_for_signer": false,
                            "default_field_invite_expiration_time": false,
                            "unsuccessful_logout_attempts_allowed": false,
                            "audit_trail_completion_retention_days": false,
                            "block_organization_selfleave_by_member": false,
                            "enable_render_pages_in_editor_as_images": false,
                            "allow_document_copying_to_other_accounts": false,
                            "allow_embedded_extended_token_expiration": false,
                            "pending_invite_document_view_notification": false,
                            "guide_signers_only_through_required_fields": false,
                            "redirect_to_registration_when_fields_saved": false,
                            "hide_decline_to_sign_option_in_signing_session": false,
                            "max_attachments_for_signnow_fields_per_document": false,
                            "only_administrator_is_able_to_invite_to_the_team": false,
                            "allow_big_count_of_attachment_fields_per_document": false,
                            "agreement_to_test_new_functionality_in_organization": false,
                            "auto_apply_signatures_and_initials_to_document_fields": false,
                            "block_export_options_when_credit_card_validation_is_used": false,
                            "receive_signer_email_after_sent_field_invite_to_yourself": false,
                            "enable_document_download_link_for_invite_completion_mails": false,
                            "cc_completion_email_contain_only_downloading_document_link": false,
                            "invite_update_notifications_for_all_invites_at_invite_create": false,
                            "every_signature_and_initials_field_requires_user_authentication": false
                          },
                          "parent_id": "eb6bf72b6fb24ebdadb09dd3186880bd69f89a58",
                          "thumbnail": {
                            "large": "https://api.signnow-dev.xyz//document/5b99617cacb54336a81a112b37aa97715997d6dd/thumbnail?size=large",
                            "small": "https://api.signnow-dev.xyz//document/5b99617cacb54336a81a112b37aa97715997d6dd/thumbnail?size=small",
                            "medium": "https://api.signnow-dev.xyz//document/5b99617cacb54336a81a112b37aa97715997d6dd/thumbnail?size=medium"
                          },
                          "page_count": 1,
                          "signatures": [],
                          "attachments": [],
                          "viewer_roles": [],
                          "document_name": "test copy 11",
                          "field_invites": [
                            {
                              "id": "d57289ea57854323b1090f283fc475334a5fc065",
                              "role": "Recipient 1",
                              "email": "skochok.denys+7@airslate.com",
                              "status": "pending",
                              "created": 1651820263,
                              "role_id": "d8f95fea6ac54de7a723bc2c87c2f5a783b1d955",
                              "updated": 1651820264,
                              "declined": [],
                              "reassign": false,
                              "reminder": true,
                              "id_verified": "UNVERIFIED",
                              "is_embedded": false,
                              "delivery_type": "email",
                              "password_type": "",
                              "signer_user_id": "509c873b2d8e4f278e7ae0db652a49288fd67cbc",
                              "expiration_time": 1654412264,
                              "is_draft_exists": false,
                              "password_method": "",
                              "payment_request": null,
                              "is_full_declined": false,
                              "is_document_locked": false,
                              "password_protected": false,
                              "email_sent_statuses": [
                                {
                                  "status": "sent",
                                  "created_at": 1651820264,
                                  "last_reaction_at": 1651820264
                                }
                              ],
                              "force_new_signature": null,
                              "signer_phone_invite": null,
                              "decline_by_signature": "0",
                              "signing_instructions": null,
                              "electronic_consent_id": null,
                              "prefill_signature_name": null,
                              "id_verification_required": "NO",
                              "electronic_consent_required": 0,
                              "required_preset_signature_name": null
                            }
                          ],
                          "origin_user_id": "fc1ca0e9b4964754be3c0c25b45b4891f06d6914",
                          "routing_details": [
                            {
                              "cc": [],
                              "id": "e2f2ee66c80844afb8d28978deaa90ce23a33984",
                              "data": [
                                {
                                  "name": "Recipient 1",
                                  "role_id": "d8f95fea6ac54de7a723bc2c87c2f5a783b1d955",
                                  "reassign": false,
                                  "reminder": {
                                    "remind_after": 10,
                                    "remind_before": 11,
                                    "remind_repeat": 7
                                  },
                                  "inviter_role": false,
                                  "default_email": "",
                                  "delivery_type": "email",
                                  "signing_order": 1,
                                  "expiration_days": 30,
                                  "decline_by_signature": false
                                }
                              ],
                              "cc_step": [],
                              "created": 1651820263,
                              "updated": 1651820263,
                              "viewers": [],
                              "invite_link_instructions": ""
                            }
                          ],
                          "original_filename": "test copy 11.pdf",
                          "origin_document_id": "3e04d53cb02f4dc68482d8fe441b6c54bcc15301",
                          "document_group_info": null,
                          "enumeration_options": [],
                          "viewer_field_invites": []
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Request with declined invite": {
                    "value": {
                      "data": [
                        {
                          "id": "5bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner": "sender@email.com",
                          "roles": [
                            {
                              "name": "Recipient 1",
                              "unique_id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "signing_order": 1
                            }
                          ],
                          "seals": [],
                          "texts": [],
                          "checks": [],
                          "fields": [
                            {
                              "id": "13XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Recipient 1",
                              "type": "signature",
                              "role_id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_id": "8bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "fulfiller": "signer@email.com",
                              "element_id": null,
                              "originator": "owner@email.com",
                              "json_attributes": {
                                "x": 68,
                                "y": 664,
                                "name": "Signature 1",
                                "width": 83,
                                "height": 21,
                                "required": true,
                                "page_number": 0,
                                "allowed_types": [
                                  "type",
                                  "draw",
                                  "upload"
                                ]
                              },
                              "field_request_id": "8bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "template_field_id": "beXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_request_canceled": null
                            }
                          ],
                          "created": 1716320167,
                          "inserts": [],
                          "updated": 1716320169,
                          "user_id": "fcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "requests": [],
                          "settings": {
                            "allow_qes": false,
                            "enable_mfa": false,
                            "enable_pki": false,
                            "enable_qes": false,
                            "copy_export": false,
                            "date_format": false,
                            "upload_limit": false,
                            "document_guide": false,
                            "signing_reason": false,
                            "sso-only-login": false,
                            "run_experiments": false,
                            "mobileweb_option": false,
                            "cloud_auto_export": false,
                            "default_workspace": false,
                            "logout_on_signing": false,
                            "restrict_download": false,
                            "common_experiments": false,
                            "add_signature_stamp": false,
                            "disable_form_search": false,
                            "email_logo_position": false,
                            "cfr_title_21_part_11": false,
                            "email_btn_bkgd_color": false,
                            "email_btn_text_color": false,
                            "email_custom_message": false,
                            "email_custom_subject": false,
                            "email_footer_enabled": false,
                            "advanced_signing_flow": false,
                            "enable_eu_date_format": false,
                            "flatten_before_aspose": false,
                            "require_email_subject": false,
                            "use_team_generic_data": false,
                            "enable_hyperlink_field": false,
                            "invite_expiration_days": false,
                            "no_document_attachment": false,
                            "workspace_organization": false,
                            "agree_to_be_beta_tester": false,
                            "electronic_consent_text": false,
                            "org_allowed_team_admins": false,
                            "disable_email_recipients": false,
                            "document_schema_extended": false,
                            "enable_document_comments": false,
                            "front_end_session_length": false,
                            "no_user_signature_return": false,
                            "require_drawn_signatures": false,
                            "signature_stamp_position": false,
                            "allow_big_attachment_file": false,
                            "cloud_export_with_history": false,
                            "enable_full_story_tracker": false,
                            "enable_team_generic_email": false,
                            "require_login_for_signing": false,
                            "allow_download_certificate": false,
                            "default_workspace_assigned": false,
                            "do_no_consent_redirect_url": false,
                            "disable_email_notifications": false,
                            "electronic_consent_required": false,
                            "email_admin_on_banned_login": false,
                            "enable_hyperlink_protection": false,
                            "enable_team_admin_move_docs": false,
                            "invite_decline_redirect_url": false,
                            "parse_only_signature_fields": false,
                            "allow_team_admin_rename_docs": false,
                            "emailed_docs_include_history": false,
                            "lock_signing_date_by_default": false,
                            "no_document_file_attachments": false,
                            "add_signature_stamp_with_name": false,
                            "attach_doc_on_all_cc_messages": false,
                            "digitally_sign_dowloaded_docs": false,
                            "watermark_downloaded_document": false,
                            "invite_completion_redirect_url": false,
                            "required_preset_signature_name": false,
                            "signing_link_document_download": false,
                            "block_login_via_social_networks": false,
                            "completed_document_name_formula": false,
                            "hide_upgrade_subscription_button": false,
                            "allow_edit_document_after_signing": false,
                            "default_field_invite_remind_after": false,
                            "disable_download_action_in_editor": false,
                            "enable_advanced_threat_protection": false,
                            "have_merged_document_group_option": false,
                            "default_field_invite_remind_before": false,
                            "default_field_invite_remind_repeat": false,
                            "document_completion_retention_days": false,
                            "require_authentication_for_invites": false,
                            "save_signer_signature_and_initials": false,
                            "document_attachment_only_for_signer": false,
                            "default_field_invite_expiration_time": false,
                            "unsuccessful_logout_attempts_allowed": false,
                            "audit_trail_completion_retention_days": false,
                            "block_organization_selfleave_by_member": false,
                            "enable_render_pages_in_editor_as_images": false,
                            "allow_document_copying_to_other_accounts": false,
                            "allow_embedded_extended_token_expiration": false,
                            "pending_invite_document_view_notification": false,
                            "disable_problem_invite_email_notifications": false,
                            "guide_signers_only_through_required_fields": false,
                            "redirect_to_registration_when_fields_saved": false,
                            "hide_decline_to_sign_option_in_signing_session": false,
                            "only_administrator_is_able_to_invite_to_the_team": false,
                            "allow_big_count_of_attachment_fields_per_document": false,
                            "agreement_to_test_new_functionality_in_organization": false,
                            "document_prefill_disable_fields_existing_validation": false,
                            "auto_apply_signatures_and_initials_to_document_fields": false,
                            "allow_team_admin_create_csv_report_for_shared_template": false,
                            "block_export_options_when_credit_card_validation_is_used": false,
                            "receive_signer_email_after_sent_field_invite_to_yourself": false,
                            "enable_document_download_link_for_invite_completion_mails": false,
                            "cc_completion_email_contain_only_downloading_document_link": false,
                            "invite_update_notifications_for_all_invites_at_invite_create": false,
                            "every_signature_and_initials_field_requires_user_authentication": false
                          },
                          "parent_id": "67XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "thumbnail": {
                            "large": "https://api-eval.signnow.com/document/5bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=large",
                            "small": "https://api-eval.signnow.com/document/5bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=small",
                            "medium": "https://api-eval.signnow.com/document/5bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/thumbnail?size=medium"
                          },
                          "page_count": 1,
                          "signatures": [],
                          "attachments": [],
                          "radiobuttons": [],
                          "viewer_roles": [],
                          "document_name": "Request two signatures",
                          "entity_labels": [
                            {
                              "updated": 1716320189,
                              "is_system": true,
                              "label_name": "declined"
                            }
                          ],
                          "field_invites": [
                            {
                              "id": "d5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Recipient 1",
                              "email": "signer@email.com",
                              "status": "pending",
                              "created": 1716320169,
                              "role_id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "updated": 1716320169,
                              "declined": [
                                {
                                  "declined_text": "The document contains incorrect data"
                                }
                              ],
                              "reassign": false,
                              "reminder": false,
                              "id_verified": "UNVERIFIED",
                              "is_embedded": false,
                              "delivery_type": "email",
                              "password_type": "",
                              "signer_user_id": "50XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "expiration_time": 1718912169,
                              "is_draft_exists": false,
                              "password_method": "",
                              "payment_request": null,
                              "is_full_declined": false,
                              "is_document_locked": false,
                              "password_protected": false,
                              "email_sent_statuses": [
                                {
                                  "status": "sent",
                                  "created_at": 1716320171,
                                  "last_reaction_at": 1716320171
                                },
                                {
                                  "status": "mail_open",
                                  "created_at": 1716320176,
                                  "last_reaction_at": 1716320175
                                },
                                {
                                  "status": "mail_click",
                                  "created_at": 1716320177,
                                  "last_reaction_at": 1716320175
                                }
                              ],
                              "force_new_signature": null,
                              "signer_phone_invite": null,
                              "decline_by_signature": "0",
                              "signing_instructions": null,
                              "electronic_consent_id": "2aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "prefill_signature_name": null,
                              "id_verification_required": "NO",
                              "electronic_consent_required": 1,
                              "required_preset_signature_name": null
                            }
                          ],
                          "recently_used": 1716320189,
                          "notary_invites": [],
                          "origin_user_id": "fcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "routing_details": [
                            {
                              "cc": [],
                              "id": "e2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "data": [
                                {
                                  "name": "Recipient 1",
                                  "role_id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "reassign": false,
                                  "reminder": {
                                    "remind_after": 0,
                                    "remind_before": 0,
                                    "remind_repeat": 0
                                  },
                                  "inviter_role": false,
                                  "default_email": "signer@email.com",
                                  "delivery_type": "email",
                                  "signing_order": 1,
                                  "expiration_days": 30,
                                  "decline_by_signature": false
                                }
                              ],
                              "cc_step": [],
                              "created": 1716320168,
                              "updated": 1716320168,
                              "viewers": [],
                              "invite_link_instructions": ""
                            }
                          ],
                          "field_validators": [],
                          "original_filename": "Request two signatures.pdf",
                          "origin_document_id": "3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "document_group_info": null,
                          "enumeration_options": [],
                          "viewer_field_invites": []
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Request with sort and ordering": {
                    "value": {
                      "data": [
                        {
                          "id": "77XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner": "owner@email.com",
                          "roles": [
                            {
                              "name": "Recipient 1",
                              "unique_id": "9bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "signing_order": 1
                            }
                          ],
                          "fields": [
                            {
                              "id": "51XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Recipient 1",
                              "type": "signature",
                              "role_id": "9bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_id": "f1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "fulfiller": "signer@email.com",
                              "element_id": null,
                              "originator": "sender@email.com",
                              "json_attributes": {
                                "x": 114,
                                "y": 122,
                                "name": "Signature_1",
                                "width": 80,
                                "height": 20,
                                "required": true,
                                "page_number": 0,
                                "allowed_types": [
                                  "type",
                                  "draw",
                                  "upload"
                                ]
                              },
                              "field_request_id": "f1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "template_field_id": "42XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_request_canceled": null
                            }
                          ],
                          "created": 1652070929,
                          "updated": 1652070931,
                          "user_id": "fcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "requests": [],
                          "settings": {
                            "ololo": false,
                            "mytext": false,
                            "mytext1": false,
                            "enable_mfa": false,
                            "enable_pki": false,
                            "copy_export": false,
                            "date_format": false,
                            "enable_qwer": false,
                            "upload_limit": false,
                            "document_guide": false,
                            "sso-only-login": false,
                            "mobileweb_option": false,
                            "cloud_auto_export": false,
                            "logout_on_signing": false,
                            "restrict_download": false,
                            "common_experiments": false,
                            "enable_experiments": false,
                            "add_signature_stamp": false,
                            "email_logo_position": false,
                            "cfr_title_21_part_11": false,
                            "email_btn_bkgd_color": false,
                            "email_btn_text_color": false,
                            "email_custom_message": false,
                            "email_custom_subject": false,
                            "email_footer_enabled": false,
                            "enable_eu_date_format": false,
                            "require_email_subject": false,
                            "enable_hyperlink_field": false,
                            "invite_expiration_days": false,
                            "no_document_attachment": false,
                            "agree_to_be_beta_tester": false,
                            "electronic_consent_text": false,
                            "flatten_document_fields": false,
                            "org_allowed_team_admins": false,
                            "document_schema_extended": false,
                            "enable_document_comments": false,
                            "front_end_session_length": false,
                            "no_user_signature_return": false,
                            "require_drawn_signatures": false,
                            "signature_stamp_position": false,
                            "allow_big_attachment_file": false,
                            "cloud_export_with_history": false,
                            "enable_full_story_tracker": false,
                            "require_login_for_signing": false,
                            "allow_download_certificate": false,
                            "do_no_consent_redirect_url": false,
                            "disable_email_notifications": false,
                            "electronic_consent_required": false,
                            "email_admin_on_banned_login": false,
                            "enable_hyperlink_protection": false,
                            "enable_team_admin_move_docs": false,
                            "invite_decline_redirect_url": false,
                            "allow_team_admin_rename_docs": false,
                            "emailed_docs_include_history": false,
                            "lock_signing_date_by_default": false,
                            "no_document_file_attachments": false,
                            "add_signature_stamp_with_name": false,
                            "digitally_sign_dowloaded_docs": false,
                            "watermark_downloaded_document": false,
                            "invite_completion_redirect_url": false,
                            "required_preset_signature_name": false,
                            "signing_link_document_download": false,
                            "block_login_via_social_networks": false,
                            "hide_upgrade_subscription_button": false,
                            "allow_edit_document_after_signing": false,
                            "default_field_invite_remind_after": false,
                            "disable_download_action_in_editor": false,
                            "enable_advanced_threat_protection": false,
                            "have_merged_document_group_option": false,
                            "auto_deletion_documents_from_trash": false,
                            "default_field_invite_remind_before": false,
                            "default_field_invite_remind_repeat": false,
                            "document_completion_retention_days": false,
                            "require_authentication_for_invites": false,
                            "save_signer_signature_and_initials": false,
                            "signing_link_document_name_formula": false,
                            "disable_recipients_list_from_editor": false,
                            "document_attachment_only_for_signer": false,
                            "default_field_invite_expiration_time": false,
                            "unsuccessful_logout_attempts_allowed": false,
                            "audit_trail_completion_retention_days": false,
                            "block_organization_selfleave_by_member": false,
                            "enable_render_pages_in_editor_as_images": false,
                            "allow_document_copying_to_other_accounts": false,
                            "allow_embedded_extended_token_expiration": false,
                            "pending_invite_document_view_notification": false,
                            "guide_signers_only_through_required_fields": false,
                            "redirect_to_registration_when_fields_saved": false,
                            "hide_decline_to_sign_option_in_signing_session": false,
                            "max_attachments_for_signnow_fields_per_document": false,
                            "only_administrator_is_able_to_invite_to_the_team": false,
                            "allow_big_count_of_attachment_fields_per_document": false,
                            "agreement_to_test_new_functionality_in_organization": false,
                            "auto_apply_signatures_and_initials_to_document_fields": false,
                            "block_export_options_when_credit_card_validation_is_used": false,
                            "receive_signer_email_after_sent_field_invite_to_yourself": false,
                            "enable_document_download_link_for_invite_completion_mails": false,
                            "cc_completion_email_contain_only_downloading_document_link": false,
                            "invite_update_notifications_for_all_invites_at_invite_create": false,
                            "every_signature_and_initials_field_requires_user_authentication": false
                          },
                          "parent_id": "ebXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "thumbnail": {
                            "large": "https://example.com/thumbnail?size=large",
                            "small": "https://example.com/thumbnail?size=small",
                            "medium": "https://example.com/thumbnail?size=medium"
                          },
                          "page_count": 1,
                          "signatures": [],
                          "attachments": [],
                          "viewer_roles": [],
                          "document_name": "sample copy 5",
                          "field_invites": [
                            {
                              "id": "77XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Recipient 1",
                              "email": "signer@email.com",
                              "status": "pending",
                              "created": 1652070930,
                              "role_id": "9bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "updated": 1652070931,
                              "declined": [],
                              "reassign": false,
                              "reminder": true,
                              "id_verified": "UNVERIFIED",
                              "is_embedded": false,
                              "delivery_type": "email",
                              "password_type": "",
                              "signer_user_id": "a7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "expiration_time": 1654662931,
                              "is_draft_exists": false,
                              "password_method": "",
                              "payment_request": null,
                              "is_full_declined": false,
                              "is_document_locked": false,
                              "password_protected": false,
                              "email_sent_statuses": [
                                {
                                  "status": "sent",
                                  "created_at": 1652070932,
                                  "last_reaction_at": 1652070932
                                }
                              ],
                              "force_new_signature": null,
                              "signer_phone_invite": null,
                              "decline_by_signature": "0",
                              "signing_instructions": null,
                              "electronic_consent_id": null,
                              "prefill_signature_name": null,
                              "id_verification_required": "NO",
                              "electronic_consent_required": 0,
                              "required_preset_signature_name": null
                            }
                          ],
                          "origin_user_id": "fcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "routing_details": [
                            {
                              "cc": [],
                              "id": "99XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "data": [
                                {
                                  "name": "Recipient 1",
                                  "role_id": "9bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "reassign": false,
                                  "reminder": {
                                    "remind_after": 10,
                                    "remind_before": 11,
                                    "remind_repeat": 7
                                  },
                                  "inviter_role": false,
                                  "default_email": "",
                                  "delivery_type": "email",
                                  "signing_order": 1,
                                  "expiration_days": 30,
                                  "decline_by_signature": false
                                }
                              ],
                              "cc_step": [],
                              "created": 1652070929,
                              "updated": 1652070929,
                              "viewers": [],
                              "invite_link_instructions": ""
                            }
                          ],
                          "original_filename": "sample copy 5.pdf",
                          "origin_document_id": "6aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "document_group_info": null,
                          "enumeration_options": [],
                          "viewer_field_invites": []
                        },
                        {
                          "id": "78XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner": "owner@email.com",
                          "roles": [
                            {
                              "name": "Recipient 1",
                              "unique_id": "e7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "signing_order": 1
                            }
                          ],
                          "fields": [
                            {
                              "id": "40XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Recipient 1",
                              "type": "signature",
                              "role_id": "e7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_id": "fbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "fulfiller": "signer@email.com",
                              "element_id": null,
                              "originator": "sender@email.com",
                              "json_attributes": {
                                "x": 114,
                                "y": 122,
                                "name": "Signature_1",
                                "width": 80,
                                "height": 20,
                                "required": true,
                                "page_number": 0,
                                "allowed_types": [
                                  "type",
                                  "draw",
                                  "upload"
                                ]
                              },
                              "field_request_id": "fbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "template_field_id": "42XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_request_canceled": null
                            }
                          ],
                          "created": 1652070809,
                          "updated": 1652070811,
                          "user_id": "fcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "requests": [],
                          "settings": {
                            "mytext": false,
                            "mytext1": false,
                            "enable_mfa": false,
                            "enable_pki": false,
                            "copy_export": false,
                            "date_format": false,
                            "enable_qwer": false,
                            "upload_limit": false,
                            "document_guide": false,
                            "sso-only-login": false,
                            "mobileweb_option": false,
                            "cloud_auto_export": false,
                            "logout_on_signing": false,
                            "restrict_download": false,
                            "common_experiments": false,
                            "enable_experiments": false,
                            "add_signature_stamp": false,
                            "email_logo_position": false,
                            "cfr_title_21_part_11": false,
                            "email_btn_bkgd_color": false,
                            "email_btn_text_color": false,
                            "email_custom_message": false,
                            "email_custom_subject": false,
                            "email_footer_enabled": false,
                            "enable_eu_date_format": false,
                            "require_email_subject": false,
                            "enable_hyperlink_field": false,
                            "invite_expiration_days": false,
                            "no_document_attachment": false,
                            "agree_to_be_beta_tester": false,
                            "electronic_consent_text": false,
                            "flatten_document_fields": false,
                            "org_allowed_team_admins": false,
                            "document_schema_extended": false,
                            "enable_document_comments": false,
                            "front_end_session_length": false,
                            "no_user_signature_return": false,
                            "require_drawn_signatures": false,
                            "signature_stamp_position": false,
                            "allow_big_attachment_file": false,
                            "cloud_export_with_history": false,
                            "enable_full_story_tracker": false,
                            "require_login_for_signing": false,
                            "allow_download_certificate": false,
                            "do_no_consent_redirect_url": false,
                            "disable_email_notifications": false,
                            "electronic_consent_required": false,
                            "email_admin_on_banned_login": false,
                            "enable_hyperlink_protection": false,
                            "enable_team_admin_move_docs": false,
                            "invite_decline_redirect_url": false,
                            "allow_team_admin_rename_docs": false,
                            "emailed_docs_include_history": false,
                            "lock_signing_date_by_default": false,
                            "no_document_file_attachments": false,
                            "add_signature_stamp_with_name": false,
                            "digitally_sign_dowloaded_docs": false,
                            "watermark_downloaded_document": false,
                            "invite_completion_redirect_url": false,
                            "required_preset_signature_name": false,
                            "signing_link_document_download": false,
                            "block_login_via_social_networks": false,
                            "hide_upgrade_subscription_button": false,
                            "allow_edit_document_after_signing": false,
                            "default_field_invite_remind_after": false,
                            "disable_download_action_in_editor": false,
                            "enable_advanced_threat_protection": false,
                            "have_merged_document_group_option": false,
                            "auto_deletion_documents_from_trash": false,
                            "default_field_invite_remind_before": false,
                            "default_field_invite_remind_repeat": false,
                            "document_completion_retention_days": false,
                            "require_authentication_for_invites": false,
                            "save_signer_signature_and_initials": false,
                            "signing_link_document_name_formula": false,
                            "disable_recipients_list_from_editor": false,
                            "document_attachment_only_for_signer": false,
                            "default_field_invite_expiration_time": false,
                            "unsuccessful_logout_attempts_allowed": false,
                            "audit_trail_completion_retention_days": false,
                            "block_organization_selfleave_by_member": false,
                            "enable_render_pages_in_editor_as_images": false,
                            "allow_document_copying_to_other_accounts": false,
                            "allow_embedded_extended_token_expiration": false,
                            "pending_invite_document_view_notification": false,
                            "guide_signers_only_through_required_fields": false,
                            "redirect_to_registration_when_fields_saved": false,
                            "hide_decline_to_sign_option_in_signing_session": false,
                            "max_attachments_for_signnow_fields_per_document": false,
                            "only_administrator_is_able_to_invite_to_the_team": false,
                            "allow_big_count_of_attachment_fields_per_document": false,
                            "agreement_to_test_new_functionality_in_organization": false,
                            "auto_apply_signatures_and_initials_to_document_fields": false,
                            "block_export_options_when_credit_card_validation_is_used": false,
                            "receive_signer_email_after_sent_field_invite_to_yourself": false,
                            "enable_document_download_link_for_invite_completion_mails": false,
                            "cc_completion_email_contain_only_downloading_document_link": false,
                            "invite_update_notifications_for_all_invites_at_invite_create": false,
                            "every_signature_and_initials_field_requires_user_authentication": false
                          },
                          "parent_id": "ebXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "thumbnail": {
                            "large": "https://example.com/thumbnail?size=large",
                            "small": "https://example.com/thumbnail?size=small",
                            "medium": "https://example.com/thumbnail?size=medium"
                          },
                          "page_count": 1,
                          "signatures": [],
                          "attachments": [],
                          "viewer_roles": [],
                          "document_name": "sample copy 5",
                          "entity_labels": [],
                          "field_invites": [
                            {
                              "id": "d4XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Recipient 1",
                              "email": "signer@email.com",
                              "status": "pending",
                              "created": 1652070811,
                              "role_id": "e7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "updated": 1652070811,
                              "declined": [],
                              "reassign": false,
                              "reminder": true,
                              "id_verified": "UNVERIFIED",
                              "is_embedded": false,
                              "delivery_type": "email",
                              "password_type": "",
                              "signer_user_id": "fbXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "expiration_time": 1654662811,
                              "is_draft_exists": false,
                              "password_method": "",
                              "payment_request": null,
                              "is_full_declined": false,
                              "is_document_locked": false,
                              "password_protected": false,
                              "email_sent_statuses": [
                                {
                                  "status": "sent",
                                  "created_at": 1652070812,
                                  "last_reaction_at": 1652070812
                                }
                              ],
                              "force_new_signature": null,
                              "signer_phone_invite": null,
                              "decline_by_signature": "0",
                              "signing_instructions": null,
                              "electronic_consent_id": null,
                              "prefill_signature_name": null,
                              "id_verification_required": "NO",
                              "electronic_consent_required": 0,
                              "required_preset_signature_name": null
                            }
                          ],
                          "origin_user_id": "fcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "routing_details": [
                            {
                              "cc": [],
                              "id": "54XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "data": [
                                {
                                  "name": "Recipient 1",
                                  "role_id": "e7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "reassign": false,
                                  "reminder": {
                                    "remind_after": 10,
                                    "remind_before": 11,
                                    "remind_repeat": 7
                                  },
                                  "inviter_role": false,
                                  "default_email": "",
                                  "delivery_type": "email",
                                  "signing_order": 1,
                                  "expiration_days": 30,
                                  "decline_by_signature": false
                                }
                              ],
                              "cc_step": [],
                              "created": 1652070809,
                              "updated": 1652070809,
                              "viewers": [],
                              "invite_link_instructions": ""
                            }
                          ],
                          "original_filename": "sample copy 5.pdf",
                          "origin_document_id": "6aXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "document_group_info": null,
                          "enumeration_options": [],
                          "viewer_field_invites": []
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": [],
                          "total": 2,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  },
                  "Request without query parameters": {
                    "value": {
                      "data": [
                        {
                          "id": "5bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "owner": "owner@email.com",
                          "roles": [
                            {
                              "name": "Recipient 1",
                              "unique_id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "signing_order": 1
                            }
                          ],
                          "fields": [
                            {
                              "id": "13XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Recipient 1",
                              "type": "signature",
                              "role_id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_id": "67XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "fulfiller": "signer@email.com",
                              "element_id": null,
                              "originator": "sender@email.com",
                              "json_attributes": {
                                "x": 131,
                                "y": 119,
                                "name": "Signature_1",
                                "width": 80,
                                "height": 20,
                                "required": true,
                                "page_number": 0,
                                "allowed_types": [
                                  "type",
                                  "draw",
                                  "upload"
                                ]
                              },
                              "field_request_id": "67XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "template_field_id": "beXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "field_request_canceled": null
                            }
                          ],
                          "created": 1651820262,
                          "updated": 1651820264,
                          "user_id": "fcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "requests": [],
                          "settings": {
                            "mytext": false,
                            "mytext1": false,
                            "enable_mfa": false,
                            "enable_pki": false,
                            "copy_export": false,
                            "date_format": false,
                            "enable_qwer": false,
                            "upload_limit": false,
                            "document_guide": false,
                            "sso-only-login": false,
                            "mobileweb_option": false,
                            "cloud_auto_export": false,
                            "logout_on_signing": false,
                            "restrict_download": false,
                            "common_experiments": false,
                            "enable_experiments": false,
                            "add_signature_stamp": false,
                            "email_logo_position": false,
                            "cfr_title_21_part_11": false,
                            "email_btn_bkgd_color": false,
                            "email_btn_text_color": false,
                            "email_custom_message": false,
                            "email_custom_subject": false,
                            "email_footer_enabled": false,
                            "enable_eu_date_format": false,
                            "require_email_subject": false,
                            "enable_hyperlink_field": false,
                            "invite_expiration_days": false,
                            "no_document_attachment": false,
                            "agree_to_be_beta_tester": false,
                            "electronic_consent_text": false,
                            "flatten_document_fields": false,
                            "org_allowed_team_admins": false,
                            "document_schema_extended": false,
                            "enable_document_comments": false,
                            "front_end_session_length": false,
                            "no_user_signature_return": false,
                            "require_drawn_signatures": false,
                            "signature_stamp_position": false,
                            "allow_big_attachment_file": false,
                            "cloud_export_with_history": false,
                            "enable_full_story_tracker": false,
                            "require_login_for_signing": false,
                            "allow_download_certificate": false,
                            "do_no_consent_redirect_url": false,
                            "disable_email_notifications": false,
                            "electronic_consent_required": false,
                            "email_admin_on_banned_login": false,
                            "enable_hyperlink_protection": false,
                            "enable_team_admin_move_docs": false,
                            "invite_decline_redirect_url": false,
                            "allow_team_admin_rename_docs": false,
                            "emailed_docs_include_history": false,
                            "lock_signing_date_by_default": false,
                            "no_document_file_attachments": false,
                            "add_signature_stamp_with_name": false,
                            "digitally_sign_dowloaded_docs": false,
                            "watermark_downloaded_document": false,
                            "invite_completion_redirect_url": false,
                            "required_preset_signature_name": false,
                            "signing_link_document_download": false,
                            "block_login_via_social_networks": false,
                            "hide_upgrade_subscription_button": false,
                            "allow_edit_document_after_signing": false,
                            "default_field_invite_remind_after": false,
                            "disable_download_action_in_editor": false,
                            "enable_advanced_threat_protection": false,
                            "have_merged_document_group_option": false,
                            "auto_deletion_documents_from_trash": false,
                            "default_field_invite_remind_before": false,
                            "default_field_invite_remind_repeat": false,
                            "document_completion_retention_days": false,
                            "require_authentication_for_invites": false,
                            "save_signer_signature_and_initials": false,
                            "signing_link_document_name_formula": false,
                            "disable_recipients_list_from_editor": false,
                            "document_attachment_only_for_signer": false,
                            "default_field_invite_expiration_time": false,
                            "unsuccessful_logout_attempts_allowed": false,
                            "audit_trail_completion_retention_days": false,
                            "block_organization_selfleave_by_member": false,
                            "enable_render_pages_in_editor_as_images": false,
                            "allow_document_copying_to_other_accounts": false,
                            "allow_embedded_extended_token_expiration": false,
                            "pending_invite_document_view_notification": false,
                            "guide_signers_only_through_required_fields": false,
                            "redirect_to_registration_when_fields_saved": false,
                            "hide_decline_to_sign_option_in_signing_session": false,
                            "max_attachments_for_signnow_fields_per_document": false,
                            "only_administrator_is_able_to_invite_to_the_team": false,
                            "allow_big_count_of_attachment_fields_per_document": false,
                            "agreement_to_test_new_functionality_in_organization": false,
                            "auto_apply_signatures_and_initials_to_document_fields": false,
                            "block_export_options_when_credit_card_validation_is_used": false,
                            "receive_signer_email_after_sent_field_invite_to_yourself": false,
                            "enable_document_download_link_for_invite_completion_mails": false,
                            "cc_completion_email_contain_only_downloading_document_link": false,
                            "invite_update_notifications_for_all_invites_at_invite_create": false,
                            "every_signature_and_initials_field_requires_user_authentication": false
                          },
                          "parent_id": "ebXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "thumbnail": {
                            "large": "https://example.com/thumbnail?size=large",
                            "small": "https://example.com/thumbnail?size=small",
                            "medium": "https://example.com/thumbnail?size=medium"
                          },
                          "page_count": 1,
                          "signatures": [],
                          "attachments": [],
                          "viewer_roles": [],
                          "document_name": "sample copy 11",
                          "entity_labels": [],
                          "field_invites": [
                            {
                              "id": "d5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "role": "Recipient 1",
                              "email": "signer@email.com",
                              "status": "pending",
                              "created": 1651820263,
                              "role_id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "updated": 1651820264,
                              "declined": [],
                              "reassign": false,
                              "reminder": true,
                              "id_verified": "UNVERIFIED",
                              "is_embedded": false,
                              "delivery_type": "email",
                              "password_type": "",
                              "signer_user_id": "50XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "expiration_time": 1654412264,
                              "is_draft_exists": false,
                              "password_method": "",
                              "payment_request": null,
                              "is_full_declined": false,
                              "is_document_locked": false,
                              "password_protected": false,
                              "email_sent_statuses": [
                                {
                                  "status": "sent",
                                  "created_at": 1651820264,
                                  "last_reaction_at": 1651820264
                                }
                              ],
                              "force_new_signature": null,
                              "signer_phone_invite": null,
                              "decline_by_signature": "0",
                              "signing_instructions": null,
                              "electronic_consent_id": null,
                              "prefill_signature_name": null,
                              "id_verification_required": "NO",
                              "electronic_consent_required": 0,
                              "required_preset_signature_name": null
                            }
                          ],
                          "origin_user_id": "fcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "routing_details": [
                            {
                              "cc": [],
                              "id": "e2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                              "data": [
                                {
                                  "name": "Recipient 1",
                                  "role_id": "d8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                                  "reassign": false,
                                  "reminder": {
                                    "remind_after": 10,
                                    "remind_before": 11,
                                    "remind_repeat": 7
                                  },
                                  "inviter_role": false,
                                  "default_email": "",
                                  "delivery_type": "email",
                                  "signing_order": 1,
                                  "expiration_days": 30,
                                  "decline_by_signature": false
                                }
                              ],
                              "cc_step": [],
                              "created": 1651820263,
                              "updated": 1651820263,
                              "viewers": [],
                              "invite_link_instructions": ""
                            }
                          ],
                          "original_filename": "sample copy 11.pdf",
                          "origin_document_id": "3eXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "document_group_info": null,
                          "enumeration_options": [],
                          "viewer_field_invites": []
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 1,
                          "links": [],
                          "total": 1,
                          "per_page": 15,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with incorrect {template_id}\n* Request with {template_id} where the user is not owner of the template\n* Request with Incorrect or missing token\n* Invalid sort_by format, incorrect value\n* Invalid sort_order format, incorrect value\n* Invalid per_page format, incorrect value\n* Invalid page format, incorrect value\n* Invalid filters[signing_status] format, incorrect value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 13034001,
                          "message": "Document template `6a100ccb58c34989a47d2d5f0a51c730569448e1` is not found."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 13034001,
                          "message": "Document template `6a100ccb58c34989a47d2d5f0a51c730569448e1` is not found."
                        }
                      ]
                    }
                  },
                  "Invalid page value": {
                    "value": {
                      "errors": [
                        {
                          "code": 13003004,
                          "message": "Query parameter `page` must be a digit"
                        },
                        {
                          "code": 13003005,
                          "message": "Query parameter `page` must be more than 0"
                        }
                      ]
                    }
                  },
                  "Incorrect template_id": {
                    "value": {
                      "errors": [
                        {
                          "code": 13034001,
                          "message": "Document template `{template_id}` is not found."
                        }
                      ]
                    }
                  },
                  "Invalid sort_by value": {
                    "value": {
                      "errors": [
                        {
                          "code": 13003008,
                          "message": "Query parameter `sort_by` must be a value of (`updated`, `created` or `document_name`)."
                        }
                      ]
                    }
                  },
                  "Invalid per_page value": {
                    "value": {
                      "errors": [
                        {
                          "code": 13003001,
                          "message": "Query parameter `per_page` must be a digit"
                        },
                        {
                          "code": 13003002,
                          "message": "Query parameter `per_page` must be more than 0"
                        }
                      ]
                    }
                  },
                  "Invalid sort_order value": {
                    "value": {
                      "errors": [
                        {
                          "code": 13003009,
                          "message": "Query parameter `sort_order` must be a value of (`desc` or `asc`)."
                        }
                      ]
                    }
                  },
                  "Incorrect or missing token": {
                    "value": {
                      "errors": [
                        {
                          "code": 1537,
                          "error": "invalid_token"
                        }
                      ]
                    }
                  },
                  "User is not owner of the template": {
                    "value": {
                      "errors": [
                        {
                          "code": 13049001,
                          "message": "The user is not owner of the template `{template_id}`."
                        }
                      ]
                    }
                  },
                  "Invalid filters[signing_status] value": {
                    "value": {
                      "message": "Validation Error",
                      "_message": {
                        "errors": [
                          {
                            "code": 13051001,
                            "message": "The `filters.signing_status` field value must be `waiting-for-me`, `waiting-for-others`, `signed`, `pending`, `has-invites`."
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/templates/{template_id}/copy": {
      "post": {
        "operationId": "post-v2-templates-template-id-copy",
        "summary": "Duplicate a template",
        "description": "This endpoint allows API users to create a new template by making a copy of an existing template and editing the copy.\n\nThe result is another template. To collect signatures, generate a document from it with [Create document from template](/docs/template/operations/get-template-copy) and send that document, or reach many signers at once with [Bulk invite](/docs/template/operations/bulk-invite).",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "ID of the source template."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully created new template copy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Successfully created new template copy": {
                    "value": {
                      "id": "29XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "name": "New sample template"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value\n* The `template_name` field must be a string.\n* The `template_name` field is required and must not be empty.\n* The `template_name` field must be a valid string.\n* The `folder_id` field must be a string.\n* The `folder_id` field must be a valid unique id.\n* Cannot copy a deleted template.\n* Folder of Templates only available.\n* The `clear_recipient_details` field must be a boolean.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Cannot copy a deleted template.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021009,
                          "message": "Copy deleted template is not possible."
                        }
                      ]
                    }
                  },
                  "Folder of Templates only available.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021005,
                          "message": "Folder of Templates only available."
                        }
                      ]
                    }
                  },
                  "The `folder_id` field must be a string.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021002,
                          "message": "The `folder_id` field must be a string."
                        }
                      ]
                    }
                  },
                  "The `template_name` field must be a string.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021001,
                          "message": "The `template_name` field must be a string."
                        }
                      ]
                    }
                  },
                  "The `folder_id` field must be a valid unique id.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021003,
                          "message": "The `folder_id` field must be a valid unique id."
                        }
                      ]
                    }
                  },
                  "The `template_name` field must be a valid string.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021011,
                          "message": "The `template_name` field must be a valid string."
                        }
                      ]
                    }
                  },
                  "The `clear_recipient_details` field must be a boolean.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021012,
                          "message": "The `clear_recipient_details` field must be a boolean."
                        }
                      ]
                    }
                  },
                  "The `template_name` field is required and must not be empty.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021010,
                          "message": "The `template_name` field is required and must not be empty."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "* Access denied to specific template.\n* Access denied to specific folder.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Access denied to specific folder.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021004,
                          "message": "Access denied to {unique_id} folder."
                        }
                      ]
                    }
                  },
                  "Access denied to specific template.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021008,
                          "message": "Access denied to {unique_id} template."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Template is not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Template is not found.": {
                    "value": {
                      "errors": [
                        {
                          "code": 13021006,
                          "message": "Template {unique_id} is not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "template_name"
                ],
                "properties": {
                  "folder_id": {
                    "type": "string",
                    "description": "ID of the folder where the new template copy must be saved. If not specified, the new template will be saved to a Template folder."
                  },
                  "template_name": {
                    "type": "string",
                    "description": "The new template name."
                  },
                  "clear_recipient_details": {
                    "type": "boolean",
                    "description": "Whether or not to overwrite the recipients roles and actions in the template. `True` - yes, delete the recipients details from the template copy, `false` - no overwriting, use the recipients' details from the source template."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "folder_id": "586ef233a1f9ec860bb0221e58ee5c57f760e39e",
                    "template_name": "new template",
                    "clear_recipient_details": false
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "folder_id": "586ef233a1f9ec860bb0221e58ee5c57f760e39e",
                    "template_name": "new template",
                    "clear_recipient_details": false
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/templates/{template_id}/roles": {
      "post": {
        "operationId": "post-v2-templates-template-id-roles",
        "summary": "Share template",
        "description": "This endpoint allows an owner of a template to share it with other users (as a viewer or sender).\n\n**Note**: A template can be shared only once with the same user. The user will receive an email notification about the shared template.",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "ID of the template."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "ID of the user with whom the template has been shared."
                    },
                    "role": {
                      "type": "string",
                      "description": "Role of the user. Can be `sender` or `viewer`."
                    },
                    "email": {
                      "type": "string",
                      "description": "Email of the user with whom the template has been shared."
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "role": "sender",
                      "email": "user@email.com"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "role": "sender",
                      "email": "user@email.com"
                    }
                  },
                  "Successful request": {
                    "value": {
                      "id": "a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "role": "sender",
                      "email": "user@mail.com"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- The template has already been shared with this user.\n- You are not a template owner.\n- Trial users can share up to 10 entities.\n- The user email is not valid.\n- `email` is not a string.\n- `email` is required.\n- `role` must be one of: `viewer`, `sender`.\n- `role` is not a string.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029008,
                          "message": "Template can only be shared once."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029008,
                          "message": "Template can only be shared once."
                        }
                      ]
                    }
                  },
                  "Invalid role": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029006,
                          "message": "Role must be one of the choices: `viewer`, `sender`."
                        }
                      ]
                    }
                  },
                  "Invalid email": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029003,
                          "message": "Email is not valid."
                        }
                      ]
                    }
                  },
                  "Limit exceeded": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029018,
                          "message": "Shared entities limit exceeded."
                        }
                      ]
                    }
                  },
                  "Multiple sharing": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029008,
                          "message": "Entity can only be shared once."
                        }
                      ]
                    }
                  },
                  "email is required": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029002,
                          "message": "Email is required"
                        }
                      ]
                    }
                  },
                  "role not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029005,
                          "message": "Role must be a string."
                        }
                      ]
                    }
                  },
                  "Not template owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Accessor is not a document owner."
                        }
                      ]
                    }
                  },
                  "email not a string": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029001,
                          "message": "Email must be a string"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Incorrect `template_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "404": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "404": "Unable to find a route to match the URI: v2/templates/inc/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/inc/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
                    }
                  },
                  "Incorrect template_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/inc/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "role"
                ],
                "properties": {
                  "role": {
                    "type": "string",
                    "example": "sender",
                    "description": "The role assigned to the user. Allowed values are `sender` and `viewer`."
                  },
                  "email": {
                    "type": "string",
                    "example": "user@mail.com",
                    "description": "The email address of the user you want to share the template with."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "role": "sender",
                    "email": "user@email.com"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "role": "sender",
                    "email": "user@email.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/templates/{template_id}/roles/{user_id}": {
      "put": {
        "operationId": "put-v2-templates-template-id-roles-user-id",
        "summary": "Update role for template",
        "description": "This endpoint allows an owner of the template to change a user role for a specific shared template. \n\n**Note**: Only the template owner can make role changes.\n",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "ID of the template."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the user."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "role": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "role": "viewer",
                      "email": "user@email.com"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "role": "viewer",
                      "email": "user@email.com"
                    }
                  },
                  "Successful request": {
                    "value": {
                      "id": "a0XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "role": "viewer",
                      "email": "user@mail.com"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- You are not a template owner.\n- `role` must be one of: `viewer`, `sender`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Accessor is not a document owner."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Accessor is not a document owner."
                        }
                      ]
                    }
                  },
                  "Incorrect role": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029006,
                          "message": "Role must be one of the choices: `viewer`, `sender`."
                        }
                      ]
                    }
                  },
                  "Not a template owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Accessor is not a document owner."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "- Incorrect `template_id`.\n- Incorrect `user_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "404": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "404": "Unable to find a route to match the URI: v2/templates/inc/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/inc/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
                    }
                  },
                  "Incorrect user_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/2274bf62786844e981584543275cdc0c88d67d45/roles/39656a8952a42e6b156b4f5558f3c73c5dc15d5"
                    }
                  },
                  "Incorrect template_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/2274bf62786844e981584543275cdcc88d67d45/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "role"
                ],
                "properties": {
                  "role": {
                    "type": "string",
                    "example": "viewer",
                    "description": "The role assigned to the user. Allowed values are `sender` and `viewer`.\n"
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "role": "viewer"
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "role": "viewer"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-v2-templates-template-id-roles-user-id",
        "summary": "Get user role for template",
        "description": "This endpoint retrieves the role of a user for a specific shared template.\n\n**Note**: This endpoint is accessible to the template owner and users with access (sender or viewer).\n",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "ID of the template."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the user."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "role": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "data": [
                        {
                          "role": "sender"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "data": [
                        {
                          "role": "sender"
                        }
                      ]
                    }
                  },
                  "Successful request": {
                    "value": {
                      "data": [
                        {
                          "role": "sender"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- You are not the template owner.\n- User with `user_id` doesn't have access to the template.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "User role not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029011,
                          "message": "User role not found."
                        }
                      ]
                    }
                  },
                  "Not a template owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "- Incorrect `template_id`.\n- Incorrect `user_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "404": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "404": "Unable to find a route to match the URI: v2/templates/8f050906ff0b40f8ae40eb9d82540d28ec86576d/roles/2274bf6278644e981584543275cdc0c88d67d45"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/8f050906ff0b40f8ae40eb9d82540d28ec86576d/roles/2274bf6278644e981584543275cdc0c88d67d45"
                    }
                  },
                  "Incorrect user_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/8f050906ff0b40f8ae40eb9d82540d28ec86576d/roles/2274bf6278644e981584543275cdc0c88d67d45"
                    }
                  },
                  "Incorrect template_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/8f050906ff0b40f8ae40eb9d82540d28ec86576d/roles/2274bf6278644e981584543275cdc0c88d67d45"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "operationId": "delete-v2-templates-template-id-roles-user-id",
        "summary": "Remove access to template",
        "description": "This endpoint allows a user to revoke access to a specific template. \n\n**Note**: The template owner can revoke access for all users with whom the template was shared. A user with whom the template was shared can only revoke their own access to the template.\n",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "ID of the template."
          },
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "ID of the user."
          }
        ],
        "responses": {
          "204": {
            "description": "Access removed."
          },
          "400": {
            "description": "- User with `user_id` doesn't have access to the template.\n- You are not the template owner.\n- The entity owners cannot remove access from themselves.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "Entity owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029022,
                          "message": "Entity owner can't unshare it from himself."
                        }
                      ]
                    }
                  },
                  "Not a template owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029012,
                          "message": "You don't have access to the entity."
                        }
                      ]
                    }
                  },
                  "user_id doesn't have access": {
                    "value": {
                      "errors": [
                        {
                          "code": 12029011,
                          "message": "User role not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "- Incorrect `template_id`.\n- Incorrect `user_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "404": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "404": "Unable to find a route to match the URI: v2/templates/8f050906ff0b40f8ae40eb9d82540d28ec86576d/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/8f050906ff0b40f8ae40eb9d82540d28ec86576d/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
                    }
                  },
                  "Incorrect user_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/8f050906ff0b40f8ae40eb9d82540d28ec86576d/roles/2274bf6278644e981584543275cdc0c88d67d45"
                    }
                  },
                  "Incorrect template_id": {
                    "value": {
                      "404": "Unable to find a route to match the URI: v2/templates/8f050906ff0b40f8ae40eb9d82540d28ec86576/roles/39656a89512a42e6b156b4f5558f3c73c5dc15d5"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/document/{template_id}/template/routing/detail": {
      "get": {
        "operationId": "get-template-routing-details",
        "summary": "Get template recipients",
        "description": "This endpoint allows API users to retrieve detailed routing information for a template, including signers, viewers, approvers, and CC recipients, along with their specific roles and signing order.",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "Template ID."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cc": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "Valid email address."
                      },
                      "description": "A list of email addresses that will receive a carbon copy of the document."
                    },
                    "cc_step": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The display name for the CC recipient."
                          },
                          "step": {
                            "type": "integer",
                            "description": "The specific step in the signing order when the email should be sent."
                          },
                          "email": {
                            "type": "string",
                            "description": "The email address of the CC recipient."
                          }
                        }
                      },
                      "description": "A list of CC recipients assigned to specific steps in the signing order."
                    },
                    "viewers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The display name of the viewer."
                          },
                          "contact_id": {
                            "type": "string",
                            "description": "The unique identifier of the contact linked to the document."
                          },
                          "inviter_role": {
                            "type": "boolean",
                            "description": "If true, the viewer can invite others."
                          },
                          "default_email": {
                            "type": "string",
                            "description": "The email address of the viewer. Note: If `inviter_role` is `true`, this defaults to the document owner's email (retrieved from `GET /user`) and the email input will be locked in the UI."
                          },
                          "signing_order": {
                            "type": "integer",
                            "description": "The step order for the viewer."
                          }
                        }
                      },
                      "description": "A list of users with view-only permissions."
                    },
                    "approvers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The display name of the approver."
                          },
                          "inviter_role": {
                            "type": "boolean",
                            "description": "If true, the approver can invite others."
                          },
                          "default_email": {
                            "type": "string",
                            "description": "The email address of the approver. Note: If `inviter_role` is `true`, this defaults to the document owner's email (retrieved from `GET /user`) and the email input will be locked in the UI."
                          },
                          "signing_order": {
                            "type": "integer",
                            "description": "The step order for the approver."
                          },
                          "authentication": {
                            "type": "object",
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "enum": [
                                  "phone",
                                  "password"
                                ],
                                "type": "string",
                                "example": "phone",
                                "description": "Authentication type used for the recipient authentication during the signing session."
                              },
                              "phone": {
                                "type": "string",
                                "example": "+15550109988",
                                "description": "Phone number used to authenticate the recipient. Required inside `authentication` object with the `phone` method."
                              },
                              "method": {
                                "enum": [
                                  "sms",
                                  "phone_call"
                                ],
                                "type": "string",
                                "example": "sms",
                                "description": "Method of the `phone` authentication type. Required inside `authentication` object with the `phone` authentication type."
                              },
                              "password": {
                                "type": "string",
                                "example": "123456",
                                "description": "Password set for the recipient authentication. Required inside the `authentication` object with the `password` authentication type."
                              },
                              "sms_message": {
                                "type": "string",
                                "example": "Enter the password {password} to unlock your document.",
                                "maxLength": 140,
                                "description": "Custom sms message sent to the recipient, containing the `{password}` placeholder. Used with the `sms` method. Without this parameter, the recipient receives a default sms with an autogenerated password."
                              }
                            },
                            "x-nullable": true,
                            "description": "Authentication settings used to verify the recipient identity."
                          },
                          "expiration_days": {
                            "type": "integer",
                            "description": "Number of days before the approval request expires."
                          }
                        }
                      },
                      "description": "A list of users required to approve the document."
                    },
                    "attributes": {
                      "type": "object",
                      "properties": {
                        "brand_id": {
                          "type": "string",
                          "description": "The unique identifier of the brand to apply."
                        },
                        "on_complete": {
                          "type": "string",
                          "description": "The action to take when the document is completed."
                        },
                        "redirect_uri": {
                          "type": "string",
                          "description": "The URL to redirect users to after signing."
                        }
                      },
                      "description": "General attributes regarding the document's completion settings and branding."
                    },
                    "routing_details": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The display name of the recipient role."
                          },
                          "role_id": {
                            "type": "string",
                            "description": "The unique identifier of the role."
                          },
                          "inviter_role": {
                            "type": "boolean",
                            "description": "If set to `true`, designates the document owner (current API user) as the recipient for this role. This corresponds to the 'I am recipient' setting in the UI."
                          },
                          "default_email": {
                            "type": "string",
                            "description": "The email address of the recipient. Note: If `inviter_role` is `true`, this defaults to the document owner's email (retrieved from `GET /user`) and the email input will be locked in the UI."
                          },
                          "signing_order": {
                            "type": "integer",
                            "description": "The order in the signing workflow."
                          }
                        }
                      },
                      "description": "A list of signers and their role configurations."
                    },
                    "invite_link_instructions": {
                      "type": "string",
                      "description": "Custom instructions to be displayed when the invite link is accessed."
                    }
                  }
                },
                "examples": {
                  "Response with no routing details": {
                    "value": {}
                  },
                  "Response with empty routing details": {
                    "value": {
                      "cc": [],
                      "cc_step": [],
                      "viewers": [],
                      "routing_details": [],
                      "invite_link_instructions": ""
                    }
                  },
                  "Successful response with routing details": {
                    "value": {
                      "cc": [
                        "manager@example.com",
                        "hr.department@example.com"
                      ],
                      "cc_step": [
                        {
                          "name": "Compliance Team",
                          "step": 1,
                          "email": "compliance@example.com"
                        },
                        {
                          "name": "Records Keeping",
                          "step": 2,
                          "email": "records@example.com"
                        }
                      ],
                      "viewers": [
                        {
                          "name": "Legal Observer",
                          "contact_id": "1234567890abcdef1234567890abcdef12345678",
                          "inviter_role": false,
                          "default_email": "legal.observer@example.com",
                          "signing_order": 1
                        },
                        {
                          "name": "External Auditor",
                          "default_email": "auditor@example.com",
                          "signing_order": 2
                        }
                      ],
                      "approvers": [
                        {
                          "name": "Director of Sales",
                          "inviter_role": false,
                          "default_email": "director@example.com",
                          "signing_order": 3,
                          "authentication": null,
                          "expiration_days": 15
                        },
                        {
                          "name": "VP Finance",
                          "default_email": "vp.finance@example.com",
                          "signing_order": 4,
                          "authentication": null
                        }
                      ],
                      "attributes": {
                        "brand_id": "99887766554433221100aabbccddeeff11223344",
                        "on_complete": "redirect",
                        "redirect_uri": "https://example.com/thank-you"
                      },
                      "routing_details": [
                        {
                          "name": "John Smith",
                          "role_id": "a1b2c3d4e5f67890123456789abcdef012345678",
                          "inviter_role": false,
                          "default_email": "john.smith@example.com",
                          "signing_order": 1
                        },
                        {
                          "name": "Alice Johnson",
                          "role_id": "f0e9d8c7b6a543210987654321fedcba09876543",
                          "inviter_role": false,
                          "default_email": "alice.johnson@example.com",
                          "signing_order": 2
                        }
                      ],
                      "invite_link_instructions": "Please review the attached contract details before signing."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- Document not found.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Document not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "edit-template-routing-details",
        "summary": "Edit template recipients",
        "description": "This endpoint allows API users to update the routing details for a specific template, including assigning roles, setting signing orders, adding CC recipients, and configuring recipient settings.",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "type": "string",
            "required": true,
            "description": "Template ID."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cc": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "role_id": {
                            "type": "string"
                          },
                          "inviter_role": {
                            "type": "boolean"
                          },
                          "default_email": {
                            "type": "string"
                          },
                          "signing_order": {
                            "type": "integer"
                          },
                          "decline_by_signature": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "cc_step": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "step": {
                            "type": "integer"
                          },
                          "email": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "viewers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "contact_id": {
                            "type": "string"
                          },
                          "inviter_role": {
                            "type": "boolean"
                          },
                          "default_email": {
                            "type": "string"
                          },
                          "signing_order": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "approvers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "inviter_role": {
                            "type": "boolean"
                          },
                          "default_email": {
                            "type": "string"
                          },
                          "signing_order": {
                            "type": "integer"
                          },
                          "expiration_days": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "attributes": {
                      "type": "object",
                      "properties": {
                        "brand_id": {
                          "type": "string"
                        },
                        "on_complete": {
                          "type": "string"
                        },
                        "redirect_uri": {
                          "type": "string"
                        }
                      }
                    },
                    "document_id": {
                      "type": "string"
                    },
                    "invite_link_instructions": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "cc": [
                        "manager@example.com",
                        "records@example.com"
                      ],
                      "id": "c81e728d9d4c2f63a5b9e0f1a2b3c4d5e6f7a8b9",
                      "data": [
                        {
                          "name": "Signer 1",
                          "role_id": "a1b2c3d4e5f67890123456789abcdef012345678",
                          "inviter_role": true,
                          "default_email": "",
                          "signing_order": 1
                        },
                        {
                          "name": "Signer 2",
                          "role_id": "b2c3d4e5f67890123456789abcdef0123456789",
                          "inviter_role": false,
                          "default_email": "jane.smith@example.com",
                          "signing_order": 1,
                          "decline_by_signature": true
                        },
                        {
                          "name": "Signer 3",
                          "role_id": "c3d4e5f67890123456789abcdef01234567890",
                          "inviter_role": false,
                          "default_email": "bob.jones@example.com",
                          "signing_order": 2
                        }
                      ],
                      "cc_step": [
                        {
                          "name": "HR Team",
                          "step": 1,
                          "email": "hr.team@example.com"
                        },
                        {
                          "name": "Legal Team",
                          "step": 2,
                          "email": "legal.team@example.com"
                        }
                      ],
                      "viewers": [
                        {
                          "name": "External Auditor",
                          "contact_id": "d4e5f67890123456789abcdef012345678901",
                          "inviter_role": false,
                          "default_email": "auditor@example.com",
                          "signing_order": 1
                        }
                      ],
                      "approvers": [
                        {
                          "name": "Director of Operations",
                          "inviter_role": false,
                          "default_email": "director@example.com",
                          "signing_order": 3,
                          "expiration_days": 15
                        }
                      ],
                      "attributes": {
                        "brand_id": "e5f67890123456789abcdef0123456789012",
                        "on_complete": "document_only",
                        "redirect_uri": "https://example.com/success"
                      },
                      "document_id": "3f4e5d6c7b8a901234567890abcdef1234567890",
                      "invite_link_instructions": "Please review the document carefully before signing."
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "cc": [
                        "manager@example.com",
                        "records@example.com"
                      ],
                      "id": "c81e728d9d4c2f63a5b9e0f1a2b3c4d5e6f7a8b9",
                      "data": [
                        {
                          "name": "Signer 1",
                          "role_id": "a1b2c3d4e5f67890123456789abcdef012345678",
                          "inviter_role": true,
                          "default_email": "",
                          "signing_order": 1
                        },
                        {
                          "name": "Signer 2",
                          "role_id": "b2c3d4e5f67890123456789abcdef0123456789",
                          "inviter_role": false,
                          "default_email": "jane.smith@example.com",
                          "signing_order": 1,
                          "decline_by_signature": true
                        },
                        {
                          "name": "Signer 3",
                          "role_id": "c3d4e5f67890123456789abcdef01234567890",
                          "inviter_role": false,
                          "default_email": "bob.jones@example.com",
                          "signing_order": 2
                        }
                      ],
                      "cc_step": [
                        {
                          "name": "HR Team",
                          "step": 1,
                          "email": "hr.team@example.com"
                        },
                        {
                          "name": "Legal Team",
                          "step": 2,
                          "email": "legal.team@example.com"
                        }
                      ],
                      "viewers": [
                        {
                          "name": "External Auditor",
                          "contact_id": "d4e5f67890123456789abcdef012345678901",
                          "inviter_role": false,
                          "default_email": "auditor@example.com",
                          "signing_order": 1
                        }
                      ],
                      "approvers": [
                        {
                          "name": "Director of Operations",
                          "inviter_role": false,
                          "default_email": "director@example.com",
                          "signing_order": 3,
                          "expiration_days": 15
                        }
                      ],
                      "attributes": {
                        "brand_id": "e5f67890123456789abcdef0123456789012",
                        "on_complete": "document_only",
                        "redirect_uri": "https://example.com/success"
                      },
                      "document_id": "3f4e5d6c7b8a901234567890abcdef1234567890",
                      "invite_link_instructions": "Please review the document carefully before signing."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- Incorrect payload.\n- User is not document owner.\n- Document not found.\n- The `viewers` value length is incorrect.\n- The `approvers` value length is incorrect.\n- The payment request name is missing.\n- The payment request name format is incorrect.\n- The payment request type is missing.\n- The payment request type format is incorrect.\n- The payment request type value is incorrect.\n- The `template_data.name` format is incorrect.\n- The `template_data.name` length is incorrect.\n- The `template_data.name` contains unsupported characters.\n- The `template_data.role_id` format is incorrect.\n- The `template_data.role_id` value is incorrect.\n- The `cc` format is incorrect.\n- The `cc` value format is incorrect.\n- The `cc_step` format is incorrect.\n- The `cc_step` item format is incorrect.\n- The `cc_step.email` format is incorrect.\n- The `viewers` format is incorrect.\n- The `viewers` item format is incorrect\n- The `viewers.default_email` format is incorrect.\n- The `viewers.default_email` is missing.\n- The `viewers.default_email` length is incorrect.\n- The `viewers.default_email` contains unsupported characters.\n- The `viewers.default_email` value format is incorrect.\n- The `viewers.name` format is incorrect.\n- The `viewers.name` is missing.\n- The `viewers.name` length is incorrect.\n- The `viewers.name` contains unsupported characters.\n- The `viewers.signing_order` format is incorrect.\n- The `viewers.signing_order` is missing.\n- The `viewers.signing_order` value is incorrect.\n- The `viewers.inviter_role` format is incorrect.\n- The `viewers.contact_id` format is incorrect.\n- The `viewers.contact_id` value is incorrect.\n- The `approvers` format is incorrect.\n- The `approvers` item format is incorrect.\n- The `approvers.default_email` format is incorrect.\n- The `approvers.default_email` is missing.\n- The `approvers.default_email` length is incorrect.\n- The `approvers.default_email` contains unsupported characters.\n- The `approvers.default_email` value format is incorrect.\n- The `approvers.name` format is incorrect.\n- The `approvers.name` is missing.\n- The `approvers.name` length is incorrect.\n- The `approvers.name` contains unsupported characters.\n- The `approvers.signing_order` format is incorrect.\n- The `approvers.signing_order` is missing.\n- The `approvers.signing_order` value is incorrect.\n- The `approvers.inviter_role` format is incorrect.\n- The `approvers.expiration_days` format is incorrect.\n- The `approvers.expiration_days` value is incorrect.\n- The `attributes` format is incorrect.\n- The `attributes.brand_id` value is incorrect.\n- The `attributes.on_complete` value is incorrect.\n- The `attributes.redirect_uri` format is incorrect.\n- The `attributes.redirect_uri` is missing.\n- The `attributes.redirect_uri` url format is incorrect.\n- The `attributes.redirect_uri` length is incorrect.\n- Payment request configuration is incorrect (multi-role).\n- Payment request configuration is incorrect (existing field).\n- The `role_id` configuration is incorrect (mismatch).\n- The `role_id` is incorrect (not in doc).\n- The `role_id` is incorrect (not active signer).\n- Recipient configuration is incorrect (fulfilled).\n- Recipient configuration is incorrect (signed).\n- Recipient configuration is incorrect (forbidden).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Incorrect payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "Document not found": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Document not found"
                        }
                      ]
                    }
                  },
                  "User is not document owner": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "User is not document owner"
                        }
                      ]
                    }
                  },
                  "The `cc` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "cc must be array"
                        }
                      ]
                    }
                  },
                  "The `viewers.name` is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The name value should not be blank."
                        }
                      ]
                    }
                  },
                  "The `approvers.name` is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The name value should not be blank."
                        }
                      ]
                    }
                  },
                  "The `cc_step` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "cc_step must be array"
                        }
                      ]
                    }
                  },
                  "The `viewers` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Viewer value should be of type array."
                        }
                      ]
                    }
                  },
                  "The `cc` value format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Email must be a valid email."
                        }
                      ]
                    }
                  },
                  "The `approvers` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Approvers value should be of type array."
                        }
                      ]
                    }
                  },
                  "The payment request name is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The field name for the payment request is required"
                        }
                      ]
                    }
                  },
                  "The payment request type is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The field type for the payment request is required"
                        }
                      ]
                    }
                  },
                  "The `attributes` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Attributes value should be of type array."
                        }
                      ]
                    }
                  },
                  "The `cc_step` item format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "all cc_steps must be arrays"
                        }
                      ]
                    }
                  },
                  "The `viewers.default_email` is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The default_email value should not be null."
                        }
                      ]
                    }
                  },
                  "The `viewers.name` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The name value should be of type string."
                        }
                      ]
                    }
                  },
                  "The `viewers.name` length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The name value is too long. It should have 255 characters or less."
                        }
                      ]
                    }
                  },
                  "The `viewers.signing_order` is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The signing_order value should not be blank."
                        }
                      ]
                    }
                  },
                  "The `viewers` item format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "All viewer value should be of type array."
                        }
                      ]
                    }
                  },
                  "The `cc_step.email` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Email must be a valid email."
                        }
                      ]
                    }
                  },
                  "The `role_id` is incorrect (not in doc)": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The role id {$roleId} is not belongs to the document"
                        }
                      ]
                    }
                  },
                  "The `viewers` value length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The viewers value is too long. It should have 65535 characters or less in json string format."
                        }
                      ]
                    }
                  },
                  "The `approvers.default_email` is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The default_email value should not be null."
                        }
                      ]
                    }
                  },
                  "The `approvers.name` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The name value should be of type string."
                        }
                      ]
                    }
                  },
                  "The `approvers.name` length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The name value is too long. It should have 255 characters or less."
                        }
                      ]
                    }
                  },
                  "The `approvers.signing_order` is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The signing_order value should not be blank."
                        }
                      ]
                    }
                  },
                  "The `approvers` item format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "All approvers value should be of type array."
                        }
                      ]
                    }
                  },
                  "The `attributes.redirect_uri` is missing": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The redirect_uri attribute format is invalid."
                        }
                      ]
                    }
                  },
                  "The `approvers` value length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The approvers value is too long. It should have 65535 characters or less in json string format."
                        }
                      ]
                    }
                  },
                  "The `viewers.contact_id` value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The contact_id should be valid unique id."
                        }
                      ]
                    }
                  },
                  "The payment request type value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Not allowed field type for the payment request"
                        }
                      ]
                    }
                  },
                  "The `attributes.brand_id` value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The brand_id attribute should be valid unique id"
                        }
                      ]
                    }
                  },
                  "The `template_data.name` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The name value should be of type string."
                        }
                      ]
                    }
                  },
                  "The `template_data.name` length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The name value is too long. It should have 255 characters or less."
                        }
                      ]
                    }
                  },
                  "The `viewers.contact_id` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The contact_id value should be of type string."
                        }
                      ]
                    }
                  },
                  "The payment request name format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The field name for the payment request must be a string"
                        }
                      ]
                    }
                  },
                  "The payment request type format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The field type for the payment request must be a string"
                        }
                      ]
                    }
                  },
                  "Recipient configuration is incorrect (signed)": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Actor {$roleName} not allowed to edit, because he has some signed fields."
                        }
                      ]
                    }
                  },
                  "The `role_id` is incorrect (not active signer)": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The role id {$roleId} is not active signer actor."
                        }
                      ]
                    }
                  },
                  "The `template_data.role_id` value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Field role_id should be valid unique id"
                        }
                      ]
                    }
                  },
                  "The `viewers.inviter_role` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The inviter_role value should be of type bool."
                        }
                      ]
                    }
                  },
                  "The `viewers.signing_order` value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The signing_order value should be between 1 and 127."
                        }
                      ]
                    }
                  },
                  "The `attributes.on_complete` value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The on_complete attribute value is invalid."
                        }
                      ]
                    }
                  },
                  "The `template_data.role_id` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The role_id value should be of type string."
                        }
                      ]
                    }
                  },
                  "The `viewers.default_email` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The default_email value should be of type string."
                        }
                      ]
                    }
                  },
                  "The `viewers.default_email` length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The default_email value is too long. It should have 250 characters or less."
                        }
                      ]
                    }
                  },
                  "The `viewers.signing_order` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The signing_order value should be of type integer."
                        }
                      ]
                    }
                  },
                  "Recipient configuration is incorrect (forbidden)": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Actor {$roleName} not allowed to edit, forbidden after correction."
                        }
                      ]
                    }
                  },
                  "Recipient configuration is incorrect (fulfilled)": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Actor {$roleName} not allowed to edit, because he has fulfilled invite."
                        }
                      ]
                    }
                  },
                  "The `approvers.inviter_role` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The inviter_role value should be of type bool."
                        }
                      ]
                    }
                  },
                  "The `approvers.signing_order` value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The signing_order value should be between 1 and 127."
                        }
                      ]
                    }
                  },
                  "The `approvers.default_email` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The default_email value should be of type string."
                        }
                      ]
                    }
                  },
                  "The `approvers.default_email` length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The default_email value is too long. It should have 250 characters or less."
                        }
                      ]
                    }
                  },
                  "The `approvers.signing_order` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The signing_order value should be of type integer."
                        }
                      ]
                    }
                  },
                  "The `attributes.redirect_uri` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The redirect_uri attribute must be a string."
                        }
                      ]
                    }
                  },
                  "The `attributes.redirect_uri` length is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The redirect_uri attribute format is invalid."
                        }
                      ]
                    }
                  },
                  "The `approvers.expiration_days` value is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The expiration_days value should be between 3 and 180."
                        }
                      ]
                    }
                  },
                  "The `viewers.name` contains unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "4-byte characters in name are not supported."
                        }
                      ]
                    }
                  },
                  "The `approvers.expiration_days` format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The expiration_days value should be of type integer."
                        }
                      ]
                    }
                  },
                  "The `role_id` configuration is incorrect (mismatch)": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The role_id do not belongs to the role name. Role id: {$roleId} . Role name: {$roleName}"
                        }
                      ]
                    }
                  },
                  "The `approvers.name` contains unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "4-byte characters in name are not supported."
                        }
                      ]
                    }
                  },
                  "The `attributes.redirect_uri` url format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The redirect_uri attribute format is invalid."
                        }
                      ]
                    }
                  },
                  "The `viewers.default_email` value format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The default_email value is not a valid email address."
                        }
                      ]
                    }
                  },
                  "Payment request configuration is incorrect (multi-role)": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Adding a payment requesting on the field with several actors is disallowed"
                        }
                      ]
                    }
                  },
                  "The `approvers.default_email` value format is incorrect": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "The default_email value is not a valid email address."
                        }
                      ]
                    }
                  },
                  "The `template_data.name` contains unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "4-byte characters in name are not supported."
                        }
                      ]
                    }
                  },
                  "Payment request configuration is incorrect (existing field)": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Adding a payment requesting on the document with payment field is disallowed"
                        }
                      ]
                    }
                  },
                  "The `viewers.default_email` contains unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "4-byte characters in default_email are not supported."
                        }
                      ]
                    }
                  },
                  "The `approvers.default_email` contains unsupported characters": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "4-byte characters in default_email are not supported."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cc": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Valid email address."
                    },
                    "description": "A list of email addresses that will receive a carbon copy of the document."
                  },
                  "cc_step": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "Recipient 1",
                          "description": "The display name for the CC recipient."
                        },
                        "step": {
                          "type": "integer",
                          "example": 1,
                          "description": "The specific step in the signing order when the email should be sent."
                        },
                        "email": {
                          "type": "string",
                          "example": "cc@email.com",
                          "description": "The email address of the CC recipient."
                        }
                      }
                    },
                    "description": "A list of CC recipients assigned to specific steps in the signing order."
                  },
                  "viewers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "Viewer",
                          "maxLength": 255,
                          "description": "The display name of the recipient role."
                        },
                        "contact_id": {
                          "type": "string",
                          "example": "55519de93089e889ab9f5283db9b7c39ad667e43",
                          "description": "The unique identifier of the contact (from Contacts) linked to the document."
                        },
                        "inviter_role": {
                          "type": "boolean",
                          "description": "If set to `true`, designates the document owner (current API user) as the recipient for this role. This corresponds to the 'I am recipient' setting in the UI."
                        },
                        "default_email": {
                          "type": "string",
                          "example": "viewer@email.com",
                          "maxLength": 250,
                          "description": "The email address of the viewer. Note: If `inviter_role` is `true`, this defaults to the document owner's email (retrieved from `GET /user`) and the email input will be locked in the UI."
                        },
                        "signing_order": {
                          "type": "integer",
                          "example": 1,
                          "maximum": 127,
                          "minimum": 1,
                          "description": "The step order for the viewer."
                        }
                      }
                    },
                    "description": "A list of users with view-only permissions."
                  },
                  "approvers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "Approver",
                          "maxLength": 255,
                          "description": "The display name of the recipient role."
                        },
                        "inviter_role": {
                          "type": "boolean",
                          "description": "If set to `true`, designates the document owner (current API user) as the recipient for this role. This corresponds to the 'I am recipient' setting in the UI."
                        },
                        "default_email": {
                          "type": "string",
                          "example": "approver@email.com",
                          "maxLength": 250,
                          "description": "The email address of the recipient. Note: If `inviter_role` is `true`, this defaults to the document owner's email (retrieved from `GET /user`) and the email input will be locked in the UI."
                        },
                        "signing_order": {
                          "type": "integer",
                          "example": 1,
                          "maximum": 127,
                          "minimum": 1,
                          "description": "The step order for the approver."
                        },
                        "expiration_days": {
                          "type": "integer",
                          "example": 30,
                          "maximum": 180,
                          "minimum": 3,
                          "description": "Number of days before the approval request expires."
                        }
                      }
                    },
                    "description": "A list of users required to approve the document."
                  },
                  "attributes": {
                    "type": "object",
                    "properties": {
                      "brand_id": {
                        "type": "string",
                        "example": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0",
                        "description": "The unique identifier of the brand to apply."
                      },
                      "on_complete": {
                        "enum": [
                          "none",
                          "document_only",
                          "document_and_attachments",
                          "document_attachment_only_for_signer"
                        ],
                        "type": "string",
                        "example": "none",
                        "description": "The action to take when the document is completed."
                      },
                      "redirect_uri": {
                        "type": "string",
                        "example": "https://signnow.com/",
                        "maxLength": 2048,
                        "description": "The URL to redirect users to after signing (max 2048 chars)."
                      }
                    },
                    "description": "General attributes regarding the document's completion settings and branding."
                  },
                  "template_data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "Manager",
                          "maxLength": 250,
                          "description": "The display name of the recipient role."
                        },
                        "role_id": {
                          "type": "string",
                          "example": "14819de93089e889ab9f5283db9b7c39ad667e43",
                          "description": "The unique identifier of the role being updated."
                        },
                        "inviter_role": {
                          "type": "boolean",
                          "description": "If set to `true`, designates the document owner (current API user) as the recipient for this role. This corresponds to the 'I am recipient' setting in the UI."
                        },
                        "default_email": {
                          "type": "string",
                          "example": "signer@email.com",
                          "maxLength": 250,
                          "description": "The email address of the recipient. Note: If `inviter_role` is `true`, this defaults to the document owner's email (retrieved from `GET /user`) and the email input will be locked in the UI."
                        },
                        "signing_order": {
                          "type": "integer",
                          "example": 1,
                          "maximum": 127,
                          "minimum": 1,
                          "description": "The order in the signing workflow."
                        }
                      }
                    },
                    "description": "A list of signers and their role configurations."
                  },
                  "invite_link_instructions": {
                    "type": "string",
                    "description": "Custom instructions to be displayed when the invite link is accessed."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "cc": [
                      "observer1@example.com",
                      "observer2@example.com"
                    ],
                    "cc_step": [
                      {
                        "name": "CC 1",
                        "step": 1,
                        "email": "step1@example.com"
                      },
                      {
                        "name": "CC 2",
                        "step": 2,
                        "email": "step2@example.com"
                      }
                    ],
                    "viewers": [
                      {
                        "name": "Viewer 1",
                        "contact_id": "38528aa9c323463c9563b3608c18467d9d569e09",
                        "inviter_role": false,
                        "default_email": "viewer@example.com",
                        "signing_order": 1
                      }
                    ],
                    "approvers": [
                      {
                        "name": "Approver 1",
                        "inviter_role": false,
                        "default_email": "approver@example.com",
                        "signing_order": 3,
                        "expiration_days": 15
                      }
                    ],
                    "attributes": {
                      "brand_id": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0",
                      "on_complete": "none",
                      "redirect_uri": "https://signnow.com"
                    },
                    "template_data": [
                      {
                        "name": "Signer 1",
                        "role_id": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0",
                        "inviter_role": false,
                        "default_email": "",
                        "signing_order": 1
                      },
                      {
                        "name": "Signer 2",
                        "role_id": "14819de93089e889ab9f5283db9b7c39ad667e43",
                        "inviter_role": false,
                        "default_email": "signer2@example.com",
                        "signing_order": 2
                      }
                    ],
                    "invite_link_instructions": "Please sign strictly before the deadline."
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "cc": [
                      "observer1@example.com",
                      "observer2@example.com"
                    ],
                    "cc_step": [
                      {
                        "name": "CC 1",
                        "step": 1,
                        "email": "step1@example.com"
                      },
                      {
                        "name": "CC 2",
                        "step": 2,
                        "email": "step2@example.com"
                      }
                    ],
                    "viewers": [
                      {
                        "name": "Viewer 1",
                        "contact_id": "38528aa9c323463c9563b3608c18467d9d569e09",
                        "inviter_role": false,
                        "default_email": "viewer@example.com",
                        "signing_order": 1
                      }
                    ],
                    "approvers": [
                      {
                        "name": "Approver 1",
                        "inviter_role": false,
                        "default_email": "approver@example.com",
                        "signing_order": 3,
                        "expiration_days": 15
                      }
                    ],
                    "attributes": {
                      "brand_id": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0",
                      "on_complete": "none",
                      "redirect_uri": "https://signnow.com"
                    },
                    "template_data": [
                      {
                        "name": "Signer 1",
                        "role_id": "d7fcf72b4bbc47b0cc629ffe8b24421c66fec6a0",
                        "inviter_role": false,
                        "default_email": "",
                        "signing_order": 1
                      },
                      {
                        "name": "Signer 2",
                        "role_id": "14819de93089e889ab9f5283db9b7c39ad667e43",
                        "inviter_role": false,
                        "default_email": "signer2@example.com",
                        "signing_order": 2
                      }
                    ],
                    "invite_link_instructions": "Please sign strictly before the deadline."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/user": {
      "post": {
        "operationId": "post-user",
        "summary": "Create user",
        "description": "Creates an account for a `user`\n\n`user` object in SignNow allows you to track the `invite`s, `document`s and `template`s associated with one user. Using API you can create, update and delete users, retrieve their info, verify their emails, reset passwords, track changes with user's documents, templates, document groups, folders and teams, add them to or remove from organizations. The `user` object is also crucial to event subscriptions: SignNow enables you to trigger callbacks by an event of a specific user.  ",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "required": false,
            "description": "application/json"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "verified": {
                      "type": "integer"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "id": "aad13814e8f369089ee2f12b533545f9534e6cf8",
                      "email": "user@signnow.com",
                      "verified": 0
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "id": "aad13814e8f369089ee2f12b533545f9534e6cf8",
                      "email": "user@signnow.com",
                      "verified": 0
                    }
                  },
                  "application/json": {
                    "value": {
                      "id": "aaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "email": "user@email.com",
                      "verified": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* \"unverified_email\" - email has been registered on site before, but not verified\n* \"internal api error\" - request without a required field in body \n* \"User with email exists\" - email has been registered and verified on site before\n* \"Invalid payload\" - request without body",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "email exists": {
                    "value": {
                      "errors": [
                        {
                          "code": 66330,
                          "message": "User with email exists"
                        }
                      ]
                    }
                  },
                  "invalid payload": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Invalid payload"
                        }
                      ]
                    }
                  },
                  "unverified email": {
                    "value": {
                      "errors": [
                        {
                          "code": 66396,
                          "message": "unverified_email"
                        }
                      ]
                    }
                  },
                  "internal api error": {
                    "value": {
                      "errors": [
                        {
                          "code": 65544,
                          "message": "internal api error"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "password"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "User's email address."
                  },
                  "number": {
                    "type": "string",
                    "description": "User's phone number."
                  },
                  "password": {
                    "type": "string",
                    "description": "User's password: 6 characters minimum."
                  },
                  "last_name": {
                    "type": "string",
                    "description": "User's last name."
                  },
                  "first_name": {
                    "type": "string",
                    "description": "User's first name."
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "update-user-info",
        "summary": "Change user details",
        "description": "Updates user informaition i.e. first name, last name",
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "type": "string",
            "default": "application/json",
            "required": false,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "* Correct change of the first and last name\n* First\\last name is a space\n* Too long last name more than 64 chars is cut to 64 chars\n* Correct change password\n* Old password is empty ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Old password is empty": {
                    "value": {
                      "id": "unique_id",
                      "last_name": "last_name",
                      "first_name": "fist_name"
                    }
                  },
                  "Correct change password": {
                    "value": {
                      "id": "unique_id",
                      "last_name": "last_name",
                      "first_name": "first_name"
                    }
                  },
                  "First\\last name is a space": {
                    "value": {
                      "id": "unique_id",
                      "last_name": "",
                      "first_name": ""
                    }
                  },
                  "Correct change of the first and last name": {
                    "value": {
                      "id": "unique_id",
                      "last_name": "new_last_name",
                      "first_name": "new_first_name"
                    }
                  },
                  "Too long last name more than 64 chars is cut to 64 chars": {
                    "value": {
                      "id": "26XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                      "last_name": "New last name",
                      "first_name": "123456789_123456789_123456789_123456789_123456789_123456789_1234"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Too long fist name (first name more than 64 charters)\n* Incorrect old password \n* The value of \"old_password\" is a space\n* New password is empty \n* The value of \"password\" is a space\n* User password which doesn't respect the rules added to \"password_creation_rules\" if there are any\n* airSlate is not reachable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "New password is empty ": {
                    "value": {
                      "errors": [
                        {
                          "code": 65563,
                          "message": "Must provide password"
                        }
                      ]
                    }
                  },
                  "Incorrect old password ": {
                    "value": {
                      "errors": [
                        {
                          "code": 65563,
                          "message": "Incorrect old password"
                        }
                      ]
                    }
                  },
                  "airSlate is not reachable": {
                    "value": {
                      "code": 5001,
                      "message": "Temporary unable to process this request. Please try again later."
                    }
                  },
                  "The value of \"password\" is a space": {
                    "value": {
                      "errors": [
                        {
                          "code": 65563,
                          "message": "Must provide password"
                        }
                      ]
                    }
                  },
                  "The value of \"old_password\" is a space": {
                    "value": {
                      "errors": [
                        {
                          "code": 65563,
                          "message": "Incorrect old password"
                        }
                      ]
                    }
                  },
                  "Too long fist name (first name more than 64 charters)": {
                    "value": {
                      "errors": [
                        {
                          "code": 65564,
                          "message": "First name is too long"
                        }
                      ]
                    }
                  },
                  "User password which doesn't respect the rules added to \"password_creation_rules\" if there are any": {
                    "value": {
                      "errors": [
                        {
                          "code": 65662,
                          "message": "Password must contain at least one letter. Password Policy: Passwords must contain one letter, one number and one special character. Passwords must be at minimum 8 characters long. When updating passwords, reusing a password form the last 12 passwords is not allowed."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string"
                  },
                  "last_name": {
                    "type": "string"
                  },
                  "first_name": {
                    "type": "string"
                  },
                  "logout_all": {
                    "type": "string",
                    "description": "if \"true\" - all user tokens with \"scope =*\" expire\n\nif \"false\" - all user tokens except current one are expired \n\nNote: parameter must have string format. \n\nDefault value - \"true\""
                  },
                  "old_password": {
                    "type": "string",
                    "description": "if \"password\" parameter is added to the body, then this one is required"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "password": "evenstongerone",
                    "last_name": "last_name",
                    "first_name": "first_name",
                    "logout_all": "true",
                    "old_password": "verystrongpassword"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-user-info",
        "summary": "Get user info",
        "description": "Returns a user resource",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "pro": {
                      "type": "integer"
                    },
                    "type": {
                      "type": "integer",
                      "default": 1
                    },
                    "teams": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "team": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "admins": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "email": {
                                  "type": "string"
                                },
                                "billing": {
                                  "type": "integer"
                                },
                                "primary": {
                                  "type": "boolean"
                                },
                                "is_secondary": {
                                  "type": "string"
                                },
                                "document_access": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "created_since": {
                            "type": "string"
                          },
                          "document_count": {
                            "type": "integer"
                          }
                        }
                      },
                      "description": "whether user is a member or admin of a Team"
                    },
                    "active": {
                      "type": "string"
                    },
                    "emails": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "status": {
                      "type": "object",
                      "properties": {
                        "bad_copy_token": {
                          "type": "boolean"
                        },
                        "has_copy_token": {
                          "type": "boolean"
                        },
                        "has_salesforce_token": {
                          "type": "boolean"
                        },
                        "bad_cloud_export_token": {
                          "type": "boolean"
                        },
                        "has_cloud_export_token": {
                          "type": "boolean"
                        }
                      }
                    },
                    "created": {
                      "type": "string",
                      "description": "Unix timestamp for when the user was created"
                    },
                    "credits": {
                      "type": "integer"
                    },
                    "settings": {
                      "type": "object",
                      "properties": {
                        "copy_export": {
                          "type": "boolean"
                        },
                        "upload_limit": {
                          "type": "boolean"
                        },
                        "document_guide": {
                          "type": "boolean"
                        },
                        "sso-only-login": {
                          "type": "boolean"
                        },
                        "mobileweb_option": {
                          "type": "boolean"
                        },
                        "cloud_auto_export": {
                          "type": "boolean"
                        },
                        "logout_on_signing": {
                          "type": "boolean"
                        },
                        "restrict_download": {
                          "type": "boolean"
                        },
                        "add_signature_stamp": {
                          "type": "boolean"
                        },
                        "cfr_title_21_part_11": {
                          "type": "boolean"
                        },
                        "no_document_attachment": {
                          "type": "boolean"
                        },
                        "electronic_consent_text": {
                          "type": "boolean"
                        },
                        "org_allowed_team_admins": {
                          "type": "boolean"
                        },
                        "document_schema_extended": {
                          "type": "boolean"
                        },
                        "front_end_session_length": {
                          "type": "boolean"
                        },
                        "no_user_signature_return": {
                          "type": "boolean"
                        },
                        "require_drawn_signatures": {
                          "type": "boolean"
                        },
                        "cloud_export_with_history": {
                          "type": "boolean"
                        },
                        "enable_full_story_tracker": {
                          "type": "boolean"
                        },
                        "require_login_for_signing": {
                          "type": "boolean"
                        },
                        "disable_email_notifications": {
                          "type": "boolean"
                        },
                        "electronic_consent_required": {
                          "type": "boolean"
                        },
                        "email_admin_on_banned_login": {
                          "type": "boolean"
                        },
                        "enable_hyperlink_protection": {
                          "type": "boolean"
                        },
                        "invite_decline_redirect_url": {
                          "type": "boolean"
                        },
                        "emailed_docs_include_history": {
                          "type": "boolean"
                        },
                        "no_document_file_attachments": {
                          "type": "boolean"
                        },
                        "add_signature_stamp_with_name": {
                          "type": "boolean"
                        },
                        "digitally_sign_dowloaded_docs": {
                          "type": "boolean"
                        },
                        "watermark_downloaded_document": {
                          "type": "boolean"
                        },
                        "invite_completion_redirect_url": {
                          "type": "boolean"
                        },
                        "required_preset_signature_name": {
                          "type": "boolean"
                        },
                        "signing_link_document_download": {
                          "type": "boolean"
                        },
                        "block_login_via_social_networks": {
                          "type": "boolean"
                        },
                        "enable_advanced_threat_protection": {
                          "type": "boolean"
                        },
                        "document_completion_retention_days": {
                          "type": "boolean"
                        },
                        "require_authentication_for_invites": {
                          "type": "boolean"
                        },
                        "document_attachment_only_for_signer": {
                          "type": "boolean"
                        },
                        "unsuccessful_logout_attempts_allowed": {
                          "type": "boolean"
                        },
                        "audit_trail_completion_retention_days": {
                          "type": "boolean"
                        },
                        "pending_invite_document_view_notification": {
                          "type": "boolean"
                        },
                        "only_administrator_is_able_to_invite_to_the_team": {
                          "type": "boolean"
                        },
                        "block_export_options_when_credit_card_validation_is_used": {
                          "type": "boolean"
                        },
                        "invite_update_notifications_for_all_invites_at_invite_create": {
                          "type": "boolean"
                        }
                      }
                    },
                    "companies": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "full_access": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "last_name": {
                      "type": "string"
                    },
                    "first_name": {
                      "type": "string"
                    },
                    "googleapps": {
                      "type": "boolean"
                    },
                    "facebookapps": {
                      "type": "boolean"
                    },
                    "is_logged_in": {
                      "type": "boolean"
                    },
                    "organization": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "logos": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "teams": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "created": {
                          "type": "string"
                        },
                        "deleted": {
                          "type": "string"
                        },
                        "domains": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "updated": {
                          "type": "string"
                        },
                        "is_admin": {
                          "type": "boolean"
                        },
                        "active_logo": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "is_superadmin": {
                          "type": "boolean"
                        }
                      },
                      "description": "whether user is a member/admin/Superadmin of an Organization"
                    },
                    "primary_email": {
                      "type": "string"
                    },
                    "subscriptions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "x-nullable": true
                          },
                          "name": {
                            "x-nullable": true
                          },
                          "plan": {
                            "type": "string"
                          },
                          "term": {
                            "x-nullable": true
                          },
                          "trial": {
                            "type": "boolean"
                          },
                          "created": {
                            "x-nullable": true
                          },
                          "expired": {
                            "type": "integer"
                          },
                          "updated": {
                            "x-nullable": true
                          },
                          "credit_card": {
                            "type": "boolean"
                          },
                          "subscription_id": {
                            "x-nullable": true
                          },
                          "mobile_plan_type": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "billing_period": {
                      "type": "object",
                      "properties": {
                        "end_date": {
                          "type": "string"
                        },
                        "start_date": {
                          "type": "string"
                        },
                        "end_timestamp": {
                          "type": "integer"
                        },
                        "start_timestamp": {
                          "type": "integer"
                        }
                      }
                    },
                    "document_count": {
                      "type": "integer"
                    },
                    "premium_access": {
                      "type": "object",
                      "properties": {
                        "plan": {
                          "type": "string"
                        },
                        "user": {
                          "type": "object",
                          "properties": {
                            "admin": {
                              "type": "string"
                            },
                            "email": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            },
                            "username": {
                              "type": "string"
                            },
                            "last_name": {
                              "x-nullable": true
                            },
                            "added_date": {
                              "type": "integer"
                            },
                            "first_name": {
                              "x-nullable": true
                            }
                          }
                        },
                        "error": {
                          "type": "boolean"
                        },
                        "trial": {
                          "type": "boolean"
                        },
                        "active": {
                          "type": "boolean"
                        },
                        "business": {
                          "type": "boolean"
                        },
                        "credit_card": {
                          "type": "boolean"
                        },
                        "subscription": {
                          "type": "object",
                          "properties": {
                            "key": {
                              "x-nullable": true
                            },
                            "name": {
                              "x-nullable": true
                            },
                            "term": {
                              "x-nullable": true
                            },
                            "created_at": {
                              "x-nullable": true
                            },
                            "expired_at": {
                              "type": "integer"
                            },
                            "updated_at": {
                              "x-nullable": true
                            },
                            "serial_number": {
                              "x-nullable": true
                            }
                          }
                        }
                      }
                    },
                    "merchant_accounts": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "has_atticus_access": {
                      "type": "boolean"
                    },
                    "issue_notifications": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "registration_source": {
                      "x-nullable": true
                    },
                    "organization_settings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "setting": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "monthly_document_count": {
                      "type": "integer"
                    },
                    "lifetime_document_count": {
                      "type": "integer"
                    },
                    "cloud_export_account_details": {
                      "x-nullable": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request with Incorrect or missing token",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "code": 1537,
                      "error": "invalid_token"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/user/documents": {
      "get": {
        "operationId": "get-user-documents",
        "summary": "Get user documents",
        "description": "Returns information of user's documents that were not modified yet.\n\n> [!WARNING]\n> This endpoint is deprecated. To retrieve a user's documents, fetch the contents of a folder with [`GET /folder/{folder_id}`](/docs/folder/operations/get-folder-by-id).",
        "parameters": [
          {
            "in": "query",
            "name": "sortby=recently_used&order",
            "type": "string",
            "default": "desc",
            "required": false,
            "description": "Sort templates by date of the last sending of the invite. Applies to system Template folders and custom Template folders. Allowed values: desc, asc"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "object ID"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "owner": {
                        "type": "string",
                        "description": "user who uploaded the document to SignNow"
                      },
                      "roles": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "unique_id": {
                              "type": "string"
                            },
                            "signing_order": {
                              "type": "string"
                            }
                          }
                        },
                        "description": "roles assigned to fields, e.g. Signer 1, Signer 2"
                      },
                      "seals": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all seals on the document"
                      },
                      "texts": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all field input, if there are fillable fields and they are completed"
                      },
                      "checks": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all checkmarks on the document"
                      },
                      "fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "role": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string"
                            },
                            "role_id": {
                              "type": "string"
                            },
                            "field_id": {
                              "x-nullable": true
                            },
                            "fulfiller": {
                              "x-nullable": true
                            },
                            "element_id": {
                              "x-nullable": true
                            },
                            "originator": {
                              "type": "string"
                            },
                            "json_attributes": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "integer"
                                },
                                "y": {
                                  "type": "integer"
                                },
                                "bold": {
                                  "type": "boolean"
                                },
                                "font": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer"
                                },
                                "align": {
                                  "type": "string"
                                },
                                "width": {
                                  "type": "integer"
                                },
                                "height": {
                                  "type": "integer"
                                },
                                "italic": {
                                  "type": "boolean"
                                },
                                "valign": {
                                  "type": "string"
                                },
                                "required": {
                                  "type": "boolean"
                                },
                                "max_chars": {
                                  "type": "integer"
                                },
                                "max_lines": {
                                  "type": "integer"
                                },
                                "underline": {
                                  "type": "boolean"
                                },
                                "arrangement": {
                                  "type": "string"
                                },
                                "page_number": {
                                  "type": "integer"
                                }
                              }
                            },
                            "field_request_id": {
                              "x-nullable": true
                            },
                            "template_field_id": {
                              "x-nullable": true
                            },
                            "field_request_canceled": {
                              "x-nullable": true
                            }
                          }
                        },
                        "description": "all fields on the document"
                      },
                      "created": {
                        "type": "string",
                        "description": "Unix timestamp of when the document was created"
                      },
                      "inserts": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "updated": {
                        "type": "string",
                        "description": "Unix timestamp of when the document was updated"
                      },
                      "user_id": {
                        "type": "string",
                        "description": "user's ID"
                      },
                      "requests": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "requests with this document"
                      },
                      "settings": {
                        "type": "object",
                        "properties": {
                          "copy_export": {
                            "type": "boolean"
                          },
                          "upload_limit": {
                            "type": "boolean"
                          },
                          "document_guide": {
                            "type": "boolean"
                          },
                          "sso-only-login": {
                            "type": "boolean"
                          },
                          "mobileweb_option": {
                            "type": "boolean"
                          },
                          "cloud_auto_export": {
                            "type": "boolean"
                          },
                          "logout_on_signing": {
                            "type": "boolean"
                          },
                          "restrict_download": {
                            "type": "boolean"
                          },
                          "add_signature_stamp": {
                            "type": "boolean"
                          },
                          "cfr_title_21_part_11": {
                            "type": "boolean"
                          },
                          "require_email_subject": {
                            "type": "boolean"
                          },
                          "no_document_attachment": {
                            "type": "boolean"
                          },
                          "electronic_consent_text": {
                            "type": "boolean"
                          },
                          "org_allowed_team_admins": {
                            "type": "boolean"
                          },
                          "document_schema_extended": {
                            "type": "boolean"
                          },
                          "front_end_session_length": {
                            "type": "boolean"
                          },
                          "no_user_signature_return": {
                            "type": "boolean"
                          },
                          "require_drawn_signatures": {
                            "type": "boolean"
                          },
                          "cloud_export_with_history": {
                            "type": "boolean"
                          },
                          "enable_full_story_tracker": {
                            "type": "boolean"
                          },
                          "require_login_for_signing": {
                            "type": "boolean"
                          },
                          "disable_email_notifications": {
                            "type": "boolean"
                          },
                          "electronic_consent_required": {
                            "type": "boolean"
                          },
                          "email_admin_on_banned_login": {
                            "type": "boolean"
                          },
                          "enable_hyperlink_protection": {
                            "type": "boolean"
                          },
                          "invite_decline_redirect_url": {
                            "type": "boolean"
                          },
                          "emailed_docs_include_history": {
                            "type": "boolean"
                          },
                          "no_document_file_attachments": {
                            "type": "boolean"
                          },
                          "add_signature_stamp_with_name": {
                            "type": "boolean"
                          },
                          "digitally_sign_dowloaded_docs": {
                            "type": "boolean"
                          },
                          "watermark_downloaded_document": {
                            "type": "boolean"
                          },
                          "invite_completion_redirect_url": {
                            "type": "boolean"
                          },
                          "required_preset_signature_name": {
                            "type": "boolean"
                          },
                          "signing_link_document_download": {
                            "type": "boolean"
                          },
                          "block_login_via_social_networks": {
                            "type": "boolean"
                          },
                          "enable_advanced_threat_protection": {
                            "type": "boolean"
                          },
                          "document_completion_retention_days": {
                            "type": "boolean"
                          },
                          "require_authentication_for_invites": {
                            "type": "boolean"
                          },
                          "document_attachment_only_for_signer": {
                            "type": "boolean"
                          },
                          "unsuccessful_logout_attempts_allowed": {
                            "type": "boolean"
                          },
                          "audit_trail_completion_retention_days": {
                            "type": "boolean"
                          },
                          "pending_invite_document_view_notification": {
                            "type": "boolean"
                          },
                          "only_administrator_is_able_to_invite_to_the_team": {
                            "type": "boolean"
                          },
                          "block_export_options_when_credit_card_validation_is_used": {
                            "type": "boolean"
                          },
                          "invite_update_notifications_for_all_invites_at_invite_create": {
                            "type": "boolean"
                          }
                        },
                        "description": "user's settings applied"
                      },
                      "template": {
                        "type": "boolean",
                        "description": "whether or not this document is a template"
                      },
                      "thumbnail": {
                        "type": "object",
                        "properties": {
                          "large": {
                            "type": "string"
                          },
                          "small": {
                            "type": "string"
                          },
                          "medium": {
                            "type": "string"
                          }
                        }
                      },
                      "page_count": {
                        "type": "string",
                        "description": "how many pages in the document"
                      },
                      "signatures": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all signatures on the document"
                      },
                      "attachments": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all attachments to the document"
                      },
                      "integrations": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "radiobuttons": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all radiobuttons in the document"
                      },
                      "version_time": {
                        "type": "string"
                      },
                      "document_name": {
                        "type": "string",
                        "description": "the name of the document"
                      },
                      "field_invites": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "the invites sent to sign this document"
                      },
                      "recently_used": {
                        "type": "string",
                        "description": "Timestamp of the last time the document was used."
                      },
                      "notary_invites": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "origin_user_id": {
                        "x-nullable": true
                      },
                      "routing_details": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "cc": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              }
                            },
                            "id": {
                              "type": "string"
                            },
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "role_id": {
                                    "type": "string"
                                  },
                                  "inviter_role": {
                                    "type": "boolean"
                                  },
                                  "default_email": {
                                    "type": "string"
                                  },
                                  "signing_order": {
                                    "type": "integer"
                                  }
                                }
                              }
                            },
                            "cc_step": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              }
                            },
                            "created": {
                              "type": "string"
                            },
                            "updated": {
                              "x-nullable": true
                            },
                            "invite_link_instructions": {
                              "x-nullable": true
                            }
                          }
                        }
                      },
                      "original_filename": {
                        "type": "string"
                      },
                      "origin_document_id": {
                        "x-nullable": true
                      },
                      "document_group_info": {
                        "type": "object",
                        "properties": {
                          "invite_id": {
                            "x-nullable": true
                          },
                          "invite_status": {
                            "x-nullable": true
                          },
                          "document_group_id": {
                            "x-nullable": true
                          },
                          "doc_count_in_group": {
                            "type": "integer"
                          },
                          "document_group_name": {
                            "x-nullable": true
                          }
                        },
                        "description": "whether or not this document is part of a Document group"
                      },
                      "enumeration_options": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "if there is a Dropdown field on the document, these are the options to choose from"
                      },
                      "document_group_template_info": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "whether or not this document is a part of a Document group template"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request without documents\n* Request with query param `per_page=0` or `page=0`\n* Request with query param `per_page/page`  as string or negative number\n* Request with query param `per_page` more than 100",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request without documents": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "error: could not get document ids for user (user_id) api action id (api_action_id)"
                        }
                      ]
                    }
                  },
                  "Request with query param `per_page=0` or `page=0`": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Query parameter `per_page` must be more than 0"
                        },
                        {
                          "code": 0,
                          "message": "Query parameter `page` must be more than 0"
                        }
                      ]
                    }
                  },
                  "Request with query param `per_page` more than 100": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Query parameter `per_page` must be less than or equal 100"
                        }
                      ]
                    }
                  },
                  "Request with query param  per_page/ page  as string  or negative number": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Query parameter `per_page` must be a digit"
                        },
                        {
                          "code": 0,
                          "message": "Query parameter `page` must be a digit"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/user/documentsv2": {
      "get": {
        "operationId": "user-documents-modified",
        "summary": "Get modified documents",
        "description": "Returns an array of user's documents that were modified (added fields, texts, signatures, etc.)\n\n> [!WARNING]\n> This endpoint is deprecated. To retrieve a user's documents, fetch the contents of a folder with [`GET /folder/{folder_id}`](/docs/folder/operations/get-folder-by-id).",
        "parameters": [
          {
            "in": "header",
            "name": "Content-type",
            "type": "string",
            "default": "application/json",
            "required": false,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "object ID"
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "owner": {
                        "type": "string",
                        "description": "user who uploaded the document to SignNow"
                      },
                      "roles": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "unique_id": {
                              "type": "string"
                            },
                            "signing_order": {
                              "type": "string"
                            }
                          }
                        },
                        "description": "roles assigned to fields, e.g. Signer 1, Signer 2"
                      },
                      "seals": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all seals on the document"
                      },
                      "texts": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all field input, if there are fillable fields and they are completed"
                      },
                      "checks": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all checkmarks on the document"
                      },
                      "fields": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "role": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string"
                            },
                            "role_id": {
                              "type": "string"
                            },
                            "field_id": {
                              "x-nullable": true
                            },
                            "fulfiller": {
                              "x-nullable": true
                            },
                            "element_id": {
                              "x-nullable": true
                            },
                            "originator": {
                              "type": "string"
                            },
                            "json_attributes": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "integer"
                                },
                                "y": {
                                  "type": "integer"
                                },
                                "bold": {
                                  "type": "boolean"
                                },
                                "font": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "size": {
                                  "type": "integer"
                                },
                                "align": {
                                  "type": "string"
                                },
                                "width": {
                                  "type": "integer"
                                },
                                "height": {
                                  "type": "integer"
                                },
                                "italic": {
                                  "type": "boolean"
                                },
                                "valign": {
                                  "type": "string"
                                },
                                "required": {
                                  "type": "boolean"
                                },
                                "max_chars": {
                                  "type": "integer"
                                },
                                "max_lines": {
                                  "type": "integer"
                                },
                                "underline": {
                                  "type": "boolean"
                                },
                                "arrangement": {
                                  "type": "string"
                                },
                                "page_number": {
                                  "type": "integer"
                                }
                              }
                            },
                            "field_request_id": {
                              "x-nullable": true
                            },
                            "template_field_id": {
                              "x-nullable": true
                            },
                            "field_request_canceled": {
                              "x-nullable": true
                            }
                          }
                        },
                        "description": "all fields on the document"
                      },
                      "created": {
                        "type": "string",
                        "description": "Unix timestamp of when the document was created"
                      },
                      "inserts": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "updated": {
                        "type": "string",
                        "description": "Unix timestamp of when the document was updated"
                      },
                      "user_id": {
                        "type": "string",
                        "description": "user's ID"
                      },
                      "requests": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "requests with this document"
                      },
                      "settings": {
                        "type": "object",
                        "properties": {
                          "copy_export": {
                            "type": "boolean"
                          },
                          "upload_limit": {
                            "type": "boolean"
                          },
                          "document_guide": {
                            "type": "boolean"
                          },
                          "sso-only-login": {
                            "type": "boolean"
                          },
                          "mobileweb_option": {
                            "type": "boolean"
                          },
                          "cloud_auto_export": {
                            "type": "boolean"
                          },
                          "logout_on_signing": {
                            "type": "boolean"
                          },
                          "restrict_download": {
                            "type": "boolean"
                          },
                          "add_signature_stamp": {
                            "type": "boolean"
                          },
                          "cfr_title_21_part_11": {
                            "type": "boolean"
                          },
                          "require_email_subject": {
                            "type": "boolean"
                          },
                          "no_document_attachment": {
                            "type": "boolean"
                          },
                          "electronic_consent_text": {
                            "type": "boolean"
                          },
                          "org_allowed_team_admins": {
                            "type": "boolean"
                          },
                          "document_schema_extended": {
                            "type": "boolean"
                          },
                          "front_end_session_length": {
                            "type": "boolean"
                          },
                          "no_user_signature_return": {
                            "type": "boolean"
                          },
                          "require_drawn_signatures": {
                            "type": "boolean"
                          },
                          "cloud_export_with_history": {
                            "type": "boolean"
                          },
                          "enable_full_story_tracker": {
                            "type": "boolean"
                          },
                          "require_login_for_signing": {
                            "type": "boolean"
                          },
                          "disable_email_notifications": {
                            "type": "boolean"
                          },
                          "electronic_consent_required": {
                            "type": "boolean"
                          },
                          "email_admin_on_banned_login": {
                            "type": "boolean"
                          },
                          "enable_hyperlink_protection": {
                            "type": "boolean"
                          },
                          "invite_decline_redirect_url": {
                            "type": "boolean"
                          },
                          "emailed_docs_include_history": {
                            "type": "boolean"
                          },
                          "no_document_file_attachments": {
                            "type": "boolean"
                          },
                          "add_signature_stamp_with_name": {
                            "type": "boolean"
                          },
                          "digitally_sign_dowloaded_docs": {
                            "type": "boolean"
                          },
                          "watermark_downloaded_document": {
                            "type": "boolean"
                          },
                          "invite_completion_redirect_url": {
                            "type": "boolean"
                          },
                          "required_preset_signature_name": {
                            "type": "boolean"
                          },
                          "signing_link_document_download": {
                            "type": "boolean"
                          },
                          "block_login_via_social_networks": {
                            "type": "boolean"
                          },
                          "enable_advanced_threat_protection": {
                            "type": "boolean"
                          },
                          "document_completion_retention_days": {
                            "type": "boolean"
                          },
                          "require_authentication_for_invites": {
                            "type": "boolean"
                          },
                          "document_attachment_only_for_signer": {
                            "type": "boolean"
                          },
                          "unsuccessful_logout_attempts_allowed": {
                            "type": "boolean"
                          },
                          "audit_trail_completion_retention_days": {
                            "type": "boolean"
                          },
                          "pending_invite_document_view_notification": {
                            "type": "boolean"
                          },
                          "only_administrator_is_able_to_invite_to_the_team": {
                            "type": "boolean"
                          },
                          "block_export_options_when_credit_card_validation_is_used": {
                            "type": "boolean"
                          },
                          "invite_update_notifications_for_all_invites_at_invite_create": {
                            "type": "boolean"
                          }
                        },
                        "description": "user's settings applied"
                      },
                      "template": {
                        "type": "boolean",
                        "description": "whether or not this document is a template"
                      },
                      "thumbnail": {
                        "type": "object",
                        "properties": {
                          "large": {
                            "type": "string"
                          },
                          "small": {
                            "type": "string"
                          },
                          "medium": {
                            "type": "string"
                          }
                        }
                      },
                      "hyperlinks": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all hyperlinks in the document"
                      },
                      "page_count": {
                        "type": "string",
                        "description": "how many pages in the document"
                      },
                      "signatures": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all signatures on the document"
                      },
                      "attachments": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all attachments to the document"
                      },
                      "integrations": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "radiobuttons": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "all radiobuttons in the document"
                      },
                      "version_time": {
                        "type": "string"
                      },
                      "document_name": {
                        "type": "string",
                        "description": "the name of the document"
                      },
                      "field_invites": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "the invites sent to sign this document"
                      },
                      "recently_used": {
                        "type": "string",
                        "description": "Timestamp of the last time the document was used."
                      },
                      "notary_invites": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "origin_user_id": {
                        "x-nullable": true
                      },
                      "routing_details": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "cc": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              }
                            },
                            "id": {
                              "type": "string"
                            },
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "role_id": {
                                    "type": "string"
                                  },
                                  "inviter_role": {
                                    "type": "boolean"
                                  },
                                  "default_email": {
                                    "type": "string"
                                  },
                                  "signing_order": {
                                    "type": "integer"
                                  }
                                }
                              }
                            },
                            "cc_step": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              }
                            },
                            "created": {
                              "type": "string"
                            },
                            "updated": {
                              "x-nullable": true
                            },
                            "invite_link_instructions": {
                              "x-nullable": true
                            }
                          }
                        }
                      },
                      "original_filename": {
                        "type": "string"
                      },
                      "origin_document_id": {
                        "x-nullable": true
                      },
                      "document_group_info": {
                        "type": "object",
                        "properties": {
                          "invite_id": {
                            "x-nullable": true
                          },
                          "invite_status": {
                            "x-nullable": true
                          },
                          "document_group_id": {
                            "x-nullable": true
                          },
                          "doc_count_in_group": {
                            "type": "integer"
                          },
                          "document_group_name": {
                            "x-nullable": true
                          }
                        },
                        "description": "whether or not this document is part of a Document group"
                      },
                      "enumeration_options": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "if there is a Dropdown field on the document, these are the options to choose from"
                      },
                      "document_group_template_info": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        },
                        "description": "whether or not this document is a part of a Document group template"
                      },
                      "originator_organization_settings": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string"
                            },
                            "setting": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request without documents\n* Request with query param `per_page=0` or `page=0`\n* Request with query param `per_page/page`  as string or negative number\n* Request with query param `per_page` more than 100",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Request without documents": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "error: could not get document ids for user (user_id) api action id (api_action_id)"
                        }
                      ]
                    }
                  },
                  "Request with query param `per_page=0` or `page=0`": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Query parameter `per_page` must be more than 0"
                        },
                        {
                          "code": 0,
                          "message": "Query parameter `page` must be more than 0"
                        }
                      ]
                    }
                  },
                  "Request with query param `per_page` more than 100": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Query parameter `per_page` must be less than or equal 100"
                        }
                      ]
                    }
                  },
                  "Request with query param  per_page/ page  as string  or negative number": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "Query parameter `per_page` must be a digit"
                        },
                        {
                          "code": 0,
                          "message": "Query parameter `page` must be a digit"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/user/forgotpassword": {
      "post": {
        "operationId": "user-forgot-password",
        "summary": "Reset password",
        "description": "Sends password reset link via email",
        "parameters": [
          {
            "in": "header",
            "name": "Content-type",
            "type": "string",
            "default": "application/json",
            "required": false,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "* Correct request\n* Correct re-request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "Correct request": {
                    "value": {
                      "status": "success"
                    }
                  },
                  "Correct re-request": {
                    "value": {
                      "errors": [
                        {
                          "code": 0,
                          "message": "The limit of attempts has been exceeded. Please try again later."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Request with incorrect or missing email ",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "errors": [
                        {
                          "code": 65544,
                          "message": "Invalid email."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "user's email address that receives the password reset link"
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "email": "user@email.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/user/verifyemail": {
      "post": {
        "operationId": "post-user-verifyemail",
        "summary": "Send verification email",
        "description": "This endpoint allows API users to send a verification email to a new user’s email address. Once the user clicks the link in the email, their account will be verified.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "status": "success"
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "status": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- The email address is incorrect.\n- The email address is required.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "integer"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "x-examples": {
                    "Example 1": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Could not send verification email"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Could not send verification email"
                        }
                      ]
                    }
                  },
                  "Email required": {
                    "value": {
                      "errors": [
                        {
                          "code": 65582,
                          "message": "Email is required."
                        }
                      ]
                    }
                  },
                  "Incorrect email": {
                    "value": {
                      "errors": [
                        {
                          "code": 65536,
                          "message": "Could not send verification email"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The user's email address where the verification email will be sent."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "email": "user@email.com"
                  }
                }
              },
              "examples": {
                "Request with user email": {
                  "value": {
                    "email": "user@email.com"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/crm/contacts/{contact_id}/users": {
      "get": {
        "operationId": "get-v2-crm-contact-id-users",
        "summary": "Get users by contact",
        "description": "Retrieve all users connected by one CRM Contact.",
        "parameters": [
          {
            "in": "path",
            "name": "contact_id",
            "type": "string",
            "required": true,
            "description": "ID of the CRM contact."
          },
          {
            "in": "query",
            "name": "per_page",
            "type": "string",
            "required": false,
            "description": "How many search items to view per page. Allowed values: positive integers from 1 to 100."
          },
          {
            "in": "query",
            "name": "page",
            "type": "integer",
            "required": false,
            "description": "How many pages to fit the results in. Allowed values: any positive integer starting from 1."
          }
        ],
        "responses": {
          "200": {
            "description": "List of users with access to contacts ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "List of users with access to contacts": {
                    "value": {
                      "data": [
                        {
                          "id": "feXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "crm_user1@emaildomain.com",
                          "contact": {
                            "last_name": "Doe",
                            "first_name": "John"
                          },
                          "permission": {
                            "created_at": 1670934578,
                            "permission": "owner",
                            "updated_at": 1670934578
                          }
                        },
                        {
                          "id": "f5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "crm_user2@emaildomain.com",
                          "contact": {
                            "last_name": "Dow",
                            "first_name": "Jane"
                          },
                          "permission": {
                            "created_at": 1670934578,
                            "permission": "owner",
                            "updated_at": 1670934578
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": {},
                          "total": 2,
                          "per_page": 2,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value\n* Request with incorrect per_page parameter type\n* Request with incorrect per_page parameter value\n* Request with incorrect per_page parameter value 2\n* Request with incorrect page parameter type\n* Request with incorrect page parameter value\n* Request with incorrect include name",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Incorrect include name": {
                    "value": {
                      "code": 2740084,
                      "message": "Include must be `contacts`"
                    }
                  },
                  "Incorrect `page` parameter type": {
                    "value": {
                      "code": 27400904,
                      "message": "Query parameter `page` must be a digit"
                    }
                  },
                  "Incorrect `page` parameter value": {
                    "value": {
                      "code": 27400905,
                      "message": "Query parameter `page` must be more than 0"
                    }
                  },
                  "Incorrect `per_page` parameter type": {
                    "value": {
                      "code": 27400901,
                      "message": "Query parameter `per_page` must be a digit"
                    }
                  },
                  "Incorrect `per_page` parameter value": {
                    "value": {
                      "code": 27400902,
                      "message": "Query parameter `per_page` must be more than 0"
                    }
                  },
                  "Incorrect `per_page` parameter value 2": {
                    "value": {
                      "code": 27400903,
                      "message": "Query parameter `per_page` must be less than or equal 100"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "operationId": "put-v2-crm-contact-id-users",
        "summary": "Share contact with other users",
        "description": "Allows API users to share the CRM contacts.",
        "parameters": [
          {
            "in": "path",
            "name": "contact_id",
            "type": "string",
            "required": true,
            "description": "ID of the CRM contact."
          }
        ],
        "responses": {
          "200": {
            "description": "\t\nContacts have been shared successfully.",
            "content": {
              "application/json": {
                "examples": {
                  "Contacts have been shared successfully.": {
                    "value": {
                      "data": [
                        {
                          "id": "12XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "item": 0,
                          "email": "share_to_1@emaildomain.com",
                          "permission": "view_only"
                        },
                        {
                          "id": "22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "item": 1,
                          "email": "share_to_2@emaildomain.com",
                          "permission": "view_only"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value\n* Request with invalid body parameters, see examples\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Invalid email": {
                    "value": {
                      "errors": {
                        "code": 27400087,
                        "item": 0,
                        "message": "Invalid email"
                      }
                    }
                  },
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "The `data` field is required": {
                    "value": {
                      "errors": {
                        "code": 27400909,
                        "item": 0,
                        "message": "The `data` field is required"
                      }
                    }
                  },
                  "The `email` field is required": {
                    "value": {
                      "errors": {
                        "code": 27400086,
                        "item": 0,
                        "message": "The `email` field is required"
                      }
                    }
                  },
                  "The `permission` field is required": {
                    "value": {
                      "errors": {
                        "code": 27400089,
                        "item": 0,
                        "message": "The `permission` field is required"
                      }
                    }
                  },
                  "Duplicated emails in the `data` field": {
                    "value": {
                      "errors": {
                        "code": 27400912,
                        "item": 0,
                        "message": "There are duplicated emails in the `data` field: {duplicated@emaildomain.com}"
                      }
                    }
                  },
                  "The `permission` value should be \"view_only\"": {
                    "value": {
                      "errors": {
                        "code": 27400088,
                        "item": 0,
                        "message": "The `permission` value should be \"view_only\""
                      }
                    }
                  },
                  "The `data` field size must not be more than 100 items": {
                    "value": {
                      "errors": {
                        "code": 27400911,
                        "item": 0,
                        "message": "The `data` field size must not be more than 100 items"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "* Unable to share contact to yourself\n* Unable to share contact to itself",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Unable to share contact to itself": {
                    "value": {
                      "code": 27422016,
                      "message": "Unable to share contact to itself"
                    }
                  },
                  "Unable to share contact to yourself": {
                    "value": {
                      "code": 27422007,
                      "message": "Unable to share contact to yourself"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "email",
                        "permission"
                      ],
                      "properties": {
                        "email": {
                          "type": "string",
                          "description": "Email address of the CRM contact that will be shared."
                        },
                        "permission": {
                          "type": "string",
                          "description": "Must be `view_only`."
                        }
                      }
                    },
                    "description": "The object that holds contact items to be shared. Maximum 100 items."
                  }
                },
                "x-examples": {
                  "Example 1": {
                    "data": [
                      {
                        "email": "share_to_1@mail.com",
                        "permission": "view_only"
                      },
                      {
                        "email": "share_to_2@mail.com",
                        "permission": "view_only"
                      }
                    ]
                  }
                }
              },
              "examples": {
                "Example 1": {
                  "value": {
                    "data": [
                      {
                        "email": "share_to_1@mail.com",
                        "permission": "view_only"
                      },
                      {
                        "email": "share_to_2@mail.com",
                        "permission": "view_only"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v2/crm/contacts/{contact_id}/users/{user_id}": {
      "delete": {
        "operationId": "delete-v2-crm-contacts-contact-id-users-user-id",
        "summary": "Revoke access to shared contact",
        "description": "Remove shared contact permissions for a specific user.",
        "parameters": [
          {
            "in": "path",
            "name": "user_id",
            "type": "string",
            "required": true,
            "description": "The user ID to revoke access from."
          },
          {
            "in": "path",
            "name": "contact_id",
            "type": "string",
            "required": true,
            "description": "The shared CRM Contact ID."
          }
        ],
        "responses": {
          "204": {
            "description": "User contact permission has been removed successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "* Contact does not exist\n* User from path does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Contact does not exist": {
                    "value": {
                      "code": 27404001,
                      "message": "Contact 22XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX not found"
                    }
                  },
                  "User from path does not exist": {
                    "value": {
                      "code": 27404001,
                      "message": "User `userUniqueId` not found"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "* User from path does not have any permission to contact\n* User request from and user in the path are the same",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Path user does not have any permission to contact": {
                    "value": {
                      "code": 27400092,
                      "message": "User have no permission to contact"
                    }
                  },
                  "User from request and user in the path are the same": {
                    "value": {
                      "code": 27400093,
                      "message": "Unable to revoke own contact"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/v2/crm/users": {
      "get": {
        "operationId": "get-v2-crm-users",
        "summary": "Get the list of CRM users",
        "description": "Get the list of CRM users with access to contacts and their permissions.",
        "parameters": [
          {
            "in": "query",
            "name": "per_page",
            "type": "integer",
            "required": false,
            "description": "How many search items to view per page. Allowed values: positive integers from 1 to 100."
          },
          {
            "in": "query",
            "name": "page",
            "type": "integer",
            "required": false,
            "description": "How many pages to fit the results in. Allowed values: any positive integer starting from 1."
          }
        ],
        "responses": {
          "200": {
            "description": "List of users with access to contacts ",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "List of users with access to contacts ": {
                    "value": {
                      "data": [
                        {
                          "id": "feXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "crm_user1@emaildomain.com",
                          "contact": {
                            "last_name": "Now",
                            "first_name": "Sign"
                          },
                          "permission": {
                            "created_at": 1670934578,
                            "permission": "owner",
                            "updated_at": 1670934578
                          }
                        },
                        {
                          "id": "f5XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                          "email": "crm_user2@emaildomain.com",
                          "contact": {
                            "last_name": "Doe",
                            "first_name": "Jane"
                          },
                          "permission": {
                            "created_at": 1670934578,
                            "permission": "owner",
                            "updated_at": 1670934578
                          }
                        }
                      ],
                      "meta": {
                        "pagination": {
                          "count": 2,
                          "links": {},
                          "total": 2,
                          "per_page": 2,
                          "total_pages": 1,
                          "current_page": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "* Request with any of cases: invalid token, expired token, empty header, authorization = null, authorization without value\n* Request with incorrect per_page parameter type\n* Request with incorrect per_page parameter value\n* Request with incorrect per_page parameter value 2\n* Request with incorrect page parameter type\n* Request with incorrect page parameter value\n* Request with incorrect include name",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "examples": {
                  "Authorization issues": {
                    "value": {
                      "code": 1537,
                      "message": "invalid_token"
                    }
                  },
                  "Incorrect include name": {
                    "value": {
                      "code": 2740084,
                      "message": "Include must be `contact_names`"
                    }
                  },
                  "Incorrect `page` parameter type": {
                    "value": {
                      "code": 27400904,
                      "message": "Query parameter `page` must be a digit"
                    }
                  },
                  "Incorrect `page` parameter value": {
                    "value": {
                      "code": 27400905,
                      "message": "Query parameter `page` must be more than 0"
                    }
                  },
                  "Incorrect `per_page` parameter type": {
                    "value": {
                      "code": 27400901,
                      "message": "Query parameter `per_page` must be a digit"
                    }
                  },
                  "Incorrect `per_page` parameter value": {
                    "value": {
                      "code": 27400902,
                      "message": "Query parameter `per_page` must be more than 0"
                    }
                  },
                  "Incorrect `per_page` parameter value 2": {
                    "value": {
                      "code": 27400903,
                      "message": "Query parameter `per_page` must be less than or equal 100"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/event_subscription": {
      "post": {
        "operationId": "post-event-subscription",
        "summary": "Create event subscription",
        "description": "> Deprecated\n> \n> This endpoint is deprecated. Click [here](/docs/basic-auth/operations/create-event-subscription) to check a newer version.\n\n\n\nCreates a webhook that is triggered when the specified event takes place.\n\nWe have recently released a new version of Webhooks. Find out more details [here](/docs/guides-webhooks).",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "created": {
                      "type": "integer"
                    },
                    "updated": {
                      "type": "integer"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "5a8123c4059a03f6eli47d66ef84694b9109845e",
                      "created": 1414441545,
                      "updated": 1414442202
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "event",
                  "callback_url"
                ],
                "properties": {
                  "event": {
                    "type": "string"
                  },
                  "use_tls_12": {
                    "type": "boolean"
                  },
                  "callback_url": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "get-event-subscription",
        "summary": "Get event subscription",
        "description": "> Deprecated\n> \n> This endpoint is deprecated. Click [here](/docs/manage-event-subscriptions/operations/get-v2-dashboard-event-subscriptions-subscription-id) to check a newer version.\n",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "application/json": {
                    "value": {
                      "subscriptions": [
                        {
                          "id": "event_id",
                          "event": "document.update",
                          "created": "1410301010"
                        },
                        {
                          "id": "event_id",
                          "event": "document.create",
                          "created": "1410301010"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/event_subscription/{event_subscription_id}": {
      "delete": {
        "operationId": "delete-event-subscription-event-subscription-id",
        "summary": "Delete event subscription",
        "description": "> Deprecated\n> \n> This endpoint is deprecated. Click [here](/docs/basic-auth/operations/delete-event-subscription) to check a newer version.\n\n\nDeletes an event subscription",
        "parameters": [
          {
            "in": "path",
            "name": "event_subscription_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "id": "016f4ca9e5a002ea766d457d087df16f51536703",
                      "status": "deleted"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v2/events/{event_subscription_id}": {
      "delete": {
        "operationId": "delete-api-v2-events-event-subscription-id",
        "summary": "Delete event subscription",
        "description": "Unsubscribes an external service (callback_url) from specific events of user or document",
        "parameters": [
          {
            "in": "path",
            "name": "event_subscription_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "204": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "403": {
            "description": "**For basic auth:**\n\nApplication id which is used for request differs from application id created given event subscription.\n\n**For bearer auth:**\n\nThe event subscription was created by another user",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "message": "Unsubscription from event is not allowed"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Value of \"uniqueEventId\" doesn't exist in database",
            "content": {
              "application/json": {
                "examples": {
                  "application/json": {
                    "value": {
                      "message": "UserEventSubscription `uniqueEventId` not found"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          }
        ]
      },
      "put": {
        "operationId": "put-api-v2-events-event-subscription-id",
        "summary": "Update event subscription",
        "description": "Allows changing an existing event subscription",
        "parameters": [
          {
            "in": "path",
            "name": "event_subscription_id",
            "type": "string",
            "required": true,
            "description": ""
          }
        ],
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "application/json": {
                    "value": "{\n\n\"id\": \"\" //event subscription unique ID\n\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "* \"attributes must not be empty\" - \"attributes\" array is missing or empty\n* \"'callback' is missing.\" -  required parameter \"callback\" is missing\n* \"Action must be equal 'callback'\" - required parameter \"action\" is missing OR value of \"action\" parameter differs from 'callback'\n* \"event must not be empty\" - required parameter \"event\" is missing or has an empty value\n* \"event must be string\" - value of the \"event\" parameter is not a string\n* \"callback must be string\" - value of the \"callback\" parameter is not a string\n* \"callback must be url\" - value of \"callback\" parameter is not an URL\n* \"Invalid integration id - {integration_id}\" - value of \"integration_id\" parameter doesn't exist in database",
            "content": {
              "application/json": {
                "examples": {
                  "event": {
                    "value": "{\n  \"code\": 65582,\n  \"message\": \"event must be string\"\n}"
                  },
                  "action": {
                    "value": {
                      "message": "Action must be equal 'callback'"
                    }
                  },
                  "callback": {
                    "value": {
                      "code": 400,
                      "message": "attributes must not be empty"
                    }
                  },
                  "attributes": {
                    "value": {
                      "code": 400,
                      "message": "attributes must not be empty"
                    }
                  },
                  "empty event": {
                    "value": {
                      "code": 65582,
                      "message": "event must not be empty"
                    }
                  },
                  "integration": {
                    "value": {
                      "message": "Invalid integration id - {integration_id}"
                    }
                  },
                  "callback is not an url": {
                    "value": {
                      "code": 400,
                      "message": "callback must be url"
                    }
                  },
                  "callback is not a string": {
                    "value": {
                      "code": 65582,
                      "message": "callback must be string"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Basic": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "attributes": {
                    "type": "object",
                    "properties": {
                      "headers": {
                        "type": "object",
                        "properties": {
                          "int_head": {
                            "type": "integer"
                          },
                          "bool_head": {
                            "type": "boolean"
                          },
                          "float_head": {
                            "type": "number"
                          },
                          "string_head": {
                            "type": "string"
                          }
                        }
                      },
                      "callback": {
                        "type": "string"
                      },
                      "use_tls_12": {
                        "type": "boolean"
                      },
                      "integration_id": {
                        "type": "string"
                      },
                      "docid_queryparam": {
                        "type": "boolean"
                      }
                    }
                  }
                }
              },
              "examples": {
                "application/json": {
                  "value": {
                    "event": "document.fieldinvite.sent",
                    "action": "callback",
                    "entity_id": "63fde884ad755149ff213563de654f9a61a1884c",
                    "attributes": {
                      "headers": {
                        "int_head": 12,
                        "bool_head": false,
                        "float_head": 12.24,
                        "string_head": "test"
                      },
                      "callback": "https://enlvww20vv7m.x.pipedream.net/",
                      "use_tls_12": true,
                      "integration_id": "b98fc00add6b43a606bc527c81eee741bf16a7d8",
                      "docid_queryparam": true
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer"
      },
      "Basic": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}