Jump to Content
Spartera
API Reference
v1.0

Log InSpartera
API Reference
Log In
v1.0API Reference
All
Pages
Start typing to search…

Spartera API Documentation

  • API Keys
    • Get all API keys for a company. Returns masked API keys for security (sk_****1234).get
    • Create single API key. Returns the actual sk_ key (only time it's exposed) and api_key_id for future operations.post
    • Delete (deactivate) single API key by api_key_id. Uses the api_key_id returned during creation for clean identification. Fixed to use correct primary key lookup.del
    • Get single API key by ID. Returns masked API key for security (sk_****1234).get
    • Update an existing API key by ID. Can update metadata like name, expiration, rate limits, etc. Cannot update the actual key value (for security).patch
    • Explicitly revoke an API key with reason tracking. This is different from delete as it includes revocation metadata.post
    • Get usage statistics for a specific API key. Returns usage count, last used date, failed attempts, etc.get
  • Alerts
    • Get a list of all alerts for a specific userget
    • POST /companies/{company_id}/users/{user_id}/alertspost
    • Get all alerts for a specific asset (by user)get
    • Get all alerts for a specific assetget
    • Delete single alert by IDdel
    • Get single alert by IDget
    • Update an existing alert by IDpatch
  • Asset Price History
    • Get all price history records for a specific assetget
    • Create a new price history record for an assetpost
    • Get the currently active price for an assetget
    • Calculate the credit equivalent for a given USD price without savingpost
    • POST /companies/{company_id}/assets/{asset_id}/prices/discountpost
    • Delete single price history record by IDdel
    • Get single price history record by IDget
    • Update an existing price history record by IDpatch
  • Assets
    • Process (analyze) an asset with dynamic rate limiting applied via decorator.get
    • Process (analyze) an asset with dynamic rate limiting applied via decorator.post
    • Get all assets for a specific companyget
    • Create a new assetpost
    • Search and filter assets with advanced options Query Parameters: q: Search query string category: Filter by category sport: Filter by sport tag sort_by: Sort field (name|recent|popular|trending) limit: Number of results (default 20, max 100) offset: Offset for pagination include_recommended: Include recommendations (true/false) include_schema: Include asset_schema in response (true/false, default false)get
    • Get statistics for all assets the user has access toget
    • Delete single asset by IDdel
    • Get single asset by IDget
    • Update an existing asset by IDpatch
    • Get the information schema for a specific asset's tableget
    • Retrieve and save an asset's information schemaget
    • Get AI-predicted pricing for a specific assetget
    • Scan a column in the asset's table to retrieve distinct values Request Body: column (str): Column name to scan limit (int, optional): Maximum distinct values to return (default 1000, max 5000) Returns: Flask Response with scan resultspost
    • Get statistics for a specific asset (public endpoint)get
    • GET /companies/{company_id}/assets/{asset_id}/testget
    • POST /companies/{company_id}/assets/{asset_id}/testpost
  • Cloud Providers
    • Get a list of all cloud providersget
    • Get single cloud provider by IDget
  • Companies
    • Get details of the requestor's own companyget
    • Update an existing company by IDpatch
    • Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, includeget
    • Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_byget
    • Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter)get
    • Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1sget
    • Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metricsget
    • Get all objects (connections, assets) of a single companyget
    • Get the total number of requests allocated in the company's current subscription plan.get
    • Get company request usage data for a specific month.get
  • Creating Data Connections
    • Get all connections for a specific companyget
    • Create a new connection by IDpost
    • Delete single connection by IDdel
    • Get single connection by IDget
    • Update an existing connection by IDpatch
    • Retrieve the information schema for the specified connectionget
    • Test the specified connectionget
  • Favorites
    • Get a list of all favorites for a specific userget
    • POST /companies/{company_id}/users/{user_id}/favoritespost
    • Get all favorites for the specified user in a specific categoryget
    • Check if the specified user has favorited a specific assetget
    • Get all favorites for the specified user that don't have a categoryget
    • Delete single favorite by ID (unfavorite an asset)del
    • Get single favorite by IDget
    • Update an existing favorite by IDpatch
  • Job Functions
    • Get a list of all job functionsget
    • Get single job function by IDget
  • Storage Engines
    • Get a list of all storage enginesget
    • Get single storage engine by IDget
  • Users
    • Get a list of all users in a companyget
    • Create a new userpost
    • POST /companies/{company_id}/users/google-oauthpost
    • Logout current user by revoking their sessionspost
    • Delete single user by IDdel
    • Get single user by IDget
    • Update an existing user by IDpatch
    • Get current authenticated user's profile.get
  • Welcome to Spartera
    • Platform Overview
    • Quickstart Guide
    • Use Cases & Examples
  • Analytics Platform
    • Assets Overview
    • Creating Assets
    • Supported Data Sources
    • Publishing to Marketplace
    • Testing and Validation
    • AutoInsights
  • External API Integration - Overview
    • Requirements & Standards
    • Response Schema Specification
    • Credential Formats Reference
    • Connecting Your API
    • Function ID Routing
    • Creating Assets from APIs
  • Marketplace Platform
    • Marketplace Overview
    • Buying Insights
    • Selling Insights
    • Pricing Models
    • Revenue Sharing
    • Quality Guidelines
  • Backend Platform Best Practices
    • Denormalized Tables Best Practices
    • Picking the Proper Granularity of Records
    • Raw vs Semantic Layers Architecture
    • Which Chart Type is Best - Selection Guide
    • IP Whitelisting
  • API Overview
    • Authentication Endpoints
    • Analytics Endpoints
    • Marketplace Endpoints
    • Insights Endpoints
    • Billing Endpoints
    • User Management Endpoints
    • REST API Examples
  • SDKs & Libraries
    • Go SDK
    • Ruby SDK
    • JavaScript SDK
    • Python SDK
    • PHP SDK
    • Java SDK
  • FAQ Platform Overview
    • Data Connections
    • Creating Assets
    • Marketplace
    • Distribution & APIs
    • Performance & Processing
    • Getting Help
  • Legal & Compliance
    • Terms of Service
    • Privacy Policy
    • Security & Compliance
  • Video Guides
  • Security & Compliance
  • Credit System
  • SparteraConnect
  • Credential Formats Reference
  • Security & Compliance
  • Endpoints
    • Get all endpoints for a specific company with pagination, filtering, and sortingget
    • Create a new endpointpost
    • Get schema information for a connection Query parameters: include_fields: Whether to include field information (default: true) schemas: Optional comma-separated schemas to include tables: Optional comma-separated tables to includeget
    • Delete single endpoint by IDdel
    • Get single endpoint by IDget
    • Update an existing endpoint by IDpatch
    • GET /companies/{company_id}/endpoints/{endpoint_id}/available-endpointsget
    • Execute an endpoint with pagination support. Customer-facing route that returns paginated data. Query params: ?start=0&limit=100get
    • GET /companies/{company_id}/endpoints/{endpoint_id}/keysget
    • POST /companies/{company_id}/endpoints/{endpoint_id}/keyspost
    • DELETE /companies/{company_id}/endpoints/{endpoint_id}/keys/{api_key_id}del
    • Get usage statistics for an endpoint Query parameters: days: Number of days to analyze (default: 30)get
    • Test an endpoint with sample data Request body (optional): limit: Number of sample rows to return (default: 10)get
    • GET /companies/{company_id}/endpoints/{endpoint_id}/urlget
  • Postgen Integrations
    • Get a list of all postgen integrations for the company. All company users can view integrations.get
    • POST /companies/{company_id}/postgen_integrationspost
    • POST /companies/{company_id}/postgen_integrations/testpost
    • Delete single integration by ID. Also deletes credentials from GCP Secret Manager.del
    • Get single integration by ID.get
    • Update an existing integration by ID. Can update credentials, is_active status, etc.patch
  • Posts
    • Get a list of all posts for the user's company. Supports filtering, sorting, pagination.get
    • POST /companies/{company_id}/postspost
    • GET /companies/{company_id}/posts/summaryget
    • Delete single post by ID.del
    • Get single post by ID.get
    • Update an existing post by ID. Note: last_edited_at is automatically updated.patch
    • Get all publications for a post. Shows where this post has been published to external platforms. Returns: Array of publication records with platform, URL, statusget
    • Publish a post (make it publicly visible).post
    • Publish a post to an external platform via an integration. Args: post_id: ID of the post to publish integration_id: ID of the integration to use (from postgen_integrations) Returns: Publication record with external_url and external_post_idpost
    • Unpublish a post (make it private/draft again).post
    • Increment view count for a post. Public endpoint (no authentication required).post
  • Creating Visualizations
  • External API Connections
  • Python Examples
  • Security & Compliance
  • Asset Usecases
    • Get a list of all asset use casesget
    • Get single asset use case by IDget
  • Industries
    • Get a list of all industriesget
    • Get a list of industries that have active marketplace productsget
    • Get single industry by IDget
Powered by 
  1. Spartera API Documentation
  2. Marketplace Platform

Marketplace Overview