Skip to main content
POST
Create a group

Authorizations

Authorization
string
header
required

Tolt API key sent as a bearer token.

Body

application/json
program_id
string
required

Id of the program to add the group to (prg_...), as returned when listing programs. The subscription plan caps how many groups a program can have.

Minimum string length: 1
name
string
required

Name of the group, up to 255 characters. It also sets public_key, the ?group= key of the group's sign-up link: the name in lowercase, with spaces turned into hyphens and anything other than letters, digits and hyphens dropped ("VIP Partners" becomes vip-partners). No two groups in a program can have the same key.

Required string length: 1 - 255
description
string

Short description of the group that partners see on its sign-up page, up to 200 characters.

Maximum string length: 200
website_url
string<uri>

Website the referral links of the group's partners point to, starting with http:// or https://. Leave it out to use the program's website.

Maximum string length: 2048
Pattern: ^https?:\/\/[^\s/\\]\S*$
is_private
boolean

true makes people who sign up through the group's link pending until you approve them; invited partners still join as active. Defaults to false.

minimum_payout
integer

Balance a partner in the group must reach before they are paid, as an integer in minor units of the program currency (5000 = 50.00), 0 or more. Above 16777216 it has to be an amount the database stores exactly, such as a round one (20000000). Leave it out to use the program's minimum.

Required range: 0 <= x <= 9007199254740991
is_default
boolean

true makes this the program's default group, which people join when they sign up without a group link. The previous default group stops being the default. Defaults to false.

Response

The created group

success
boolean
required
Example:

true

message
string
required
Example:

"Request successful"

data
object
required