Skip to main content
GET
/
api
/
enterprise
/
request
/
result
const requestOptions = {
  method: "GET",
  redirect: "follow"
};

fetch("{{path}}/api/enterprise/request/result/?request_id=11db67b6-8345-4837-950f-87bbd8d7dcbe", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
{
    "request_id": "d7a78d10-663a-493f-9b79-be1e6094f3bb",
    "status": "COMPLETED",
    "result": {
        "tesla-motors": {
            "firmographics": {
                "name": "Tesla",
                "website": "https://www.tesla.com",
                "location": "Austin, United States",
                "founded": 2003,
                "type": "public",
                "operating_status": "IPO",
                "ticker": "NASDAQ:TSLA"
            }
        }
    }
}

Overview

Retrieves the result of a previously submitted API request.

Endpoint Details

  • Method: GET
  • Endpoint: /api/enterprise/request/result/

Authentication requirements

  • Include a valid JWT token in your request header
  • If you don’t have a token yet, you can get one from the /auth/token/ endpoint first.

Request

Request Parameters

Header Parameters

token
string
required
JWT token obtained from the Authentication request

Query Parameters

request_id
string
required
The unique identifier of the async request whose status is being checked. Example: 11db67b6-8345-4837-950f-87bbd8d7dcbe

Response

Successful Response Fields

request_id
string
Request ID of the initiated request
status
string
Status of the request
result
array
Result depending on the request
const requestOptions = {
  method: "GET",
  redirect: "follow"
};

fetch("{{path}}/api/enterprise/request/result/?request_id=11db67b6-8345-4837-950f-87bbd8d7dcbe", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
{
    "request_id": "d7a78d10-663a-493f-9b79-be1e6094f3bb",
    "status": "COMPLETED",
    "result": {
        "tesla-motors": {
            "firmographics": {
                "name": "Tesla",
                "website": "https://www.tesla.com",
                "location": "Austin, United States",
                "founded": 2003,
                "type": "public",
                "operating_status": "IPO",
                "ticker": "NASDAQ:TSLA"
            }
        }
    }
}