ESG
Entities
GET
https://api.textreveal.com/v3/entities/{entity_id}/esg/summary
Request
Parameters
entity_id*uuidPermanent ID of the entity
Example: "753c48d6-23c8-5fb0-9230-b099898452b5"translatelanguage-code (enum)Language for the generated summary (ISO code or name, e.g. 'en', 'fr', 'french').
Values: "af", "afr", "afrikaans", "albanian", "am", "amh", "amharic", "ar", "ara", "arabic", "armenian", "az", "aze", "azerbaijani", "ben", "bengali", "bg", "bn", "bos", "bosnian", "bs", "bul", "bulgarian", "ca", "cat", "catalan", "chinese"...
Response
text*stringMarkdown summary of the entity.
Will contain a list of the most relevant cases since 2020. Each key point will be linked to the corresponding dashboard url to see the full context.
Example: "[company_name] has faced ongoing controversies, including **cybersecurity breaches and service outages** that ..."
Response
{
"text": "[company_name] has faced ongoing controversies, including **cybersecurity breaches and service outages** that ..."
}Error
Bad request
message*stringError message.
Example: "Check the errors field for more details"code*number (enum)Error code.
Values: 400reason*string (enum)Error reason.
Values: "invalid"errorsobject[]Possible error causes.
Response
{
"message": "Check the errors field for more details",
"code": 400,
"reason": "invalid",
"errors": [
{
"message": "string",
"field": "translate",
"reason": "invalid_type"
}
]
}Unauthorized
message*stringError message.
Example: "Authorization header is expected"code*number (enum)Error code.
Values: 401reason*string (enum)Error reason.
Values: "unauthorized"errors*object[]Array length: [1, 1]
Response
{
"message": "Authorization header is expected",
"code": 401,
"reason": "unauthorized",
"errors": [
{
"message": "Required",
"field": "headers.authorization",
"reason": "invalid_type"
}
]
}Not found
message*stringError message.
Example: "The requested entity does not exist or is not visible to your company."code*number (enum)Error code.
Values: 404reason*string (enum)Error reason.
Values: "not_found"
Response
{
"message": "The requested entity does not exist or is not visible to your company.",
"code": 404,
"reason": "not_found"
}Generic errors are not shown, see Errors for more details.