# API security

For security best practices, rotate your API keys regularly:

1. Create a new API key. For more information, see [Get an API key](/developer_platform_api/get_started/api-keys.md).
2. Update your application to use the new key.
3. Test that the new key works correctly.
4. Delete the old key from your dashboard.

## Revoke API keys[​](#revoke-api-keys "Direct link to Revoke API keys")

Revoking an API key immediately stops all requests using that key. Ensure you've updated your applications with the new key before revoking old keys.

1. After you have created and used the new key with your application, log in to your [Instacart Developer Dashboard](https://developers.instacart.com).
2. Navigate to the **API Keys** section.
3. Find the key you want to revoke.
4. Click **Revoke**.
5. Confirm the action.

## Security recommendations[​](#security-recommendations "Direct link to Security recommendations")

### Storage[​](#storage "Direct link to Storage")

* Store API keys in environment variables or secure configuration management systems.
* Never commit API keys to version control.
* Use different keys for different environments.

### Access control[​](#access-control "Direct link to Access control")

* Limit API key permissions to only what's necessary.
* Use separate keys for different applications or services.
* Regularly audit which keys are in use.

### Monitor API keys[​](#monitor-api-keys "Direct link to Monitor API keys")

* Monitor API key usage in your dashboard.
* Set up alerts for unusual usage patterns.
* Review access logs regularly.

For additional help, contact [Developer Support](mailto:developer-support@instacart.com).
