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

# Get an access token

> Login to the Rimdian API



## OpenAPI

````yaml POST /api/account.login
openapi: 3.0.1
info:
  title: Rimdian API reference
  description: >-
    Rimdian provides 2 apis: a Data Collector API to import data & a Server API
    to manage your workspace and settings.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: http://api-eu.rimdian.com
security: []
paths:
  /api/account.login:
    post:
      description: Login to the Rimdian API
      requestBody:
        description: Login payload
        content:
          application/json:
            schema:
              type: object
              required:
                - email
                - password
              properties:
                email:
                  type: string
                password:
                  type: string
        required: true
      responses:
        '200':
          description: Login successful
          content:
            text/plain:
              schema:
                type: object
                properties:
                  account:
                    type: object
                    properties:
                      id:
                        type: string
                      full_name:
                        type: string
                      timezone:
                        type: string
                      email:
                        type: string
                      locale:
                        type: string
                      is_service_account:
                        type: boolean
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
                  refresh_token:
                    type: string
                  refresh_token_expires_at:
                    type: string
                    format: date-time
                  access_token:
                    type: string
                  access_token_expires_at:
                    type: string
                    format: date-time
                example:
                  account:
                    id: '123456789'
                    full_name: John Doe
                    timezone: Europe/Paris
                    email: johndoe@website.com
                    locale: en-US
                    is_service_account: false
                    created_at: '2024-01-01T00:00:00Z'
                    updated_at: '2024-01-01T00:00:00Z'
                  refresh_token: xxxxx
                  refresh_token_expires_at: '2024-01-01T00:00:00Z'
                  access_token: xxxxx
                  access_token_expires_at: '2024-01-01T00:00:00Z'
        '400':
          description: Bad request
          content:
            text/plain:
              schema:
                type: string
                example: invalid email or password
        '500':
          description: internal server error
          content:
            text/plain:
              schema:
                type: string
                example: internal server error

````