Amazon Cognito Identity Provider
  1. Root
Amazon Cognito Identity Provider
  • Root
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
  1. Root

/

POST
/
Begins setup of time-based one-time password (TOTP) multi-factor authentication (MFA) for a user, with a unique private key that Amazon Cognito generates and returns in the API response. You can authorize an AssociateSoftwareToken request with either the user's access token, or a session string from a challenge response that you received from Amazon Cognito.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "AccessToken": "string",
    "Session": "string"
}'
Response Response Example
200 - Example 1
{
    "SecretCode": "string",
    "Session": "string"
}

Request

Header Params
X-Amz-Target
string 
required
Body Params application/json
AccessToken
string <password>
optional
A valid access token that Amazon Cognito issued to the user whose software token you want to generate.
Match pattern:
[A-Za-z0-9-_=.]+
Session
string 
optional
The session that should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
>= 20 characters<= 2048 characters
Examples

Responses

🟢200Success
application/json
Body
SecretCode
string <password>
optional
A unique generated shared secret code that is used in the TOTP algorithm to generate a one-time code.
>= 16 characters
Match pattern:
[A-Za-z0-9]+
Session
string 
optional
The session that should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process.
>= 20 characters<= 2048 characters
🟠480ConcurrentModificationException
🟠481InvalidParameterException
🟠482NotAuthorizedException
🟠483ResourceNotFoundException
🟠484InternalErrorException
🟠485SoftwareTokenMFANotFoundException
🟠486ForbiddenException
Modified at 2023-08-15 07:11:06
Previous
/
Next
/
Built with