{
  "components" : {
    "securitySchemes" : {
      "apiKey" : {
        "bearerFormat" : "JWT",
        "scheme" : "bearer",
        "type" : "http"
      },
      "basicAuth" : {
        "scheme" : "basic",
        "type" : "http"
      }
    }
  },
  "info" : {
    "contact" : {
      "email" : "help@treasuryprime.com",
      "name" : "Treasury Prime Support",
      "url" : "https://support.treasuryprime.com"
    },
    "summary" : "Banking APIs",
    "termsOfService" : "https://www.treasuryprime.com/policy/terms",
    "title" : "Utilities",
    "version" : "1.18.731-gcbd60cfd"
  },
  "openapi" : "3.1.0",
  "paths" : {
    "/document" : {
      "get" : {
        "parameters" : [ {
          "description" : "Pagination cursor, value is the object ID.",
          "in" : "query",
          "name" : "page_cursor",
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Limits the number of objects in the returned list, value must be a number greater than or equal to 1. Defaults to 100.",
          "in" : "query",
          "name" : "page_size",
          "schema" : {
            "default" : 100,
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "Lists the objects created on the date provided and onwards. Date must be in ISO 8601 format (“YYYY-MM-DD”).",
          "in" : "query",
          "name" : "from_date",
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Lists the objects created before the date provided. Date must be in ISO 8601 format (“YYYY-MM-DD”).",
          "in" : "query",
          "name" : "to_date",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : {
                  "example" : {
                    "summary" : "Success",
                    "value" : {
                      "data" : [ {
                        "bankdata" : { },
                        "created_at" : "2021-03-25T21:31:50Z",
                        "fields" : {
                          "date_of_birth" : "1980-03-15"
                        },
                        "file_id" : "file_567890",
                        "id" : "doc_123456",
                        "name" : "California Drivers License",
                        "type" : "drivers_license",
                        "updated_at" : "2021-03-25T21:31:50Z",
                        "userdata" : { }
                      } ]
                    }
                  }
                },
                "schema" : {
                  "properties" : {
                    "data" : {
                      "items" : {
                        "properties" : {
                          "bank_id" : {
                            "description" : "ID of the bank with which the object is associated",
                            "type" : "string"
                          },
                          "bankdata" : {
                            "description" : "Optional arbitrary data the bank can attach to the object",
                            "type" : "object"
                          },
                          "description" : {
                            "deprecated" : true,
                            "description" : "Description (deprecated)",
                            "type" : "string"
                          },
                          "fields" : {
                            "description" : "Object representing the data encoded in the Document",
                            "type" : "object"
                          },
                          "file_id" : {
                            "description" : "The unique ID for an attached File",
                            "type" : "string"
                          },
                          "id" : {
                            "description" : "Unique identifier for object",
                            "type" : "string"
                          },
                          "name" : {
                            "description" : "A descriptive name for the document",
                            "type" : "string"
                          },
                          "org_id" : {
                            "description" : "ID of the organization with which the object is associated",
                            "type" : "string"
                          },
                          "type" : {
                            "description" : "One of: `drivers_license`, `military_id`, `passport`, `state_id`, `other`",
                            "type" : "string"
                          },
                          "userdata" : {
                            "description" : "Optional arbitrary data the user can attach to the object",
                            "type" : "object"
                          }
                        },
                        "type" : "object"
                      },
                      "type" : "array"
                    }
                  }
                }
              }
            },
            "description" : "A dictionary with a `data` property that contains a list of up to `page_size` document elements, starting after the document described by `page_cursor`. If no more documents are available, the resulting list will be empty."
          }
        },
        "summary" : "List Documents",
        "tags" : [ "Document" ]
      },
      "post" : {
        "requestBody" : {
          "content" : {
            "application/json" : {
              "examples" : {
                "example" : {
                  "summary" : "Example",
                  "value" : {
                    "fields" : {
                      "date_of_birth" : "1980-03-15"
                    },
                    "file_id" : "file_567890",
                    "name" : "California Drivers License",
                    "type" : "drivers_license"
                  }
                }
              },
              "schema" : {
                "properties" : {
                  "bankdata" : {
                    "description" : "Optional arbitrary data the bank can attach to the object",
                    "type" : "object"
                  },
                  "fields" : {
                    "description" : "Object representing the data encoded in the Document",
                    "type" : "object"
                  },
                  "file_id" : {
                    "description" : "The unique ID for an attached File",
                    "type" : "string"
                  },
                  "name" : {
                    "description" : "A descriptive name for the document",
                    "type" : "string"
                  },
                  "type" : {
                    "description" : "One of: `drivers_license`, `military_id`, `passport`, `state_id`, `other`",
                    "type" : "string"
                  },
                  "userdata" : {
                    "description" : "Optional arbitrary data the user can attach to the object",
                    "type" : "object"
                  }
                },
                "required" : [ "type", "id" ]
              }
            }
          },
          "description" : "The document to create",
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : {
                  "example" : {
                    "summary" : "Success",
                    "value" : {
                      "bankdata" : { },
                      "created_at" : "2021-03-25T21:31:50Z",
                      "fields" : {
                        "date_of_birth" : "1980-03-15"
                      },
                      "file_id" : "file_567890",
                      "id" : "doc_123456",
                      "name" : "California Drivers License",
                      "type" : "drivers_license",
                      "updated_at" : "2021-03-25T21:31:50Z",
                      "userdata" : { }
                    }
                  }
                },
                "schema" : {
                  "properties" : {
                    "bank_id" : {
                      "description" : "ID of the bank with which the object is associated",
                      "type" : "string"
                    },
                    "bankdata" : {
                      "description" : "Optional arbitrary data the bank can attach to the object",
                      "type" : "object"
                    },
                    "description" : {
                      "deprecated" : true,
                      "description" : "Description (deprecated)",
                      "type" : "string"
                    },
                    "fields" : {
                      "description" : "Object representing the data encoded in the Document",
                      "type" : "object"
                    },
                    "file_id" : {
                      "description" : "The unique ID for an attached File",
                      "type" : "string"
                    },
                    "id" : {
                      "description" : "Unique identifier for object",
                      "type" : "string"
                    },
                    "name" : {
                      "description" : "A descriptive name for the document",
                      "type" : "string"
                    },
                    "org_id" : {
                      "description" : "ID of the organization with which the object is associated",
                      "type" : "string"
                    },
                    "type" : {
                      "description" : "One of: `drivers_license`, `military_id`, `passport`, `state_id`, `other`",
                      "type" : "string"
                    },
                    "userdata" : {
                      "description" : "Optional arbitrary data the user can attach to the object",
                      "type" : "object"
                    }
                  }
                }
              }
            },
            "description" : "The document created"
          }
        },
        "summary" : "Create a Document",
        "tags" : [ "Document" ]
      }
    },
    "/document/{id}" : {
      "get" : {
        "parameters" : [ {
          "description" : "Unique identifier for object",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "description" : "Unique identifier for object",
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : {
                  "example" : {
                    "summary" : "Success",
                    "value" : {
                      "bankdata" : { },
                      "created_at" : "2021-03-25T21:31:50Z",
                      "fields" : {
                        "date_of_birth" : "1980-03-15"
                      },
                      "file_id" : "file_567890",
                      "id" : "doc_123456",
                      "name" : "California Drivers License",
                      "type" : "drivers_license",
                      "updated_at" : "2021-03-25T21:31:50Z",
                      "userdata" : { }
                    }
                  }
                },
                "schema" : {
                  "properties" : {
                    "bank_id" : {
                      "description" : "ID of the bank with which the object is associated",
                      "type" : "string"
                    },
                    "bankdata" : {
                      "description" : "Optional arbitrary data the bank can attach to the object",
                      "type" : "object"
                    },
                    "description" : {
                      "deprecated" : true,
                      "description" : "Description (deprecated)",
                      "type" : "string"
                    },
                    "fields" : {
                      "description" : "Object representing the data encoded in the Document",
                      "type" : "object"
                    },
                    "file_id" : {
                      "description" : "The unique ID for an attached File",
                      "type" : "string"
                    },
                    "id" : {
                      "description" : "Unique identifier for object",
                      "type" : "string"
                    },
                    "name" : {
                      "description" : "A descriptive name for the document",
                      "type" : "string"
                    },
                    "org_id" : {
                      "description" : "ID of the organization with which the object is associated",
                      "type" : "string"
                    },
                    "type" : {
                      "description" : "One of: `drivers_license`, `military_id`, `passport`, `state_id`, `other`",
                      "type" : "string"
                    },
                    "userdata" : {
                      "description" : "Optional arbitrary data the user can attach to the object",
                      "type" : "object"
                    }
                  }
                }
              }
            },
            "description" : "The document"
          }
        },
        "summary" : "Fetch a Document",
        "tags" : [ "Document" ]
      },
      "patch" : {
        "parameters" : [ {
          "description" : "Unique identifier for object",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "description" : "Unique identifier for object",
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "examples" : {
                "example" : {
                  "summary" : "Updating name",
                  "value" : {
                    "name" : "OR Drivers License"
                  }
                }
              },
              "schema" : {
                "properties" : {
                  "bankdata" : {
                    "description" : "Optional arbitrary data the bank can attach to the object",
                    "type" : "object"
                  },
                  "fields" : {
                    "description" : "Object representing the data encoded in the Document",
                    "type" : "object"
                  },
                  "name" : {
                    "description" : "A descriptive name for the document",
                    "type" : "string"
                  },
                  "type" : {
                    "description" : "One of: `drivers_license`, `military_id`, `passport`, `state_id`, `other`",
                    "type" : "string"
                  },
                  "userdata" : {
                    "description" : "Optional arbitrary data the user can attach to the object",
                    "type" : "object"
                  }
                }
              }
            }
          },
          "description" : "The document to update",
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : {
                  "example" : {
                    "summary" : "Success",
                    "value" : {
                      "bankdata" : { },
                      "created_at" : "2021-03-25T21:31:50Z",
                      "fields" : {
                        "date_of_birth" : "1980-03-15"
                      },
                      "file_id" : "file_567890",
                      "id" : "doc_123456",
                      "name" : "OR Drivers License",
                      "type" : "drivers_license",
                      "updated_at" : "2021-03-25T21:31:50Z",
                      "userdata" : { }
                    }
                  }
                },
                "schema" : {
                  "properties" : {
                    "bank_id" : {
                      "description" : "ID of the bank with which the object is associated",
                      "type" : "string"
                    },
                    "bankdata" : {
                      "description" : "Optional arbitrary data the bank can attach to the object",
                      "type" : "object"
                    },
                    "description" : {
                      "deprecated" : true,
                      "description" : "Description (deprecated)",
                      "type" : "string"
                    },
                    "fields" : {
                      "description" : "Object representing the data encoded in the Document",
                      "type" : "object"
                    },
                    "file_id" : {
                      "description" : "The unique ID for an attached File",
                      "type" : "string"
                    },
                    "id" : {
                      "description" : "Unique identifier for object",
                      "type" : "string"
                    },
                    "name" : {
                      "description" : "A descriptive name for the document",
                      "type" : "string"
                    },
                    "org_id" : {
                      "description" : "ID of the organization with which the object is associated",
                      "type" : "string"
                    },
                    "type" : {
                      "description" : "One of: `drivers_license`, `military_id`, `passport`, `state_id`, `other`",
                      "type" : "string"
                    },
                    "userdata" : {
                      "description" : "Optional arbitrary data the user can attach to the object",
                      "type" : "object"
                    }
                  }
                }
              }
            },
            "description" : "The document updated"
          }
        },
        "summary" : "Update a Document",
        "tags" : [ "Document" ]
      }
    },
    "/file/{id}" : {
      "get" : {
        "parameters" : [ {
          "description" : "Unique identifier for object",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "description" : "Unique identifier for object",
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : {
                  "example" : {
                    "summary" : "Success",
                    "value" : {
                      "data" : [ {
                        "content_hash" : "5644a65d2e0adb879329196d8e115be52e2a921c",
                        "content_length" : 347504,
                        "content_type" : "image/jpeg",
                        "content_url" : "https://treasuryprime-usercontent.com/sandbox/org_1he97gra9he/0/5644...",
                        "created_at" : "2023-11-16T22:59:31Z",
                        "id" : "file_11jnd0n3nx",
                        "updated_at" : "2023-11-16T22:59:31Z"
                      } ]
                    }
                  }
                },
                "schema" : {
                  "properties" : {
                    "content_hash" : {
                      "description" : "SHA-1 hash of the file contents",
                      "type" : "string"
                    },
                    "content_length" : {
                      "description" : "Length of the file contents in bytes",
                      "type" : "integer"
                    },
                    "content_type" : {
                      "description" : "A valid media type",
                      "type" : "string"
                    },
                    "content_url" : {
                      "description" : "A url that can be used to download the file. URL is only valid for a short time",
                      "type" : "string"
                    },
                    "id" : {
                      "description" : "Unique identifier for object",
                      "type" : "string"
                    }
                  }
                }
              }
            },
            "description" : "The file"
          }
        },
        "summary" : "Fetch a File",
        "tags" : [ "File" ]
      }
    },
    "/file/{id}/content" : {
      "get" : {
        "parameters" : [ {
          "description" : "Unique identifier for object",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "description" : "Unique identifier for object",
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : { },
                "schema" : {
                  "properties" : {
                    "content_hash" : {
                      "description" : "SHA-1 hash of the file contents",
                      "type" : "string"
                    },
                    "content_length" : {
                      "description" : "Length of the file contents in bytes",
                      "type" : "integer"
                    },
                    "content_type" : {
                      "description" : "A valid media type",
                      "type" : "string"
                    },
                    "content_url" : {
                      "description" : "A url that can be used to download the file. URL is only valid for a short time",
                      "type" : "string"
                    },
                    "id" : {
                      "description" : "Unique identifier for object",
                      "type" : "string"
                    }
                  }
                }
              }
            },
            "description" : "The file"
          }
        },
        "summary" : "Download a File",
        "tags" : [ "File" ]
      }
    },
    "/routing_number/{routing_number}" : {
      "get" : {
        "parameters" : [ {
          "description" : "The routing number of the bank. Filterable.",
          "in" : "path",
          "name" : "routing_number",
          "required" : true,
          "schema" : {
            "description" : "The routing number of the bank. Filterable.",
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : {
                  "example" : {
                    "summary" : "Success",
                    "value" : {
                      "ach" : true,
                      "bank_name" : "FEDERAL RESERVE BANK OF BOSTON",
                      "bank_short_name" : "FRB-BOS",
                      "city" : "BOSTON",
                      "created_at" : "2021-11-12T18:48:27Z",
                      "routing_number" : "011000015",
                      "state" : "MA",
                      "updated_at" : "2021-11-12T18:48:27Z",
                      "wire" : true
                    }
                  }
                },
                "schema" : {
                  "properties" : {
                    "ach" : {
                      "description" : "Whether the routing number processes FedACH payments",
                      "type" : "boolean"
                    },
                    "bank_name" : {
                      "description" : "The name of the bank",
                      "type" : "string"
                    },
                    "bank_short_name" : {
                      "description" : "The short-form name of the bank",
                      "type" : "string"
                    },
                    "city" : {
                      "description" : "City",
                      "type" : "string"
                    },
                    "created_at" : {
                      "description" : "Timestamp of when this Routing Number object was added to Treasury Prime's records",
                      "type" : "string"
                    },
                    "routing_number" : {
                      "description" : "The routing number of the bank. Filterable.",
                      "type" : "string"
                    },
                    "state" : {
                      "description" : "State",
                      "type" : "string"
                    },
                    "updated_at" : {
                      "description" : "Timestamp of the last object update",
                      "type" : "string"
                    },
                    "wire" : {
                      "description" : "Whether the routing number processes FedWire payments",
                      "type" : "boolean"
                    }
                  }
                }
              }
            },
            "description" : "The routing-number"
          }
        },
        "summary" : "Fetch a Routing Number",
        "tags" : [ "Routing Number" ]
      }
    },
    "/webhook" : {
      "get" : {
        "parameters" : [ {
          "description" : "One of `enabled`, `disabled`, or `error`. Filterable.",
          "in" : "query",
          "name" : "status",
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Pagination cursor, value is the object ID.",
          "in" : "query",
          "name" : "page_cursor",
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Limits the number of objects in the returned list, value must be a number greater than or equal to 1. Defaults to 100.",
          "in" : "query",
          "name" : "page_size",
          "schema" : {
            "default" : 100,
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "Lists the objects created on the date provided and onwards. Date must be in ISO 8601 format (“YYYY-MM-DD”).",
          "in" : "query",
          "name" : "from_date",
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Lists the objects created before the date provided. Date must be in ISO 8601 format (“YYYY-MM-DD”).",
          "in" : "query",
          "name" : "to_date",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : {
                  "example" : {
                    "summary" : "Success",
                    "value" : {
                      "data" : [ {
                        "created_at" : "2018-12-03T19:46:45Z",
                        "error" : null,
                        "event" : "ach.update",
                        "id" : "wh_012345678923",
                        "status" : "enabled",
                        "updated_at" : "2018-12-03T19:46:45Z",
                        "url" : "https://example.application.com/notify",
                        "userdata" : null
                      } ]
                    }
                  }
                },
                "schema" : {
                  "properties" : {
                    "data" : {
                      "items" : {
                        "properties" : {
                          "basic_secret" : {
                            "description" : "The password value sent as part of basic `Authorization` for request validation. Always shown as null in all responses.",
                            "type" : "string"
                          },
                          "basic_user" : {
                            "description" : "The user value sent as part of basic `Authorization` for request validation. Use is optional.",
                            "type" : "string"
                          },
                          "error" : {
                            "description" : "The error reason, if the webhook has transitioned status to `error`",
                            "type" : "string"
                          },
                          "event" : {
                            "description" : "The event to listen for. [Available events](/reference/webhook-events)",
                            "type" : "string"
                          },
                          "id" : {
                            "description" : "Unique identifier for object",
                            "type" : "string"
                          },
                          "status" : {
                            "description" : "One of `enabled`, `disabled`, or `error`. Filterable.",
                            "type" : "string"
                          },
                          "url" : {
                            "description" : "The HTTPS URL where the event notification will be sent",
                            "type" : "string"
                          },
                          "userdata" : {
                            "description" : "Optional arbitrary user data",
                            "type" : "object"
                          }
                        },
                        "type" : "object"
                      },
                      "type" : "array"
                    }
                  }
                }
              }
            },
            "description" : "A dictionary with a `data` property that contains a list of up to `page_size` webhook elements, starting after the webhook described by `page_cursor`. If no more webhooks are available, the resulting list will be empty."
          }
        },
        "summary" : "List Webhooks",
        "tags" : [ "Webhook" ]
      },
      "post" : {
        "requestBody" : {
          "content" : {
            "application/json" : {
              "examples" : {
                "example" : {
                  "summary" : "Success",
                  "value" : {
                    "event" : "ach.update",
                    "url" : "https://example.application.com/notify"
                  }
                }
              },
              "schema" : {
                "properties" : {
                  "basic_secret" : {
                    "description" : "The password value sent as part of basic `Authorization` for request validation. Always shown as null in all responses.",
                    "type" : "string"
                  },
                  "basic_user" : {
                    "description" : "The user value sent as part of basic `Authorization` for request validation. Use is optional.",
                    "type" : "string"
                  },
                  "event" : {
                    "description" : "The event to listen for. [Available events](/reference/webhook-events)",
                    "type" : "string"
                  },
                  "url" : {
                    "description" : "The HTTPS URL where the event notification will be sent",
                    "type" : "string"
                  },
                  "userdata" : {
                    "description" : "Optional arbitrary user data",
                    "type" : "object"
                  }
                },
                "required" : [ "event", "id", "url" ]
              }
            }
          },
          "description" : "The webhook to create",
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : {
                  "example" : {
                    "summary" : "Success",
                    "value" : {
                      "created_at" : "2018-12-03T19:46:45Z",
                      "error" : null,
                      "event" : "ach.update",
                      "id" : "wh_012345678923",
                      "status" : "enabled",
                      "updated_at" : "2018-12-03T19:46:45Z",
                      "url" : "https://example.application.com/notify",
                      "userdata" : null
                    }
                  }
                },
                "schema" : {
                  "properties" : {
                    "basic_secret" : {
                      "description" : "The password value sent as part of basic `Authorization` for request validation. Always shown as null in all responses.",
                      "type" : "string"
                    },
                    "basic_user" : {
                      "description" : "The user value sent as part of basic `Authorization` for request validation. Use is optional.",
                      "type" : "string"
                    },
                    "error" : {
                      "description" : "The error reason, if the webhook has transitioned status to `error`",
                      "type" : "string"
                    },
                    "event" : {
                      "description" : "The event to listen for. [Available events](/reference/webhook-events)",
                      "type" : "string"
                    },
                    "id" : {
                      "description" : "Unique identifier for object",
                      "type" : "string"
                    },
                    "status" : {
                      "description" : "One of `enabled`, `disabled`, or `error`. Filterable.",
                      "type" : "string"
                    },
                    "url" : {
                      "description" : "The HTTPS URL where the event notification will be sent",
                      "type" : "string"
                    },
                    "userdata" : {
                      "description" : "Optional arbitrary user data",
                      "type" : "object"
                    }
                  }
                }
              }
            },
            "description" : "The webhook created"
          }
        },
        "summary" : "Create a Webhook",
        "tags" : [ "Webhook" ]
      }
    },
    "/webhook/{id}" : {
      "delete" : {
        "parameters" : [ {
          "description" : "Unique identifier for object",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "description" : "Unique identifier for object",
            "type" : "string"
          }
        } ],
        "responses" : {
          "204" : {
            "description" : "Success"
          }
        },
        "summary" : "Delete a Webhook",
        "tags" : [ "Webhook" ]
      },
      "get" : {
        "parameters" : [ {
          "description" : "Unique identifier for object",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "description" : "Unique identifier for object",
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : {
                  "example" : {
                    "summary" : "Success",
                    "value" : {
                      "created_at" : "2018-12-03T19:46:45Z",
                      "error" : null,
                      "event" : "ach.update",
                      "id" : "wh_012345678923",
                      "status" : "enabled",
                      "updated_at" : "2018-12-03T19:46:45Z",
                      "url" : "https://example.application.com/notify",
                      "userdata" : null
                    }
                  }
                },
                "schema" : {
                  "properties" : {
                    "basic_secret" : {
                      "description" : "The password value sent as part of basic `Authorization` for request validation. Always shown as null in all responses.",
                      "type" : "string"
                    },
                    "basic_user" : {
                      "description" : "The user value sent as part of basic `Authorization` for request validation. Use is optional.",
                      "type" : "string"
                    },
                    "error" : {
                      "description" : "The error reason, if the webhook has transitioned status to `error`",
                      "type" : "string"
                    },
                    "event" : {
                      "description" : "The event to listen for. [Available events](/reference/webhook-events)",
                      "type" : "string"
                    },
                    "id" : {
                      "description" : "Unique identifier for object",
                      "type" : "string"
                    },
                    "status" : {
                      "description" : "One of `enabled`, `disabled`, or `error`. Filterable.",
                      "type" : "string"
                    },
                    "url" : {
                      "description" : "The HTTPS URL where the event notification will be sent",
                      "type" : "string"
                    },
                    "userdata" : {
                      "description" : "Optional arbitrary user data",
                      "type" : "object"
                    }
                  }
                }
              }
            },
            "description" : "The webhook"
          }
        },
        "summary" : "Fetch a Webhook",
        "tags" : [ "Webhook" ]
      },
      "patch" : {
        "parameters" : [ {
          "description" : "Unique identifier for object",
          "in" : "path",
          "name" : "id",
          "required" : true,
          "schema" : {
            "description" : "Unique identifier for object",
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "examples" : {
                "example" : {
                  "summary" : "Success",
                  "value" : {
                    "url" : "https://example.application.com/newurl"
                  }
                }
              },
              "schema" : {
                "properties" : {
                  "basic_secret" : {
                    "description" : "The password value sent as part of basic `Authorization` for request validation. Always shown as null in all responses.",
                    "type" : "string"
                  },
                  "basic_user" : {
                    "description" : "The user value sent as part of basic `Authorization` for request validation. Use is optional.",
                    "type" : "string"
                  },
                  "event" : {
                    "description" : "The event to listen for. [Available events](/reference/webhook-events)",
                    "type" : "string"
                  },
                  "status" : {
                    "description" : "One of `enabled` or `disabled`",
                    "type" : "string"
                  },
                  "url" : {
                    "description" : "The HTTPS URL where the event notification will be sent",
                    "type" : "string"
                  },
                  "userdata" : {
                    "description" : "Optional arbitrary user data",
                    "type" : "object"
                  }
                }
              }
            }
          },
          "description" : "The webhook to update",
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : {
                  "example" : {
                    "summary" : "Success",
                    "value" : {
                      "created_at" : "2018-12-03T19:46:45Z",
                      "error" : null,
                      "event" : "ach.update",
                      "id" : "wh_012345678923",
                      "status" : "enabled",
                      "updated_at" : "2018-12-03T19:46:45Z",
                      "url" : "https://example.application.com/newurl",
                      "userdata" : null
                    }
                  }
                },
                "schema" : {
                  "properties" : {
                    "basic_secret" : {
                      "description" : "The password value sent as part of basic `Authorization` for request validation. Always shown as null in all responses.",
                      "type" : "string"
                    },
                    "basic_user" : {
                      "description" : "The user value sent as part of basic `Authorization` for request validation. Use is optional.",
                      "type" : "string"
                    },
                    "error" : {
                      "description" : "The error reason, if the webhook has transitioned status to `error`",
                      "type" : "string"
                    },
                    "event" : {
                      "description" : "The event to listen for. [Available events](/reference/webhook-events)",
                      "type" : "string"
                    },
                    "id" : {
                      "description" : "Unique identifier for object",
                      "type" : "string"
                    },
                    "status" : {
                      "description" : "One of `enabled`, `disabled`, or `error`. Filterable.",
                      "type" : "string"
                    },
                    "url" : {
                      "description" : "The HTTPS URL where the event notification will be sent",
                      "type" : "string"
                    },
                    "userdata" : {
                      "description" : "Optional arbitrary user data",
                      "type" : "object"
                    }
                  }
                }
              }
            },
            "description" : "The webhook updated"
          }
        },
        "summary" : "Update a Webhook",
        "tags" : [ "Webhook" ]
      }
    },
    "/webhook_send" : {
      "get" : {
        "parameters" : [ {
          "description" : "The unique identifier of the object that caused this send attempt. Filterable.",
          "in" : "query",
          "name" : "object_id",
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "The status of the webhook send attempt. One of: `sent`, `skipped`, `error`. Filterable.",
          "in" : "query",
          "name" : "status",
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "The unique identifier for the controlling webhook row of these send attempts. Filterable.",
          "in" : "query",
          "name" : "webhook_id",
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Pagination cursor, value is the object ID.",
          "in" : "query",
          "name" : "page_cursor",
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Limits the number of objects in the returned list, value must be a number greater than or equal to 1. Defaults to 100.",
          "in" : "query",
          "name" : "page_size",
          "schema" : {
            "default" : 100,
            "minimum" : 1,
            "type" : "integer"
          }
        }, {
          "description" : "Lists the objects created on the date provided and onwards. Date must be in ISO 8601 format (“YYYY-MM-DD”).",
          "in" : "query",
          "name" : "from_date",
          "schema" : {
            "type" : "string"
          }
        }, {
          "description" : "Lists the objects created before the date provided. Date must be in ISO 8601 format (“YYYY-MM-DD”).",
          "in" : "query",
          "name" : "to_date",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "examples" : { },
                "schema" : {
                  "properties" : {
                    "data" : {
                      "items" : {
                        "properties" : {
                          "attempt_number" : {
                            "description" : "The number of send attempts before this attempt was made",
                            "type" : "integer"
                          },
                          "error" : {
                            "description" : "If the webhook failed, the reason why it did not send successfully",
                            "type" : "string"
                          },
                          "id" : {
                            "description" : "Unique identifier for the object",
                            "type" : "string"
                          },
                          "object_id" : {
                            "description" : "The unique identifier of the object that caused this send attempt. Filterable.",
                            "type" : "string"
                          },
                          "operation" : {
                            "description" : "The database operation that caused this webhook send attempt",
                            "type" : "string"
                          },
                          "org_id" : {
                            "type" : "string"
                          },
                          "status" : {
                            "description" : "The status of the webhook send attempt. One of: `sent`, `skipped`, `error`. Filterable.",
                            "type" : "string"
                          },
                          "webhook_id" : {
                            "description" : "The unique identifier for the controlling webhook row of these send attempts. Filterable.",
                            "type" : "string"
                          },
                          "will_retry" : {
                            "description" : "Boolean indicating whether or not the hook will retry",
                            "enum" : [ "true", "false" ],
                            "type" : "string"
                          }
                        },
                        "type" : "object"
                      },
                      "type" : "array"
                    }
                  }
                }
              }
            },
            "description" : "A dictionary with a `data` property that contains a list of up to `page_size` webhook_send elements, starting after the webhook_send described by `page_cursor`. If no more webhook_sends are available, the resulting list will be empty."
          }
        },
        "summary" : "index webhook_send",
        "tags" : [ ]
      }
    }
  },
  "security" : [ {
    "basicAuth" : [ ]
  }, {
    "apiKey" : [ ]
  } ],
  "servers" : [ {
    "description" : "Production",
    "url" : "https://api.treasuryprime.com"
  }, {
    "description" : "Sandbox",
    "url" : "https://api.sandbox.treasuryprime.com"
  } ]
}