Rafiq for developers

Authentication

Every request is authenticated with a bearer token in the Authorization header.

Authorization: Bearer rk_live_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d

Getting a key

  1. Sign in with your Nizam account — the same account you use for the rest of Al Muslim. If you do not have one, you will be prompted to create one.
  2. Open Keys and create a key, giving it a name you will recognise later ("production", "staging", "my laptop").
  3. Copy it immediately.

A key is shown exactly once

We store only a SHA-256 hash of your key, so we genuinely cannot show it to you again — not through the dashboard, and not if you email us. If you lose it, revoke it and create another.

Keeping keys safe

Test keys

Keys created with the test environment are prefixed rk_test_. They behave identically and draw on the same quota; the prefix exists so you can tell at a glance which key a log line belongs to.