Add credentials to existing ones (batch add)
curl --request POST \
--url https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credentials": [
{
"login": "user@example.com",
"game_password": "SecurePass123",
"email": "jsmith@example.com",
"email_password": "<string>",
"is_2fa_active": true,
"comment": "<string>"
}
]
}
'import requests
url = "https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch"
payload = { "credentials": [
{
"login": "user@example.com",
"game_password": "SecurePass123",
"email": "jsmith@example.com",
"email_password": "<string>",
"is_2fa_active": True,
"comment": "<string>"
}
] }
headers = {
"Accept": "<accept>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Accept: '<accept>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
credentials: [
{
login: 'user@example.com',
game_password: 'SecurePass123',
email: 'jsmith@example.com',
email_password: '<string>',
is_2fa_active: true,
comment: '<string>'
}
]
})
};
fetch('https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'credentials' => [
[
'login' => 'user@example.com',
'game_password' => 'SecurePass123',
'email' => 'jsmith@example.com',
'email_password' => '<string>',
'is_2fa_active' => true,
'comment' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch"
payload := strings.NewReader("{\n \"credentials\": [\n {\n \"login\": \"user@example.com\",\n \"game_password\": \"SecurePass123\",\n \"email\": \"jsmith@example.com\",\n \"email_password\": \"<string>\",\n \"is_2fa_active\": true,\n \"comment\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "<accept>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"credentials\": [\n {\n \"login\": \"user@example.com\",\n \"game_password\": \"SecurePass123\",\n \"email\": \"jsmith@example.com\",\n \"email_password\": \"<string>\",\n \"is_2fa_active\": true,\n \"comment\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"credentials\": [\n {\n \"login\": \"user@example.com\",\n \"game_password\": \"SecurePass123\",\n \"email\": \"jsmith@example.com\",\n \"email_password\": \"<string>\",\n \"is_2fa_active\": true,\n \"comment\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Successfully added 8 credentials. 2 duplicates were skipped."
}{
"message": "Unauthenticated."
}{
"message": "Cannot modify credentials for transferred offer"
}Offer Credentials
Add credentials to existing ones (batch add)
Adds new credentials to the offer without deleting existing ones. Automatically filters out duplicates based on login and email hashes. * Credential system types: *
-
- 1 (No Credentials): No credentials system - manual delivery via chat
-
- 3 (Multiple): Multiple credentials system - 1+ credentials, goes to NOT_ACTIVE when sold out
Duplicate handling:
-
- Duplicates are automatically filtered out (not added)
-
- Duplicates are detected by login_hash and email_hash
-
- Response includes count of skipped duplicates
POST
/
external_api
/
pro
/
offers
/
{offerId}
/
credentials
/
add_batch
Add credentials to existing ones (batch add)
curl --request POST \
--url https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credentials": [
{
"login": "user@example.com",
"game_password": "SecurePass123",
"email": "jsmith@example.com",
"email_password": "<string>",
"is_2fa_active": true,
"comment": "<string>"
}
]
}
'import requests
url = "https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch"
payload = { "credentials": [
{
"login": "user@example.com",
"game_password": "SecurePass123",
"email": "jsmith@example.com",
"email_password": "<string>",
"is_2fa_active": True,
"comment": "<string>"
}
] }
headers = {
"Accept": "<accept>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Accept: '<accept>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
credentials: [
{
login: 'user@example.com',
game_password: 'SecurePass123',
email: 'jsmith@example.com',
email_password: '<string>',
is_2fa_active: true,
comment: '<string>'
}
]
})
};
fetch('https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'credentials' => [
[
'login' => 'user@example.com',
'game_password' => 'SecurePass123',
'email' => 'jsmith@example.com',
'email_password' => '<string>',
'is_2fa_active' => true,
'comment' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch"
payload := strings.NewReader("{\n \"credentials\": [\n {\n \"login\": \"user@example.com\",\n \"game_password\": \"SecurePass123\",\n \"email\": \"jsmith@example.com\",\n \"email_password\": \"<string>\",\n \"is_2fa_active\": true,\n \"comment\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "<accept>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"credentials\": [\n {\n \"login\": \"user@example.com\",\n \"game_password\": \"SecurePass123\",\n \"email\": \"jsmith@example.com\",\n \"email_password\": \"<string>\",\n \"is_2fa_active\": true,\n \"comment\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://skycoach.gg/external_api/pro/offers/{offerId}/credentials/add_batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"credentials\": [\n {\n \"login\": \"user@example.com\",\n \"game_password\": \"SecurePass123\",\n \"email\": \"jsmith@example.com\",\n \"email_password\": \"<string>\",\n \"is_2fa_active\": true,\n \"comment\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Successfully added 8 credentials. 2 duplicates were skipped."
}{
"message": "Unauthenticated."
}{
"message": "Cannot modify credentials for transferred offer"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
API response format
Available options:
application/json Path Parameters
Example:
123
Body
application/json
Required array length:
1 - 1000 elementsShow child attributes
Show child attributes
Response
Success
Example:
"Successfully added 8 credentials. 2 duplicates were skipped."
⌘I