> ## Documentation Index
> Fetch the complete documentation index at: https://docs.member.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Me Token Attributes

> Return this member's own attribute values for page tokens on this hub.

Only definitions with a hub-config row for this hub are returned, together
with this member's own values; a team definition with no config here, and
its value, stay unreadable.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/hub/{team_id}/hubs/{hub_id}/me/token-attributes
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/hub/{team_id}/hubs/{hub_id}/me/token-attributes:
    get:
      tags:
        - contact-attributes-portal
      summary: Get Me Token Attributes
      description: >-
        Return this member's own attribute values for page tokens on this hub.


        Only definitions with a hub-config row for this hub are returned,
        together

        with this member's own values; a team definition with no config here,
        and

        its value, stay unreadable.
      operationId: >-
        contact_attributes_portal.get_contact_attributes_portal_get_hub_by_team_id_hubs_by_hub_id_me_token_attributes
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/TokenAttributesResponse'
          description: Successful Response
        '400':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Validation error
        '401':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Not authenticated
        '403':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Forbidden
        '404':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Resource not found
        '409':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Conflict
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiErrorResponse'
          description: Unprocessable entity
      security:
        - HTTPBearer: []
components:
  schemas:
    TokenAttributesResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/HubConfigResource'
          title: Data
          type: array
        included:
          items:
            anyOf:
              - $ref: '#/components/schemas/DefinitionResource'
              - $ref: '#/components/schemas/OptionResource'
              - $ref: '#/components/schemas/ContactValueResource'
          title: Included
          type: array
        meta:
          additionalProperties: true
          title: Meta
          type: object
      required:
        - data
        - included
        - meta
      title: TokenAttributesResponse
      type: object
    JsonApiErrorResponse:
      description: Error JSON:API response.
      properties:
        errors:
          items:
            $ref: '#/components/schemas/JsonApiError'
          title: Errors
          type: array
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - errors
      title: JsonApiErrorResponse
      type: object
    HubConfigResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/HubConfigAttributes'
        id:
          title: Id
          type: string
        type:
          const: contact_attribute_hub_configs
          default: contact_attribute_hub_configs
          title: Type
          type: string
      required:
        - id
        - attributes
      title: HubConfigResource
      type: object
    DefinitionResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/DefinitionAttributes'
        id:
          title: Id
          type: string
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        type:
          const: contact_attribute_definitions
          default: contact_attribute_definitions
          title: Type
          type: string
      required:
        - id
        - attributes
      title: DefinitionResource
      type: object
    OptionResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/OptionAttributes'
        id:
          title: Id
          type: string
        type:
          const: contact_attribute_options
          default: contact_attribute_options
          title: Type
          type: string
      required:
        - id
        - attributes
      title: OptionResource
      type: object
    ContactValueResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/ContactValueAttributes'
        id:
          title: Id
          type: string
        type:
          const: contact_attribute_values
          default: contact_attribute_values
          title: Type
          type: string
      required:
        - id
        - attributes
      title: ContactValueResource
      type: object
    JsonApiError:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Detail
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        source:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Source
        status:
          title: Status
          type: string
        title:
          title: Title
          type: string
      required:
        - status
        - title
      title: JsonApiError
      type: object
    HubConfigAttributes:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        definition_id:
          title: Definition Id
          type: string
        hub_id:
          title: Hub Id
          type: string
        is_in_onboarding:
          title: Is In Onboarding
          type: boolean
        is_in_profile:
          title: Is In Profile
          type: boolean
        is_read_only:
          title: Is Read Only
          type: boolean
        is_required:
          title: Is Required
          type: boolean
        is_searchable:
          title: Is Searchable
          type: boolean
        position:
          title: Position
          type: integer
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - hub_id
        - definition_id
        - is_in_profile
        - is_in_onboarding
        - is_required
        - is_read_only
        - is_searchable
        - position
        - created_at
        - updated_at
      title: HubConfigAttributes
      type: object
    DefinitionAttributes:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        is_contact_editable:
          title: Is Contact Editable
          type: boolean
        name:
          title: Name
          type: string
        position:
          title: Position
          type: integer
        slug:
          title: Slug
          type: string
        team_id:
          title: Team Id
          type: string
        type:
          enum:
            - text
            - number
            - boolean
            - date
            - multiple
            - single
          title: Type
          type: string
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - team_id
        - slug
        - name
        - type
        - description
        - is_contact_editable
        - position
        - created_at
        - updated_at
      title: DefinitionAttributes
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      type: object
    OptionAttributes:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        definition_id:
          title: Definition Id
          type: string
        label:
          title: Label
          type: string
        position:
          title: Position
          type: integer
        slug:
          title: Slug
          type: string
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - definition_id
        - slug
        - label
        - position
        - created_at
        - updated_at
      title: OptionAttributes
      type: object
    ContactValueAttributes:
      additionalProperties: false
      description: >-
        Flat view of a contact's attribute value for a single definition.


        Scalar defs set exactly one of value_text / value_number / value_boolean
        /

        value_date. Multi-select defs set ``option_ids`` and leave the scalar

        fields None.
      properties:
        definition_id:
          title: Definition Id
          type: string
        definition_slug:
          title: Definition Slug
          type: string
        option_ids:
          items:
            type: string
          title: Option Ids
          type: array
        option_slugs:
          items:
            type: string
          title: Option Slugs
          type: array
        type:
          title: Type
          type: string
        value_boolean:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Value Boolean
        value_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Value Date
        value_number:
          anyOf:
            - pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
              type: string
            - type: 'null'
          title: Value Number
        value_text:
          anyOf:
            - type: string
            - type: 'null'
          title: Value Text
      required:
        - definition_id
        - definition_slug
        - type
      title: ContactValueAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.