Resend a pending workspace invitation
curl --request POST \
--url https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend', 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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"email": "new@partner.com",
"role": "member",
"status": "pending",
"organization": {
"slug": "<string>",
"name": "<string>"
},
"workspace": {
"slug": "<string>",
"name": "<string>",
"role": "admin"
},
"expiresAt": "<string>",
"createdAt": "<string>",
"inviterEmail": "<string>",
"inviterName": "<string>"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Authentication required. Sign in and try again.",
"instance": "/v1/organizations",
"requestId": "2f6a9c3d-1e4b-4a8c-b7d2-5e0f1a2b3c4d"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"instance": "/v1/me",
"detail": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "Organization not found.",
"instance": "/v1/organizations/no-such-org",
"requestId": "a1b2c3d4-9e8f-4d7c-8b6a-5f4e3d2c1b0a"
}workspaces
Resend a pending workspace invitation
Effective workspace admins. Sends the same link again and extends the expiry by 48 hours; an expired invitation comes back to life.
POST
/
v1
/
organizations
/
{orgSlug}
/
workspaces
/
{workspaceSlug}
/
invitations
/
{id}
/
resend
Resend a pending workspace invitation
curl --request POST \
--url https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend', 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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/invitations/{id}/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"email": "new@partner.com",
"role": "member",
"status": "pending",
"organization": {
"slug": "<string>",
"name": "<string>"
},
"workspace": {
"slug": "<string>",
"name": "<string>",
"role": "admin"
},
"expiresAt": "<string>",
"createdAt": "<string>",
"inviterEmail": "<string>",
"inviterName": "<string>"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Authentication required. Sign in and try again.",
"instance": "/v1/organizations",
"requestId": "2f6a9c3d-1e4b-4a8c-b7d2-5e0f1a2b3c4d"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"instance": "/v1/me",
"detail": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "Organization not found.",
"instance": "/v1/organizations/no-such-org",
"requestId": "a1b2c3d4-9e8f-4d7c-8b6a-5f4e3d2c1b0a"
}Authorizations
bearerAuthapiKey
Session token as Authorization: Bearer (the CLI and scripts).
Response
The invitation with its new expiry
Example:
"new@partner.com"
Example:
"member"
Available options:
pending, accepted, declined, canceled, expired Show child attributes
Show child attributes
Show child attributes
Show child attributes
ISO timestamp
ISO timestamp
The inviter's display name
Was this page helpful?