Jump to Content
API Reference
v1.0
Log In
API Reference
Log In
Moon (Dark Mode)
Sun (Light Mode)
v1.0
API Reference
Get single user by ID
Search
JUMP TO
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 user
get
POST /companies/{company_id}/users/{user_id}/alerts
post
Get all alerts for a specific asset (by user)
get
Get all alerts for a specific asset
get
Delete single alert by ID
del
Get single alert by ID
get
Update an existing alert by ID
patch
Asset Price History
Get all price history records for a specific asset
get
Create a new price history record for an asset
post
Get the currently active price for an asset
get
Calculate the credit equivalent for a given USD price without saving
post
POST /companies/{company_id}/assets/{asset_id}/prices/discount
post
Delete single price history record by ID
del
Get single price history record by ID
get
Update an existing price history record by ID
patch
Assets
Process (analyze) an asset.
get
Get all assets for a specific company
get
Create a new asset
post
Get statistics for all assets the user has access to
get
Delete single asset by ID
del
Get single asset by ID
get
Update an existing asset by ID
patch
Get the information schema for a specific asset's table
get
Retrieve and save an asset's information schema
get
Get AI-predicted pricing for a specific asset
get
Get statistics for a specific asset (public endpoint)
get
Test out an Asset (on a subset of data)
get
Cloud Providers
Get a list of all cloud providers
get
Get single cloud provider by ID
get
Companies
Get details of the requestor's own company
get
Update an existing company by ID
patch
Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include
get
Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by
get
Get comprehensive dashboard analytics for seller dashboard Includes all metrics needed for dashboard charts in one call Query params: start_date, end_date, period (day/week/month/quarter)
get
Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
get
Get all objects (connections, assets) of a single company
get
Get the total number of requests allocated in the company's current subscription plan.
get
Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included.
get
Creating Data Connections
Get all connections for a specific company
get
Create a new connection by ID
post
Delete single connection by ID
del
Get single connection by ID
get
Update an existing connection by ID
patch
Retrieve the information schema for the specified connection
get
Test the specified connection
get
Favorites
Get a list of all favorites for a specific user
get
POST /companies/{company_id}/users/{user_id}/favorites
post
Get all favorites for the specified user in a specific category
get
Check if the specified user has favorited a specific asset
get
Get all favorites for the specified user that don't have a category
get
Delete single favorite by ID (unfavorite an asset)
del
Get single favorite by ID
get
Update an existing favorite by ID
patch
Job Functions
Get a list of all job functions
get
Get single job function by ID
get
Storage Engines
Get a list of all storage engines
get
Get single storage engine by ID
get
Users
Get a list of all users in a company
get
Create a new user
post
Delete single user by ID
del
Get single user by ID
get
Update an existing user by ID
patch
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
Marketplace Platform
Marketplace Overview
Buying Insights
Selling Insights
Pricing Models
Revenue Sharing Model
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
Powered by
Get single user by ID
get
https://api.spartera.com/companies/
{company_id}
/users/
{user_id}
Language
Shell
Node
Ruby
PHP
Python
Credentials
Header
Header
URL
Base URL
https://api.spartera.com
/companies/{company_id}/users/{user_id}
Response
Click
Try It!
to start a request and see the response here!