Read an organization invitation
curl --request POST \
--url https://api.glassmarkets.io/v1/onboarding/invite/ \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'import requests
url = "https://api.glassmarkets.io/v1/onboarding/invite/"
payload = { "token": "<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>'})
};
fetch('https://api.glassmarkets.io/v1/onboarding/invite/', 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/invite/"
payload := strings.NewReader("{\n \"token\": \"<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/invite/")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"<string>\"\n}")
.asString();{
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"organization": "<string>"
}{
"token": [
"This field is required."
]
}{
"detail": "Request was throttled. Expected available in 42 seconds."
}Authentication
Read an organization invitation
Returns the account and organization attached to a valid, unused invitation. Requires a trusted frontend origin.
Read an organization invitation
curl --request POST \
--url https://api.glassmarkets.io/v1/onboarding/invite/ \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'import requests
url = "https://api.glassmarkets.io/v1/onboarding/invite/"
payload = { "token": "<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>'})
};
fetch('https://api.glassmarkets.io/v1/onboarding/invite/', 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/invite/"
payload := strings.NewReader("{\n \"token\": \"<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/invite/")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"<string>\"\n}")
.asString();{
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"organization": "<string>"
}{
"token": [
"This field is required."
]
}{
"detail": "Request was throttled. Expected available in 42 seconds."
}
