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

# List machine users

> Lists the machine users you administer, newest first.



## OpenAPI

````yaml get /v1/grid/machine_users
openapi: 3.1.0
info:
  description: REST API for management of Baseten resources
  title: Baseten management API
  version: 1.0.0
servers:
  - url: https://api.baseten.co
security:
  - BearerAuth: []
paths:
  /v1/grid/machine_users:
    get:
      summary: Lists machine users
      description: >-
        Lists machine users, newest first: the team's with `team_id`, which
        requires team admin for it, else those of every team you administer.
      parameters:
        - name: cursor
          in: query
          required: false
          description: >-
            Opaque cursor returned by a previous page. Omit to fetch the first
            page.
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Cursor
        - name: limit
          in: query
          required: false
          description: Maximum number of items to return.
          schema:
            default: 100
            maximum: 1000
            minimum: 1
            title: Limit
            type: integer
        - name: team_id
          in: query
          required: false
          description: >-
            Limit machine users to this team. Without it, every team you
            administer.
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Team Id
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GridMachineUsersResponseV1'
      x-codeSamples:
        - lang: bash
          source: |
            curl --request GET \
            --url https://api.baseten.co/v1/grid/machine_users \
            --header "Authorization: Bearer $BASETEN_API_KEY"
        - lang: python
          source: |-
            import requests
            import os
            API_KEY = os.environ.get("BASETEN_API_KEY", "<YOUR_API_KEY>")
            url = "https://api.baseten.co/v1/grid/machine_users"

            headers = {"Authorization": f"Bearer {API_KEY}"}

            response = requests.request(
                "GET",
                url,
                headers=headers,
                params={'cursor': None, 'team_id': None}
            )

            print(response.text)
components:
  schemas:
    GridMachineUsersResponseV1:
      properties:
        items:
          description: Items in this page.
          items:
            $ref: '#/components/schemas/GridMachineUserV1'
          title: Items
          type: array
        pagination:
          $ref: '#/components/schemas/PaginationResponseV1'
          description: Pagination metadata for the page.
      required:
        - items
        - pagination
      title: GridMachineUsersResponseV1
      type: object
    GridMachineUserV1:
      properties:
        id:
          description: >-
            Stable machine user identifier. Grid usage and settings identify the
            machine user by this ID as its `user_id`.
          title: Id
          type: string
        name:
          description: Name of the machine user, unique within its team.
          title: Name
          type: string
        team_id:
          description: Identifier of the team that owns the machine user.
          title: Team Id
          type: string
        team_name:
          description: Name of the team that owns the machine user.
          title: Team Name
          type: string
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: ID of the user who created the machine user. Null when unknown.
          title: Created By
        created_at:
          description: Creation time, ISO 8601.
          format: date-time
          title: Created At
          type: string
      required:
        - id
        - name
        - team_id
        - team_name
        - created_at
      title: GridMachineUserV1
      type: object
    PaginationResponseV1:
      properties:
        has_more:
          description: Whether more items exist after this page.
          title: Has More
          type: boolean
        cursor:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Opaque cursor to pass into the next request. Null when there is no
            next page.
          title: Cursor
      required:
        - has_more
      title: PaginationResponseV1
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <api_key>`. The legacy `Authorization:
        Api-Key <api_key>` scheme is also accepted.

````