Added
/me API endpoint
over 5 years ago by Tyler Freckmann
A /me API endpoint is now available that returns information about the organization that the API access token belongs to. This includes the organization's id, name, and carrierSettings if the organization is a fleet.
curl --request GET 'https://api.samsara.com/me' \
--header 'Authorization: Bearer <<token>>'{
"data": {
"id": "1234",
"name": "Samsara Trucking",
"carrierSettings": {
"carrierName": "Samsara Trucking",
"mainOfficeAddress": "1990 Alameda St, San Francisco, CA 94103",
"dotNumber": 1234
}
}
}