Create Space
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces"
payload = { "name": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"address": "<string>",
"object": "space",
"level": "<string>",
"page_count": 123,
"created_at": "<string>",
"updated_at": "<string>"
}Spaces
Create Space
Create an empty space. Its name is the first segment of every page address.
POST
/
api
/
v1
/
spaces
Create Space
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces"
payload = { "name": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"address": "<string>",
"object": "space",
"level": "<string>",
"page_count": 123,
"created_at": "<string>",
"updated_at": "<string>"
}Body
application/json
