tocdepth

2

Me

Me — аккаунт пользователя в личном кабинете, который инициирует запрос.

GET информация о пользователе

GET https://console.cloud.ru/api/bff-console/v1/customers/me
Аутентификация

См. Вход в личный кабинет

Параметры headers

Accept

application/json

Пример запроса
curl -L -X GET 'https://console.cloud.ru/api/bff-console/v1/customers/me' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer eyJhbG...'
Пример успешного ответа
{
    "customer": {
        "id": "e6c77...",
        "type": "CUSTOMER_TYPE_LEGAL",
        "reg_source": "REG_SOURCE_MANAGER",
        "two_factor_auth": false,
        "full_name": "Test PAYA",
        "scopes": [],
        "agreements": [
            {
                "id": "ccce9...",
                "number": "PAYA Testing VMware",
                "billing_external_ref": "90009...",
                "balance": "-30.89",
                "bonus_balance": "",
                "credit_scheme": "CREDIT_SCHEME_POSTPAID",
                "type": "AGREEMENT_TYPE_COMMERCIAL",
                "start_date": "2022-08-01T01:01:01Z"
            }
        ],
        "naumen_id": "79836...",
        "market_segment_id": "c5d91..."
    },
    "user": {
        "id": "b39e1...",
        "user_name": "my-username@example.com",
        "first_name": "my-first-name",
        "last_name": "my-last-name",
        "middle_name": "",
        "email": "my-username@example.com",
        "phone": "",
        "permissions": [
            {
                "role_int_name": "platform.project.user",
                "resource_id": "ba4e7...",
                "resource_type": "resource"
            }
        ],
        "contact_exists": true,
        "promo_subscription": false
    }
}
Пример ответа с ошибкой 500
{
  "code": 13,
  "message": "internal error",
  "details": []
}
Запустили Evolution free tier
для Dev & Test
Получить