Create account
Use this endpoint to create a new Account under your Company. Use this when you need to programmatically set up a new team, department, or budget owner with its own campaigns and billing method.
Required fields
name- display name of the AccountbillingMethod- the initial billing method to attach to the AccountbillingMethod.type- currently must beINV(invoice). Other billing types (Prepay, PO, CC) must be set up via the Snappy Dashboard.billingMethod.amount- billing amountbillingMethod.name- display name of the billing method
Optional parameters
companyIdquery parameter - Company ID (when not inferable from the API key context)Request-Sourceheader - source of the request
Behavior Notes
- Returns
201with the new Account details (id,name,createdAt,updatedAt,companyId) on success. - Returns
409(409_PBLC_001) when an Account with the same name already exists in the Company. - Returns
422(422_PBLC_001) for business-rule violations (e.g. invalid billing configuration). - Currently only invoice (
INV) billing methods can be created via the API. To set up Prepay, PO, or Credit Card billing, create the Account first and then configure billing via the Snappy Dashboard.
Permissions
- Requires:
accounts:create
Authorizations
Company Level Authentication
Company level authentication provides access to all resources under your company, including accounts, campaigns, gifts, and recipients.
Getting Your API Key
- Create an API Key: Use the
POST /v2/authentication/apiKeysendpoint to generate a new API key - Set Expiration: Choose from 30, 60, 90, or 180 days (default: 90 days)
- Optional mTLS: Enable mutual TLS for enhanced security
- Name Your Key: Provide a descriptive name for easy identification
Using Your API Key
Include your API key in the X-Api-Key header for every request:
X-Api-Key: YOUR_24_CHARACTER_API_KEYAPI Key Management
- Maximum Keys: Up to 3 active API keys per company
- Rotation: Delete old keys before creating new ones when at the limit
- Security: Keys are hashed and cannot be retrieved after creation
Enhanced Security (mTLS)
For production environments, enable mutual TLS authentication:
- Set
enforceMtls: truewhen creating the API key - Contact support to obtain your client certificates
- Use the mTLS endpoint:
https://mtls-api.snappy.com/public-api
Headers
Source of the request
api_native, api_zapier, api_salesforce, api_ftp, api_make "api_native"
Query Parameters
Company ID
^[A-Za-z0-9]{8,}$"12345678"
Body
Response
Created
Created account.
The id of the account.
"a12bcd34"
The name of the account.
"Snappy"
Date Format: YYYY-MM-DDThh:mm:ss.sZ.
"2022-12-06T09:50:38.536Z"
Date Format: YYYY-MM-DDThh:mm:ss.sZ.
"2022-12-06T09:50:38.536Z"
The id of the company.
"A1b2C3d4"