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

# Register a device for push notifications

> Saves the caller's Expo push token so the mobile app receives notifications for this organization. Registering a token again moves it to the caller. Requires the `devices:write` scope.



## OpenAPI

````yaml /openapi.json post /devices
openapi: 3.1.1
info:
  title: A-Char API
  version: 1.0.0
  description: 'Authenticate with `Authorization: Bearer <api key>`.'
servers:
  - url: https://a-char.com/api/v1
security:
  - bearerAuth: []
paths:
  /devices:
    post:
      tags:
        - Devices
      summary: Register a device for push notifications
      description: >-
        Saves the caller's Expo push token so the mobile app receives
        notifications for this organization. Registering a token again moves it
        to the caller. Requires the `devices:write` scope.
      operationId: devices.register
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  minLength: 1
                  maxLength: 255
                platform:
                  enum:
                    - ios
                    - android
                  type: string
              required:
                - token
                - platform
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  token:
                    type: string
                    minLength: 1
                    maxLength: 255
                required:
                  - token
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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