# Make, limit or revoke an API key

Give a script access to the right workspace and servers, then replace or revoke its key.

## Make a key for a script

Start with **Look only** for reports. Select just the servers the tool needs and the shortest expiry that fits the job. If you cannot see **API keys**, ask a workspace owner about your access.

For a teammate who uses the portal, invite them with their own role instead. For a shared tool, put its dedicated key directly in the tool’s private settings.

1. Switch to the workspace that the script will use. Open your account menu, choose **API keys**, then **Make a key**.
2. Name the key and choose **Scripts and tools**. Choose how much it can do, which servers it can reach and when it expires.
3. Choose **Make key**. Copy the key from **Your key** into your tool's private settings, then choose **Done**. RustSC shows the full key only once.

## Change the servers or revoke the key

1. Open the key's menu and choose **Servers** to review or change what it can reach. Save the new selection.
2. To replace a key in use, make its replacement and switch the script to it. Then open the old key's menu, choose **Revoke** and confirm. If a key was shared by mistake, revoke it straight away.

- [Use the customer API](https://rustsc.com/help/v1/api/index.html.md)

HTML version: https://rustsc.com/support/guides/make-api-key/
