Mint a link code for the caller's own Slack link (a user or admin token)
POST
/v1/me/slack-link-code
const url = 'http://127.0.0.1:8080/v1/me/slack-link-code';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The code.
Media typeapplication/json
object
code
required
string
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" }}Headers
Section titled “Headers”Retry-After
integer