How to Authenticate
Sesame uses Basic authentication for its APIs. Learn how to authenticate on this page.

Last updated
Was this helpful?
Was this helpful?
curl -X GET "https://data.api.landytech.net/api/v2/entities" \
-u "USERNAME:PASSWORD" \
-H "X-Result-Limit: 20"# Create the base64 value for "username:password"
ENCODED_CREDENTIALS="$(printf '%s' 'USERNAME:PASSWORD' | base64)"
curl -X GET "https://data.api.landytech.net/api/v2/entities" \
-H "Authorization: Basic ${ENCODED_CREDENTIALS}" \
-H "X-Result-Limit: 20"# Create the base64 value for "username:password"
ENCODED_CREDENTIALS="$(printf '%s' 'USERNAME:PASSWORD' | base64)"
curl 'https://data.api.landytech.net/api/v2/analytics' \
-X POST \
-H 'Content-Type: application/json' \
-H "Authorization: Basic ${ENCODED_CREDENTIALS}" \
-d '{
"fields": [
{ "code": "ENTITY.ID" },
{ "code": "ENTITY.NAME" },
{ "code": "POSITION.DATE" },
{ "code": "ASSET.NAME" },
{ "code": "ASSET.TYPE" },
{ "code": "POSITION.CUSTODIAN_NAME" },
{ "code": "ENTITY.REPORTING_CURRENCY" },
{ "code": "POSITION.MARKET_VALUE_REPORTING" },
{
"name": "YTD Return",
"code": "POSITION.RETURN",
"parameters": { "period": "YTD" }
},
{
"name": "1D VaR MC 95",
"code": "POSITION.RISK",
"parameters": { "risk_measure_id": 250 }
},
{
"name": "Lehman Crisis (2008)",
"code": "POSITION.RISK",
"parameters": { "risk_measure_id": 522 }
}
],
"ids": [1, 2, 3],
"consolidationType": "DIRECT",
"since": "2025-09-30"
}'