You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This documentation provides detailed information on the API endpoints available in Open Cap Stack V2.0. The API follows RESTful principles and is designed to manage corporations, issuers, investors, securities, and capitalization tables. All endpoints require authentication via OAuth 2.0, and responses are returned in JSON format.
Authentication
Endpoint:/api/v2/auth/token Method:POST Description: Generate an OAuth 2.0 access token for API authentication.
Endpoint:GET /api/v2/compensation/benchmarks/attributes Description: Retrieve all valid compensation benchmark attributes based on a corporation's plan.
All API responses include appropriate HTTP status codes:
200 OK: The request was successful.
201 Created: A new resource has been successfully created.
204 No Content: The request was successful, but there is no content to return.
400 Bad Request: The request could not be understood or was missing required parameters.
401 Unauthorized: Authentication failed or the user does not have permissions for the requested operation.
404 Not Found: The requested resource could not be found.
500 Internal Server Error: An error occurred on the server.
Error Response Example:
{
"error": {
"code": "401",
"message": "Unauthorized: Access is denied due to invalid credentials."
}
}
Versioning
This API uses versioning in the URL to manage different versions (e.g., /api/v2/). This allows for backward compatibility and smooth transitions when new features or changes are introduced.
Rate Limiting
The API enforces rate limiting to ensure fair use and prevent abuse. The rate limit headers include:
X-RateLimit-Limit: The maximum number of requests that the consumer is permitted to make in an hour.
X-RateLimit-Remaining: The number of requests remaining in the current rate limit window.
X-RateLimit-Reset: The time at which the rate limit window resets.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Overview
This documentation provides detailed information on the API endpoints available in Open Cap Stack V2.0. The API follows RESTful principles and is designed to manage corporations, issuers, investors, securities, and capitalization tables. All endpoints require authentication via OAuth 2.0, and responses are returned in JSON format.
Authentication
Endpoint:
/api/v2/auth/token
Method:
POST
Description: Generate an OAuth 2.0 access token for API authentication.
Request:
Response:
Corporations
1. List Corporations
Endpoint:
GET /api/v2/corporations
Description: Retrieve a list of corporations that the authenticated user has access to.
Response:
2. Get Corporation Details
Endpoint:
GET /api/v2/corporations/{corporationId}
Description: Retrieve detailed information about a specific corporation.
Response:
3. Create Corporation
Endpoint:
POST /api/v2/corporations
Description: Create a new corporation.
Request:
Response:
4. Update Corporation
Endpoint:
PUT /api/v2/corporations/{corporationId}
Description: Update the details of an existing corporation.
Request:
Response:
Compensation
1. Get Compensation Benchmark Attributes
Endpoint:
GET /api/v2/compensation/benchmarks/attributes
Description: Retrieve all valid compensation benchmark attributes based on a corporation's plan.
Response:
2. Get Compensation Benchmarks
Endpoint:
GET /api/v2/compensation/benchmarks
Description: Retrieve all compensation benchmarks based on a corporation's compensation plan.
Response:
Issuers
1. List Issuers
Endpoint:
GET /api/v2/issuers
Description: Retrieve a list of issuers.
Response:
2. Get Issuer Details
Endpoint:
GET /api/v2/issuers/{issuerId}
Description: Retrieve details of a specific issuer.
Response:
3. Create Issuer
Endpoint:
POST /api/v2/issuers
Description: Create a new issuer.
Request:
Response:
4. Update Issuer
Endpoint:
PUT /api/v2/issuers/{issuerId}
Description: Update the details of an existing issuer.
Request:
Response:
Investors
1. List Firms
Endpoint:
GET /api/v2/investors/firms
Description: Retrieve a list of investment firms.
Response:
2. List Funds
Endpoint:
GET /api/v2/investors/firms/{firmId}/funds
Description: Retrieve the investment funds of a given investment firm.
Response:
Securities
1. List Securities
Endpoint:
GET /api/v2/securities
Description: Retrieve a list of securities.
Response:
2. Get Security Details
Endpoint:
GET /api/v2/securities/{securityId}
Description: Retrieve detailed information about a specific security.
Response:
Capitalization Tables
1. Get Capitalization Table
Endpoint:
GET /api/v2/capitalization-tables/{capTableId}
Description: Retrieve the capitalization table for a corporation as of a specific date.
Response:
Error Handling
All API responses include appropriate HTTP status codes:
200 OK
: The request was successful.201 Created
: A new resource has been successfully created.204 No Content
: The request was successful, but there is no content to return.400 Bad Request
: The request could not be understood or was missing required parameters.401 Unauthorized
: Authentication failed or the user does not have permissions for the requested operation.404 Not Found
: The requested resource could not be found.500 Internal Server Error
: An error occurred on the server.Error Response Example:
Versioning
This API uses versioning in the URL to manage different versions (e.g.,
/api/v2/
). This allows for backward compatibility and smooth transitions when new features or changes are introduced.Rate Limiting
The API enforces rate limiting to ensure fair use and prevent abuse. The rate limit headers include:
X-RateLimit-Limit
: The maximum number of requests that the consumer is permitted to make in an hour.X-RateLimit-Remaining
: The number of requests remaining in the current rate limit window.X-RateLimit-Reset
: The time at which the rate limit window resets.Beta Was this translation helpful? Give feedback.
All reactions