Entity Management
Graph API Documentation
Overview
The Graph API Service provides endpoints for generating and managing organizational graphs, shareholder relationships, and Visual Link Analysis (VLA) functionality.
Endpoints
1. Shareholder Graph Creation
Initiate the process of creating a shareholder graph.
Endpoint: /v1/api/graph/shareholder
Method: POST
Content-Type: application/json
API Details
| Resource URL | /v1/api/graph/shareholder |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| link | string | Yes | Link to the source data |
| source_name | string | Yes | Name of the source |
| entity_id | string | Yes | Unique identifier for the entity |
| client_id | string | Yes | Client identifier |
| levels | integer | Yes | Number of levels to analyze |
| min_indirect_percentage | integer | Yes | Minimum indirect percentage threshold |
| max_indirect_percentage | integer | Yes | Maximum indirect percentage threshold |
| username | string | Yes | Username of the requester |
| session_id | string | Yes | Session identifier |
Example Request
2. Generated Graph Retrieval
Retrieve a generated graph using its request ID.
Endpoint: /v1/api/graphshareholder/{request_id}
Method: GET
API Details
| Resource URL | /v1/api/graphshareholder/{request_id} |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| request_id | string | Yes | Unique identifier of the graph request |
3. VLA CSV Upload
Upload a CSV file for Visual Link Analysis.
Endpoint: /v1/api/vla/upload_csv
Method: POST
Content-Type: multipart/form-data
API Details
| Resource URL | /v1/api/vla/upload_csv |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Type | Location | Required | Description |
|---|---|---|---|---|
| graph_name | string | query | Yes | Name of the graph |
| file | binary | form-data | Yes | CSV file to upload |
Example Request
4. Graph Type Retrieval
Get information about a specific graph type.
Endpoint: /v1/api/vla/graph_type
Method: GET
API Details
| Resource URL | /v1/api/vla/graph_type |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| graph_id | string | Yes | Unique identifier of the graph |
| graph_type | string | Yes | Type of the graph |
Error Responses
Validation Error Response
Response Codes
| Status Code | Description |
|---|---|
| 200 | Successful operation |
| 422 | Validation Error |
Notes
- File uploads must be in CSV format for VLA functionality
- Graph levels should be specified as positive integers
- Percentage thresholds should be between 0 and 100
- Authentication details should be specified by the implementation
- Rate limiting details should be specified by the implementation
- Session IDs should be maintained throughout the graph generation process