> For the complete documentation index, see [llms.txt](https://docs.safegpt.nl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.safegpt.nl/api-en/get-started/overview.md). Agents can also search and read this documentation through its [MCP server](https://docs.safegpt.nl/~gitbook/mcp).

# Overview

The SafeGPT API allows you to integrate SafeGPT functionality directly into your own applications, platforms, workflows, and internal systems.

Use the API to automate interactions with SafeGPT, connect SafeGPT to your existing software, and build secure AI-powered features on top of your own products and processes.

### What is SafeGPT?

SafeGPT is a secure AI platform designed for organizations that want to use AI in a controlled, reliable, and privacy-conscious way with a very small impact on the end user's AI experience.

### API reference and tooling

You can use the following resources while developing your integration:

| [Quickstart](https://docs.safegpt.nl/api-en/get-started/quickstart.md) | Step-by-step guide for authentication and your first API request.                     |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| Postman collection                                                     | Importable Postman collection for testing SafeGPT API endpoints.                      |
| [OpenAPI specification](https://api.safegpt.nl/openapi/v1.json)        | Machine-readable OpenAPI definition for generating clients, documentation, and tools. |

### Frequently Asked Questions

<details>

<summary>How the API is structured</summary>

All API endpoints are available under the following base URL:

```
https://api.safegpt.nl/v1/{endpoint}
```

Replace `{endpoint}` with the specific endpoint you want to call.

API requests are authenticated using bearer tokens. SafeGPT supports two authentication methods:

1. **JWT token** — a long-lived token for simple server-to-server integrations.
2. **OAuth 2.0** — the recommended method for production integrations, using refresh tokens and short-lived access tokens.

For implementation details, see the [Quickstart](https://docs.safegpt.nl/api-en/get-started/quickstart.md) guide.

</details>

<details>

<summary>What can you do with the API?</summary>

The SafeGPT API gives developers programmatic access to SafeGPT services. Depending on your configuration and permissions, you can use the API to build integrations such as:

* Connecting SafeGPT to internal business applications
* Automating AI-powered workflows
* Sending prompts or requests to SafeGPT from your own backend
* Building custom interfaces on top of SafeGPT
* Integrating SafeGPT into existing portals, dashboards, or SaaS platforms
* Managing users, workspaces, or access from external systems
* Connecting SafeGPT to internal data sources or business processes
* Creating repeatable and controlled AI interactions
* Logging, monitoring, or auditing AI-related activity

</details>
