curl https://portal.bridgelinepf.com/api/v1/whoami \
-H "Authorization: Bearer $BRIDGELINE_API_KEY" \
-H "Bridgeline-Version: 2026-09-23"
const res = await fetch('https://portal.bridgelinepf.com/api/v1/whoami', {
headers: {
Authorization: `Bearer ${process.env.BRIDGELINE_API_KEY}`,
'Bridgeline-Version': '2026-09-23',
},
})
const data = await res.json()
import os
import requests
res = requests.get(
"https://portal.bridgelinepf.com/api/v1/whoami",
headers={
"Authorization": f"Bearer {os.environ['BRIDGELINE_API_KEY']}",
"Bridgeline-Version": "2026-09-23",
},
timeout=30,
)
data = res.json()
{
"object": "whoami",
"livemode": true,
"brokerage": {"name": "Lone Star Risk Partners"},
"acting_broker": {"email": "maria@lonestarrisk.example", "name": "Maria Delgado"},
"api_key": {
"type": "agency",
"scopes": ["quotes:read", "quotes:write"]
},
"api_version": "2026-09-23"
}
{
"error": {
"type": "permission",
"code": "API_ACCESS_NOT_ENABLED",
"message": "API access is not enabled for this agency. Contact Bridgeline.",
"doc_url": "https://docs.bridgelinepf.com/errors#API_ACCESS_NOT_ENABLED",
"request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
}
}
Keys
Introspect the calling API key
Returns the agency, the key’s default broker (the broker every request acts as unless a write names another with broker_email in its body), scopes and mode. Requires no scope; use it to verify a key.
GET
/
v1
/
whoami
curl https://portal.bridgelinepf.com/api/v1/whoami \
-H "Authorization: Bearer $BRIDGELINE_API_KEY" \
-H "Bridgeline-Version: 2026-09-23"
const res = await fetch('https://portal.bridgelinepf.com/api/v1/whoami', {
headers: {
Authorization: `Bearer ${process.env.BRIDGELINE_API_KEY}`,
'Bridgeline-Version': '2026-09-23',
},
})
const data = await res.json()
import os
import requests
res = requests.get(
"https://portal.bridgelinepf.com/api/v1/whoami",
headers={
"Authorization": f"Bearer {os.environ['BRIDGELINE_API_KEY']}",
"Bridgeline-Version": "2026-09-23",
},
timeout=30,
)
data = res.json()
{
"object": "whoami",
"livemode": true,
"brokerage": {"name": "Lone Star Risk Partners"},
"acting_broker": {"email": "maria@lonestarrisk.example", "name": "Maria Delgado"},
"api_key": {
"type": "agency",
"scopes": ["quotes:read", "quotes:write"]
},
"api_version": "2026-09-23"
}
{
"error": {
"type": "permission",
"code": "API_ACCESS_NOT_ENABLED",
"message": "API access is not enabled for this agency. Contact Bridgeline.",
"doc_url": "https://docs.bridgelinepf.com/errors#API_ACCESS_NOT_ENABLED",
"request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
}
}
Use it to confirm a new key works, and to see which agency it belongs to, which broker it acts as by default, its type and scopes, its mode, and the API version it’s pinned to (
api_version). See authentication.
api_version is always the key’s own version, the one a request without a Bridgeline-Version header runs at. If you send the header, the response’s Bridgeline-Version header shows the version this request ran at; api_version doesn’t change. See versioning.
curl https://portal.bridgelinepf.com/api/v1/whoami \
-H "Authorization: Bearer $BRIDGELINE_API_KEY" \
-H "Bridgeline-Version: 2026-09-23"
const res = await fetch('https://portal.bridgelinepf.com/api/v1/whoami', {
headers: {
Authorization: `Bearer ${process.env.BRIDGELINE_API_KEY}`,
'Bridgeline-Version': '2026-09-23',
},
})
const data = await res.json()
import os
import requests
res = requests.get(
"https://portal.bridgelinepf.com/api/v1/whoami",
headers={
"Authorization": f"Bearer {os.environ['BRIDGELINE_API_KEY']}",
"Bridgeline-Version": "2026-09-23",
},
timeout=30,
)
data = res.json()
{
"object": "whoami",
"livemode": true,
"brokerage": {"name": "Lone Star Risk Partners"},
"acting_broker": {"email": "maria@lonestarrisk.example", "name": "Maria Delgado"},
"api_key": {
"type": "agency",
"scopes": ["quotes:read", "quotes:write"]
},
"api_version": "2026-09-23"
}
{
"error": {
"type": "permission",
"code": "API_ACCESS_NOT_ENABLED",
"message": "API access is not enabled for this agency. Contact Bridgeline.",
"doc_url": "https://docs.bridgelinepf.com/errors#API_ACCESS_NOT_ENABLED",
"request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
}
}
Headers
Response
The principal summary.
Who the calling API key acts as.
The API version this key is pinned to: the version that was current when the key was created. A request without a Bridgeline-Version header runs at it. A request with the header runs at the header's version, which the Bridgeline-Version response header echoes; this field stays the key's.