Get Access Token Details
API Description
Get details about the company and the contact person that granted you access to their data. Pass the access token you received in a response body returned by a Request Token API into the Authorization request header, and the service will return the corresponding resource.
Request
Path Template
GET {url}/api/v1/me
Request Headers
| Name | Input |
|---|---|
Authorization | |
Accept |
Authorization
MUST be Bearer {access_token}
Example Request Headers
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxOTc2IiwibmFtZSI6IkpvaG5
ueSBBcHBsZXNlZWQiLCJpYXQiOjQ0MzYyMDgwMH0.V3n-3AcvyfHSuTCE9DNX3gHY3ApdGhUlF1fp-7fiMhI
Accept: application/json
Request Body
None
Response
200 OK or Error
Response Headers
| Name |
|---|
apple-request-id |
content-type |
Example Response Headers
HTTP/1.1 200 OK
apple-request-id: c74ac48d-07d2-4e24-958a-f1769a1b002a
content-type: application/json
Response Body
| Name | Output |
|---|---|
user | |
firstName | |
lastName | |
orgDetails | |
orgId | |
legalName |
note
Apple Business cannot guarantee that Administrator credentials are not being shared by multiple individuals. When the same login email/password is being shared, the actual person that granted access may or may not be the contact person provided in the response body
Example Response Body (raw JSON)
{
"user": {
"firstName": "John",
"lastName": "Smith"
},
"orgDetails": {
"orgId": "9467895078742654934",
"legalName": "Big Enterprise"
}
}