Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

Decline an invitation

Turns down an open invitation to your email address. The invitation stops working.

POST/_luna/auth/invites/{id}/decline
Authorization
AuthorizationBearer token · headerrequired

An account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.

Path parameters
idstringrequired

The invitation's id.

Responses
200

The invitation is declined.

okbooleanrequired

Always true.

default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Authorization
Parameters
Request
curl -X POST 'https://luna.example.com/_luna/auth/invites/string/decline' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "ok": true
}

Was this page helpful?