Auth
Redeem an administrator activation link
Consumes a one-time, purpose-bound invitation credential. Successful redemption proves mailbox ownership, activates the member, and returns the same authenticated administrator session payload used by passwordless sign-in.
POST
/
user
/
email
/
verification
Redeem an administrator activation link
curl --request POST \
--url https://api.gratona.com/v1/user/email/verification \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"activationCode": "<string>"
}
'import requests
url = "https://api.gratona.com/v1/user/email/verification"
payload = {
"id": 123,
"activationCode": "<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({id: 123, activationCode: '<string>'})
};
fetch('https://api.gratona.com/v1/user/email/verification', 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.gratona.com/v1/user/email/verification",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 123,
'activationCode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gratona.com/v1/user/email/verification"
payload := strings.NewReader("{\n \"id\": 123,\n \"activationCode\": \"<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.gratona.com/v1/user/email/verification")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"activationCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/user/email/verification")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 123,\n \"activationCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"token": "<string>",
"user": {
"id": 1024,
"email": "staff@gratona.com",
"client_id": "207",
"first_name": "Alex",
"last_name": "Morgan",
"phone": "+15551234567",
"group_id": 4,
"permissions": {},
"onboarding_status": "3",
"activated": true,
"access_disabled_at": null,
"is_platform_admin": false,
"activation_code": null,
"activated_at": "2024-06-15T10:00:00Z",
"last_login": "2026-04-29T14:01:00Z",
"email_verified_at": "2024-06-15T10:00:00Z",
"created_at": "2024-06-15T09:50:00Z",
"updated_at": "2026-04-29T14:01:00Z"
},
"permissions": {}
}{
"message": "This activation link is invalid or expired."
}Body
application/json
Data required for user activation
Response
Activation credential redeemed
Example:
"success"
Authenticated administrator Passport bearer token.
An admin user — staff member of a client organization. Authenticates via Laravel Passport (bearer JWT) for the admin web app, and may also issue API keys (via ApiKey) for server-to-server integrations. Permissions are stored as JSON keyed by feature; group membership (group_id) supplies a baseline permission set on top of the per-user override.
Show child attributes
Show child attributes
⌘I
Redeem an administrator activation link
curl --request POST \
--url https://api.gratona.com/v1/user/email/verification \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"activationCode": "<string>"
}
'import requests
url = "https://api.gratona.com/v1/user/email/verification"
payload = {
"id": 123,
"activationCode": "<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({id: 123, activationCode: '<string>'})
};
fetch('https://api.gratona.com/v1/user/email/verification', 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.gratona.com/v1/user/email/verification",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 123,
'activationCode' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gratona.com/v1/user/email/verification"
payload := strings.NewReader("{\n \"id\": 123,\n \"activationCode\": \"<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.gratona.com/v1/user/email/verification")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"activationCode\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/user/email/verification")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 123,\n \"activationCode\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"token": "<string>",
"user": {
"id": 1024,
"email": "staff@gratona.com",
"client_id": "207",
"first_name": "Alex",
"last_name": "Morgan",
"phone": "+15551234567",
"group_id": 4,
"permissions": {},
"onboarding_status": "3",
"activated": true,
"access_disabled_at": null,
"is_platform_admin": false,
"activation_code": null,
"activated_at": "2024-06-15T10:00:00Z",
"last_login": "2026-04-29T14:01:00Z",
"email_verified_at": "2024-06-15T10:00:00Z",
"created_at": "2024-06-15T09:50:00Z",
"updated_at": "2026-04-29T14:01:00Z"
},
"permissions": {}
}{
"message": "This activation link is invalid or expired."
}