Groups

Create a group

Scope: partners:write (or write)

post/v1/groups

Request

  • Base URL: https://api.affiliaterail.com
  • URL: https://api.affiliaterail.com/v1/groups
  • Auth: HTTP bearer

Request body

program_idstring required

Prefixed id (prg_…)

namestring required
descriptionstring
landing_urlstring uri
is_privateboolean

Example request

{
  "program_id": "prg_7uSyy9FqVLCFWrdPeZaK"
}

Response

The new group

idstring required

Prefixed id (grp_…)

object'group' required
program_idstring required

Prefixed id (prg_…)

namestring required
slugstring required
descriptionstring nullable required
landing_urlstring nullable required
is_privateboolean required
is_defaultboolean required
created_atstring date-time required

ISO-8601, UTC

updated_atstring date-time required

ISO-8601, UTC

Example response

{
  "id": "grp_7uSyy9FqVLCFWrdPeZaK",
  "program_id": "prg_7uSyy9FqVLCFWrdPeZaK",
  "created_at": "2026-08-21T10:15:30.000Z",
  "updated_at": "2026-08-21T10:15:30.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.