Skip to main content
POST
/
v2
/
account-offers
/
{account}
/
credentials
Add credentials
curl --request POST \
  --url https://api.gameboost.com/v2/account-offers/{account}/credentials \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "credentials": [
    "Login: newuser1\nPassword: pass123",
    "Login: newuser2\nPassword: pass456"
  ]
}
'
{
  "message": "2 credentials added successfully.",
  "created_count": 2,
  "duplicate_count": 0,
  "data": [
    {
      "id": 123,
      "credentials": "<string>",
      "account_offer_id": 123,
      "account_order_id": 123,
      "is_sold": true,
      "created_at": 123,
      "updated_at": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

account
integer
required

The ID of the account offer

Body

application/json
credentials
string[]
required

Array of credential strings to add

Minimum array length: 1
Maximum string length: 500
Example:
[
"Login: newuser1\nPassword: pass123",
"Login: newuser2\nPassword: pass456"
]

Response

Credentials added successfully

message
string
Example:

"2 credentials added successfully."

created_count
integer

Number of credentials created

Example:

2

duplicate_count
integer

Number of duplicate credentials skipped

Example:

0

data
object[]