Amazon Cognito Identity
amazonaws · Cloud
Amazon Cognito Federated Identities Amazon Cognito Federated Identities is a web service that delivers scoped temporary credentials to mobile devices and other untrusted environments. It uniquely identifies a device and supplies the user with a consistent identity over the lifetime of an application. Using Amazon Cognito Federated Identities, you can enable authentication with one or more third-party identity providers (Facebook, Google, or Login with Amazon) or an
Authentication
Sample Requests
Lists all of the Cognito identity pools registered for your account. You must use AWS Developer credentials to call this API.
Hover any highlighted part to learn what it does
| X-Amz-Target | AWSCognitoIdentityService.ListIdentityPools |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.ListIdentityPools?NextToken=example&MaxResults=example" \ -H "X-Amz-Target: AWSCognitoIdentityService.ListIdentityPools"
import requests
params = {
"NextToken": "example",
"MaxResults": "example"
}
headers = {
"X-Amz-Target": "AWSCognitoIdentityService.ListIdentityPools"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.ListIdentityPools",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.ListIdentityPools');
url.searchParams.set('NextToken', 'example');
url.searchParams.set('MaxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'AWSCognitoIdentityService.ListIdentityPools'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.ListIdentityPools")
q := baseURL.Query()
q.Set("NextToken", "example")
q.Set("MaxResults", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("X-Amz-Target", "AWSCognitoIdentityService.ListIdentityPools")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.ListIdentityPools")
uri.query = URI.encode_www_form({
"NextToken" => "example",
"MaxResults" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "AWSCognitoIdentityService.ListIdentityPools"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.ListIdentityPools?" . http_build_query([
"NextToken" => "example",
"MaxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: AWSCognitoIdentityService.ListIdentityPools"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account. The keys for SupportedLoginProviders are as follows: Facebook: graph.facebook.com Google: accounts.googl
Hover any highlighted part to learn what it does
| X-Amz-Target | AWSCognitoIdentityService.CreateIdentityPool |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.CreateIdentityPool" \ -H "X-Amz-Target: AWSCognitoIdentityService.CreateIdentityPool"
import requests
headers = {
"X-Amz-Target": "AWSCognitoIdentityService.CreateIdentityPool"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.CreateIdentityPool",
headers=headers,
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.CreateIdentityPool';
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'AWSCognitoIdentityService.CreateIdentityPool'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.CreateIdentityPool"
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("X-Amz-Target", "AWSCognitoIdentityService.CreateIdentityPool")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.CreateIdentityPool")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "AWSCognitoIdentityService.CreateIdentityPool"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.CreateIdentityPool";
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: AWSCognitoIdentityService.CreateIdentityPool"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Deletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete. You must use AWS Developer credentials to call this API.
Hover any highlighted part to learn what it does
| X-Amz-Target | AWSCognitoIdentityService.DeleteIdentities |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.DeleteIdentities" \ -H "X-Amz-Target: AWSCognitoIdentityService.DeleteIdentities"
import requests
headers = {
"X-Amz-Target": "AWSCognitoIdentityService.DeleteIdentities"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.DeleteIdentities",
headers=headers,
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.DeleteIdentities';
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'AWSCognitoIdentityService.DeleteIdentities'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.DeleteIdentities"
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("X-Amz-Target", "AWSCognitoIdentityService.DeleteIdentities")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.DeleteIdentities")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
req["X-Amz-Target"] = "AWSCognitoIdentityService.DeleteIdentities"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/cognito-identity/2014-06-30/#X-Amz-Target=AWSCognitoIdentityService.DeleteIdentities";
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: AWSCognitoIdentityService.DeleteIdentities"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Amazon Cognito Identity?
Amazon Cognito Identity is a Cloud API. Developers commonly use cloud APIs for:
- provisioning and managing cloud infrastructure
- automating deployments and container orchestration
- monitoring uptime and performance metrics
- managing storage buckets and databases
- setting up auto-scaling and load balancing
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Amazon Cognito Identity is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?