{
  "opencollection": "1.0.0",
  "info": {
    "name": "Sensible REST API",
    "version": "0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Extract",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Extract data from a document (default config)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/extract/:document_type",
            "params": [
              {
                "name": "document_type",
                "value": "",
                "type": "path",
                "description": "Document type identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Extract data from a document (default config)"
        },
        {
          "info": {
            "name": "Extract data from a document using a specific config",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/extract/:document_type/:config_name",
            "params": [
              {
                "name": "document_type",
                "value": "",
                "type": "path",
                "description": "Document type identifier"
              },
              {
                "name": "config_name",
                "value": "",
                "type": "path",
                "description": "Config name"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Extract data from a document using a specific config"
        },
        {
          "info": {
            "name": "Extract from a URL-hosted document (default config)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/extract_from_url/:document_type",
            "params": [
              {
                "name": "document_type",
                "value": "",
                "type": "path",
                "description": "Document type identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Extract from a URL-hosted document (default config)"
        },
        {
          "info": {
            "name": "Extract from a URL-hosted document using a specific config",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/extract_from_url/:document_type/:config_name",
            "params": [
              {
                "name": "document_type",
                "value": "",
                "type": "path",
                "description": "Document type identifier"
              },
              {
                "name": "config_name",
                "value": "",
                "type": "path",
                "description": "Config name"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Extract from a URL-hosted document using a specific config"
        }
      ]
    },
    {
      "info": {
        "name": "Classify",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Submit a document for asynchronous classification",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/classify_document",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Submit a document for asynchronous classification"
        },
        {
          "info": {
            "name": "Synchronously classify a document",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/classify_document_sync",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Synchronously classify a document"
        }
      ]
    },
    {
      "info": {
        "name": "Document Types",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List document types",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/document_types"
          },
          "docs": "List document types"
        },
        {
          "info": {
            "name": "Create a document type",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/document_types",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a document type"
        },
        {
          "info": {
            "name": "Retrieve a document type",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/document_types/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a document type"
        },
        {
          "info": {
            "name": "Update a document type",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.sensible.so/v0/document_types/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a document type"
        },
        {
          "info": {
            "name": "Delete a document type",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.sensible.so/v0/document_types/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a document type"
        }
      ]
    },
    {
      "info": {
        "name": "Configs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List configs for a document type",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/document_types/:type_id/configs",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              }
            ]
          },
          "docs": "List configs for a document type"
        },
        {
          "info": {
            "name": "Create a config for a document type",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/document_types/:type_id/configs",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              }
            ]
          },
          "docs": "Create a config for a document type"
        },
        {
          "info": {
            "name": "Retrieve a config",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/document_types/:type_id/configs/:name",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "name",
                "value": "",
                "type": "path",
                "description": "Config name"
              }
            ]
          },
          "docs": "Retrieve a config"
        },
        {
          "info": {
            "name": "Update a config",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.sensible.so/v0/document_types/:type_id/configs/:name",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "name",
                "value": "",
                "type": "path",
                "description": "Config name"
              }
            ]
          },
          "docs": "Update a config"
        },
        {
          "info": {
            "name": "Delete a config",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.sensible.so/v0/document_types/:type_id/configs/:name",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "name",
                "value": "",
                "type": "path",
                "description": "Config name"
              }
            ]
          },
          "docs": "Delete a config"
        },
        {
          "info": {
            "name": "List versions of a config",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/document_types/:type_id/configs/:name/versions",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "name",
                "value": "",
                "type": "path",
                "description": "Config name"
              }
            ]
          },
          "docs": "List versions of a config"
        },
        {
          "info": {
            "name": "Retrieve a specific config version",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/document_types/:type_id/configs/:name/versions/:version",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "name",
                "value": "",
                "type": "path",
                "description": "Config name"
              },
              {
                "name": "version",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a specific config version"
        },
        {
          "info": {
            "name": "Delete a specific config version",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.sensible.so/v0/document_types/:type_id/configs/:name/versions/:version",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "name",
                "value": "",
                "type": "path",
                "description": "Config name"
              },
              {
                "name": "version",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a specific config version"
        },
        {
          "info": {
            "name": "Publish a config version",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.sensible.so/v0/document_types/:type_id/configs/:name/versions/:version/publish",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "name",
                "value": "",
                "type": "path",
                "description": "Config name"
              },
              {
                "name": "version",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Publish a config version"
        }
      ]
    },
    {
      "info": {
        "name": "Reference Documents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List reference documents for a document type",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/document_types/:type_id/reference_documents",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              }
            ]
          },
          "docs": "List reference documents for a document type"
        },
        {
          "info": {
            "name": "Create a reference document",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/document_types/:type_id/reference_documents",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              }
            ]
          },
          "docs": "Create a reference document"
        },
        {
          "info": {
            "name": "Retrieve a reference document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/document_types/:type_id/reference_documents/:id",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a reference document"
        },
        {
          "info": {
            "name": "Update a reference document",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.sensible.so/v0/document_types/:type_id/reference_documents/:id",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a reference document"
        },
        {
          "info": {
            "name": "Delete a reference document",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.sensible.so/v0/document_types/:type_id/reference_documents/:id",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a reference document"
        },
        {
          "info": {
            "name": "Extract all text from a reference document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/document_types/:type_id/reference_documents/:id/extract_all_text",
            "params": [
              {
                "name": "type_id",
                "value": "",
                "type": "path",
                "description": "Document type ID"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Extract all text from a reference document"
        }
      ]
    },
    {
      "info": {
        "name": "Upload",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Generate an upload URL for a document",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/generate_upload_url/:document_type",
            "params": [
              {
                "name": "document_type",
                "value": "",
                "type": "path",
                "description": "Document type identifier"
              }
            ]
          },
          "docs": "Generate an upload URL for a document"
        },
        {
          "info": {
            "name": "Generate an upload URL for a document with a specific config",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.sensible.so/v0/generate_upload_url/:document_type/:config_name",
            "params": [
              {
                "name": "document_type",
                "value": "",
                "type": "path",
                "description": "Document type identifier"
              },
              {
                "name": "config_name",
                "value": "",
                "type": "path",
                "description": "Config name"
              }
            ]
          },
          "docs": "Generate an upload URL for a document with a specific config"
        }
      ]
    },
    {
      "info": {
        "name": "Documents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/documents"
          },
          "docs": "List documents"
        },
        {
          "info": {
            "name": "Retrieve a document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/documents/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a document"
        },
        {
          "info": {
            "name": "Update an extraction",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.sensible.so/v0/extractions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update an extraction"
        }
      ]
    },
    {
      "info": {
        "name": "Account",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List account auth tokens",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.sensible.so/v0/account/auth_tokens"
          },
          "docs": "List account auth tokens"
        }
      ]
    }
  ],
  "bundled": true
}