Snyk Tenants API

The Tenants API from Snyk — 4 operation(s) for tenants.

Operations 6

GET /tenants Get a list of all accessible Tenants #
GET /tenants/{tenant_id} Get a single Tenant by ID #
PATCH /tenants/{tenant_id} Update tenant #
GET /tenants/{tenant_id}/memberships Get all memberships of the tenant (Early Access) #
DELETE /tenants/{tenant_id}/memberships/{membership_id} Delete an individual tenant membership for a single user. (Early Access) #
PATCH /tenants/{tenant_id}/memberships/{membership_id} Update tenant membership (Early Access) #

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/snyk-tenants-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

snyk-tenants-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Snyk AccessRequests Tenants API
  version: REST
servers:
- description: Snyk REST API
  url: https://api.snyk.io/rest
security:
- APIToken: []
- BearerAuth: []
tags:
- name: Tenants
paths:
  /tenants:
    get:
      description: Get a list of all Tenants which the calling user is a member of
      operationId: listTenants
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/StartingAfter'
      - $ref: '#/components/parameters/EndingBefore'
      - $ref: '#/components/parameters/Limit'
      - description: Only return tenants whose name contains this value.
        in: query
        name: name
        schema:
          type: string
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/TenantResponseData'
                    type: array
                  jsonapi:
                    $ref: '#/components/schemas/JsonApi'
                  links:
                    $ref: '#/components/schemas/PaginatedLinks'
                required:
                - data
                - jsonapi
                - links
                type: object
          description: Returns a list of tenants.
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      summary: Get a list of all accessible Tenants
      tags:
      - Tenants
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2024-04-11~experimental
      - '2024-10-15'
      x-snyk-api-resource: tenants
      x-snyk-api-stability: ga
      x-snyk-api-version: '2024-10-15'
      x-stability-level: stable
  /tenants/{tenant_id}:
    get:
      description: 'Get the full details of a Tenant.


        #### Required permissions


        - `View Tenant Details (tenant.read)`'
      operationId: getTenant
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/TenantId20240411'
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    $ref: '#/components/schemas/TenantResponseData'
                  jsonapi:
                    $ref: '#/components/schemas/JsonApi'
                  links:
                    $ref: '#/components/schemas/SelfLink'
                type: object
          description: Returns an instance of a tenant.
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      summary: Get a single Tenant by ID
      tags:
      - Tenants
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2024-04-11~experimental
      - '2024-10-15'
      x-snyk-api-resource: tenants
      x-snyk-api-stability: ga
      x-snyk-api-version: '2024-10-15'
      x-stability-level: stable
    patch:
      description: 'Update the details of a tenant


        #### Required permissions


        - `Edit Tenant Details (tenant.edit)`'
      operationId: updateTenant
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/TenantId20240411'
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              properties:
                data:
                  additionalProperties: false
                  properties:
                    attributes:
                      $ref: '#/components/schemas/TenantUpdateAttributes'
                    id:
                      format: uuid
                      type: string
                    type:
                      $ref: '#/components/schemas/Types'
                  type: object
              required:
              - data
              type: object
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    additionalProperties: false
                    description: tenant resource object
                    properties:
                      attributes:
                        $ref: '#/components/schemas/TenantAttributes'
                      id:
                        example: d5b640e5-d88c-4c17-9bf0-93597b7a1ce2
                        format: uuid
                        type: string
                      type:
                        $ref: '#/components/schemas/Types'
                    required:
                    - id
                    - type
                    type: object
                  jsonapi:
                    $ref: '#/components/schemas/JsonApi'
                  links:
                    $ref: '#/components/schemas/SelfLink'
                type: object
          description: Instance of tenant is updated
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '204':
          $ref: '#/components/responses/204'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      summary: Update tenant
      tags:
      - Tenants
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2024-04-11~experimental
      - '2024-10-15'
      x-snyk-api-resource: tenants
      x-snyk-api-stability: ga
      x-snyk-api-version: '2024-10-15'
      x-stability-level: stable
  /tenants/{tenant_id}/memberships:
    get:
      description: 'Returns all memberships of the tenant


        #### Required permissions


        - `View Tenant Memberships (tenant.membership.read)`'
      operationId: getTenantMemberships
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/TenantId__0'
      - $ref: '#/components/parameters/StartingAfter'
      - $ref: '#/components/parameters/EndingBefore'
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/SortBy'
      - description: Order in which results are returned.
        example: ASC
        in: query
        name: sort_order
        schema:
          default: ASC
          enum:
          - ASC
          - DESC
          type: string
      - $ref: '#/components/parameters/EmailFilter'
      - $ref: '#/components/parameters/UserIdSearchFilter'
      - $ref: '#/components/parameters/NameFilter'
      - $ref: '#/components/parameters/UsernameFilter'
      - $ref: '#/components/parameters/ConnectionTypeFilter'
      - $ref: '#/components/parameters/RoleFilter'
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/ListTenantMembershipResponseData'
                  jsonapi:
                    $ref: '#/components/schemas/JsonApi'
                  links:
                    $ref: '#/components/schemas/Links'
                type: object
          description: List of tenant memberships is returned
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '500':
          $ref: '#/components/responses/500'
      summary: Get all memberships of the tenant (Early Access)
      tags:
      - Tenants
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2024-05-09~experimental
      - 2024-09-03~beta
      x-snyk-api-resource: memberships
      x-snyk-api-stability: beta
      x-snyk-api-version: 2024-09-03~beta
      x-stability-level: beta
  /tenants/{tenant_id}/memberships/{membership_id}:
    delete:
      description: 'Delete an individual tenant membership for a single user.


        #### Required permissions


        - `View Tenant Memberships (tenant.membership.read)`


        - `Delete Tenant Memberships (tenant.membership.delete)`'
      operationId: deleteTenantMembership
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/MembershipId'
      - $ref: '#/components/parameters/TenantId__0'
      responses:
        '204':
          description: successfully deleting an individual membership for a single user
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            location:
              $ref: '#/components/headers/LocationHeader'
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      summary: Delete an individual tenant membership for a single user. (Early Access)
      tags:
      - Tenants
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2024-06-04~experimental
      - 2024-09-03~beta
      x-snyk-api-resource: memberships
      x-snyk-api-stability: beta
      x-snyk-api-version: 2024-09-03~beta
      x-stability-level: beta
    patch:
      description: 'Update the tenant membership with the new role


        #### Required permissions


        - `View Tenant Details (tenant.read)`


        - `View Tenant Memberships (tenant.membership.read)`


        - `Edit Tenant Memberships (tenant.membership.edit)`'
      operationId: updateTenantMembership
      parameters:
      - $ref: '#/components/parameters/Version'
      - $ref: '#/components/parameters/TenantId__0'
      - $ref: '#/components/parameters/MembershipId'
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              properties:
                data:
                  $ref: '#/components/schemas/UpdateTenantMembershipRequestData'
              required:
              - data
              type: object
      responses:
        '204':
          description: successfully updated the tenant membership
          headers:
            deprecation:
              $ref: '#/components/headers/DeprecationHeader'
            location:
              schema:
                type: string
            snyk-request-id:
              $ref: '#/components/headers/RequestIdResponseHeader'
            snyk-version-lifecycle-stage:
              $ref: '#/components/headers/VersionStageResponseHeader'
            snyk-version-requested:
              $ref: '#/components/headers/VersionRequestedResponseHeader'
            snyk-version-served:
              $ref: '#/components/headers/VersionServedResponseHeader'
            sunset:
              $ref: '#/components/headers/SunsetHeader'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '409':
          $ref: '#/components/responses/409'
        '500':
          $ref: '#/components/responses/500'
      summary: Update tenant membership (Early Access)
      tags:
      - Tenants
      x-snyk-api-lifecycle: released
      x-snyk-api-releases:
      - 2024-06-09~experimental
      - 2024-09-03~beta
      x-snyk-api-resource: memberships
      x-snyk-api-stability: beta
      x-snyk-api-version: 2024-09-03~beta
      x-stability-level: beta
