Skip to content

Mint a link code for another user (admin), to hand over privately

POST
/v1/users/{user_id}/slack-link-code
curl --request POST \
--url http://127.0.0.1:8080/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/slack-link-code \
--header 'Authorization: Bearer <token>'
user_id
required
string format: uuid

The code. It is shown only in this response.

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"
}

The request is malformed.

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

Example generated

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

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"
}
}

No such resource in the caller’s org.

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