# Overview

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](/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](/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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.safegpt.nl/api-en/get-started/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
