Users
Update my team profile
Updates the authenticated membership’s phone and job title. A nonempty phone must normalize successfully; changing the normalized number clears phone verification. country_code is required when phone is supplied. Does not assign team roles or permissions. Team profiles must be enabled and support sessions cannot edit them. Requires permission: team_member_profile.
PUT
/
admin
/
team-member-profile
Update my team profile
curl --request PUT \
--url https://api.gratona.com/v1/admin/team-member-profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone": "+12025550123",
"country_code": "US",
"job_title": "Development Director"
}
'import requests
url = "https://api.gratona.com/v1/admin/team-member-profile"
payload = {
"phone": "+12025550123",
"country_code": "US",
"job_title": "Development Director"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({phone: '+12025550123', country_code: 'US', job_title: 'Development Director'})
};
fetch('https://api.gratona.com/v1/admin/team-member-profile', 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/admin/team-member-profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'phone' => '+12025550123',
'country_code' => 'US',
'job_title' => 'Development Director'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/admin/team-member-profile"
payload := strings.NewReader("{\n \"phone\": \"+12025550123\",\n \"country_code\": \"US\",\n \"job_title\": \"Development Director\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.gratona.com/v1/admin/team-member-profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"phone\": \"+12025550123\",\n \"country_code\": \"US\",\n \"job_title\": \"Development Director\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/team-member-profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone\": \"+12025550123\",\n \"country_code\": \"US\",\n \"job_title\": \"Development Director\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Profile details saved.",
"user": {
"id": 42,
"client_id": 12,
"email": "jane@example.org",
"name": "Jane Admin",
"phone": "+12025550123",
"phone_e164": "+12025550123",
"phone_verified": false,
"job_title": "Development Director",
"team_roles": [
{
"key": "fundraiser",
"label": "Fundraiser",
"description": "Manages donor relationships."
}
],
"team_role_keys": [
"fundraiser"
],
"team_role_version": 1,
"access_role": {
"id": 4,
"name": "Development"
},
"team_role_compatibility": {
"status": "aligned",
"warnings": [
{
"code": "fundraiser_missing_donor_access",
"team_role_key": "fundraiser",
"message": "The Access role cannot view donors.",
"action_label": "Review Access role"
}
]
},
"profile_completion": {
"enabled": true,
"status": "incomplete",
"missing_required_fields": [
"phone"
],
"missing_recommended_fields": [
"job_title"
],
"should_prompt": true,
"can_snooze": true,
"version": 1,
"snoozed_until": "2026-11-19T10:00:00Z"
}
}
}{
"message": "Unauthorized",
"status": "error"
}{
"message": "Not Found",
"status": "error"
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}Authorizations
bearerAuthapiKeyAuth
Passport bearer token authentication for legacy admin sessions.
Body
application/json
Validated request fields for this operation.
Raw mobile phone; null or blank clears it.
Maximum string length:
64Example:
"+12025550123"
Required with phone, two-character normalization region.
Required string length:
2Example:
"US"
Job title; null or blank clears it.
Maximum string length:
120Example:
"Development Director"
⌘I
Update my team profile
curl --request PUT \
--url https://api.gratona.com/v1/admin/team-member-profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone": "+12025550123",
"country_code": "US",
"job_title": "Development Director"
}
'import requests
url = "https://api.gratona.com/v1/admin/team-member-profile"
payload = {
"phone": "+12025550123",
"country_code": "US",
"job_title": "Development Director"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({phone: '+12025550123', country_code: 'US', job_title: 'Development Director'})
};
fetch('https://api.gratona.com/v1/admin/team-member-profile', 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/admin/team-member-profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'phone' => '+12025550123',
'country_code' => 'US',
'job_title' => 'Development Director'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/admin/team-member-profile"
payload := strings.NewReader("{\n \"phone\": \"+12025550123\",\n \"country_code\": \"US\",\n \"job_title\": \"Development Director\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.gratona.com/v1/admin/team-member-profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"phone\": \"+12025550123\",\n \"country_code\": \"US\",\n \"job_title\": \"Development Director\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/team-member-profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone\": \"+12025550123\",\n \"country_code\": \"US\",\n \"job_title\": \"Development Director\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Profile details saved.",
"user": {
"id": 42,
"client_id": 12,
"email": "jane@example.org",
"name": "Jane Admin",
"phone": "+12025550123",
"phone_e164": "+12025550123",
"phone_verified": false,
"job_title": "Development Director",
"team_roles": [
{
"key": "fundraiser",
"label": "Fundraiser",
"description": "Manages donor relationships."
}
],
"team_role_keys": [
"fundraiser"
],
"team_role_version": 1,
"access_role": {
"id": 4,
"name": "Development"
},
"team_role_compatibility": {
"status": "aligned",
"warnings": [
{
"code": "fundraiser_missing_donor_access",
"team_role_key": "fundraiser",
"message": "The Access role cannot view donors.",
"action_label": "Review Access role"
}
]
},
"profile_completion": {
"enabled": true,
"status": "incomplete",
"missing_required_fields": [
"phone"
],
"missing_recommended_fields": [
"job_title"
],
"should_prompt": true,
"can_snooze": true,
"version": 1,
"snoozed_until": "2026-11-19T10:00:00Z"
}
}
}{
"message": "Unauthorized",
"status": "error"
}{
"message": "Not Found",
"status": "error"
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}