BM Industrie App sign-in API

Sign a *person* in from a mobile app. A different kind of caller from an API key: a key authenticates an account, a token authenticates one user inside it.

GitHub OpenAPI

Operations 11

POST /api/v1/auth/login Sign in and receive a token #
POST /api/v1/auth/login/phone/send Send a sign-in code to a mobile number #
POST /api/v1/auth/login/phone/verify Trade the code for a phone ticket #
GET /api/v1/auth/me The signed-in user #
POST /api/v1/auth/login/two-factor Answer the authenticator and receive the token #
POST /api/v1/auth/mobile/send Send a code to prove a number #
POST /api/v1/auth/mobile Prove a number with its code, then go on to the authenticator #
POST /api/v1/auth/password/forgot Ask for a password reset #
POST /api/v1/auth/password/reset Set a new password with the WhatsApp code #
POST /api/v1/auth/logout Sign out this device #
POST /api/v1/auth/logout-all Sign out everywhere #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/bm-e-industrie-com:bm-e-industrie-com-app-sign-in-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bm-e-industrie-com-app-sign-in-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bm E Industrie Com App sign-in API
  version: 1.0.0
  contact:
    name: BM INDUSTRIE SARL Support
    email: support@bm-e-industrie.com
  description: 'Operations tagged App sign-in across 2 of this provider''s published API definitions: bm-e-industrie-com-track-openapi.json, bm-e-industrie-com-track-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://tracker.bm-e-industrie.com
  description: Production
security:
- apiKey: []
tags:
- name: App sign-in
  description: 'Sign a *person* in from a mobile app. A different kind of caller from an API key: a key authenticates an account, a token authenticates one user inside it.'
