curl --request POST \
  --url https://api.usepylon.com/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "domain": "<string>",
  "logo_url": "<string>"
}'

Create an account. Accounts represent a customer or prospect.

Body Parameters

name
string
required

The name of the account.

domain
string
required

The domain of the account, without any leading scheme, for example stripe.com.

logo_url
string

The logo URL of the account. Must be a square .png, .jpg or .jpeg.

Response

Example response

{
    "data": {
        "id": "22d1ba84-0d2e-4c33-92dc-01bb6c58be54",
        "name": "Stripe",
        "domain": "stripe.com",
        "owner": {
          "id": "d87494ba-a40d-4cb1-b478-faf1fc7de36d"
        }
    }
    "request_id": "ff94ff86-a755-4ebb-a16f-41aae732fc9c"
}