Amazon Simple Queue Service
amazonaws · Cloud
Welcome to the Amazon SQS API Reference . Amazon SQS is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components. For information on the permissions you need to use this API, see Identi
Authentication
Sample Requests
Creates a new standard or FIFO queue. You can pass one or more attributes in the request. Keep the following in mind: If you don't specify the FifoQueue attribute, Amazon SQS creates a standard queue. You can't change the queue type after you create it
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=CreateQueue?Tag=example&Action=CreateQueue&Version=2012-11-05&Attribute=example&QueueName=example"
import requests
params = {
"Tag": "example",
"Action": "CreateQueue",
"Version": "2012-11-05",
"Attribute": "example",
"QueueName": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=CreateQueue",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=CreateQueue');
url.searchParams.set('Tag', 'example');
url.searchParams.set('Action', 'CreateQueue');
url.searchParams.set('Version', '2012-11-05');
url.searchParams.set('Attribute', 'example');
url.searchParams.set('QueueName', 'example');
const response = await fetch(url);
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/sqs/2012-11-05/#Action=CreateQueue")
q := baseURL.Query()
q.Set("Tag", "example")
q.Set("Action", "CreateQueue")
q.Set("Version", "2012-11-05")
q.Set("Attribute", "example")
q.Set("QueueName", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
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/sqs/2012-11-05/#Action=CreateQueue")
uri.query = URI.encode_www_form({
"Tag" => "example",
"Action" => "CreateQueue",
"Version" => "2012-11-05",
"Attribute" => "example",
"QueueName" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=CreateQueue?" . http_build_query([
"Tag" => "example",
"Action" => "CreateQueue",
"Version" => "2012-11-05",
"Attribute" => "example",
"QueueName" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns the URL of an existing Amazon SQS queue. To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue's owner. The queue's owner must grant you permission to access the queue. For more informatio
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=GetQueueUrl?Action=GetQueueUrl&Version=2012-11-05&QueueName=example&QueueOwnerAWSAccountId=example"
import requests
params = {
"Action": "GetQueueUrl",
"Version": "2012-11-05",
"QueueName": "example",
"QueueOwnerAWSAccountId": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=GetQueueUrl",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=GetQueueUrl');
url.searchParams.set('Action', 'GetQueueUrl');
url.searchParams.set('Version', '2012-11-05');
url.searchParams.set('QueueName', 'example');
url.searchParams.set('QueueOwnerAWSAccountId', 'example');
const response = await fetch(url);
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/sqs/2012-11-05/#Action=GetQueueUrl")
q := baseURL.Query()
q.Set("Action", "GetQueueUrl")
q.Set("Version", "2012-11-05")
q.Set("QueueName", "example")
q.Set("QueueOwnerAWSAccountId", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
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/sqs/2012-11-05/#Action=GetQueueUrl")
uri.query = URI.encode_www_form({
"Action" => "GetQueueUrl",
"Version" => "2012-11-05",
"QueueName" => "example",
"QueueOwnerAWSAccountId" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=GetQueueUrl?" . http_build_query([
"Action" => "GetQueueUrl",
"Version" => "2012-11-05",
"QueueName" => "example",
"QueueOwnerAWSAccountId" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a list of your queues in the current region. The response includes a maximum of 1,000 results. If you specify a value for the optional QueueNamePrefix parameter, only queues with a name that begins with the specified value are returned. The listQueues met
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=ListQueues?Action=ListQueues&Version=2012-11-05&NextToken=example&MaxResults=1&QueueNamePrefix=example"
import requests
params = {
"Action": "ListQueues",
"Version": "2012-11-05",
"NextToken": "example",
"MaxResults": "1",
"QueueNamePrefix": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=ListQueues",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=ListQueues');
url.searchParams.set('Action', 'ListQueues');
url.searchParams.set('Version', '2012-11-05');
url.searchParams.set('NextToken', 'example');
url.searchParams.set('MaxResults', '1');
url.searchParams.set('QueueNamePrefix', 'example');
const response = await fetch(url);
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/sqs/2012-11-05/#Action=ListQueues")
q := baseURL.Query()
q.Set("Action", "ListQueues")
q.Set("Version", "2012-11-05")
q.Set("NextToken", "example")
q.Set("MaxResults", "1")
q.Set("QueueNamePrefix", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
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/sqs/2012-11-05/#Action=ListQueues")
uri.query = URI.encode_www_form({
"Action" => "ListQueues",
"Version" => "2012-11-05",
"NextToken" => "example",
"MaxResults" => "1",
"QueueNamePrefix" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/sqs/2012-11-05/#Action=ListQueues?" . http_build_query([
"Action" => "ListQueues",
"Version" => "2012-11-05",
"NextToken" => "example",
"MaxResults" => "1",
"QueueNamePrefix" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$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 Simple Queue Service?
Amazon Simple Queue Service 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 Simple Queue Service 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?