Skip to main content
POST
/
v0
/
account_logs
Create account log entry
curl --request POST \
  --url https://api.tryarchitect.com/v0/account_logs \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "source": "<string>",
  "type": "webhook",
  "payload": {},
  "accountId": "<string>",
  "domain": "<string>",
  "name": "<string>",
  "idempotencyKey": "<string>"
}
'
{
  "accountId": "<string>",
  "accountLogId": "<string>",
  "createdAt": "<string>",
  "source": "<string>",
  "type": "<string>"
}

Authorizations

x-api-key
string
header
required

API key authentication for the External Actor Gateway

Body

application/json
source
string
required

Stored activity source

Required string length: 1 - 100
Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
type
string
default:webhook
required

Kebab-case person activity type. Defaults to 'webhook' when omitted (e.g. 'contact-update')

Required string length: 1 - 100
Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
payload
object
required
accountId
string
Minimum string length: 1
Pattern: ^account_[a-z0-9]{26}$
domain
string
Minimum string length: 1
name
string
Required string length: 1 - 255
idempotencyKey
string
Required string length: 1 - 255

Response

201 - application/json

AccountLog created successfully

accountId
string
required
Minimum string length: 1
Pattern: ^account_[a-z0-9]{26}$
accountLogId
string
required
Minimum string length: 1
Pattern: ^accountlog_[a-z0-9]{26}$
createdAt
string
required
Minimum string length: 1
Pattern: ^accountlog_[a-z0-9]{26}$
source
string
required

Stored activity source

Required string length: 1 - 100
Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
type
string
required

Stored activity source

Required string length: 1 - 100
Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$