arazzo: 1.0.1
info:
title: ActiveCampaign Create Account and Add a Note
summary: Create an account record then attach an explanatory note to it.
description: >-
An account onboarding flow that records context. An account is created from
a name and URL, then an explanatory note is attached to the new account.
Every step spells out its request inline, including the Api-Token
authentication header, so the flow can be read and executed without opening
the underlying OpenAPI description.
version: 1.0.0
sourceDescriptions:
- name: accountsApi
url: ../openapi/activecampaign-accounts-api-openapi.yml
type: openapi
workflows:
- workflowId: create-account-add-note
summary: Create an account and attach a note to it.
description: >-
Creates an account and then attaches an explanatory note to the new
account.
inputs:
type: object
required:
- apiToken
- name
- note
properties:
apiToken:
type: string
description: ActiveCampaign API token sent in the Api-Token header.
name:
type: string
description: Name of the account to create.
accountUrl:
type: string
description: Optional website URL of the account.
ownerId:
type: integer
description: Optional identifier of the user who owns the account.
note:
type: string
description: Text of the note to attach to the account.
steps:
- stepId: createAccount
description: Create the account from the supplied name and URL.
operationId: create-an-account-new
parameters:
- name: Api-Token
in: header
value: $inputs.apiToken
requestBody:
contentType: application/json
payload:
account:
name: $inputs.name
accountUrl: $inputs.accountUrl
owner: $inputs.ownerId
successCriteria:
- condition: $statusCode == 201
outputs:
accountId: $response.body#/account/id
- stepId: addNote
description: Attach an explanatory note to the new account.
operationId: create-an-account-note
parameters:
- name: Api-Token
in: header
value: $inputs.apiToken
- name: id
in: path
value: $steps.createAccount.outputs.accountId
requestBody:
contentType: application/json
payload:
note:
note: $inputs.note
successCriteria:
- condition: $statusCode == 201
outputs:
accountId: $response.body#/accounts/0/id
outputs:
accountId: $steps.createAccount.outputs.accountId
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.