Company Profile
Returns the company profile.
Request
GET /api/oauth/v2/resource/company
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
This endpoint has no query parameters.
Response
Success (200 OK)
json
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Praxis Dr. Huber",
"street": "Hauptstraße 10",
"zip": "1010",
"city": "Wien",
"country": "AT",
"website": "https://www.praxis-huber.at",
"email": "office@praxis-huber.at",
"tel": "+43 1 234 5678",
"telCode": "+43"
}
}Note: This endpoint returns a single object, not an array. There is no
metaobject in the response.
Response fields
| Field | Type | Description |
|---|---|---|
data.id | string (UUID) | Unique UUID of the company |
data.name | string | Name of the company |
data.street | string | null | Street and house number |
data.zip | string | null | Postal code |
data.city | string | null | City |
data.country | string | null | Country code (ISO 3166-1 alpha-2, e.g. AT) |
data.website | string | null | Website URL |
data.email | string | null | Email address |
data.tel | string | null | Phone number |
data.telCode | string | null | Country dialing code |
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/company" \
-H "Authorization: Bearer {access_token}"Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope company not present |