Menu

API keys and permissions

Creating API keys limited to the permissions they need, the full table of permissions, and which are sensitive.

An API key is created by a signed-in person (POST /auth/api-keys, or weird keys create) with a name and the list of permissions (scopes) it may use. Creating one needs the authenticator (a recent step-up, or a code in the request). The key's token is shown once: keep it secret. A key cannot be changed: revoke it and create another. An account has at most 20 active keys.

Each operation names the permission it needs in x-weird-scope; a key without it is refused 403 insufficient-scope, with the permission that was needed. A session holds every permission.

  • A wildcard (*, *:read, vps:*) covers the product permissions only. Every account, money, access, support and secret permission must be named in full.
  • A sensitive permission can change who controls the account, spend or move its money or resources, or read secrets. Show it as such before a key is created with it.
  • A key holding api-keys:write may create keys only with permissions it holds itself, named in full, and may revoke only itself and the keys it created.

For an AI agent, weird mcp setup makes a key with only the permissions of the toolsets you choose: see using weird with an AI assistant.

Every permission#

PermissionAreaAccessSensitiveCovered by a wildcardWhat it allows
account:exportaccountexportyesnoask for and download a copy of all the data kept about the account, personal details included (it produces a copy of the account's data; it changes nothing)
account:readaccountreadnonoread the account, its sessions, personal profile, linked email addresses and closing request
account:writeaccountwriteyesnochange the personal profile and the email address, link addresses, end sessions and close the account
api-keys:readapi-keysreadnonolist the account's API keys
api-keys:writeapi-keyswriteyesnocreate and revoke API keys
billing:readbillingreadnonoread billing profiles, top-ups and invoices
billing:writebillingwriteyesnochange billing profiles and start top-ups (payments)
credits:readcreditsreadnoyesread the credit balance, the credit history, the statement, the credit charges and the promotional credit
dns:readdnsreadnoyesread DNS zones, their records, events, DNSSEC and exports
dns:writednswritenoyescreate, change, import and delete DNS zones and records (charged)
domains:readdomainsreadnoyesread registered domains, their availability and changes of holder
domains:writedomainswritenoyesregister, renew, transfer and change domains: nameservers, registrant details, renewal, hosting (charged)
grants:readgrantsreadnonoread the access the account gave to other accounts on its domains, and the access given to it
grants:writegrantswriteyesnogive other accounts access to the account's domains, change or end it, and accept, decline or leave access given to the account
ipfs:readipfsreadnoyesread stored content, uploads, pins, gateway domains, path maps, IPNS names and the storage status
ipfs:writeipfswritenoyesenable storage, upload, pin and delete content, change its copies, and manage gateway domains, path maps and IPNS names (billed)
legalreadnonoread which terms of service and privacy notice the account accepted
legalwriteyesnoaccept the terms of service and privacy notice for the account
names:readnamesreadnoyesread the free names of the account, the bases they are claimed under and whether a name is free
names:writenameswritenoyesclaim and release free names (the name is free; the site behind it is billed as storage)
notifications:readnotificationsreadnonoread the account's notifications and which kinds of email it receives
notifications:writenotificationswritenonomark notifications read and choose which kinds of email the account receives
oauth:readoauthreadnonolist the applications the account authorized
oauth:writeoauthwritenonorevoke an application's access
p2p:readp2preadnoyesread p2p apps and their domains
p2p:writep2pwritenoyescreate, change and delete p2p apps and their domains, and mint their credentials (billed)
profile:readprofilereadnoyesfor an OAuth application: who signed in (the account id, email address and name) (OAuth clients only)
referrals:readreferralsreadnonoread the referral programme, the gifts sent and received and their rewards
referrals:writereferralswriteyesnobuy, claim, renew and take back credit gifts
security:readsecurityreadnonoread whether a second factor is enrolled
security:writesecuritywriteyesnoenrol or remove the second factor
stats:readstatsreadnoyesread the traffic statistics of the account's sites and pins (daily summaries, top pages, errors and, where switched on, detailed statistics), export them and read which sites have detailed statistics on
stats:writestatswritenonoswitch detailed traffic statistics on or off for the account's sites (billed by the hour while on; switching on makes you the controller of your visitors' data); granted only by naming it: no wildcard covers it
support:readsupportreadnonoread the account's support tickets
support:writesupportwritenonoopen support tickets and reply to them
tunnels:readtunnelsreadnoyesread tunnels
tunnels:writetunnelswritenoyescreate, change and delete tunnels (billed by the hour)
vps-secrets:readvps-secretsreadyesnoopen server consoles and reveal one-click app passwords
vps-transfers:readvps-transfersreadnonoread the transfers of servers, volumes and snapshots offered to and by the account
vps-transfers:writevps-transferswriteyesnooffer, accept, decline and cancel transfers of servers, volumes and snapshots between accounts
vps:readvpsreadnoyesread servers, volumes, snapshots, one-click apps, SSH keys, availability, limits and activity
vps:writevpswritenoyescreate, power, resize and delete servers, volumes, snapshots and app deployments, and manage SSH keys (billed by the hour)
withdrawals:readwithdrawalsreadnonoread the top-ups that may still be withdrawn from, what withdrawing would refund, and the account's refunds
withdrawals:writewithdrawalswriteyesnowithdraw from a top-up: its unused credit is removed and refunded to the payment it was made with

Wildcards:

  • * — every product scope (credits, ipfs, stats, dns, domains, names, vps, tunnels, p2p), read and write, except stats:write, which is granted only by naming it
  • *:* — the same as *
  • *:read — every product scope's read access
  • *:write — every product scope's write access, except stats:write
  • <area>:* — both accesses of one product area, such as vps:* (stats:* covers stats:read only)

Operations by permission: