Skip to content

acceptInvite

POST
/public/invites/{code}/accept
curl --request POST \
--url http://localhost:8080/api/v1/public/invites/example/accept \
--header 'Content-Type: application/json' \
--data '{ "username": "example", "displayName": "example", "password": "example", "locale": "en", "client": "web", "deviceName": "example" }'
code
required
string
Media typeapplication/json
object
username
required
string
/^[a-zA-Z0-9_.-]{3,32}$/
displayName
required
string
>= 1 characters <= 60 characters
password
required
string
>= 8 characters <= 200 characters
locale
string
Allowed values: en zh-Hans th
client
required
string
Allowed values: web device
deviceName
string
<= 60 characters

Member created and logged in.

Media typeapplication/json
object
member
required
object
id
required
string
/^[a-z]{2,3}_[0-9a-hjkmnp-tv-z]{26}$/
username
required
string
displayName
required
string
role
required
string
Allowed values: owner member viewer
locale
One of:
string
Allowed values: en zh-Hans th
theme
required
string
Allowed values: system light dark
textScale
required
number
>= 1 <= 1.6
reducedMotion
required
boolean
shareVisits
boolean
showAiSummaries
boolean
avatar
One of:
object
id
required
string
/^[a-z]{2,3}_[0-9a-hjkmnp-tv-z]{26}$/
url
required

Signed URL, valid 24 h.

string
thumbUrl
string
cardUrl
string
posterUrl
string
mime
required
string
width
integer
height
integer
durationMs
integer
blurhash
string
alt
string
createdAt
required
string format: date-time
lastSeenAt
One of:
string format: date-time
csrfToken

Web clients only.

string
deviceToken

Device clients only. Shown once.

string

Examples

Exampleseed

Derived from fixtures/seed.json.

{
"csrfToken": "csrf_demoWebToken0123456789abcdef",
"member": {
"avatar": null,
"createdAt": "2026-09-27T09:00:00.000Z",
"displayName": "สมชาย",
"id": "mem_01j9gnwgka8c0bbep1kenhhwr9",
"lastSeenAt": null,
"locale": "th",
"reducedMotion": false,
"role": "viewer",
"shareVisits": true,
"showAiSummaries": true,
"textScale": 1.3,
"theme": "system",
"username": "somchai"
}
}

Invalid request.

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
code
required
string
i18nKey
string
detail
string
fields
Array<object>
object
path
required
string
code
required
string
i18nKey
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"i18nKey": "example",
"detail": "example",
"fields": [
{
"path": "example",
"code": "example",
"i18nKey": "example"
}
]
}

Conflicts with current state.

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
code
required
string
i18nKey
string
detail
string
fields
Array<object>
object
path
required
string
code
required
string
i18nKey
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"i18nKey": "example",
"detail": "example",
"fields": [
{
"path": "example",
"code": "example",
"i18nKey": "example"
}
]
}

Expired or revoked.

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
code
required
string
i18nKey
string
detail
string
fields
Array<object>
object
path
required
string
code
required
string
i18nKey
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"i18nKey": "example",
"detail": "example",
"fields": [
{
"path": "example",
"code": "example",
"i18nKey": "example"
}
]
}

Too many requests. See Retry-After.

Media typeapplication/problem+json
object
type
required
string format: uri
title
required
string
status
required
integer
code
required
string
i18nKey
string
detail
string
fields
Array<object>
object
path
required
string
code
required
string
i18nKey
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"code": "example",
"i18nKey": "example",
"detail": "example",
"fields": [
{
"path": "example",
"code": "example",
"i18nKey": "example"
}
]
}
Retry-After
integer