<a id="appname-api"></a>
<a id="api"></a>
# TrialGrid API

TrialGrid exposes a versioned REST API for programmatic access to study designs, users, and document templates. Endpoints are grouped into four categories — see the lists below.

The pages under **How the API works** cover the cross-cutting concerns that apply to every endpoint: how to authenticate, how versioning is handled, how list responses are paginated and filtered, and how to explore the API interactively.

The pages under **API categories** describe the actual endpoint groups:

- The [Drafts API](api_drafts.html.md#api-drafts) — read CRF Draft objects (folders, forms, fields, edit checks, derivations, etc.) and the standards deviation explanations recorded against Library Drafts.
- The [User API](api_users.html.md#user-api) — manage user lifecycle: deactivate users, assign users to project roles, and remove project roles from users.
- The [Document Templates API](api_document_templates.html.md#api-document-templates) — list, generate and download document templates (Word, Excel, PDF, etc.) for a Draft or a Project.
- The [Draft download API](api_draft_export.html.md#api-draft-export) downloads a whole Draft as an Architect Loader Spreadsheet or an Excel workbook.

How the API works

- [Authentication and Authorization](authentication.html.md)
- [Managing your API tokens](api_tokens.html.md)
- [Versioning, Prerelease and Production](versioning.html.md)
- [Pagination](pagination.html.md)
- [Lists, filtering and object detail](lists_and_filtering.html.md)
- [Swagger and the Browseable API](swagger_and_browseable.html.md)

API categories

- [Drafts API](api_drafts.html.md)
- [User API](api_users.html.md)
- [Generating Document Templates via the API](api_document_templates.html.md)
- [Downloading a Draft via the API](api_draft_export.html.md)
