Accept an organization invitation
curl --request POST \
--url https://api.glassmarkets.io/v1/onboarding/complete/ \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"first_name": "<string>",
"password": "<string>",
"last_name": "",
"factor": "email",
"setup_id": "<string>",
"code": "<string>"
}
'import requests
url = "https://api.glassmarkets.io/v1/onboarding/complete/"
payload = {
"token": "<string>",
"first_name": "<string>",
"password": "<string>",
"last_name": "",
"factor": "email",
"setup_id": "<string>",
"code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
token: '<string>',
first_name: '<string>',
password: '<string>',
last_name: '',
factor: 'email',
setup_id: '<string>',
code: '<string>'
})
};
fetch('https://api.glassmarkets.io/v1/onboarding/complete/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v1/onboarding/complete/"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"first_name\": \"<string>\",\n \"password\": \"<string>\",\n \"last_name\": \"\",\n \"factor\": \"email\",\n \"setup_id\": \"<string>\",\n \"code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glassmarkets.io/v1/onboarding/complete/")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"<string>\",\n \"first_name\": \"<string>\",\n \"password\": \"<string>\",\n \"last_name\": \"\",\n \"factor\": \"email\",\n \"setup_id\": \"<string>\",\n \"code\": \"<string>\"\n}")
.asString();{
"user": {
"username": "<string>",
"first_name": "<string>",
"id": 123,
"last_name": "<string>",
"email": "jsmith@example.com",
"is_staff": true,
"can_manage_tokenomics": true
},
"recovery_codes": [
"<string>"
],
"passkey_options": {
"ceremony_id": "<string>",
"public_key": "<unknown>"
},
"expiry": "2023-11-07T05:31:56Z",
"token": "<string>",
"csrf_token": "<string>"
}{
"first_name": [
"This field is required."
]
}{
"detail": "Request was throttled. Expected available in 42 seconds."
}Authentication
Accept an organization invitation
Sets the invited account password, optionally confirms an authenticator, and activates the account. Returns an HttpOnly browser session and optional passkey registration options. Email verification is the default second factor.
Accept an organization invitation
curl --request POST \
--url https://api.glassmarkets.io/v1/onboarding/complete/ \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"first_name": "<string>",
"password": "<string>",
"last_name": "",
"factor": "email",
"setup_id": "<string>",
"code": "<string>"
}
'import requests
url = "https://api.glassmarkets.io/v1/onboarding/complete/"
payload = {
"token": "<string>",
"first_name": "<string>",
"password": "<string>",
"last_name": "",
"factor": "email",
"setup_id": "<string>",
"code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
token: '<string>',
first_name: '<string>',
password: '<string>',
last_name: '',
factor: 'email',
setup_id: '<string>',
code: '<string>'
})
};
fetch('https://api.glassmarkets.io/v1/onboarding/complete/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v1/onboarding/complete/"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"first_name\": \"<string>\",\n \"password\": \"<string>\",\n \"last_name\": \"\",\n \"factor\": \"email\",\n \"setup_id\": \"<string>\",\n \"code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glassmarkets.io/v1/onboarding/complete/")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"<string>\",\n \"first_name\": \"<string>\",\n \"password\": \"<string>\",\n \"last_name\": \"\",\n \"factor\": \"email\",\n \"setup_id\": \"<string>\",\n \"code\": \"<string>\"\n}")
.asString();{
"user": {
"username": "<string>",
"first_name": "<string>",
"id": 123,
"last_name": "<string>",
"email": "jsmith@example.com",
"is_staff": true,
"can_manage_tokenomics": true
},
"recovery_codes": [
"<string>"
],
"passkey_options": {
"ceremony_id": "<string>",
"public_key": "<unknown>"
},
"expiry": "2023-11-07T05:31:56Z",
"token": "<string>",
"csrf_token": "<string>"
}{
"first_name": [
"This field is required."
]
}{
"detail": "Request was throttled. Expected available in 42 seconds."
}Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Maximum string length:
512Maximum string length:
150Maximum string length:
128Maximum string length:
150email- emailauthenticator- authenticator
Available options:
email, authenticator Maximum string length:
64Maximum string length:
6
