Restore Contact
curl --request POST \
--url https://api.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore', 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.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"attributes": {
"consent_source": "<string>",
"consent_version": "<string>",
"contact_id": "<string>",
"country": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"email": "jsmith@example.com",
"email_verified_at": "2023-11-07T05:31:56Z",
"first_name": "<string>",
"last_name": "<string>",
"marketing_consent_at": "2023-11-07T05:31:56Z",
"meta": {},
"phone": "<string>",
"restored_at": "2023-11-07T05:31:56Z",
"source": "<string>",
"timezone": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"city": "<string>",
"state": "<string>"
},
"id": "<string>",
"type": "team_contacts"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}contacts-admin
Restore Contact
Restore a soft-deleted team contact. Silent — no event emitted.
IMPORTANT — restores LOGIN only, not hub memberships: a soft-deleted contact’s active hub_memberships rows are cascaded to ‘left’ by DELETE …/ (see that route’s description). This endpoint clears the login lock ONLY; it does NOT reactivate any hub membership. The restored contact must be explicitly re-added to each hub (POST …/hubs//members) to rejoin. Deliberate product decision, not a bug.
POST
/
api
/
v1
/
teams
/
{team_id}
/
contacts
/
{team_contact_id}
/
restore
Restore Contact
curl --request POST \
--url https://api.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore', 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.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.member.dev/api/v1/teams/{team_id}/contacts/{team_contact_id}/restore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"attributes": {
"consent_source": "<string>",
"consent_version": "<string>",
"contact_id": "<string>",
"country": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"email": "jsmith@example.com",
"email_verified_at": "2023-11-07T05:31:56Z",
"first_name": "<string>",
"last_name": "<string>",
"marketing_consent_at": "2023-11-07T05:31:56Z",
"meta": {},
"phone": "<string>",
"restored_at": "2023-11-07T05:31:56Z",
"source": "<string>",
"timezone": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"city": "<string>",
"state": "<string>"
},
"id": "<string>",
"type": "team_contacts"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}⌘I