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": "2023-11-07T05:31:56Z",
  "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

Identifier for the upstream system sending the account activity

Required string length: 1 - 100
type
string
default:webhook
required

Account activity type. Defaults to 'webhook' when omitted

Required string length: 1 - 100
payload
object
required
accountId
string

Account ID

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

Account ID

Minimum string length: 1
Pattern: ^account_[a-z0-9]{26}$
accountLogId
string
required
Minimum string length: 1
Pattern: ^prospectlog_[a-z0-9]{26}$
createdAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
source
string
required

The stored account log source

Required string length: 1 - 100
type
string
required

The stored account log type

Required string length: 1 - 100