Skip to main content
GET
/
entities
/
{entityId}
/
insights
/
corporate-structure
/
current-powers
Get current powers
curl --request GET \
  --url https://api.syntage.com/entities/{entityId}/insights/corporate-structure/current-powers \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.syntage.com/entities/{entityId}/insights/corporate-structure/current-powers"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.syntage.com/entities/{entityId}/insights/corporate-structure/current-powers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.syntage.com/entities/{entityId}/insights/corporate-structure/current-powers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.syntage.com/entities/{entityId}/insights/corporate-structure/current-powers"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.syntage.com/entities/{entityId}/insights/corporate-structure/current-powers")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.syntage.com/entities/{entityId}/insights/corporate-structure/current-powers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "@context": "/contexts/CorporateStructureCurrentPowersEntityResponse",
  "@id": "/entities/91ab5678-1234-5678-9abc-def012345678/insights/corporate-structure/current-powers",
  "@type": "hydra:Collection",
  "hydra:member": [
    {
      "name": "Juan Pérez García",
      "entityType": "person",
      "powers": [
        {
          "status": "current",
          "grantedAt": "2020-01-15",
          "documentSource": "rpc",
          "documentNumber": "12345",
          "externalReference": false,
          "exerciseJointlyRequired": false,
          "exerciseSubstitutionAllowed": false,
          "realEstateCanAcquire": false,
          "realEstateCanDispose": false,
          "power": "administrative_acts",
          "expirationDate": "2025-01-15",
          "expirationSource": "document",
          "grantingState": "CDMX",
          "referenceText": "<string>",
          "referenceDocumentNumber": "<string>",
          "exerciseJointlyWith": "<string>",
          "exerciseLimitations": "<string>"
        }
      ]
    }
  ],
  "hydra:totalItems": 1,
  "hydra:view": {
    "@id": "<string>",
    "@type": "hydra:PartialCollectionView",
    "hydra:first": "<string>",
    "hydra:next": "<string>",
    "hydra:last": "<string>"
  },
  "hydra:search": {
    "@type": "<string>",
    "hydra:template": "<string>",
    "hydra:variableRepresentation": "<string>",
    "hydra:mapping": [
      {
        "@type": "<string>",
        "variable": "<string>",
        "property": "<string>",
        "required": true
      }
    ]
  }
}
{
"message": "<string>"
}
{
"message": "<string>"
}
To export this insight, use Insight Export with corporate-structure-current-powers as the insight name.

Authorizations

X-API-Key
string
header
required

Your API key is available in the Production and Sandbox dashboards.

Path Parameters

entityId
string<uuid>
required

Query Parameters

page
integer
default:1

Page number for pagination

Required range: x >= 1
itemsPerPage
integer
default:1000

Number of items per page

Required range: 1 <= x <= 1000

Response

Corporate Structure Current Powers Insight

@context
string
default:/contexts/CorporateStructureCurrentPowersEntityResponse
@id
string
Example:

"/entities/91ab5678-1234-5678-9abc-def012345678/insights/corporate-structure/current-powers"

@type
string
default:hydra:Collection
hydra:member
object[]
hydra:totalItems
integer

Total number of items found

Required range: x >= 0
Example:

1

hydra:view
object

Pagination information