API Documentation
Dashboard

Introduction

The Sentrasa API lets you programmatically scrape, search, and analyze Reddit data from your workspace.

Overview

The Sentrasa API gives you programmatic access to your workspace data. Use it to kick off scrape jobs, search posts, pull analytics, configure alerts, and export data — all from your own code or integrations.

Every API request is scoped to a workspace and authenticated with an API key. You get an API key from the dashboard under Settings > API Keys.

Base URL

All API requests should be made to:

bash
https://api.sentrasa.com/api/v1

Workspace-scoped endpoints follow the pattern:

bash
https://api.sentrasa.com/api/v1/workspaces/{workspace_id}/...

You can find your workspace ID in the dashboard URL or via the Settings page.

Quick Start

  1. Go to Settings > API Keys in the dashboard and create a key.
  1. Make your first request:
bash
curl https://api.sentrasa.com/api/v1/workspaces/{workspace_id}/posts \
  -H "X-API-Key: rp_your_api_key"
  1. That's it — you'll get back your scraped posts as JSON.

Error Handling

The API uses standard HTTP status codes. Error responses include a JSON body with a detail field:

json
{
  "detail": "Not found"
}

Common status codes: 200 OK, 201 Created, 400 Bad Request, 401 Unauthorized (invalid or missing API key), 402 Payment Required (plan limit reached), 404 Not Found, 422 Validation Error, 429 Rate Limited, 500 Internal Server Error.