Skip to content

Mint a link code for the caller's own Slack link (a user or admin token)

POST
/v1/me/slack-link-code
curl --request POST \
--url http://127.0.0.1:8080/v1/me/slack-link-code \
--header 'Authorization: Bearer <token>'

The code is single use and expires after 10 minutes. It is shown only in this response. Type /zentri link <code> in Slack to use it.

The code.

Media typeapplication/json
object
code
required
string
/^ZL-[0-9A-HJKMNP-TV-Z]{4}-[0-9A-HJKMNP-TV-Z]{4}-[0-9A-HJKMNP-TV-Z]{4}$/
expires_at
required
string format: date-time

Example generated

{
"code": "example",
"expires_at": "2026-04-15T12:00:00Z"
}

No valid bearer token.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

The token may not do this.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

A rate limit or quota stopped the request. Retry-After gives seconds to wait.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}
Retry-After
integer