AWS CodeCommit
amazonaws · Cloud
AWS CodeCommit This is the AWS CodeCommit API Reference . This reference provides descriptions of the operations and data types for AWS CodeCommit API along with usage examples. You can use the AWS CodeCommit API to work with the following objects: Repositories, by calling the following: BatchGetRepositories , which returns information about one or more repositories associated with your AWS account. CreateR
Authentication
Sample Requests
Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.
Hover any highlighted part to learn what it does
| X-Amz-Target | CodeCommit_20150413.DescribeMergeConflicts |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribeMergeConflicts?nextToken=example&maxMergeHunks=example" \ -H "X-Amz-Target: CodeCommit_20150413.DescribeMergeConflicts"
import requests
params = {
"nextToken": "example",
"maxMergeHunks": "example"
}
headers = {
"X-Amz-Target": "CodeCommit_20150413.DescribeMergeConflicts"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribeMergeConflicts",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribeMergeConflicts');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxMergeHunks', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'CodeCommit_20150413.DescribeMergeConflicts'
},
});
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/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribeMergeConflicts")
q := baseURL.Query()
q.Set("nextToken", "example")
q.Set("maxMergeHunks", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
req.Header.Set("X-Amz-Target", "CodeCommit_20150413.DescribeMergeConflicts")
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/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribeMergeConflicts")
uri.query = URI.encode_www_form({
"nextToken" => "example",
"maxMergeHunks" => "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"] = "CodeCommit_20150413.DescribeMergeConflicts"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribeMergeConflicts?" . http_build_query([
"nextToken" => "example",
"maxMergeHunks" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: CodeCommit_20150413.DescribeMergeConflicts"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns information about one or more pull request events.
Hover any highlighted part to learn what it does
| X-Amz-Target | CodeCommit_20150413.DescribePullRequestEvents |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribePullRequestEvents?nextToken=example&maxResults=example" \ -H "X-Amz-Target: CodeCommit_20150413.DescribePullRequestEvents"
import requests
params = {
"nextToken": "example",
"maxResults": "example"
}
headers = {
"X-Amz-Target": "CodeCommit_20150413.DescribePullRequestEvents"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribePullRequestEvents",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribePullRequestEvents');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'CodeCommit_20150413.DescribePullRequestEvents'
},
});
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/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribePullRequestEvents")
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", "CodeCommit_20150413.DescribePullRequestEvents")
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/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribePullRequestEvents")
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"] = "CodeCommit_20150413.DescribePullRequestEvents"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.DescribePullRequestEvents?" . http_build_query([
"nextToken" => "example",
"maxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: CodeCommit_20150413.DescribePullRequestEvents"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.
Hover any highlighted part to learn what it does
| X-Amz-Target | CodeCommit_20150413.GetCommentReactions |
curl -X POST "https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.GetCommentReactions?nextToken=example&maxResults=example" \ -H "X-Amz-Target: CodeCommit_20150413.GetCommentReactions"
import requests
params = {
"nextToken": "example",
"maxResults": "example"
}
headers = {
"X-Amz-Target": "CodeCommit_20150413.GetCommentReactions"
}
response = requests.post(
"https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.GetCommentReactions",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.GetCommentReactions');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', 'example');
const response = await fetch(url, {
method: 'POST',
headers: {
'X-Amz-Target': 'CodeCommit_20150413.GetCommentReactions'
},
});
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/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.GetCommentReactions")
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", "CodeCommit_20150413.GetCommentReactions")
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/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.GetCommentReactions")
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"] = "CodeCommit_20150413.GetCommentReactions"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/codecommit/2015-04-13/#X-Amz-Target=CodeCommit_20150413.GetCommentReactions?" . http_build_query([
"nextToken" => "example",
"maxResults" => "example"
]);
$opts = ["http" => [
"method" => "POST",
"header" => implode("\r\n", [
"X-Amz-Target: CodeCommit_20150413.GetCommentReactions"
]),
]];
$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 AWS CodeCommit?
AWS CodeCommit 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. AWS CodeCommit 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?