List gate sign-in methods
GET
/api/v1/public/gate/methods
const url = 'https://api.deploybase.eu/api/v1/api/v1/public/gate/methods?host=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.deploybase.eu/api/v1/api/v1/public/gate/methods?host=example'Public. How a visitor may sign in to a private preview host: “team” (members of the owning team) and “password” (guests). Always 200; an unknown, public or invalid host answers [] exactly like a host while the doorway is off, so the endpoint is no oracle.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ” host
required
string
Preview hostname
Responses
Section titled “ Responses ”OK
Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
methods
Methods is a subset of [“team”,“password”]; [] when the host offers nothing (unknown, public, not a preview, or the doorway is off).
Array<string>
Example
{ "data": { "methods": [ "team", "password" ] }}Live a8b7eb1d built