Skip to main content
PUT
/
v4
/
account
/
api-keys
/
{id}
Update API key
curl --request PUT \
  --url https://api.proxyscrape.com/v4/account/api-keys/{id} \
  --header 'Content-Type: application/json' \
  --header 'api-token: <api-key>' \
  --data '
{
  "name": "<string>",
  "permissions": [
    "<string>"
  ],
  "allowed_subaccounts": [
    "<string>"
  ],
  "allowed_ips": [
    "<string>"
  ],
  "expires_at": 123,
  "is_active": true
}
'
{
  "success": true,
  "message": "API key updated successfully",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "permissions": [
      "<string>"
    ],
    "allowed_subaccounts": [
      "<string>"
    ],
    "allowed_ips": [
      "<string>"
    ],
    "expires_at": 123,
    "is_active": true,
    "last_used_at": 123,
    "token_preview": "<string>",
    "created_at": 123,
    "updated_fields": [
      "<string>"
    ]
  }
}

Authorizations

api-token
string
header
required

API key. Create and manage keys at /v4/account/api-keys or in the dashboard.

Path Parameters

id
string<uuid>
required

Body

application/json

At least one field must be provided.

name
string
Maximum string length: 100
permissions
string[]

Array of permission strings. Empty arrays are silently ignored — permissions cannot be cleared via this endpoint.

allowed_subaccounts
string[]

Subaccount UUIDs this key can act on. Empty array means all subaccounts.

allowed_ips
string[]

IP addresses or CIDR ranges allowed to use this key. Empty array means no IP restriction.

expires_at
integer | null

Unix timestamp for key expiry. Must be in the future.

is_active
boolean

Enable or disable the key without deleting it.

Response

Updated API key

success
boolean
message
string
Example:

"API key updated successfully"

data
object