Count proxy assignments
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.
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
curl -X POST "https://loading/proxies.v1.Proxies/CountAssignments" \ -H "Content-Type: application/json" \ -d '{ "poolId": "AY+MISIifMyN3T09PT09PQ==" }'{
"count": 2
}{
"code": "invalid_argument",
"message": "The request was malformed, such as a missing required field or an unparseable cursor."
}{
"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."
}BulkCreateAssignment
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.
CreateAssignment
Binds an account to a specific proxy session within a pool so the account consistently uses that proxy. Pinning the assignment keeps the account on its session even when the session is disabled.