API reference

Orgs & memberships

The tenancy spine. Every request acts within exactly one org; API keys are org-bound, and sessions choose the active org with the `Renza-Org` header. Memberships list who belongs to the active org.

Attributes

  • idstringrequired
  • objectstringrequired
  • namestringrequired
  • typestringrequired

    Possible values: personal, team

  • metadataobjectrequired

    Arbitrary key/value map; merge-on-write (§6).

  • created_attimestamprequired
  • updated_attimestamprequired

List orgs

GET/v1/orgs

Lists the orgs the credential can act on. A key is bound to one org, so this returns it.

Requires an API key (bearer), scoped to the active org.

Returns

  • 200The accessible org(s).

Failures use the standard error envelope with a closed set of codes.

Retrieve an org

GET/v1/orgs/{id}

Fetches an org by id. Only the credential's active org is accessible.

Requires an API key (bearer), scoped to the active org.

Path parameters

  • idstringrequired

Returns

  • 200The org.

Failures use the standard error envelope with a closed set of codes.

Update an org

PATCH/v1/orgs/{id}

Partial update of the active org (name; `metadata` merges per §6).

Requires an API key (bearer), scoped to the active org. Supports idempotency keys.

Path parameters

  • idstringrequired

Body parameters

  • namestringoptionalmax 200 chars
  • metadataobjectoptional

    Arbitrary key/value map; merge-on-write (§6).

Returns

  • 200The updated org.

Failures use the standard error envelope with a closed set of codes.

List memberships

GET/v1/memberships

Lists the members of the credential's active org.

Requires an API key (bearer), scoped to the active org.

Returns

  • 200The active org's memberships.

Failures use the standard error envelope with a closed set of codes.