Teams

Create a new team

Changed on

Create a new team organization

post/teams

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Request body

object required
name, string required

Display name of the team organization. Must be between 3 and 30 characters

slug, string

URL-friendly slug for the team organization. If not provided, will be automatically generated from the name. Must be unique within tenant and between 3 and 30 characters

supportEmail, string email

Support email address for customer inquiries. Used as reply-to address in order confirmation emails

publicBaseUrl, string uri

Optional public website base URL for team-owned event and order links. When present, it overrides the tenant public base URL.

image, object

Team image with dimensions and alt text for branding across the platform

metadata, object

Flexible key-value metadata storage for custom configuration. Similar to Stripe's metadata API. Maximum 50 keys, key names up to 40 characters, values up to 500 characters.

approval, 'PENDING' | 'APPROVED' | 'REJECTED'

Approval status of the team. Defaults to PENDING if not specified.

gateway, object

Connected payment gateway for direct payouts. When connected, funds from ticket sales go directly to the team's account with platform fees deducted.

Example request

{
  "publicBaseUrl": "https://sash.net.au",
  "image": {
    "src": "https://assets.session.services/my-image.jpg",
    "alt": "My Image",
    "width": 1080,
    "height": 1080
  }
}

Response

OK

object required
team, object required

Example response

{
  "team": {
    "publicBaseUrl": "https://sash.net.au",
    "image": {
      "src": "https://assets.session.services/my-image.jpg",
      "alt": "My Image",
      "width": 1080,
      "height": 1080
    },
    "member": {
      "permissions": []
    }
  }
}

Changes

    • warning

      added the new PAYMENTS_NOT_READY enum value to the team/stripeConnectAvailability/reasons/items response property for the response status

    • info

      added the new optional request property gateway/readiness

    • info

      added the optional property team/gateway/readiness to the response with the status