Pular para o conteúdo principal
POST
/
api
/
v1
/
authentication
/
cluster-invite
/
accept
CSharp (SDK)
using MeetKai.MKA1;
using MeetKai.MKA1.Types.Components;

var sdk = new SDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");

var res = await sdk.Auth.Cluster.AcceptInviteAsync();

// handle response
{
  "message": "<string>",
  "user": {
    "id": "<string>"
  },
  "organization": {
    "id": "<string>",
    "slug": "<string>"
  },
  "apiKey": {
    "id": "<string>",
    "userId": "<string>",
    "orgId": "<string>",
    "teamId": "<string>",
    "scopes": [
      "<string>"
    ],
    "name": "<string>",
    "key": "<string>",
    "prefix": "<string>",
    "start": "<string>",
    "expiresAt": "<string>"
  }
}

Cabeçalhos

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Corpo

application/json
token
string
obrigatório
Minimum string length: 1
email
string<email>
obrigatório
Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
orgName
string
obrigatório
Minimum string length: 1
name
string
password
string
Minimum string length: 8
orgSlug
string
passwordless
boolean
issueApiKey
boolean

Resposta

Organização criada

message
string
obrigatório
user
object
obrigatório
organization
object
obrigatório
apiKey
object | null
obrigatório