Account
Sign in
Checks the email and password, sets the oc_session cookie for the user’s own team (or their first team), and returns the user and that team. No credential needed.
POST
/
v1
/
auth
/
login
Sign in
curl --request POST \
--url https://api.offstage.cloud/v1/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', password: '<string>'})
};
fetch('https://api.offstage.cloud/v1/auth/login', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.offstage.cloud/v1/auth/login"
payload = {
"email": "<string>",
"password": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"createdAt": 1,
"emailVerified": true
},
"team": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"createdAt": 1,
"verified": true,
"kind": "personal",
"region": "us"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}⌘I
Sign in
curl --request POST \
--url https://api.offstage.cloud/v1/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', password: '<string>'})
};
fetch('https://api.offstage.cloud/v1/auth/login', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.offstage.cloud/v1/auth/login"
payload = {
"email": "<string>",
"password": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"createdAt": 1,
"emailVerified": true
},
"team": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"createdAt": 1,
"verified": true,
"kind": "personal",
"region": "us"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}{
"error": {
"code": "sandbox-closed",
"message": "sandbox sbx_mh3k2f9aQ1xYz0aBcDeFgHiJ is closed (idle)",
"fix": "create a new sandbox",
"requestId": "req_mh3k2f9aQ1xYz0aBcDeFgHiJ"
}
}