Accept Invite
curl --request POST \
--url https://api.vertracloud.app/v1/workspaces/invites/{token}/acceptimport requests
url = "https://api.vertracloud.app/v1/workspaces/invites/{token}/accept"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.vertracloud.app/v1/workspaces/invites/{token}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vertracloud.app/v1/workspaces/invites/{token}/accept",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/workspaces/invites/{token}/accept"
req, _ := http.NewRequest("POST", url, nil)
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.vertracloud.app/v1/workspaces/invites/{token}/accept")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/workspaces/invites/{token}/accept")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyInvites
Accept Invite
Accepts an invite and joins the workspace. Any logged-in account; an API key needs the workspaces:invites scope.
POST
/
v1
/
workspaces
/
invites
/
{token}
/
accept
Accept Invite
curl --request POST \
--url https://api.vertracloud.app/v1/workspaces/invites/{token}/acceptimport requests
url = "https://api.vertracloud.app/v1/workspaces/invites/{token}/accept"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.vertracloud.app/v1/workspaces/invites/{token}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vertracloud.app/v1/workspaces/invites/{token}/accept",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/workspaces/invites/{token}/accept"
req, _ := http.NewRequest("POST", url, nil)
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.vertracloud.app/v1/workspaces/invites/{token}/accept")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/workspaces/invites/{token}/accept")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyAn API key needs the
workspaces:invites scope and acts as the account that owns it: an
e-mail invite only matches if that account’s e-mail is the invited one. Same 10/min session+IP
rate limit as Preview Invite.WORKSPACE_INVITE_EMAIL_MISMATCH. A
link invite has no such check.
Accepting is idempotent if you’re already a member: you get
200 back, not a 409 — clicking
an old invite link you already used doesn’t error.Path
string
required
The invite token.
Response
Same shape as Get Workspace — the workspace just joined.Errors
| Status | Code | When |
|---|---|---|
| 403 | API_KEY_SCOPE_DENIED | Called with an API key that lacks the workspaces:invites scope. |
| 403 | WORKSPACE_INVITE_EMAIL_MISMATCH | (e-mail invite) Caller’s e-mail doesn’t match the invited address. |
| 403 | WORKSPACE_INVITES_DISABLED | Workspace has invites turned off. |
| 404 | WORKSPACE_INVITE_NOT_FOUND | Token doesn’t exist, or the invite was revoked or exhausted. |
| 409 | WORKSPACE_MEMBER_LIMIT_REACHED | Owner’s plan member cap reached. |
| 410 | WORKSPACE_INVITE_EXPIRED | Invite existed but its expiry has passed. |