Skip to content
Start here

Accounts

List Accounts
client.Accounts.List(ctx, query) (*V4PagePaginationArray[Account], error)
GET/accounts
Account Details
client.Accounts.Get(ctx, query) (*Account, error)
GET/accounts/{account_id}
Create an account
client.Accounts.New(ctx, body) (*Account, error)
POST/accounts
Update Account
client.Accounts.Update(ctx, params) (*Account, error)
PUT/accounts/{account_id}
Delete a specific account
client.Accounts.Delete(ctx, body) (*AccountDeleteResponse, error)
DELETE/accounts/{account_id}
ModelsExpand Collapse
type Account struct{…}
ID string

Identifier

maxLength32
minLength32
Name string

Account name

maxLength100
Type AccountType
One of the following:
const AccountTypeStandard AccountType = "standard"
const AccountTypeEnterprise AccountType = "enterprise"
CreatedOn TimeOptional

Timestamp for the creation of the account

formatdate-time
ManagedBy AccountManagedByOptional

Parent container details

ParentOrgID stringOptional

ID of the parent Organization, if one exists

maxLength32
ParentOrgName stringOptional

Name of the parent Organization, if one exists

Settings AccountSettingsOptional

Account settings

AbuseContactEmail stringOptional

Sets an abuse contact email to notify for abuse reports.

EnforceTwofactor boolOptional

Indicates whether membership in this account requires that Two-Factor Authentication is enabled

AccountsAccount Organizations

Move account
client.Accounts.AccountOrganizations.New(ctx, params) (*AccountOrganizationNewResponse, error)
POST/accounts/{account_id}/move

AccountsAccount Profile

Get account profile
client.Accounts.AccountProfile.Get(ctx, query) (*AccountProfile, error)
GET/accounts/{account_id}/profile
Modify account profile
client.Accounts.AccountProfile.Update(ctx, params) error
PUT/accounts/{account_id}/profile
ModelsExpand Collapse
type AccountProfile struct{…}
BusinessAddress string
BusinessEmail string
BusinessName string
BusinessPhone string
ExternalMetadata string

AccountsMembers

List Members
client.Accounts.Members.List(ctx, params) (*V4PagePaginationArray[Member], error)
GET/accounts/{account_id}/members
Member Details
client.Accounts.Members.Get(ctx, memberID, query) (*Member, error)
GET/accounts/{account_id}/members/{member_id}
Add Member
client.Accounts.Members.New(ctx, params) (*Member, error)
POST/accounts/{account_id}/members
Update Member
client.Accounts.Members.Update(ctx, memberID, params) (*Member, error)
PUT/accounts/{account_id}/members/{member_id}
Remove Member
client.Accounts.Members.Delete(ctx, memberID, body) (*MemberDeleteResponse, error)
DELETE/accounts/{account_id}/members/{member_id}
ModelsExpand Collapse
type Status string

Whether the user is a member of the organization or has an invitation pending.

One of the following:
const StatusMember Status = "member"
const StatusInvited Status = "invited"

AccountsRoles

List Roles
Deprecated
client.Accounts.Roles.List(ctx, params) (*V4PagePaginationArray[Role], error)
GET/accounts/{account_id}/roles
Role Details
Deprecated
client.Accounts.Roles.Get(ctx, roleID, query) (*Role, error)
GET/accounts/{account_id}/roles/{role_id}

AccountsSubscriptions

List Subscriptions
client.Accounts.Subscriptions.Get(ctx, query) (*SinglePage[Subscription], error)
GET/{accounts_or_zones}/{account_or_zone_id}/subscriptions
Get Subscription
client.Accounts.Subscriptions.GetByIdentifier(ctx, subscriptionIdentifier, query) (*Subscription, error)
GET/accounts/{account_id}/subscriptions/{subscription_identifier}
Create Subscription
client.Accounts.Subscriptions.New(ctx, params) (*Subscription, error)
POST/{accounts_or_zones}/{account_or_zone_id}/subscriptions
Update Subscription
client.Accounts.Subscriptions.Update(ctx, subscriptionIdentifier, params) (*Subscription, error)
PUT/accounts/{account_id}/subscriptions/{subscription_identifier}
Delete Subscription
client.Accounts.Subscriptions.Delete(ctx, subscriptionIdentifier, body) (*SubscriptionDeleteResponse, error)
DELETE/accounts/{account_id}/subscriptions/{subscription_identifier}
Cancel Delayed Downgrade
client.Accounts.Subscriptions.CancelDowngrade(ctx, params) (*unknown, error)
POST/accounts/{account_id}/subscriptions/cancel-downgrade

AccountsSubscriptionsCancel Reason

Create Cancel Reason
client.Accounts.Subscriptions.CancelReason.New(ctx, subscriptionIdentifier, params) (*SubscriptionCancelReasonNewResponse, error)
POST/accounts/{account_id}/subscriptions/{subscription_identifier}/cancel-reason
Get Cancel Reason
client.Accounts.Subscriptions.CancelReason.Get(ctx, subscriptionIdentifier, query) (*SubscriptionCancelReasonGetResponse, error)
GET/accounts/{account_id}/subscriptions/{subscription_identifier}/cancel-reason

AccountsSubscriptionsActions

Append Subscription Action
client.Accounts.Subscriptions.Actions.Append(ctx, subscriptionIdentifier, params) (*Subscription, error)
POST/accounts/{account_id}/subscriptions/{subscription_identifier}/action/append

AccountsSubscriptionsBulk

