redirect_uri
).grants
).username:password
Authorization: Basic *****************
{
"redirect_uri": "https://example.com/login",
"grants": [
"read.email",
"read.emails",
"read.phone",
"read.phones",
"read.date_of_birth",
"read.firstname",
"read.lastname",
"read.patronymic",
"read.gender",
"read.country",
"read.nationality",
"read.identifier",
"read.profile",
"read.cards",
"openid"
]
}
curl --location --request POST 'https://passport.freedompay.kz/api/v1/oauth/authorize' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"redirect_uri": "https://example.com/login",
"grants": [
"read.email",
"read.emails",
"read.phone",
"read.phones",
"read.date_of_birth",
"read.firstname",
"read.lastname",
"read.patronymic",
"read.gender",
"read.country",
"read.nationality",
"read.identifier",
"read.profile",
"read.cards",
"openid"
]
}'
{
"redirect_uri": "https://passport.freedompay.kz/login?track_id=ac22c50c-22c7-4aeb-9160-e59b735f9c44&expire_at=1727246098"
}