HTTP request
curl https://api.iagenify.com/api/auth/profile \
-X PUT \
-H "Authorization: Bearer $IAGENIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prenom":"Ada","nom":"Lovelace","ville":"London"}'JavaScript
const response = await fetch("https://api.iagenify.com/api/auth/profile", {
method: "PUT",
headers: { Authorization: `Bearer ${process.env.IAGENIFY_TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify({
"prenom": "Ada",
"nom": "Lovelace",
"ville": "London"
}),
});
const result = await response.json();
if (!response.ok) throw new Error(result.error);Python
import os, requests
response = requests.request(
"PUT",
"https://api.iagenify.com/api/auth/profile",
headers={"Authorization": "Bearer " + os.environ["IAGENIFY_TOKEN"]},
json={
"prenom": "Ada",
"nom": "Lovelace",
"ville": "London"
},
timeout=30,
)
response.raise_for_status()
result = response.json()Request body
nomstringFamily name.
prenomstringGiven name.
genrestringProfile gender value.
telstringTelephone number.
adressestringPostal address.
villestringCity.
Successful response
{ ok: true, user: { id: "…", prenom: "Ada", nom: "Lovelace" } }Send only intentional changes
Empty values are ignored by this endpoint. Do not send a whole cached profile when only one field was edited.
Passwords are not a public API operation
Use the signed-in account settings to change a password. Supplying <code>password</code> here returns <code>403 password_change_private</code>.