Generate a Temporary API Key (Password)
Evan avatar
Written by Evan
Updated over a week ago

Sometimes you might want to generate a temporary API key (password) that you can use to authenticate with your proxies. For example, if you are using a captcha solving service that requires your API key.

To create a temporary password, you will need to make a post request to "api.proxyrack.net/v1-beta/password" with a "label" and "expireTime" in the request body. The label is a reference for you to know which temporary password it is. The "expireTime" can be either a number of seconds or a UNIX timestamp, and will be the amount of time that the temporary password is valid for.

Examples

Unmetered Residential:

Please note: Unmetered Residential proxies are no longer available for purchase. Existing subscriptions will continue to work, however.
curl -x unmetered.residential.proxyrack.net:10000 -U username:password -X POST -d '{"label": "temp password", "expireTime": "300"}' api.proxyrack.net/v1-beta/passwords

Premium Residential:
curl -x premium.residential.proxyrack.net:10000 -U username:password -X POST -d '{"label": "temp password", "expireTime": "300"}' api.proxyrack.net/v1-beta/passwords

Private Unmetered Residential:
curl -x private.residential.proxyrack.net:10000 -U username:password -X POST -d '{"label": "temp password", "expireTime": "300"}' api.proxyrack.net/v1-beta/passwords

USA Rotating Datacenter:
curl -x usa.rotating.proxyrack.net:10000 -U username:password -X POST -d '{"label": "temp password", "expireTime": "300"}' api.proxyrack.net/v1-beta/passwords

Global Rotating Datacenter:
curl -x global.rotating.proxyrack.net:10000 -U username:password -X POST -d '{"label": "temp password", "expireTime": "300"}' api.proxyrack.net/v1-beta/passwords

Static USA Datacenter:
curl -x usa.static.proxyrack.net:10000 -U username:password -X POST -d '{"label": "temp password", "expireTime": "300"}' api.proxyrack.net/v1-beta/passwords

Result:

{
"id": "PiAJYwAIg",
"label": "temp password",
"password": "temp-b65c8f-2b6a4d-4344f2-f4a6b1-f9661f",
"expiration": {
"time": "2024-03-11T14:09Z",
"seconds": 299,
"unixTimestamp": 1710166192
}
}

Did this answer your question?