Create Subscriptions
client.Accounts.Subscriptions.Bulk.New(ctx, params) (*[]SubscriptionBulkNewResponse, error)
POST/accounts/{account_id}/bulk/subscriptions

AccountsTokens

List Tokens
client.Accounts.Tokens.List(ctx, params) (*V4PagePaginationArray[Token], error)
GET/accounts/{account_id}/tokens
Token Details
client.Accounts.Tokens.Get(ctx, tokenID, query) (*Token, error)
GET/accounts/{account_id}/tokens/{token_id}
Create Token
client.Accounts.Tokens.New(ctx, params) (*TokenNewResponse, error)
POST/accounts/{account_id}/tokens
Update Token
client.Accounts.Tokens.Update(ctx, tokenID, params) (*Token, error)
PUT/accounts/{account_id}/tokens/{token_id}
Delete Token
client.Accounts.Tokens.Delete(ctx, tokenID, body) (*TokenDeleteResponse, error)
DELETE/accounts/{account_id}/tokens/{token_id}
Verify Token
client.Accounts.Tokens.Verify(ctx, query) (*TokenVerifyResponse, error)
GET/accounts/{account_id}/tokens/verify

AccountsTokensPermission Groups

List Permission Groups
client.Accounts.Tokens.PermissionGroups.List(ctx, params) (*SinglePage[TokenPermissionGroupListResponse], error)
GET/accounts/{account_id}/tokens/permission_groups
List Permission Groups
client.Accounts.Tokens.PermissionGroups.Get(ctx, params) (*[]TokenPermissionGroupGetResponse, error)
GET/accounts/{account_id}/tokens/permission_groups

AccountsTokensValue

Roll Token
client.Accounts.Tokens.Value.Update(ctx, tokenID, params) (*TokenValue, error)
PUT/accounts/{account_id}/tokens/{token_id}/value

AccountsLogs

AccountsLogsAudit

Get account audit logs (Version 2)
client.Accounts.Logs.Audit.List(ctx, params) (*CursorPaginationAfter[LogAuditListResponse], error)
GET/accounts/{account_id}/logs/audit
Get resource change history from an account audit log entry (Version 2)
client.Accounts.Logs.Audit.History(ctx, id, params) (*[]LogAuditHistoryResponse, error)
GET/accounts/{account_id}/logs/audit/{id}/history
List account audit log product categories (Version 2)
client.Accounts.Logs.Audit.ProductCategories(ctx, query) (*SinglePage[LogAuditProductCategoriesResponse], error)
GET/accounts/{account_id}/logs/audit/product_categories

AccountsSpeed Settings

AccountsSpeed SettingsTransformations

List Image Resizing configurations for account
client.Accounts.SpeedSettings.Transformations.Get(ctx, query) (*SinglePage[TransformationsConfig], error)
GET/accounts/{account_id}/settings/transformations
ModelsExpand Collapse
type TransformationsConfig struct{…}

A configuration item for a specific zone and feature.

ID stringOptional

Feature identifier.

CfZoneTag stringOptional

Zone tag identifier.

Editable boolOptional

Whether this setting can be modified.

ModifiedOn TimeOptional

When this setting was last modified.

formatdate-time
Value stringOptional

Current value of the feature setting.

AccountsPayment Methods

List Payment Methods
client.Accounts.PaymentMethods.List(ctx, params) (*V4PagePaginationArray[PaymentMethodListResponse], error)
GET/accounts/{account_id}/payment-methods
Create Payment Method
client.Accounts.PaymentMethods.New(ctx, params) (*PaymentMethodNewResponse, error)
POST/accounts/{account_id}/payment-methods
Get Payment Method
client.Accounts.PaymentMethods.Get(ctx, paymentMethodID, query) (*PaymentMethodGetResponse, error)
GET/accounts/{account_id}/payment-methods/{payment_method_id}
Update Payment Method
client.Accounts.PaymentMethods.Update(ctx, paymentMethodID, params) (*PaymentMethodUpdateResponse, error)
PUT/accounts/{account_id}/payment-methods/{payment_method_id}
Delete Payment Method
client.Accounts.PaymentMethods.Delete(ctx, paymentMethodID, body) (*unknown, error)
DELETE/accounts/{account_id}/payment-methods/{payment_method_id}
Set Default Payment Method
client.Accounts.PaymentMethods.SetAsDefault(ctx, paymentMethodID, body) (*unknown, error)
POST/accounts/{account_id}/payment-methods/{payment_method_id}/set-as-default

AccountsPay Invoice

Pay Invoice
client.Accounts.PayInvoice.New(ctx, params) (*PayInvoiceNewResponse, error)
POST/accounts/{account_id}/pay-invoice

AccountsPay Bad Debt

Pay Bad Debt
client.Accounts.PayBadDebt.New(ctx, params) (*PayBadDebtNewResponse, error)
POST/accounts/{account_id}/pay-bad-debt

AccountsReceipts

Get Receipt PDF
client.Accounts.Receipts.PDF(ctx, receiptID, params) (*Response, error)
GET/accounts/{account_id}/receipts/{receipt_id}/pdf

AccountsInvoices

Toggle PDF Invoices
client.Accounts.Invoices.Edit(ctx, params) (*unknown, error)
PATCH/accounts/{account_id}/invoices

AccountsClient Secret

Create Setup Intent
client.Accounts.ClientSecret.New(ctx, body) (*ClientSecretNewResponse, error)
POST/accounts/{account_id}/client-secret