paths:
  /api/v1/auth/login:
    post:
      tags:
      - App sign-in
      operationId: appLogin
      summary: Sign in and receive a token
      description: 'The only endpoint on this API that takes no credential — it issues one. The token is returned once and is not recoverable afterwards.


        A disabled user, a user not attached to an account, and a suspended account are all refused with `403`. Wrong password and unknown email return the same `422`, deliberately: distinguishing them would confirm which email addresses have accounts.


        Attempts are throttled per email and IP. Once locked out, even the correct password returns `429` until the window passes.


        An account that has proven a mobile number signs in only behind the phone step: `phone_ticket` from `POST /api/v1/auth/login/phone/verify`, for that same number. Without it the answer is `422` with `reason: phone_required`. The ticket is checked after the password, so a mistyped password does not spend it; a sign-in that succeeds spends it, and it works once.


        Then the two gates the web door has. An unconfirmed email is refused with `403`, `reason: email_unverified` and `email_masked`; the confirmation link is sent again, at most once every ten minutes. And the authenticator: a correct sign-in answers `422` with `reason: two_factor_required`, a `challenge` and `expires_in`, and the token comes from `POST /api/v1/auth/login/two-factor`. An account with no authenticator yet gets `reason: two_factor_setup_required` and `setup` (`secret`, `otpauth_uri`) to add one; its first right code switches it on, for the web as well.


        Every answer that issues a token, here and from `login/two-factor`, carries `data.support_waiting` as `me` does: the support badge from the first answer.


        BT-57: it also carries `data.password_change_suggested`, true when the password just typed would not pass today''s rule (at least ten characters, letters and numbers, at most 72 bytes; the rule is on `GET /api/product` as `password`). Nothing is refused for it: a password set before the rule keeps working.'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginInput'
      responses:
        '201':
          description: A new token, and who it belongs to.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionEnvelope'
        '403':
          description: 'The account or the workspace is not active; or, with `reason: email_unverified`, the email address is not confirmed yet.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: 'Those credentials do not match our records; with `reason: phone_required`, the account has an enrolled mobile and no valid ticket for it came with the request; with `reason: two_factor_required` or `two_factor_setup_required`, the credentials are right and the authenticator step follows (`challenge`, `expires_in`, and `setup` when enrolling).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
  /api/v1/auth/login/phone/send:
    post:
      tags:
      - App sign-in
      operationId: appLoginPhoneSend
      summary: Send a sign-in code to a mobile number
      description: 'The first step of signing in: a six-digit code on WhatsApp to the account''s mobile number, live for ten minutes. The answer is the same `200` whether or not the number is on an account — only a number on an active account actually receives anything — so this cannot be used to find out who has one.


        A number that cannot exist in its country''s numbering plan is refused before anything is sent, with `reason: mobile_invalid` (see `numbering` on `GET /api/product`). A second request for the same number inside the ten minutes is refused with `reason: wait` and `wait_seconds`; the code already sent is the one to type.


        A number may be sent five codes an hour and an address may ask for ten; past either, `429` with `reason: too_many_requests`, `wait_seconds` and `Retry-After`. A refused request counts against neither.'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PhoneSendInput'
      responses:
        '200':
          description: If that number is registered, a code has been sent to it. The same sentence whoever asked.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                - message
        '422':
          description: 'Refused, with `reason`: `mobile_required`, `mobile_invalid`, `wait` (with `wait_seconds`) or `send_failed` (the message could not be handed to WhatsApp; nothing is pending, ask again). A malformed body answers the usual `errors`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneStepRefusal'
        '429':
          description: 'Too many codes for this number or from this address (`reason: too_many_requests`, `wait_seconds`, `Retry-After`), or the per-address request throttle.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneStepRefusal'
          headers:
            Retry-After:
              description: Seconds to wait before asking again.
              schema:
                type: integer
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
  /api/v1/auth/login/phone/verify:
    post:
      tags:
      - App sign-in
      operationId: appLoginPhoneVerify
      summary: Trade the code for a phone ticket
      description: 'The code from `phone/send`, answered with `phone_ticket`: proof that whoever is signing in holds this number, for `POST /api/v1/auth/login`. The ticket lives `expires_in` seconds (ten minutes), works once, and only for the number it was issued for.


        A code survives five wrong guesses; the fifth answers `reason: too_many_attempts` and the code is gone. For a number nobody registered, a wrong code is answered exactly as for one somebody did.'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PhoneVerifyInput'
      responses:
        '200':
          description: The number is proven; the ticket and how long it lasts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneTicketEnvelope'
        '422':
          description: 'Refused, with `reason`: `code_missing` (no code is pending for this number), `code_expired`, `code_incorrect` or `too_many_attempts`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneStepRefusal'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
  /api/v1/auth/me:
    get:
      tags:
      - App sign-in
      operationId: appMe
      summary: The signed-in user
      description: 'Who this token belongs to, what their role currently allows, and which account they are in. Call it on launch rather than trusting what was cached at sign-in: a role change or a suspension shows up here instead of as unexplained failures later.


        `data.support_waiting` counts the workspace''s support conversations an operator has answered and nobody has replied to since: the badge on Support.'
      security:
      - appUser: []
      responses:
        '200':
          description: The user and their live abilities.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEnvelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
  /api/v1/auth/login/two-factor:
    post:
      tags:
      - App sign-in
      operationId: appLoginTwoFactor
      summary: Answer the authenticator and receive the token
      description: 'The last step of signing in: the six digits from the authenticator app, against the `challenge` sign-in answered. A right code issues the token, exactly as sign-in used to; on a setup challenge it also switches the authenticator on for the account, the one the web then asks for.


        A wrong code answers `422` with `reason: two_factor_invalid`. The fifth ends the challenge: `429` with `reason: too_many_attempts`, and the person signs in again. A spent or lapsed challenge answers `422` with `reason: challenge_expired`. An account switched off since the challenge is refused with `403`.'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TwoFactorInput'
      responses:
        '201':
          description: A new token, and who it belongs to.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionEnvelope'
        '403':
          description: The account or the workspace is not active any more.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: 'With `reason: two_factor_invalid`, the code is wrong; with `reason: challenge_expired`, the challenge is spent or lapsed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'The fifth wrong code: `reason: too_many_attempts`, and the challenge is gone.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
  /api/v1/auth/mobile/send:
    post:
      tags:
      - App sign-in
      operationId: appLoginMobileSend
      summary: Send a code to prove a number
      description: 'Sign-in answers `422` with `reason: mobile_enrolment_required`, a `challenge`, `expires_in` and `on_file` (`{masked}` or null) for an account with no proven number, to a client that sends `X-Client-Steps: mobile_enrolment` (every client once `bmitrack.auth.mobile_enrolment` is `always`). A `phone_ticket` on sign-in for the number on file proves it there and then, and the step is not asked.


        Send `{challenge}` alone for the number on file, or `{challenge, dial_code, mobile}` for another. A WhatsApp code goes to it: `{ok, masked}`. `422 mobile_invalid` for no number or one its country cannot hold; `409 number_in_use` for somebody else''s proven number, which is never written to; `429 too_many_requests` with `wait_seconds`; `503 send_failed`; `422 challenge_expired`.'
      security: []
      responses:
        '200':
          description: 'Sent: `{ok, masked}`.'
        '403':
          description: The account or the workspace is not active any more.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`number_in_use`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: '`mobile_invalid` or `challenge_expired`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          description: '`send_failed`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
  /api/v1/auth/mobile:
    post:
      tags:
      - App sign-in
      operationId: appLoginMobile
      summary: Prove a number with its code, then go on to the authenticator
      description: '`{challenge, code}`. A right code makes the number the account''s proven one and answers exactly as the next step does: `422` with `two_factor_required` or `two_factor_setup_required` and their own challenge. `422 code_incorrect` or `code_expired`; `409 number_in_use` if somebody else proved it meanwhile; the fifth wrong code is `429 too_many_attempts` (`wait_seconds` 0) and the person signs in again; `422 challenge_expired`.'
      security: []
      responses:
        '403':
          description: The account or the workspace is not active any more.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`number_in_use`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The authenticator's challenge (proven), or `code_incorrect`, `code_expired`, `challenge_expired`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
  /api/v1/auth/password/forgot:
    post:
      tags:
      - App sign-in
      operationId: appPasswordForgot
      summary: Ask for a password reset
      description: '`email` and `via`: `email` sends the web''s reset link; `whatsapp` sends a six-digit code, live ten minutes, to the account''s confirmed number only. The answer is the same `200` for every address, so it cannot be used to find out who has an account. An address may ask five times an hour and a network address ten; past either, `429` with `reason: too_many_requests`.'
      security: []
      responses:
        '200':
          description: If the address is an account's, the link or the code is on its way.
        '422':
          description: A missing or malformed email, or an unknown `via`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
  /api/v1/auth/password/reset:
    post:
      tags:
      - App sign-in
      operationId: appPasswordReset
      summary: Set a new password with the WhatsApp code
      description: '`email`, `code`, `password` and `password_confirmation` (at least 8). A right code sets the password and ends every other session: every token on a phone is revoked. A wrong code answers `422` with `reason: code_incorrect`; the fifth ends it (`429`, `reason: too_many_attempts`); a spent or lapsed one answers `422` with `reason: code_expired`.'
      security: []
      responses:
        '200':
          description: The password is changed; sign in with it.
        '422':
          description: A wrong, spent or lapsed code, or a password too short or not confirmed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
  /api/v1/auth/logout:
    post:
      tags:
      - App sign-in
      operationId: appLogout
      summary: Sign out this device
      description: Revokes the token making the request and nothing else. The same user's other devices stay signed in.
      security:
      - appUser: []
      responses:
        '200':
          description: The token was revoked.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
  /api/v1/auth/logout-all:
    post:
      tags:
      - App sign-in
      operationId: appLogoutAll
      summary: Sign out everywhere
      description: Revokes every token this user holds, including the one making the request — this is the answer to a lost phone, so it deliberately does not spare the caller — and ends every browser session on the account, as the web's own "Sign out everywhere" does. `data.count` is the tokens, `data.sessions` the browsers.
      security:
      - appUser: []
      responses:
        '200':
          description: Every token was revoked, with how many.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://tracker.bm-e-industrie.com
      description: Production
