Update Your Account
Update your account information, including your email and password.
curl -X PUT "https://api.datafiniti.co/v4/account" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"first_name": "Shawn"
}'
import requests
import json
url = "https://api.datafiniti.co/v4/account"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"first_name": "Shawn"
}
response = requests.put(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.datafiniti.co/v4/account", {
method: "PUT",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"first_name": "Shawn"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"first_name": "Shawn"
}`)
req, err := http.NewRequest("PUT", "https://api.datafiniti.co/v4/account", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.datafiniti.co/v4/account')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Put.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request.body = '{
"first_name": "Shawn"
}'
response = http.request(request)
puts response.body
{
"email": "user@example.com",
"first_name": "John Doe",
"last_name": "John Doe",
"num_credits_used": 42,
"business_credits_allotted": 42,
"business_credits_used": 42,
"people_credits_allotted": 42,
"people_credits_used": 42,
"product_credits_allotted": 42,
"product_credits_used": 42,
"property_credits_allotted": 42,
"property_credits_used": 42
}
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
/account
Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>
The media type of the request body
New email address
New password
First name
Last name
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Bearer token obtained from the /auth endpoint. Include in requests as: Authorization: Bearer <token>
Body
New email address
New password
First name
Last name
Responses
Account email address
First name
Last name
Total credits used (legacy plans)
Business data credits allotted
Business data credits used
People data credits allotted
People data credits used
Product data credits allotted
Product data credits used
Property data credits allotted
Property data credits used
Error message describing what went wrong
This allows you to update your account information, including your email and password.
If you update your email or password, we'll send you an email to your original email address to tell you about it.
Last updated Mar 26, 2026
Built with Documentation.AI