Authentication

Every request carries an API key that identifies your organization. Organizations get keys from Grihafy; see Getting access.

Send the key

Use either header on every request. Both work the same way.

Authorization: Bearer gfy_test_...

Create a key

  1. An organization owner or admin opens /org/your-org/settings/api-keys in the Grihafy web app.
  2. Choose test or live, and an expiry of 30, 90 or 365 days, or no expiry.
  3. Copy the key right away. It is shown only once.
KeyPrefixWhat it does
Testgfy_test_Returns the same sample result for any image. Uses no credits and no AI. See Sandbox.
Livegfy_live_Analyzes real floor plans and uses one credit per analysis.

Check that a key works

Read the credit balance. A test key answers with available: null because it never uses credits.

curl https://api.grihafy.com/v1/credits \
  -H "Authorization: Bearer gfy_test_..."

Authentication errors

ResponseMeaning
401 unauthorizedThe key is missing, malformed, revoked or expired, or its organization no longer exists. Create a new key.
403 org_suspendedYour organization is suspended. Analyses already running finish, but you cannot create new ones. Contact us.

Test and live keys see separate data: a test key never reads live analyses, and a live key never reads test analyses. See the API reference for the security scheme.