Archiving and deleting people

The process to delete a contact is first to archive it, then to delete it. Archived contacts stop receiving updates but are still available in your account to view and export. Archived contacts to not count towards your plan contact limit. Once you archive them if you want to, you can delete them permanently. You can do batches of contacts up to 100 at once.

Here is how to archive contacts:

curl --request PUT \
	--url https://api.ap3api.com/v1/person/archive \
	--header 'Content-Type: application/json' \
	--header 'X-API-KEY: API_KEY' \
	--data '{
		"inclusion_ids": ["00609384fa6de6e7a8d89d01"]
	}'

Where inclusion_ids is an array of strings representing contact_id.

If you need to restore an archived contact, you can do it like so:

curl --request PUT \
	--url https://api.ap3api.com/v1/person/restore \
	--header 'Content-Type: application/json' \
	--header 'X-API-KEY: API_KEY' \
	--data '{
		"inclusion_ids": ["00609384fa6de6e7a8d89d01"]
	}'

Here is how to delete contacts (once they are archived):

curl --request DELETE \
	--url https://api.ap3api.com/v1/person/delete \
	--header 'Content-Type: application/json' \
	--header 'X-API-KEY: API_KEY' \
	--data '{
		"inclusion_ids": ["00609384fa6de6e7a8d89d01"]
	}'