1. Get your API key
Your organization’s admin obtains an API key during partner onboarding (or from the 4D team directly). Keys are prefixedorg_ and are scoped to your
organization - every call you make operates inside your own tenant, enforced
at the database layer.
2. Set up your environment
All examples in these docs target the nonprod environment:3. Make your first call
Create (or attach) a member of your organization:201 Created comes back with the full user record:
Idempotency-Key, same body - and you get
the same user back with a 200 instead of a duplicate. Retries are safe by
design.
Conventions to know
- Wire format - JSON,
snake_casefield names. - Errors - every error shares one envelope:
codeis the stable contract;messagewording may change. - Idempotency - mutating endpoints that declare it accept an
Idempotency-Keyheader. Replaying the same key with the same body returns the original response; the same key with a different body is rejected with409 IDEMPOTENCY_CONFLICT.
Next steps
Authentication
The three credential types and when each applies.
Walkthrough: create a user
The full lifecycle: create, fetch, update, lock, remove.