Endpoints

Generate Token

POST https://cognito-idp.eu-central-1.amazonaws.com

Headers

Field

Description

Required

Content-Type

application/x-amz-json-1.1

yes

X-Amz-Target

AWSCognitoIdentityProviderService.InitiateAuth

yes

Request parameters

Parameter

Description

Type

Required

AuthParameters

Auth params

Object

yes

USERNAME

Account username

String

yes

PASSWORD

Account password

String

yes

AuthFlow

Auth flow

String

yes

ClientId

Client Identifier

String

yes

Example request

{
"AuthParameters" : {
"USERNAME" : "alexander.yenkalov",
"PASSWORD" : "Password1!"
},
"AuthFlow" : "USER_PASSWORD_AUTH",
"ClientId" : "da0b5c6plml92241sljt5atm1"
}

Responses

See AWS docs