Reportei marketing report generation API via curl. Use this skill to manage clients, reports, templates, integrations and webhooks for automated marketing analytics.
/plugin marketplace add vm0-ai/api0/plugin install api0@api0This skill inherits all available tools. When active, it can use any tool Claude has access to.
Use Reportei via direct curl calls to generate and manage marketing reports with automated analytics.
Official docs:
https://app.reportei.com/docs/api
Use this skill when you need to:
export REPORTEI_API_TOKEN="your-api-token"
https://app.reportei.com/api/v1
Important: When using
$VARin a command that pipes to another command, wrap the command containing$VARinbash -c '...'. Due to a Claude Code bug, environment variables are silently cleared when pipes are used directly.bash -c 'curl -s "https://api.example.com" -H "Authorization: Bearer $API_KEY"' | jq .
Retrieve details of your company associated with the token:
bash -c 'curl -s -X GET "https://app.reportei.com/api/v1/me" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}"' | jq .
Response:
{
"company": {
"id": 1,
"name": "Your Company",
"logo": "logo.jpeg",
"type": "agency",
"potential_clients": "11-15",
"company_specialty": "paid traffic"
}
}
Retrieve all report templates in your company:
bash -c 'curl -s -X GET "https://app.reportei.com/api/v1/templates" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}"' | jq '.data[] | {id, title, used_count}
Retrieve all client projects:
bash -c 'curl -s -X GET "https://app.reportei.com/api/v1/clients" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}"' | jq .
Retrieve details of a specific client:
CLIENT_ID="your-client-id"
bash -c 'curl -s -X GET "https://app.reportei.com/api/v1/clients/${CLIENT_ID}" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}"' | jq .
Get all reports for a specific client:
CLIENT_ID="your-client-id"
bash -c 'curl -s -X GET "https://app.reportei.com/api/v1/clients/${CLIENT_ID}/reports" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}"' | jq .
Retrieve details of a specific report:
REPORT_ID="your-report-id"
bash -c 'curl -s -X GET "https://app.reportei.com/api/v1/reports/${REPORT_ID}" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}"' | jq .
Get all integrations for a specific client:
CLIENT_ID="your-client-id"
bash -c 'curl -s -X GET "https://app.reportei.com/api/v1/clients/${CLIENT_ID}/integrations" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}"' | jq .
Retrieve details of a specific integration:
INTEGRATION_ID="your-integration-id"
bash -c 'curl -s -X GET "https://app.reportei.com/api/v1/integrations/${INTEGRATION_ID}" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}"' | jq .
List available widgets for an integration:
INTEGRATION_ID="your-integration-id"
bash -c 'curl -s -X GET "https://app.reportei.com/api/v1/integrations/${INTEGRATION_ID}/widgets" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}"' | jq .
Retrieve the value of specific widgets:
INTEGRATION_ID="your-integration-id"
bash -c 'curl -s -X POST "https://app.reportei.com/api/v1/integrations/${INTEGRATION_ID}/widgets/value" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}" -H "Content-Type: application/json" -d '"'"'{
"widgets": ["widget_id_1", "widget_id_2"],
"start_date": "2024-01-01",
"end_date": "2024-01-31"
}'"'"' | jq .'
Create a new report programmatically:
bash -c 'curl -s -X POST "https://app.reportei.com/api/v1/create_report" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}" -H "Content-Type: application/json" -d '"'"'{
"client_id": "your-client-id",
"template_id": "your-template-id",
"start_date": "2024-01-01",
"end_date": "2024-01-31"
}'"'"' | jq .'
Create a new dashboard:
bash -c 'curl -s -X POST "https://app.reportei.com/api/v1/create_dashboard" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}" -H "Content-Type: application/json" -d '"'"'{
"client_id": "your-client-id",
"name": "My Dashboard"
}'"'"' | jq .'
Add an entry to the client timeline:
bash -c 'curl -s -X POST "https://app.reportei.com/api/v1/add_to_timeline" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}" -H "Content-Type: application/json" -d '"'"'{
"client_id": "your-client-id",
"title": "Campaign Launched",
"description": "New marketing campaign started"
}'"'"' | jq .'
Get available webhook event types:
bash -c 'curl -s -X GET "https://app.reportei.com/api/v1/webhook/events" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}"' | jq .
Subscribe to webhook notifications:
bash -c 'curl -s -X POST "https://app.reportei.com/api/v1/webhooks/subscribe" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}" -H "Content-Type: application/json" -d '"'"'{
"url": "https://your-webhook-endpoint.com/webhook",
"events": ["report.created", "report.updated"]
}'"'"' | jq .'
Unsubscribe from webhook notifications:
bash -c 'curl -s -X POST "https://app.reportei.com/api/v1/webhooks/unsubscribe" -H "Authorization: Bearer ${REPORTEI_API_TOKEN}" -H "Content-Type: application/json" -d '"'"'{
"webhook_id": "your-webhook-id"
}'"'"' | jq .'
| Type | Description |
|---|---|
agency | Marketing agency |
freelancer | Independent professional |
company | In-house marketing team |
| Field | Description |
|---|---|
id | Company unique identifier |
name | Company name |
logo | Logo filename |
type | Company type |
potential_clients | Client range |
company_specialty | Main focus area |
| Field | Description |
|---|---|
id | Template unique identifier |
title | Template name |
description | Template description |
used_count | Times template has been used |
created_at | Creation timestamp |
updated_at | Last update timestamp |
/clients endpoint first/templates endpoint