Get public info for a pending invitation by token
curl --request GET \
--url https://api.sandbox.nevermined.app/api/v1/organizations/invitations/{token}import requests
url = "https://api.sandbox.nevermined.app/api/v1/organizations/invitations/{token}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sandbox.nevermined.app/api/v1/organizations/invitations/{token}', 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.sandbox.nevermined.app/api/v1/organizations/invitations/{token}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.sandbox.nevermined.app/api/v1/organizations/invitations/{token}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.nevermined.app/api/v1/organizations/invitations/{token}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.nevermined.app/api/v1/organizations/invitations/{token}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"email": "colleague@example.com",
"orgId": "<string>",
"organizationName": "<string>",
"role": "Admin",
"status": "pending",
"expiresAt": "2023-11-07T05:31:56Z",
"name": "Jane Doe"
}Invitations
Get public info for a pending invitation by token
Used by the webapp to pre-fill the sign-in form when arriving via a magic link, before the user authenticates. The raw token itself authorises this read-only lookup; the accept mutation still requires authentication. Returns 404 for tokens that are unknown, already used, or expired. Public endpoint — no authentication required.
GET
/
organizations
/
invitations
/
{token}
Get public info for a pending invitation by token
curl --request GET \
--url https://api.sandbox.nevermined.app/api/v1/organizations/invitations/{token}import requests
url = "https://api.sandbox.nevermined.app/api/v1/organizations/invitations/{token}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sandbox.nevermined.app/api/v1/organizations/invitations/{token}', 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.sandbox.nevermined.app/api/v1/organizations/invitations/{token}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.sandbox.nevermined.app/api/v1/organizations/invitations/{token}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.nevermined.app/api/v1/organizations/invitations/{token}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.nevermined.app/api/v1/organizations/invitations/{token}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"email": "colleague@example.com",
"orgId": "<string>",
"organizationName": "<string>",
"role": "Admin",
"status": "pending",
"expiresAt": "2023-11-07T05:31:56Z",
"name": "Jane Doe"
}Path Parameters
Raw token from the magic-link URL
Example:
"a1b2c3d4e5f6a1b2c3d4e5f6"
Response
Invitation info
Example:
"colleague@example.com"
Organization ID
Organization display name
Available options:
Admin, Member Available options:
pending, accepted, revoked, expired Example:
"Jane Doe"
Was this page helpful?