v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1442718.5 KB

Returns the STS short-term credentials for a given role name that is assigned to the user.

get/federation/credentials#role_name&account_id&x-amz-sso_bearer_token

Query parameters

role_namestring required

The friendly name of the role that is assigned to the user.

account_idstring required

The identifier for the AWS account that is assigned to the user.

Headers

x-amz-sso_bearer_tokenstring password required

The token issued by the <code>CreateToken</code> API call. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>IAM Identity Center OIDC API Reference Guide</i>.

Response

Success

All 4 operations