Heroku Team Invitation API

The Team Invitation API from Heroku — 5 operation(s) for team invitation.

GitHub OpenAPI

Operations 5

GET /teams/{team_name}/invitations List #
PUT /teams/{team_identity}/invitations Create #
DELETE /teams/{team_identity}/invitations/{team-invitation_identity} Revoke #
GET /teams/invitations/{team-invitation_token} Get #
POST /teams/invitations/{team-invitation_token}/accept Accept #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/heroku:heroku-team-invitation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

heroku-team-invitation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Platform Team Invitation API
  version: '3'
  description: The platform API empowers developers to automate, extend and combine Heroku with other services. Converted mechanically from the provider-published JSON Hyper-Schema at https://api.heroku.com/schema.
  contact:
    name: Heroku
    url: https://devcenter.heroku.com/articles/platform-api-reference
servers:
- url: https://api.heroku.com
security:
- bearerAuth: []
tags:
- name: Team Invitation
paths:
  /teams/{team_name}/invitations:
    get:
      operationId: teamInvitationList
      summary: List
      description: Get a list of a team's Identity Providers
      tags:
      - Team Invitation
      parameters:
      - name: team_name
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: instances
      x-source: https://api.heroku.com/schema#/definitions/team-invitation/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/team-invitation'
                type:
                - array
  /teams/{team_identity}/invitations:
    put:
      operationId: teamInvitationCreate
      summary: Create
      description: Create Team Invitation
      tags:
      - Team Invitation
      parameters:
      - name: team_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: update
      x-source: https://api.heroku.com/schema#/definitions/team-invitation/links
      requestBody:
        content:
          application/json:
            schema:
              properties:
                email:
                  $ref: '#/components/schemas/account/definitions/email'
                role:
                  $ref: '#/components/schemas/team/definitions/role'
              required:
              - email
              - role
              type:
              - object
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/team-invitation'
  /teams/{team_identity}/invitations/{team-invitation_identity}:
    delete:
      operationId: teamInvitationRevoke
      summary: Revoke
      description: Revoke a team invitation.
      tags:
      - Team Invitation
      parameters:
      - name: team_identity
        in: path
        required: true
        schema:
          type: string
      - name: team-invitation_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/team-invitation/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/team-invitation'
  /teams/invitations/{team-invitation_token}:
    get:
      operationId: teamInvitationGet
      summary: Get
      description: Get an invitation by its token
      tags:
      - Team Invitation
      parameters:
      - name: team-invitation_token
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: instances
      x-source: https://api.heroku.com/schema#/definitions/team-invitation/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/team-invitation'
  /teams/invitations/{team-invitation_token}/accept:
    post:
      operationId: teamInvitationAccept
      summary: Accept
      description: Accept Team Invitation
      tags:
      - Team Invitation
      parameters:
      - name: team-invitation_token
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: create
      x-source: https://api.heroku.com/schema#/definitions/team-invitation/links
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/team-member'
components:
  schemas:
    identity-provider:
      description: Identity Providers represent the SAML configuration of teams or an Enterprise account
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Identity Provider
      type:
      - object
      definitions:
        certificate:
          description: 'raw contents of the public certificate (eg: .crt or .pem file)'
          example: '-----BEGIN CERTIFICATE----- ...'
          readOnly: false
          type:
          - string
        created_at:
          description: when provider record was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        entity_id:
          description: URL identifier provided by the identity provider
          example: https://customer-domain.idp.com
          readOnly: false
          type:
          - string
        id:
          description: unique identifier of this identity provider
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        name:
          description: user-friendly unique identifier for this identity provider
          example: acme-sso
          type:
          - string
        slo_target_url:
          description: single log out URL for this identity provider
          example: https://example.com/idp/logout
          readOnly: false
          type:
          - string
        sso_target_url:
          description: single sign on URL for this identity provider
          example: https://example.com/idp/login
          readOnly: false
          type:
          - string
        updated_at:
          description: when the identity provider record was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        owner:
          description: entity that owns this identity provider
          properties:
            id:
              description: unique identifier of the owner
              example: 01234567-89ab-cdef-0123-456789abcdef
              format: uuid
              readOnly: true
              type:
              - string
            name:
              description: name of the owner
              example: acme
              readOnly: true
              type:
              - string
            type:
              description: type of the owner
              enum:
              - team
              - enterprise-account
              example: team
              readOnly: true
              type:
              - string
          readOnly: false
          required:
          - id
          - type
          type:
          - object
      properties:
        certificate:
          $ref: '#/components/schemas/identity-provider/definitions/certificate'
        created_at:
          $ref: '#/components/schemas/identity-provider/definitions/created_at'
        entity_id:
          $ref: '#/components/schemas/identity-provider/definitions/entity_id'
        id:
          $ref: '#/components/schemas/identity-provider/definitions/id'
        slo_target_url:
          $ref: '#/components/schemas/identity-provider/definitions/slo_target_url'
        sso_target_url:
          $ref: '#/components/schemas/identity-provider/definitions/sso_target_url'
        organization:
          description: team associated with this identity provider
          properties:
            name:
              $ref: '#/components/schemas/team/definitions/name'
          type:
          - 'null'
          - object
        updated_at:
          $ref: '#/components/schemas/identity-provider/definitions/updated_at'
        owner:
          $ref: '#/components/schemas/identity-provider/definitions/owner'
    team-member:
      $schema: http://json-schema.org/draft-04/hyper-schema
      description: A team member is an individual with access to a team.
      stability: development
      additionalProperties: false
      required:
      - created_at
      - email
      - federated
      - updated_at
      title: Heroku Platform API - Team Member
      type:
      - object
      definitions:
        created_at:
          description: when the membership record was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        email:
          description: email address of the team member
          example: someone@example.org
          readOnly: true
          type:
          - string
        federated:
          description: whether the user is federated and belongs to an Identity Provider
          example: false
          readOnly: true
          type:
          - boolean
        id:
          description: unique identifier of the team member
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/team-member/definitions/email'
          - $ref: '#/components/schemas/team-member/definitions/id'
        name:
          description: full name of the team member
          example: Tina Edmonds
          readOnly: true
          type:
          - string
          - 'null'
        team_role:
          description: role in the team
          enum:
          - admin
          - viewer
          - member
          example: admin
          type:
          - string
        two_factor_authentication:
          description: whether the team member has two factor authentication enabled
          example: true
          readOnly: true
          type:
          - boolean
        updated_at:
          description: when the membership record was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        created_at:
          $ref: '#/components/schemas/team-member/definitions/created_at'
        email:
          $ref: '#/components/schemas/team-member/definitions/email'
        federated:
          $ref: '#/components/schemas/team-member/definitions/federated'
        id:
          $ref: '#/components/schemas/team-member/definitions/id'
        identity_provider:
          description: Identity Provider information the member is federated with
          properties:
            id:
              $ref: '#/components/schemas/identity-provider/definitions/id'
            name:
              description: name of the identity provider
              example: acme
              readOnly: true
              type:
              - string
            redacted:
              description: whether the identity_provider information is redacted or not
              example: false
              readOnly: true
              type:
              - boolean
            owner:
              $ref: '#/components/schemas/identity-provider/definitions/owner'
          type:
          - 'null'
          - object
        role:
          $ref: '#/components/schemas/team/definitions/role'
        two_factor_authentication:
          $ref: '#/components/schemas/team-member/definitions/two_factor_authentication'
        updated_at:
          $ref: '#/components/schemas/team-member/definitions/updated_at'
        user:
          description: user information for the membership
          properties:
            email:
              $ref: '#/components/schemas/account/definitions/email'
            id:
              $ref: '#/components/schemas/account/definitions/id'
            name:
              $ref: '#/components/schemas/account/definitions/name'
          strictProperties: true
          type:
          - object
    account:
      description: An account represents an individual signed up to use the Heroku platform.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Account
      type:
      - object
      definitions:
        allow_tracking:
          default: true
          description: whether to allow third party web activity tracking
          example: true
          readOnly: false
          type:
          - boolean
        beta:
          default: false
          description: whether allowed to utilize beta Heroku features
          example: false
          readOnly: false
          type:
          - boolean
        created_at:
          description: when account was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        country_of_residence:
          description: country where account owner resides
          example: United States
          readOnly: false
          type:
          - string
          - 'null'
        email:
          description: unique email address of account
          example: username@example.com
          format: email
          readOnly: false
          type:
          - string
        federated:
          description: whether the user is federated and belongs to an Identity Provider
          example: false
          readOnly: true
          type:
          - boolean
        id:
          description: unique identifier of an account
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/account/definitions/email'
          - $ref: '#/components/schemas/account/definitions/id'
          - $ref: '#/components/schemas/account/definitions/self'
        last_login:
          description: when account last authorized with Heroku
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
          - 'null'
        name:
          description: full name of the account owner
          example: Tina Edmonds
          readOnly: false
          type:
          - string
          - 'null'
        password:
          description: current password on the account
          example: currentpassword
          readOnly: true
          type:
          - string
        self:
          description: Implicit reference to currently authorized user
          enum:
          - '~'
          example: '~'
          readOnly: true
          type:
          - string
        sms_number:
          description: SMS number of account
          example: +1 ***-***-1234
          readOnly: true
          type:
          - string
          - 'null'
        suspended_at:
          description: when account was suspended
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
          - 'null'
        delinquent_at:
          description: when account became delinquent
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
          - 'null'
        two_factor_authentication:
          description: whether two-factor auth is enabled on the account
          example: false
          readOnly: true
          type:
          - boolean
        updated_at:
          description: when account was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        verified:
          default: false
          description: whether account has been verified with billing information
          example: false
          readOnly: true
          type:
          - boolean
      properties:
        allow_tracking:
          $ref: '#/components/schemas/account/definitions/allow_tracking'
        beta:
          $ref: '#/components/schemas/account/definitions/beta'
        created_at:
          $ref: '#/components/schemas/account/definitions/created_at'
        email:
          $ref: '#/components/schemas/account/definitions/email'
        federated:
          $ref: '#/components/schemas/account/definitions/federated'
        id:
          $ref: '#/components/schemas/account/definitions/id'
        identity_provider:
          description: Identity Provider details for federated users.
          strictProperties: true
          properties:
            id:
              $ref: '#/components/schemas/identity-provider/definitions/id'
            name:
              $ref: '#/components/schemas/identity-provider/definitions/name'
            team:
              type:
              - object
              properties:
                name:
                  $ref: '#/components/schemas/team/definitions/name'
            organization:
              type:
              - object
              properties:
                name:
                  $ref: '#/components/schemas/team/definitions/name'
            owner:
              $ref: '#/components/schemas/identity-provider/definitions/owner'
          type:
          - object
          - 'null'
        last_login:
          $ref: '#/components/schemas/account/definitions/last_login'
        name:
          $ref: '#/components/schemas/account/definitions/name'
        sms_number:
          $ref: '#/components/schemas/account/definitions/sms_number'
        suspended_at:
          $ref: '#/components/schemas/account/definitions/suspended_at'
        delinquent_at:
          $ref: '#/components/schemas/account/definitions/delinquent_at'
        two_factor_authentication:
          $ref: '#/components/schemas/account/definitions/two_factor_authentication'
        updated_at:
          $ref: '#/components/schemas/account/definitions/updated_at'
        verified:
          $ref: '#/components/schemas/account/definitions/verified'
        country_of_residence:
          $ref: '#/components/schemas/account/definitions/country_of_residence'
        default_organization:
          description: team selected by default
          properties:
            id:
              $ref: '#/components/schemas/team/definitions/id'
            name:
              $ref: '#/components/schemas/team/definitions/name'
          strictProperties: true
          type:
          - object
          - 'null'
        default_team:
          description: team selected by default
          properties:
            id:
              $ref: '#/components/schemas/team/definitions/id'
            name:
              $ref: '#/components/schemas/team/definitions/name'
          strictProperties: true
          type:
          - object
          - 'null'
    team-invitation:
      description: A team invitation represents an invite to a team.
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: development
      strictProperties: true
      title: Heroku Platform API - Team Invitation
      type:
      - object
      definitions:
        created_at:
          description: when invitation was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/team-invitation/definitions/id'
        id:
          description: unique identifier of an invitation
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        token:
          description: special token for invitation
          example: 614ae25aa2d4802096cd7c18625b526c
          readOnly: true
          type:
          - string
        updated_at:
          description: when invitation was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        created_at:
          $ref: '#/components/schemas/team-invitation/definitions/created_at'
        id:
          $ref: '#/components/schemas/team-invitation/definitions/id'
        invited_by:
          properties:
            email:
              $ref: '#/components/schemas/account/definitions/email'
            id:
              $ref: '#/components/schemas/account/definitions/id'
            name:
              $ref: '#/components/schemas/account/definitions/name'
          strictProperties: true
          type:
          - object
        team:
          properties:
            id:
              $ref: '#/components/schemas/team/definitions/id'
            name:
              $ref: '#/components/schemas/team/definitions/name'
          strictProperties: true
          type:
          - object
        role:
          $ref: '#/components/schemas/team/definitions/role'
        updated_at:
          $ref: '#/components/schemas/team-invitation/definitions/updated_at'
        user:
          properties:
            email:
              $ref: '#/components/schemas/account/definitions/email'
            id:
              $ref: '#/components/schemas/account/definitions/id'
            name:
              $ref: '#/components/schemas/account/definitions/name'
          strictProperties: true
          type:
          - object
    team:
      $schema: http://json-schema.org/draft-04/hyper-schema
      description: Teams allow you to manage access to a shared group of applications and other resources.
      stability: development
      strictProperties: true
      title: Heroku Platform API - Team
      type:
      - object
      definitions:
        created_at:
          description: when the team was created
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
        credit_card_collections:
          description: whether charges incurred by the team are paid by credit card.
          example: true
          readOnly: true
          type:
          - boolean
        default:
          description: whether to use this team when none is specified
          example: true
          readOnly: false
          type:
          - boolean
        enterprise_account:
          type:
          - 'null'
          - object
          properties:
            id:
              $ref: '#/components/schemas/enterprise-account/definitions/id'
            name:
              $ref: '#/components/schemas/enterprise-account/definitions/name'
        id:
          description: unique identifier of team
          example: 01234567-89ab-cdef-0123-456789abcdef
          format: uuid
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/team/definitions/name'
          - $ref: '#/components/schemas/team/definitions/id'
        identity_provider:
          description: Identity Provider associated with the Team
          strictProperties: true
          type:
          - 'null'
          - object
          properties:
            id:
              $ref: '#/components/schemas/identity-provider/definitions/id'
            name:
              $ref: '#/components/schemas/identity-provider/definitions/name'
            owner:
              $ref: '#/components/schemas/identity-provider/definitions/owner'
        device_data:
          type:
          - string
          - 'null'
          description: Device data string generated by the client
          example: VGhpcyBpcyBhIGdvb2QgZGF5IHRvIGRpZQ==
        nonce:
          type:
          - string
          - 'null'
          description: Nonce generated by Braintree hosted fields form
          example: VGhpcyBpcyBhIGdvb2QgZGF5IHRvIGRpZQ==
        address_1:
          type:
          - string
          description: street address line 1
          example: 40 Hickory Lane
        address_2:
          type:
          - string
          - 'null'
          description: street address line 2
          example: Suite 103
        card_number:
          type:
          - string
          - 'null'
          description: encrypted card number of payment method
          example: encrypted-card-number
        city:
          type:
          - string
          description: city
          example: San Francisco
        country:
          type:
          - string
          description: country
          example: US
        cvv:
          type:
          - string
          - 'null'
          description: card verification value
          example: '123'
        expiration_month:
          type:
          - string
          - 'null'
          description: expiration month
          example: '11'
        expiration_year:
          type:
          - string
          - 'null'
          description: expiration year
          example: '2014'
        first_name:
          type:
          - string
          description: the first name for payment method
          example: Jason
        last_name:
          type:
          - string
          description: the last name for payment method
          example: Walker
        other:
          type:
          - string
          - 'null'
          description: metadata
          example: Additional information for payment method
        postal_code:
          type:
          - string
          description: postal code
          example: '90210'
        state:
          type:
          - string
          description: state
          example: CA
        membership_limit:
          description: upper limit of members allowed in a team.
          example: 25
          readOnly: true
          type:
          - number
          - 'null'
        name:
          description: unique name of team
          example: example
          readOnly: true
          type:
          - string
        provisioned_licenses:
          description: whether the team is provisioned licenses by salesforce.
          example: true
          readOnly: true
          type:
          - boolean
        role:
          description: role in the team
          enum:
          - admin
          - collaborator
          - member
          - owner
          - null
          example: admin
          readOnly: true
          type:
          - 'null'
          - string
        type:
          description: type of team.
          example: team
          enum:
          - enterprise
          - team
          readOnly: true
          type:
          - string
        updated_at:
          description: when the team was updated
          example: '2012-01-01T12:00:00Z'
          format: date-time
          readOnly: true
          type:
          - string
      properties:
        id:
          $ref: '#/components/schemas/team/definitions/id'
        created_at:
          $ref: '#/components/schemas/team/definitions/created_at'
        credit_card_collections:
          $ref: '#/components/schemas/team/definitions/credit_card_collections'
        default:
          $ref: '#/components/schemas/team/definitions/default'
        enterprise_account:
          $ref: '#/components/schemas/team/definitions/enterprise_account'
        identity_provider:
          $ref: '#/components/schemas/team/definitions/identity_provider'
        membership_limit:
          $ref: '#/components/schemas/team/definitions/membership_limit'
        name:
          $ref: '#/components/schemas/team/definitions/name'
        provisioned_licenses:
          $ref: '#/components/schemas/team/definitions/provisioned_licenses'
        role:
          $ref: '#/components/schemas/team/definitions/role'
        type:
          $ref: '#/components/schemas/team/definitions/type'
        updated_at:
          $ref: '#/components/schemas/team/definitions/updated_at'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'OAuth access token or API key (see https://devcenter.heroku.com/articles/platform-api-reference#authentication). Requests must send Accept: application/vnd.heroku+json; version=3.'
x-generated-from: json-hyper-schema
x-source: https://api.heroku.com/schema
x-generated: '2026-11-25'