---
title: "API Key Permissions & Security"
description: "API keys can be scoped to specific permissions so that each key only has access to what it needs. This follows the principle of least privilege."
url: https://docs.swipearas.com/en/articles/44-api-key-permissions-and-security
collection: "Developer API"
updated: 2026-10-20
language: en
---

# API Key Permissions & Security

API keys can be scoped to specific permissions so that each key only has access to what it needs. This follows the principle of least privilege.

API keys can be scoped to specific permissions so that each key only has access to what it needs. This follows the principle of least privilege.

## How Permissions Work

Each API key has an explicit set of permissions. A key with no permissions assigned **cannot access any endpoints** — permissions must be explicitly granted at key creation.

> A key with no permissions is denied access. This is by design for security.

## Available Permission Scopes

Permission scopes correspond to the API's functional areas:

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Scope</p></th><th colspan="1" rowspan="1"><p>What It Allows</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>transactions:read</code></p></td><td colspan="1" rowspan="1"><p>Query transaction records</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>transactions:write</code></p></td><td colspan="1" rowspan="1"><p>Create refunds</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>checkout:write</code></p></td><td colspan="1" rowspan="1"><p>Create checkout sessions</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>onboarding:read</code></p></td><td colspan="1" rowspan="1"><p>Query account and onboarding status</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>stores:read</code></p></td><td colspan="1" rowspan="1"><p>Query store information</p></td></tr></tbody></table>

> Contact your account manager if you need a scope not listed above.

## Origin Whitelisting

Each API key supports an **allowed origins** list. If configured, the key will only accept requests from those origins. This is useful for client-side integrations where you want to restrict which domains can use the key.

## Regenerating a Key

1.  Go to **Developer → API Keys**
    
2.  Find the key and click **Regenerate**
    
3.  The old key is immediately invalidated
    
4.  Copy and store the new key
    

> Treat API keys like passwords. Store them securely and rotate them regularly.
