How to generate an API key for Wafeq
Wafeq is a cloud accounting platform popular in the MENA region (Saudi Arabia, UAE, Egypt) with built-in ZATCA e-invoicing compliance. The Wafeq Public API lets you read and write invoices, bills, contacts, payments, ledger accounts, and more from your Wafeq workspace.
To connect Wafeq to Apideck Vault you'll need a Wafeq API key. The key is scoped to the workspace where you generate it — there is no separate sandbox environment, so the same key works for both production and testing.
Steps
- Sign in to your Wafeq workspace at https://app.wafeq.com. If you don't have an account yet, you can sign up for a free account at the same URL — no credit card required.
- Enable the Public API for your workspace. Open Settings → Developer, then toggle the Public API switch on. If you don't see the Developer section, your subscription tier may not include API access — contact Wafeq support to enable it. Without this step the API key will be issued but every request returns
403 Forbidden. - In the same Developer section, open API Keys.
- Click Create new key.
- Give the key a descriptive name (e.g. "Apideck integration") so you can identify it later.
- Click Generate. Copy the API key value immediately — Wafeq only shows it once.
Connecting in Vault
In Apideck Vault, paste the API key into the API Key field when prompted. Vault will use it as Authorization: Api-Key <YOUR_KEY> for every request to Wafeq.
Revoking access
To revoke the integration, return to Settings → Developer → API Keys in Wafeq and delete the key. Vault connections using that key will stop working immediately.