account

Invite someone to the organization this request is bound to, by email or username.

Invite someone to the organization this request is bound to, by email or username. kind membership needs member:write and adds them with a role (and optional teams). kind grant needs manage access on the resource and gives them a preset or permission list. The token is returned once, with a prompt that tells them to call inviteAccept. Invites expire in 7 days.

Org permission: none (touches no org data).

post/v1/access/invites

Request

  • Base URL: https://api.kody.codes
  • URL: https://api.kody.codes/v1/access/invites
  • Auth: HTTP bearer

Request body

kind'membership' | 'grant' required
emailstring
usernamestring
role'owner' | 'member' | 'billing'
team_idsstring[]
resource_type'package' | 'app' | 'job' | 'credential' | 'memory' | 'email' | 'org' | 'secret' | 'integration'
resource_idstring
preset'use' | 'contribute' | 'manage'
permissionsstring[]

Response

Success.

tokenstring required
promptstring required

Changes

No recorded changes to this operation across all 2 revisions of this API.