---
updatedAt: 2026-07-21T14:55:00.000Z
agentTools:
  projectIndex: https://docs.sikoia.com/llms.txt
---

# Request online data

### Requests online data for a company.

Provide the `company_id` and optionally specify the `company_name`. If the company_name is specified, it will override the company entity name.


Provide the `company_id` and optionally specify the `company_name`. If the `company_name` is specified, it will override the company entity name.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Sikoia API",
    "termsOfService": "https://sikoia.com/About/Terms",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.sikoia.com",
      "description": "API (Production)"
    },
    {
      "url": "https://oauth2.sikoia.com",
      "description": "Authorization Server (Production)"
    },
    {
      "url": "https://api-staging.sikoia.com",
      "description": "API (Staging)"
    },
    {
      "url": "https://oauth2-staging.sikoia.com",
      "description": "Authorization Server (Staging)"
    }
  ],
  "paths": {
    "/v2/company-online-data": {
      "post": {
        "tags": [
          "Online Data"
        ],
        "summary": "Request online data",
        "description": "### Requests online data for a company.\r\n\r\nProvide the `company_id` and optionally specify the `company_name`. If the company_name is specified, it will override the company entity name.\r\n",
        "operationId": "POST_v2-company-online-data",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SikoiaSharedModels.BusinessSupport.OnlineData.Request.OnlineDataRequest"
              },
              "example": {
                "company_id": "string",
                "company_name": "string"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Request online data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SikoiaSharedModels.BusinessSupport.OnlineData.Response.OnlineDataResponse"
                },
                "example": {
                  "request_id": "98aacc2c-5bcd-43da-8425-cbd17034e826",
                  "status": "Complete",
                  "company_id": "78662640-73fc-4fa9-8367-ef4660d35cee",
                  "entity_type": "company",
                  "datetime_requested": "2024-02-12T15:34:25.4850000+00:00",
                  "message": "string",
                  "company_name": "Acme Inc"
                }
              }
            }
          },
          "400": {
            "description": "Company Entity Deleted/Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SikoiaCore.Common.SikoiaErrorResponse"
                },
                "example": {
                  "type": "InvalidRequest",
                  "status": 400,
                  "title": "Validation Errors",
                  "detail": "Entity Id is required.",
                  "correlation_id": "98afc8e2-0250-4d15-8656-5e6556867c76"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SikoiaCore.Common.SikoiaErrorResponse"
                },
                "example": {
                  "type": "InvalidToken",
                  "status": 401,
                  "title": "Invalid Token",
                  "detail": "Invalid token",
                  "correlation_id": "3b38f969-2105-4802-b61c-377bc2f91a34"
                }
              }
            }
          },
          "422": {
            "description": "Company Entity Missing Information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SikoiaCore.Common.SikoiaErrorResponse"
                },
                "example": {
                  "type": "UnprocessableRequest",
                  "status": 422,
                  "title": "Entity Missing Information",
                  "detail": "Entity with id de40ac90-0671-418f-9ecf-151bb41699bd is missing required information, please update entity.",
                  "correlation_id": "70806eca-2e4f-413d-8c6a-15ea15b72882"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SikoiaCore.Common.SikoiaErrorResponse"
                },
                "example": {
                  "type": "RateLimit",
                  "status": 429,
                  "title": "Too Many Requests",
                  "detail": "You've exceeded the maximum API request limit per minute. Please try again later.",
                  "correlation_id": "0a12e18b-0097-4be9-9dd6-9c1a34057843"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SikoiaCore.Common.SikoiaErrorResponse"
                },
                "example": {
                  "type": "ServerError",
                  "status": 500,
                  "title": "Internal Server Error",
                  "detail": "Something has gone wrong, please try again",
                  "correlation_id": "9df70353-0114-4f4a-afc4-41d8f98af6f9"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SikoiaCore.Common.SikoiaErrorResponse": {
        "title": "Error Response",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The error type",
            "readOnly": true
          },
          "status": {
            "type": "integer",
            "description": "HTTP status code of the error",
            "format": "HttpCode",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "description": "A short description of the error",
            "readOnly": true
          },
          "detail": {
            "type": "string",
            "description": "More details about what went wrong",
            "readOnly": true
          },
          "correlation_id": {
            "type": "string",
            "description": "Correlation ID, please include this in any support tickets raised",
            "readOnly": true
          }
        },
        "additionalProperties": false,
        "description": "See the [Response Guide](https://docs.sikoia.com/docs/api-behaviour#responses) for more detail "
      },
      "SikoiaSharedModels.BusinessSupport.OnlineData.Request.OnlineDataRequest": {
        "title": "Online Data Request",
        "required": [
          "company_id"
        ],
        "type": "object",
        "properties": {
          "company_id": {
            "minLength": 1,
            "pattern": "^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$",
            "type": "string",
            "description": "Sikoia ID for the Company"
          },
          "company_name": {
            "type": "string",
            "description": "The legal name of the company",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SikoiaSharedModels.BusinessSupport.OnlineData.Response.OnlineDataResponse": {
        "title": "Online Data Response",
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "description": "Sikoia ID for the request",
            "format": "uuid",
            "readOnly": true,
            "example": "98aacc2c-5bcd-43da-8425-cbd17034e826"
          },
          "status": {
            "type": "string",
            "description": "The status of the request(`Complete` `Failed`)",
            "nullable": true,
            "example": "Complete"
          },
          "company_id": {
            "type": "string",
            "description": "Sikoia ID for the Company",
            "format": "uuid",
            "readOnly": true,
            "example": "78662640-73fc-4fa9-8367-ef4660d35cee"
          },
          "entity_type": {
            "enum": [
              "company",
              "person",
              "case"
            ],
            "type": "string",
            "description": "The type of entity",
            "nullable": true,
            "example": "company"
          },
          "datetime_requested": {
            "type": "string",
            "description": "The time the request was made",
            "nullable": true,
            "readOnly": true,
            "example": "2024-02-12T15:34:25.485Z"
          },
          "message": {
            "type": "string",
            "description": "Additional detail about the request",
            "nullable": true
          },
          "company_name": {
            "type": "string",
            "description": "The name of the company",
            "nullable": true,
            "example": "Acme Inc"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "authorizationHeader": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "name": "apikey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "authorizationHeader": []
    },
    {
      "apiKeyHeader": []
    }
  ]
}
```