API Overview
Ground exposes a REST API for managing sources, jobs, search, and trust policy.Base URL
Authentication
Ground uses API keys for authentication. You can generate and manage your API keys in the Dashboard. All requests must include theAuthorization header with your bearer token.
Endpoints
Sources
| Method | Endpoint | Description |
|---|---|---|
POST | /sources | Create a source |
GET | /sources | List all sources |
GET | /sources/{id} | Get a source |
PATCH | /sources/{id} | Update a source |
DELETE | /sources/{id} | Delete a source |
POST | /sources/{id}/sync | Trigger sync |
Jobs
| Method | Endpoint | Description |
|---|---|---|
GET | /jobs | List all jobs |
GET | /jobs/{id} | Get job status |
POST | /jobs/{id}/cancel | Cancel a job |
Search
| Method | Endpoint | Description |
|---|---|---|
POST | /search | Search indexed content with citations |
Policy
| Method | Endpoint | Description |
|---|---|---|
GET | /policy | Get trust policy |
PUT | /policy | Update trust policy |
POST | /policy/reset | Reset to defaults |
Common Response Codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
204 | No Content (success, no body) |
400 | Bad Request |
401 | Unauthorized (invalid or missing API key) |
404 | Not Found |
409 | Conflict (e.g., job already running) |
429 | Too Many Requests (rate limit exceeded) |
500 | Internal Server Error |