Create login link
GET/domains/:domain/login-link
Generate a link that allows a user to log in as a domain administrator.
Request
Path Parameters
domain hostnamerequired
The domain name.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successfully created login link for the domain
- application/json
- Schema
- Example (from schema)
Schema
loginLinkstringrequired
If a user browses to this URL, they will be automatically logged in as a domain admin.
{
"loginLink": "string"
}
Bad Request, returned in the case that an error occurs while converting an A-label domain to a U-label domain name.
- application/json
- Schema
- Example (from schema)
Schema
codeinteger
messagestring
errorsstring[]
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
The domain does not belong to this customer.
- application/json
- Schema
- Example (from schema)
Schema
codeinteger
messagestring
errorsstring[]
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
Returned in the case that the domain is associated with an api key that is different than the one in the request, the domain is associated with a different customer, or the domain in the request is an alias domain.
- application/json
- Schema
- Example (from schema)
Schema
codeinteger
messagestring
errorsstring[]
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
The domain does not exist.
- application/json
- Schema
- Example (from schema)
Schema
codeinteger
messagestring
errorsstring[]
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
codeinteger
messagestring
errorsstring[]
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}