Data sources
Manage the data sources connected to your account. Each data source represents a system from which GrowPanel can import metrics (Stripe, CSV, Google Sheets, etc.).
Base URL: /data/data_sources
List data sources
GET /data/data_sources
Query parameters:
| Parameter | Type | Description |
|---|---|---|
type | string | Optional. Filter by type (stripe, api, csv, google-sheets, recurly, chargebee) |
Response:
{
"result": [
{
"id": "uuid",
"account_id": "your_account_id",
"name": "Stripe",
"type": "stripe",
"created_at": "2025-10-02T12:00:00Z"
}
]
}Create a new data source
POST /data/data_sources
Body parameters:
| Parameter | Type | Description |
|---|---|---|
name | string | Required. Name of the data source. |
type | string | Required. One of: stripe, api, csv, google-sheets, recurly, chargebee. |
Example request:
{
"name": "Data from legacy system",
"type": "google-sheets"
}Response (201 Created):
{
"id": "2f7a9e3e-4f6d-4a3c-8b2a-0f1b4e7d8c9a",
"account_id": "your_account_id",
"name": "Data from legacy system",
"type": "google-sheets",
"created_at": "2025-10-02T12:00:00Z"
}Update a data source
PUT /data/data_sources/:id
Path parameters:
| Parameter | Type | Description |
|---|---|---|
id | string | Required. The UUID of the data source to update. |
Body parameters: (only fields that need updating)
| Parameter | Type | Description |
|---|---|---|
name | string | Optional. New name for the data source. |
type | string | Optional. New type (stripe, api, csv, google-sheets, recurly, chargebee). |
Example request:
{
"name": "Stripe Sandbox",
"type": "stripe"
}Response (200 OK):
{
"id": "2f7a9e3e-4f6d-4a3c-8b2a-0f1b4e7d8c9a",
"account_id": "your_account_id",
"name": "Stripe Sandbox",
"type": "stripe",
"created_at": "2025-10-02T12:00:00Z"
}Delete a data source
DELETE /data/data_sources/:id
Path parameters:
| Parameter | Type | Description |
|---|---|---|
id | string | Required. The UUID of the data source to delete. |
Response (204 No Content):
Deletes the data source. Returns no body.