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:writemay 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#
| Permission | Area | Access | Sensitive | Covered by a wildcard | What it allows |
|---|---|---|---|---|---|
account:export | account | export | yes | no | ask 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:read | account | read | no | no | read the account, its sessions, personal profile, linked email addresses and closing request |
account:write | account | write | yes | no | change the personal profile and the email address, link addresses, end sessions and close the account |
api-keys:read | api-keys | read | no | no | list the account's API keys |
api-keys:write | api-keys | write | yes | no | create and revoke API keys |
billing:read | billing | read | no | no | read billing profiles, top-ups and invoices |
billing:write | billing | write | yes | no | change billing profiles and start top-ups (payments) |
credits:read | credits | read | no | yes | read the credit balance, the credit history, the statement, the credit charges and the promotional credit |
dns:read | dns | read | no | yes | read DNS zones, their records, events, DNSSEC and exports |
dns:write | dns | write | no | yes | create, change, import and delete DNS zones and records (charged) |
domains:read | domains | read | no | yes | read registered domains, their availability and changes of holder |
domains:write | domains | write | no | yes | register, renew, transfer and change domains: nameservers, registrant details, renewal, hosting (charged) |
grants:read | grants | read | no | no | read the access the account gave to other accounts on its domains, and the access given to it |
grants:write | grants | write | yes | no | give other accounts access to the account's domains, change or end it, and accept, decline or leave access given to the account |
ipfs:read | ipfs | read | no | yes | read stored content, uploads, pins, gateway domains, path maps, IPNS names and the storage status |
ipfs:write | ipfs | write | no | yes | enable storage, upload, pin and delete content, change its copies, and manage gateway domains, path maps and IPNS names (billed) |
legal:read | legal | read | no | no | read which terms of service and privacy notice the account accepted |
legal:write | legal | write | yes | no | accept the terms of service and privacy notice for the account |
names:read | names | read | no | yes | read the free names of the account, the bases they are claimed under and whether a name is free |
names:write | names | write | no | yes | claim and release free names (the name is free; the site behind it is billed as storage) |
notifications:read | notifications | read | no | no | read the account's notifications and which kinds of email it receives |
notifications:write | notifications | write | no | no | mark notifications read and choose which kinds of email the account receives |
oauth:read | oauth | read | no | no | list the applications the account authorized |
oauth:write | oauth | write | no | no | revoke an application's access |
p2p:read | p2p | read | no | yes | read p2p apps and their domains |
p2p:write | p2p | write | no | yes | create, change and delete p2p apps and their domains, and mint their credentials (billed) |
profile:read | profile | read | no | yes | for an OAuth application: who signed in (the account id, email address and name) (OAuth clients only) |
referrals:read | referrals | read | no | no | read the referral programme, the gifts sent and received and their rewards |
referrals:write | referrals | write | yes | no | buy, claim, renew and take back credit gifts |
security:read | security | read | no | no | read whether a second factor is enrolled |
security:write | security | write | yes | no | enrol or remove the second factor |
stats:read | stats | read | no | yes | read 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:write | stats | write | no | no | switch 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:read | support | read | no | no | read the account's support tickets |
support:write | support | write | no | no | open support tickets and reply to them |
tunnels:read | tunnels | read | no | yes | read tunnels |
tunnels:write | tunnels | write | no | yes | create, change and delete tunnels (billed by the hour) |
vps-secrets:read | vps-secrets | read | yes | no | open server consoles and reveal one-click app passwords |
vps-transfers:read | vps-transfers | read | no | no | read the transfers of servers, volumes and snapshots offered to and by the account |
vps-transfers:write | vps-transfers | write | yes | no | offer, accept, decline and cancel transfers of servers, volumes and snapshots between accounts |
vps:read | vps | read | no | yes | read servers, volumes, snapshots, one-click apps, SSH keys, availability, limits and activity |
vps:write | vps | write | no | yes | create, power, resize and delete servers, volumes, snapshots and app deployments, and manage SSH keys (billed by the hour) |
withdrawals:read | withdrawals | read | no | no | read the top-ups that may still be withdrawn from, what withdrawing would refund, and the account's refunds |
withdrawals:write | withdrawals | write | yes | no | withdraw 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 asvps:*(stats:*covers stats:read only)
Operations by permission:
account:export:requestDataExport,getDataExport,downloadDataExportaccount:read:getAccountClosing,getAccountRestrictions,listEmails,me,getProfile,listSessionsaccount:write:requestAccountClosing,cancelAccountClosing,startEmailChange,verifyEmailChange,linkEmailStart,linkEmailConfirm,unlinkEmail,setLanguage,updateProfile,phoneVerifyCheck,phoneVerifyStart,revokeSessionapi-keys:read:listApiKeysapi-keys:write:createApiKey,revokeApiKeybilling:read:listBillingProfiles,topupConfig,topupStatus,listTopups,listInvoices,getInvoice,getInvoicePdfbilling:write:createBillingProfile,updateBillingProfile,deleteBillingProfile,defaultBillingProfile,startTopupcredits:read:getBalance,getCharges,listLedger,getPromotionalBalance,statementdns:read:listDnsEvents,listDnsZones,getDnsZone,getDnsZoneDnssec,exportDnsZone,getDnsMigrationAdvice,previewDnsResync,previewDnsSeed,listDnsSnapshots,getDnsSnapshotdns:write:createDnsZone,deleteDnsZone,checkDnsZoneNow,importDnsZone,upsertDnsRecords,deleteDnsRecord,resyncDnsZone,applyDnsResync,seedDnsZone,takeDnsSnapshotdomains:read:listDomains,domainAvailability,getDomain,getDomainTradedomains:write:registerDomain,setDomainAutoRenew,enableDomainHosting,setDomainNameservers,updateDomainRegistrant,adoptDomainRegistrantEmail,renewDomain,setDomainSensitive,tradeDomain,transferDomain,requestDomainTransferOut,cancelDomainTransferOutgrants:read:listDomainGrants,listGrantsgrants:write:createDomainGrant,changeDomainGrant,revokeDomainGrant,acceptGrant,declineGrant,leaveGrantipfs:read:getIpfsAccountUnpaid,inspectIpfsCid,listIpfsContent,getIpfsContent,listIpfsDomains,getIpfsDomain,listIpfsDomainPins,listIpfsGrants,listIpfsNames,getIpfsName,listPathMaps,listPins,getPin,getIpfsLocationNotice,listIpfsUploads,getUpload,getIpfsUsageipfs:write:deleteIpfsContent,setIpfsContentCopies,attachIpfsDomain,detachIpfsDomain,updateIpfsDomainPins,retargetIpfsDomain,createIpfsGrant,revokeIpfsGrant,createIpfsName,retireIpfsName,setIpfsNameTarget,createPathMap,deletePathMap,setPathMapDesired,createPin,deletePin,enableIpfsStorage,createUpload,abortUpload,completeUploadlegal:read:legalStatus,legalAcknowledgementslegal:write:legalAcceptnames:read:listFreeNames,listFreeNameBases,checkFreeName,getFreeNamenames:write:claimFreeName,releaseFreeNamenotifications:read:getCreditWarning,listNotifications,getNotificationPreferencesnotifications:write:setCreditWarning,setNotificationPreferences,markNotificationsReadoauth:read:listOAuthGrantsoauth:write:revokeOAuthGrantp2p:read:listP2pApps,getP2pApp,listP2pAppDomainsp2p:write:createP2pApp,updateP2pApp,deleteP2pApp,attachP2pAppDomain,detachP2pAppDomain,verifyP2pAppDomainDns,mintP2pMailboxCredentials,mintP2pTurnCredentialsprofile:read:oauthUserinforeferrals:read:getReferralPromotion,getReferrals,getGiftreferrals:write:claimGift,createGift,regenerateGift,revokeGiftsecurity:read:securityStatussecurity:write:disableSecondFactor,enrollStart,enrollVerifystats:read:getIpfsStatsDetail,exportIpfsStats,getIpfsStatsPaths,getIpfsStatsSettings,listIpfsStatsSubjects,getIpfsStatsSummary,getIpfsStatsTodaystats:write:enableIpfsDomainStatsDetail,disableIpfsDomainStatsDetailsupport:read:listTickets,readTicketsupport:write:openTicket,replyTickettunnels:read:listTunnels,getTunneltunnels:write:createTunnel,updateTunnel,deleteTunnel,verifyTunnelDnsvps-secrets:read:revealVpsAppPassword,openVpsConsolevps-transfers:read:listVpsTransfersvps-transfers:write:offerVpsInstanceTransfer,cancelVpsInstanceTransfer,offerVpsSnapshotTransfer,cancelVpsSnapshotTransfer,acceptVpsTransfer,declineVpsTransfer,offerVpsVolumeTransfer,cancelVpsVolumeTransfervps:read:getVpsAction,listVpsActivity,listVpsApps,listVpsAppDeployments,getVpsAppDeployment,getVpsAvailability,getVpsCharges,listVpsInstances,getVpsInstance,listVpsInstanceActions,listVpsInstanceHostnames,getVpsInstanceMetrics,getVpsLimits,listVpsSnapshots,listSshKeys,getSshKey,listVpsSystemImages,listVpsTiers,listVpsVolumes,getVpsVolumevps:write:deployVpsApp,createVpsInstance,deleteVpsInstance,connectVpsInstanceHostname,disconnectVpsInstanceHostname,powerOffVpsInstance,powerOnVpsInstance,setVpsQueueNotify,setVpsInstanceRdns,rebootVpsInstance,rebuildVpsInstance,resetVpsInstance,resizeVpsInstance,shutdownVpsInstance,createVpsSnapshot,deleteVpsSnapshot,createSshKey,generateSshKey,deleteSshKey,createVpsVolume,deleteVpsVolume,attachVpsVolume,detachVpsVolume,resizeVpsVolumewithdrawals:read:listWithdrawalswithdrawals:write:withdraw