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

# Get the authenticated user

> Returns the identity of the authenticated user, their organisation memberships (each as `{id, role, name}`), and the flat `organisation_ids`. Requires a user credential; a system-key caller has no identity here.



## OpenAPI

````yaml /api-reference/openapi.json get /me
openapi: 3.0.3
info:
  title: JobAffinity REST API
  version: '1.13'
  description: >
    JobAffinity REST API for managing jobs, candidates, applications, and
    recruitment processes.


    ## Authentication

    All endpoints require HTTP Basic Authentication.


    ## Versioning

    Current version: 1.13


    See `/restapi/changelog` for version history and changes.
  contact:
    name: JobAffinity API Support
servers:
  - url: https://jobaffinity.fr/restapi/v1
    description: REST API v1
  - url: https://jobaffinity.fr/restapi
    description: REST API root (for changelog)
security:
  - basicAuth: []
tags:
  - name: API Info
    description: API metadata and changelog
  - name: Account
    description: Authenticated user identity and organisation membership
  - name: Jobs
    description: Job listings and details
  - name: Candidates
    description: Candidate information
  - name: Applications
    description: Job applications
  - name: Processes
    description: Recruitment processes and steps
  - name: Notes
    description: Candidate notes
  - name: Templates
    description: Recorded email templates
  - name: Questionnaires
    description: Questionnaire answers
  - name: Webhooks
    description: Webhook tasks
  - name: Job Application Submission
    description: >-
      Submit candidate applications to a job posting via the apply URL provided
      in the job feed. The authentication token is embedded in the URL — no
      additional credentials are required.
paths:
  /me:
    get:
      tags:
        - Account
      summary: Get the authenticated user
      description: >-
        Returns the identity of the authenticated user, their organisation
        memberships (each as `{id, role, name}`), and the flat
        `organisation_ids`. Requires a user credential; a system-key caller has
        no identity here.
      operationId: getMe
      responses:
        '200':
          description: Authenticated user identity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Me'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
components:
  schemas:
    Me:
      type: object
      properties:
        _status:
          type: string
          enum:
            - OK
        _self:
          type: string
          format: uri
        id:
          type: integer
          description: User identifier
        login:
          type: string
          description: User login
        email:
          type: string
          format: email
          description: User email
        first_name:
          type: string
        last_name:
          type: string
        superadmin:
          type: boolean
          description: Whether the user is a superadmin
        domain_id:
          type: integer
          description: Identifier of the user's domain
        organisation_ids:
          type: array
          description: Flat, sorted list of the organisation IDs the user belongs to.
          items:
            type: integer
        organisations:
          type: array
          description: One entry per membership.
          items:
            $ref: '#/components/schemas/OrganisationMembership'
    OrganisationMembership:
      type: object
      description: A user's membership of one organisation.
      properties:
        id:
          type: integer
          description: Organisation identifier
        role:
          type: integer
          description: Role identifier of the membership
        name:
          type: string
          description: Organisation label, empty when the organisation is unavailable.
  responses:
    UnauthorizedError:
      description: Authentication information is missing or invalid
      headers:
        WWW-Authenticate:
          schema:
            type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic Authentication with API credentials

````