components:
  schemas:
    QueryVersion:
      description: Requested API version
      example: '2026-03-25'
      pattern: ^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
      type: string
    ReadTenantMembershipResponseRelationships:
      additionalProperties: false
      properties:
        role:
          $ref: '#/components/schemas/TenantMembershipTenantRoleRelationshipFull'
        tenant:
          $ref: '#/components/schemas/TenantMembershipTenantRelationshipFull'
        user:
          $ref: '#/components/schemas/TenantMembershipUserRelationshipFullWithMeta'
      required:
      - role
      - tenant
      - user
      type: object
    TenantMembershipTenantRelationshipFull:
      additionalProperties: false
      description: The tenant to which the membership applies.
      properties:
        data:
          $ref: '#/components/schemas/TenantMembershipTenantRelationshipDataFull'
      required:
      - data
      type: object
    TenantMembershipTenantRoleRelationshipBasic:
      additionalProperties: false
      description: The role held by the user in the tenant.
      properties:
        data:
          $ref: '#/components/schemas/TenantMembershipTenantRoleRelationshipDataBasic'
      required:
      - data
      type: object
    TenantMembershipResponseDataObject:
      properties:
        attributes:
          $ref: '#/components/schemas/TenantMembershipResponseAttributes'
        id:
          $ref: '#/components/schemas/TenantMembershipId'
        relationships:
          $ref: '#/components/schemas/ReadTenantMembershipResponseRelationships'
        type:
          $ref: '#/components/schemas/TenantMembershipType'
      required:
      - id
      - type
      - attributes
      - relationships
      type: object
    TenantMembershipUserRelationshipFullWithMeta:
      additionalProperties: false
      description: The user to which the membership belongs.
      properties:
        data:
          $ref: '#/components/schemas/TenantMembershipUserRelationshipDataFullWithMeta'
      required:
      - data
      type: object
    TenantMembershipUserRelationshipDataAttributes:
      additionalProperties: false
      properties:
        account_type:
          $ref: '#/components/schemas/UserAccountType'
        active:
          $ref: '#/components/schemas/UserIsActive'
        email:
          $ref: '#/components/schemas/UserEmail'
        login_method:
          $ref: '#/components/schemas/UserLoginMethod'
        name:
          $ref: '#/components/schemas/UserName'
        username:
          $ref: '#/components/schemas/UserUsername'
      required:
      - name
      - email
      - login_method
      type: object
    TenantMembershipId:
      description: Unique identifier for a tenant membership.
      example: 00000000-0000-0000-0000-000000000000
      format: uuid
      type: string
    ListTenantMembershipResponseData:
      additionalProperties: false
      items:
        $ref: '#/components/schemas/TenantMembershipResponseDataObject'
      type: array
    TenantResponseData:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/TenantAttributes'
        id:
          description: The Snyk ID of the tenant.
          example: 59d6d97e-3106-4ebb-b608-352fad9c5b34
          format: uuid
          type: string
        relationships:
          $ref: '#/components/schemas/TenantRelationships'
        type:
          $ref: '#/components/schemas/Types'
      required:
      - type
      - id
      - attributes
      type: object
    ErrorDocument:
      additionalProperties: false
      example:
        errors:
        - detail: Permission denied for this resource
          status: '403'
        jsonapi:
          version: '1.0'
      properties:
        errors:
          example:
          - detail: Permission denied for this resource
            status: '403'
          items:
            additionalProperties: false
            example:
              detail: Not Found
              status: '404'
            properties:
              code:
                description: An application-specific error code, expressed as a string value.
                example: entity-not-found
                type: string
              detail:
                description: A human-readable explanation specific to this occurrence of the problem.
                example: 'The request was missing these required fields: ...'
                type: string
              id:
                description: A unique identifier for this particular occurrence of the problem.
                example: f16c31b5-6129-4571-add8-d589da9be524
                format: uuid
                type: string
              links:
                additionalProperties: false
                description: A link that leads to further details about this particular occurrance of the problem.
                example:
                  about: https://example.com/about_this_error
                properties:
                  about:
                    example: https://example.com/api/resource
                    oneOf:
                    - description: A string containing the link’s URL.
                      example: https://example.com/api/resource
                      type: string
                    - additionalProperties: false
                      example:
                        href: https://example.com/api/resource
                      properties:
                        href:
                          description: A string containing the link’s URL.
                          example: https://example.com/api/resource
                          type: string
                        meta:
                          additionalProperties: true
                          description: Free-form object that may contain non-standard information.
                          example:
                            key1: value1
                            key2:
                              sub_key: sub_value
                            key3:
                            - array_value1
                            - array_value2
                          type: object
                      required:
                      - href
                      type: object
                type: object
              meta:
                additionalProperties: true
                example:
                  key: value
                type: object
              source:
                additionalProperties: false
                example:
                  pointer: /data/attributes
                properties:
                  parameter:
                    description: A string indicating which URI query parameter caused the error.
                    example: param1
                    type: string
                  pointer:
                    description: A JSON Pointer [RFC6901] to the associated entity in the request document.
                    example: /data/attributes
                    type: string
                type: object
              status:
                description: The HTTP status code applicable to this problem, expressed as a string value.
                example: '400'
                pattern: ^[45]\d\d$
                type: string
              title:
                description: A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
                example: Bad request
                type: string
            required:
            - status
            - detail
            type: object
          minItems: 1
          type: array
        jsonapi:
          additionalProperties: false
          example:
            version: '1.0'
          properties:
            version:
              description: Version of the JSON API specification this server supports.
              example: '1.0'
              pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
              type: string
          required:
          - version
          type: object
      required:
      - jsonapi
      - errors
      type: object
    TenantMembershipTenantRoleRelationshipDataFull:
      additionalProperties: false
      properties:
        attributes:
          additionalProperties: false
          properties:
            name:
              $ref: '#/components/schemas/TenantRoleName'
          required:
          - name
          type: object
        id:
          $ref: '#/components/schemas/TenantRoleId'
        type:
          $ref: '#/components/schemas/TenantRoleType'
      required:
      - id
      - type
      - attributes
      type: object
    UpdateTenantMembershipRequestRelationships:
      additionalProperties: false
      properties:
        role:
          $ref: '#/components/schemas/TenantMembershipTenantRoleRelationshipBasic'
      required:
      - role
      type: object
    TenantRoleName:
      description: The display name of the role.
      example: Role name
      type: string
    ActualVersion:
      description: Resolved API version
      example: '2026-03-25'
      pattern: ^((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?)$
      type: string
    UpdateTenantMembershipRequestData:
      additionalProperties: false
      properties:
        attributes:
          additionalProperties: false
          type: object
        id:
          $ref: '#/components/schemas/TenantMembershipId'
        relationships:
          $ref: '#/components/schemas/UpdateTenantMembershipRequestRelationships'
        type:
          $ref: '#/components/schemas/TenantMembershipType'
      required:
      - id
      - type
      - relationships
      type: object
    LinkProperty:
      example: https://example.com/api/resource
      oneOf:
      - description: A string containing the link’s URL.
        example: https://example.com/api/resource
        type: string
      - additionalProperties: false
        example:
          href: https://example.com/api/resource
        properties:
          href:
            description: A string containing the link’s URL.
            example: https://example.com/api/resource
            type: string
          meta:
            additionalProperties: true
            description: Free-form object that may contain non-standard information.
            example:
              key1: value1
              key2:
                sub_key: sub_value
              key3:
              - array_value1
              - array_value2
            type: object
        required:
        - href
        type: object
    UserLoginMethod:
      description: The authentication method used by the user.
      example: saml
      type: string
    TenantRoleId:
      description: Unique identifier for a tenant role.
      example: 00000000-0000-0000-0000-000000000000
      format: uuid
      type: string
    UserId:
      description: Unique identifier for a user.
      example: 00000000-0000-0000-0000-000000000000
      format: uuid
      type: string
    SelfLink:
      additionalProperties: false
      example:
        self: https://example.com/api/this_resource
      properties:
        self:
          $ref: '#/components/schemas/LinkProperty'
      type: object
    TenantName:
      description: The display name of the tenant.
      example: My Tenant
      type: string
    UserUsername:
      description: The username of the user.
      example: username
      type: string
    TenantMembershipUserRelationshipDataFullWithMeta:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/TenantMembershipUserRelationshipDataAttributes'
        id:
          $ref: '#/components/schemas/UserId'
        meta:
          additionalProperties: false
          properties:
            tenant_owner:
              description: Whether the user is the owner of the tenant.
              type: boolean
          type: object
        type:
          $ref: '#/components/schemas/UserType'
      required:
      - id
      - type
      - attributes
      type: object
    TenantId__0:
      description: Unique identifier for a tenant.
      example: 00000000-0000-0000-0000-000000000000
      format: uuid
      type: string
    TenantMembershipTenantRelationshipDataFull:
      additionalProperties: false
      properties:
        attributes:
          additionalProperties: false
          properties:
            name:
              $ref: '#/components/schemas/TenantName'
          required:
          - name
          type: object
        id:
          $ref: '#/components/schemas/TenantId__0'
        type:
          $ref: '#/components/schemas/TenantType'
      required:
      - id
      - type
      - attributes
      type: object
    TenantType:
      description: Resource type for tenants.
      enum:
      - tenant
      type: string
    UserName:
      description: The real name of the user.
      example: Firstname Lastname
      type: string
    TenantMembershipType:
      description: Resource type for tenant memberships.
      enum:
      - tenant_membership
      type: string
    TenantRelationships:
      properties:
        owner:
          properties:
            data:
              properties:
                id:
                  example: b667f176-df52-4b0a-9954-117af6b05ab7
                  format: uuid
                  type: string
                type:
                  description: The type of the resource. Always 'user'.
                  example: user
                  type: string
              required:
              - id
              - type
              type: object
          required:
          - data
          type: object
      type: object
    TenantMembershipTenantRoleRelationshipDataBasic:
      additionalProperties: false
      properties:
        id:
          $ref: '#/components/schemas/TenantRoleId'
        type:
          $ref: '#/components/schemas/TenantRoleType'
      required:
      - id
      - type
      type: object
    UserType:
      description: Resource type for users.
      enum:
      - user
      type: string
    PaginatedLinks:
      additionalProperties: false
      example:
        first: https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K
        last: https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K
        next: https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K
      properties:
        first:
          $ref: '#/components/schemas/LinkProperty'
        last:
          $ref: '#/components/schemas/LinkProperty'
        next:
          $ref: '#/components/schemas/LinkProperty'
        prev:
          $ref: '#/components/schemas/LinkProperty'
        self:
          $ref: '#/components/schemas/LinkProperty'
      type: object
    TenantAttributes:
      properties:
        created_at:
          description: The time the tenant was created.
          example: '2022-03-16T00:00:00Z'
          format: date-time
          type: string
        name:
          description: The display name of the tenant.
          example: My Tenant
          type: string
        slug:
          description: The canonical (unique and URL-friendly) name of the tenant.
          example: my-tenant
          type: string
        updated_at:
          description: The time the tenant was last modified.
          example: '2022-03-16T00:00:00Z'
          format: date-time
          type: string
      required:
      - name
      - slug
      - created_at
      - updated_at
      type: object
    Types:
      example: resource
      pattern: ^[a-z][a-z0-9]*(_[a-z][a-z0-9]*)*$
      type: string
    Links:
      additionalProperties: false
      properties:
        first:
          $ref: '#/components/schemas/LinkProperty'
        last:
          $ref: '#/components/schemas/LinkProperty'
        next:
          $ref: '#/components/schemas/LinkProperty'
        prev:
          $ref: '#/components/schemas/LinkProperty'
        related:
          $ref: '#/components/schemas/LinkProperty'
        self:
          $ref: '#/components/schemas/LinkProperty'
      type: object
    UserIsActive:
      description: Whether the user is active.
      example: true
      type: boolean
    UserEmail:
      description: The e-mail address of the user.
      example: user@example.com
      type: string
    TenantMembershipResponseAttributes:
      additionalProperties: false
      properties:
        created_at:
          $ref: '#/components/schemas/CreatedAt'
      required:
      - created_at
      type: object
    CreatedAt:
      description: The time at which the resource was created.
      example: '2022-03-16T00:00:00Z'
      format: date-time
      type: string
    TenantUpdateAttributes:
      additionalProperties: false
      properties:
        name:
          description: The display name of the tenant.
          example: My Tenant
          maxLength: 60
          minLength: 1
          type: string
      required:
      - name
      type: object
    TenantRoleType:
      description: Resource type for tenant roles.
      enum:
      - tenant_role
      type: string
    UserAccountType:
      description: The type of the u

# --- truncated at 32 KB (42 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/snyk/refs/heads/main/openapi/snyk-tenants-api-openapi.yml