components:
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
          description: Human-readable explanation. Safe to log; never contains a key.
        errors:
          type: object
          description: 'Present only on field validation failures: field name → list of messages.'
          additionalProperties:
            type: array
            items:
              type: string
      required:
      - message
    UserEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AppUser'
    PhoneTicketEnvelope:
      type: object
      properties:
        message:
          type: string
        data:
          type: object
          properties:
            phone_ticket:
              type: string
              description: 'Proof of this number for the sign-in that follows. Held in memory, never stored: it works once.'
            expires_in:
              type: integer
              description: 'Seconds the ticket lasts: 600.'
          required:
          - phone_ticket
          - expires_in
      required:
      - message
      - data
    SessionEnvelope:
      type: object
      properties:
        data:
          type: object
          properties:
            token:
              type: string
              description: Shown once. Store it in the device keychain, never in plain application storage.
            abilities:
              type: array
              items:
                type: string
            user:
              $ref: '#/components/schemas/AppUser'
    LoginInput:
      type: object
      properties:
        email:
          type: string
          format: email
        password:
          type: string
          format: password
        device_name:
          type: string
          maxLength: 120
          description: What to call this token in the user's device list, e.g. "Pixel 8". It is how someone recognises which device to sign out.
        phone_ticket:
          type:
          - string
          - 'null'
          maxLength: 100
          description: From `POST /api/v1/auth/login/phone/verify`. Required for an account with an enrolled mobile, and only that number's ticket will do.
      required:
      - email
      - password
      - device_name
    PhoneStepRefusal:
      type: object
      properties:
        message:
          type: string
          description: In the reader's language.
        reason:
          type: string
          description: A code that never changes with the language (BT-27).
          enum:
          - mobile_required
          - mobile_invalid
          - wait
          - send_failed
          - too_many_requests
          - code_missing
          - code_expired
          - code_incorrect
          - too_many_attempts
        wait_seconds:
          type: integer
          description: 'With `wait` and `too_many_requests`: seconds until asking again can work.'
      required:
      - message
    PhoneSendInput:
      type: object
      properties:
        dial_code:
          type: string
          maxLength: 8
          description: The country's calling code, with or without the `+`, e.g. `237`.
        mobile:
          type: string
          maxLength: 24
          description: The number after the country code. Anything that is not a digit is ignored; a national trunk prefix (Gabon's `0`) is not part of it.
      required:
      - dial_code
      - mobile
    TwoFactorInput:
      type: object
      properties:
        challenge:
          type: string
          maxLength: 100
          description: As sign-in answered it.
        code:
          type: string
          maxLength: 12
          description: The six digits the authenticator app shows.
        device_name:
          type: string
          maxLength: 120
      required:
      - challenge
      - code
      - device_name
    AppUser:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
        name:
          type: string
        email:
          type: string
          format: email
        role:
          type: string
          enum:
          - owner
          - manager
          - member
        paused:
          type:
          - string
          - 'null'
          enum:
          - plan_limit
          - null
          description: '`plan_limit` when the workspace has more members than its plan covers and this one is beyond it (owners never are): every call but signing out, this one and their profile answers 409 `over_plan_limit`, and they are told nothing until a plan is taken again.'
        abilities:
          type: array
          items:
            type: string
          description: What this user's role allows right now. Use it to hide controls the user cannot use; it is not the enforcement — the server is.
        tenant:
          type: object
          properties:
            uuid:
              type: string
              format: uuid
            name:
              type: string
            plan:
              type: string
            timezone:
              type: string
              description: The workspace's timezone setting (IANA), for the evening theme.
    PhoneVerifyInput:
      type: object
      properties:
        dial_code:
          type: string
          maxLength: 8
        mobile:
          type: string
          maxLength: 24
        code:
          type: string
          maxLength: 12
          description: The six digits sent on WhatsApp.
      required:
      - dial_code
      - mobile
      - code
  responses:
    RateLimited:
      description: Per-key rate limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests allowed per minute for this key.
          schema:
            type: integer
    Forbidden:
      description: The key is revoked or expired, or lacks the ability this endpoint needs (`devices:read`, `devices:write`, `positions:read`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: The key is missing or unknown.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Your API key, e.g. `bmk_live_...`. It is shown once when created and stored hashed, so it cannot be recovered afterwards — issue a new one instead. `Authorization: Bearer <key>` is accepted as an alternative for clients that cannot set custom headers.'
    appUser:
      type: http
      scheme: bearer
      description: 'A personal access token from `POST /api/v1/auth/login`, sent as `Authorization: Bearer <token>`. It identifies one user, and what it may do is the intersection of the token''s own abilities and that user''s current role — so changing someone''s role takes effect on their next request, with no need to revoke anything.'
x-refined-from:
- bm-e-industrie-com-track-openapi.json
- bm-e-industrie-com-track-openapi.yml