Create many proxy assignments
Binds many accounts to proxy sessions in one call. Each row is committed independently and the response reports per-row success or a typed error, so one bad row does not fail the whole batch. The operation is idempotent per account: a row whose account is already bound to the same pool converges on the existing assignment as a no-op success, while a row whose account is already bound to a different pool reports ALREADY_EXISTS.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/proxies.v1.Proxies/BulkCreateAssignment" \ -H "Content-Type: application/json" \ -d '{ "assignments": [ { "poolId": "AY+MISIifMyN3T09PT09PQ==", "sessionId": "AY+MIjMzfu6P/05OTk5OTg==", "accountName": "steam_bot_01", "pinned": true }, { "poolId": "AY+MISIifMyN3T09PT09PQ==", "sessionId": "AY+MIkREeqqLu19fX19fXw==", "accountName": "steam_bot_02" } ] }'{
"results": [
{
"assignmentId": "AY+MI0REf/+Kql9fX19fXw=="
},
{
"error": {
"code": "BULK_CREATE_ASSIGNMENT_ERROR_CODE_ALREADY_EXISTS",
"message": "assignment already exists for this pool and account"
}
}
]
}{
"code": "failed_precondition",
"message": "The request cannot be carried out in the current system state."
}{
"code": "unauthenticated",
"message": "The request lacks a valid API key in the Authorization header."
}{
"code": "permission_denied",
"message": "The API key is not allowed to perform this action on this workspace."
}{
"code": "resource_exhausted",
"message": "The request was rate limited. Slow down and retry later."
}{
"code": "internal",
"message": "An internal server error occurred."
}{
"code": "unavailable",
"message": "The service is temporarily unavailable. Retry with backoff."
}BulkAssignAccountsToPool
Binds many accounts to a proxy pool in one call so a workspace's accounts start using its proxies. Each account is bound to the pool and the specific proxy is chosen automatically on first use, so you never pick a session. An account already bound to the pool is left as is, and an account bound to a different pool is moved to this one. An account pinned to a different pool is left untouched and excluded from the count instead; unpin it first. The response reports how many accounts are now bound to the pool.
CountAssignments
Returns the number of proxy assignments in your workspace, optionally filtered by pool, session, or account name, so a list page can render a count without loading and counting every row.