# SimpleDocs > API documentation for SimpleDocs — programmatic access to legal workflows, document management, and real-time event notifications. ## Docs - [Create an access token](https://docs.simpledocs.com/api-reference/authentication/create-token.md): Exchange your client credentials for a Bearer access token. Tokens expire after **2 hours**. - [Create a repository document](https://docs.simpledocs.com/api-reference/repository-documents/create-repository-document.md): Upload a document to the repository. You must provide either a `file` (multipart upload) or a `url` to fetch the document from. An optional `metadata` JSON object can be attached. - [Get a repository document](https://docs.simpledocs.com/api-reference/repository-documents/get-repository-document.md): Retrieve a single repository document by its hash ID. - [List repository documents](https://docs.simpledocs.com/api-reference/repository-documents/list-repository-documents.md): Returns a paginated list of repository documents for your company. Results are limited to non-discarded documents. - [Create a request](https://docs.simpledocs.com/api-reference/requests/create-request.md): Create a new legal request for a published workflow. The required fields and variables depend on the workflow — use the [Get workflow schema](/api-reference/workflows/get-workflow-schema) endpoint first to discover them. - [Get a request](https://docs.simpledocs.com/api-reference/requests/get-request.md): Retrieve a single legal request by its hash ID. - [Get request activity](https://docs.simpledocs.com/api-reference/requests/get-request-activity.md): Returns the activity log for a legal request, including status changes, comments, and other events. - [List requests](https://docs.simpledocs.com/api-reference/requests/list-requests.md): Returns a paginated list of legal requests for your company. Optionally filter by status. - [Create a webhook](https://docs.simpledocs.com/api-reference/webhooks/create-webhook.md): Register a new webhook endpoint. The webhook will automatically subscribe to the `execution_complete` event. - [List webhooks](https://docs.simpledocs.com/api-reference/webhooks/list-webhooks.md): Returns a paginated list of webhooks registered for your company. - [Get a workflow](https://docs.simpledocs.com/api-reference/workflows/get-workflow.md): Retrieve a single workflow by its hash ID. - [Get a workflow schema](https://docs.simpledocs.com/api-reference/workflows/get-workflow-schema.md): Returns the schema for a workflow, including required fields, required variables, and variable properties. Use this to understand what parameters are needed when creating a request for this workflow. - [List workflows](https://docs.simpledocs.com/api-reference/workflows/list-workflows.md): Returns a paginated list of workflows for your company. Optionally filter by status. - [Authentication](https://docs.simpledocs.com/authentication.md): Obtain and use API access tokens - [Introduction](https://docs.simpledocs.com/introduction.md): Build integrations with the SimpleDocs API - [Quickstart](https://docs.simpledocs.com/quickstart.md): Make your first API calls in 5 minutes - [Repository Documents](https://docs.simpledocs.com/repository-documents-guide.md): Upload and manage documents in your company's repository - [Requests](https://docs.simpledocs.com/requests-guide.md): Create legal requests and track their lifecycle - [Webhooks](https://docs.simpledocs.com/webhooks-guide.md): Receive real-time notifications when events happen in SimpleDocs - [Workflows](https://docs.simpledocs.com/workflows-guide.md): Discover and inspect workflows to create legal requests ## OpenAPI Specs - [openapi](https://docs.simpledocs.com/openapi.json)