Delete your account (after a 7-day grace period)
curl --request POST \
--url https://api.apsio.io/v1/me/erasure \
--header 'Content-Type: application/json' \
--cookie apsio_session= \
--data '
{
"confirm": "<string>"
}
'import requests
url = "https://api.apsio.io/v1/me/erasure"
payload = { "confirm": "<string>" }
headers = {
"cookie": "apsio_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'apsio_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({confirm: '<string>'})
};
fetch('https://api.apsio.io/v1/me/erasure', 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.apsio.io/v1/me/erasure",
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([
'confirm' => '<string>'
]),
CURLOPT_COOKIE => "apsio_session=",
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.apsio.io/v1/me/erasure"
payload := strings.NewReader("{\n \"confirm\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "apsio_session=")
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.apsio.io/v1/me/erasure")
.header("cookie", "apsio_session=")
.header("Content-Type", "application/json")
.body("{\n \"confirm\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apsio.io/v1/me/erasure")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'apsio_session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"confirm\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"erasure": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"execute_after": "2023-11-07T05:31:56Z"
},
"sign_out_url": "<string>"
}Console API
Delete your account (after a 7-day grace period)
Schedules your account’s erasure: your memberships and personal data (name, email, preferences) are deleted, and so is your account at the identity provider, after 7 days unless you cancel (sign in again within them). Organizations you are the only member of are deleted with it, their subscriptions ended now. Refused (409) while you are the only owner of an organization others belong to. Needs a sign-in under ten minutes old (reauth_required: sign in again with /v1/auth/sign-in?reauth=1) and your email as confirm. Signs you out.
POST
/
me
/
erasure
Delete your account (after a 7-day grace period)
curl --request POST \
--url https://api.apsio.io/v1/me/erasure \
--header 'Content-Type: application/json' \
--cookie apsio_session= \
--data '
{
"confirm": "<string>"
}
'import requests
url = "https://api.apsio.io/v1/me/erasure"
payload = { "confirm": "<string>" }
headers = {
"cookie": "apsio_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'apsio_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({confirm: '<string>'})
};
fetch('https://api.apsio.io/v1/me/erasure', 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.apsio.io/v1/me/erasure",
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([
'confirm' => '<string>'
]),
CURLOPT_COOKIE => "apsio_session=",
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.apsio.io/v1/me/erasure"
payload := strings.NewReader("{\n \"confirm\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "apsio_session=")
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.apsio.io/v1/me/erasure")
.header("cookie", "apsio_session=")
.header("Content-Type", "application/json")
.body("{\n \"confirm\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apsio.io/v1/me/erasure")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cookie"] = 'apsio_session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"confirm\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"erasure": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"execute_after": "2023-11-07T05:31:56Z"
},
"sign_out_url": "<string>"
}Authorizations
The console session, set by /v1/auth/callback (__Host-apsio_session when host-only).
Body
application/json
Maximum string length:
254