France Identité Domains API

Prove you control a domain, for your access certificates to name it.

GitHub OpenAPI

Operations 3

GET /api/organisations/{organisationId}/domains See your domains and their proofs #
POST /api/organisations/{organisationId}/domains Get the token that proves a domain #
POST /api/organisations/{organisationId}/domains/{domain}/check Check a domain's proof #

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/france-identite:france-identite-domains-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

france-identite-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: France Identite Domains API
  version: 1.0.0
  contact:
    name: Registre partenaires · France Identité sandbox
  description: 'Operations tagged Domains across 2 of this provider''s published API definitions: france-identite-organisation-openapi.yml, france-identite-organisation-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.playground.france-identite.gouv.fr/france-titres/registry
  description: This register
security: []
tags:
- name: Domains
  description: Prove you control a domain, for your access certificates to name it.
paths:
  /api/organisations/{organisationId}/domains:
    get:
      tags:
      - Domains
      operationId: listDomains
      summary: See your domains and their proofs
      description: 'The domains your services name, and the ones you asked a token for. An access

        certificate names a domain (DNS, matched by wallets with `x509_san_dns`) only once

        your organisation has proven it controls it; until then it names none, and your

        verifier identifies itself with `x509_hash`. A proof lasts 397 days. A certificate

        issued before the proof keeps its names: renew it.


        `status` is `not-started` (no token yet), `pending`, `proven` or `expired`.'
      security:
      - partnerApiKey: []
      - partnerSession: []
      - operatorToken: []
      parameters:
      - $ref: '#/components/parameters/OrganisationId'
      responses:
        '200':
          description: Your domains.
          content:
            application/json:
              schema:
                type: object
                required:
                - domains
                properties:
                  domains:
                    type: array
                    items:
                      $ref: '#/components/schemas/DomainProof'
        '401':
          $ref: '#/components/responses/SignInRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
    post:
      tags:
      - Domains
      operationId: startDomainProof
      summary: Get the token that proves a domain
      description: 'Gives your organisation''s token for the domain, the same each time. Publish it,

        alone on a line, at `https:///.well-known/france-identite-register.txt`

        (HTTPS on port 443, a publicly trusted certificate, no redirect), or as the TXT

        record `_france-identite-register.`. Then check it. Ten domains at most per

        organisation.'
      security:
      - partnerApiKey: []
      - partnerSession: []
      - operatorToken: []
      parameters:
      - $ref: '#/components/parameters/OrganisationId'
      - $ref: '#/components/parameters/Origin'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - domain
              properties:
                domain:
                  type: string
                  description: A public DNS name, without scheme, port or path.
            example:
              domain: otter.example
      responses:
        '201':
          description: The token, and where to publish it.
          content:
            application/json:
              schema:
                type: object
                properties:
                  domain:
                    $ref: '#/components/schemas/DomainProof'
        '400':
          $ref: '#/components/responses/Refused'
        '401':
          $ref: '#/components/responses/SignInRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          description: Your organisation already has ten domains.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.playground.france-identite.gouv.fr/france-titres/registry
      description: This register
  /api/organisations/{organisationId}/domains/{domain}/check:
    post:
      tags:
      - Domains
      operationId: checkDomainProof
      summary: Check a domain's proof
      description: 'Looks for your token at the domain''s well-known address, then in its TXT record.

        On success the domain is `proven`; otherwise `lastFailure` lists what each place answered. A

        proven domain stays proven until its proof expires, even if a later check fails.

        One check every ten seconds per domain.'
      security:
      - partnerApiKey: []
      - partnerSession: []
      - operatorToken: []
      parameters:
      - $ref: '#/components/parameters/OrganisationId'
      - $ref: '#/components/parameters/Origin'
      - in: path
        name: domain
        required: true
        schema:
          type: string
        example: otter.example
      responses:
        '200':
          description: The domain after the check.
          content:
            application/json:
              schema:
                type: object
                properties:
                  domain:
                    $ref: '#/components/schemas/DomainProof'
        '401':
          $ref: '#/components/responses/SignInRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: No token was asked for this domain.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: The domain was checked less than ten seconds ago.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.playground.france-identite.gouv.fr/france-titres/registry
      description: This register
components:
  parameters:
    Origin:
      in: header
      name: Origin
      description: This register's origin. Required on writes made with the session cookie; browsers send it themselves.
      schema:
        type: string
        format: uri
      example: https://api.playground.france-identite.gouv.fr
    OrganisationId:
      in: path
      name: organisationId
      required: true
      description: 'Your organisation''s register identifier. With an API key, the key''s own organisation, which `GET /api/me` gives: any other answers `403`.'
      schema:
        type: string
      example: FR-RCS.Sandbox.B.444555666
  responses:
    SignInRequired:
      description: No API key, partner session or operator token was sent, or the key is unknown, expired or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: unauthorized
            detail: Connexion requise pour cette action.
    Forbidden:
      description: The organisation named is not the API key's own, nor one the session's group manages, a request made with the session did not come from the register's origin, or what you resume was suspended by the register's operator.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: forbidden
            detail: Cette action n’est pas autorisée pour votre compte.
    Refused:
      description: The register refused the call; `error` says why.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: service not found
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: The reason
          in English or French.: null
        detail:
          type: string
    DomainProof:
      type: object
      required:
      - domain
      - status
      properties:
        domain:
          type: string
          example: otter.example
        status:
          type: string
          enum:
          - not-started
          - pending
          - proven
          - expired
        token:
          type: string
          example: fi-register-Q2hhbmdlIG1lIHBsZWFzZSE
        wellKnown:
          type: object
          properties:
            url:
              type: string
              example: https://otter.example/.well-known/france-identite-register.txt
            content:
              type: string
        dns:
          type: object
          properties:
            name:
              type: string
              example: _france-identite-register.otter.example
            type:
              type: string
              enum:
              - TXT
            value:
              type: string
        provenAt:
          type:
          - string
          - 'null'
          format: date-time
        validUntil:
          type:
          - string
          - 'null'
          format: date-time
        method:
          type:
          - string
          - 'null'
          enum:
          - well-known
          - dns
          - null
        lastCheckedAt:
          type:
          - string
          - 'null'
          format: date-time
        lastFailure:
          type:
          - array
          - 'null'
          description: What the last check found at each place when it did not find the token; null once proven or never checked.
          items:
            type: object
            required:
            - where
            - code
            properties:
              where:
                type: string
                enum:
                - well-known
                - dns
              code:
                type: string
                enum:
                - token_absent
                - http_status
                - no_record
                - not_found
                - private_address
                - too_large
                - timeout
                - tls
                - unreachable
              status:
                type: integer
                description: The HTTP status
                with `http_status`.: null
          example:
          - where: well-known
            code: http_status
            status: 404
          - where: dns
            code: no_record
        services:
          type: array
          items:
            type: string
          description: Your services that name this domain.
  securitySchemes:
    partnerApiKey:
      type: http
      scheme: bearer
      bearerFormat: fipk_…
      description: 'A key a member of your organisation''s group creates in the partner space, under

        *Team & API › API access*. It is shown once, acts for that organisation alone

        with the rights of a member of the group, expires after 30, 90 or 365 days, and

        is revoked there. No `Origin` header is needed.

        '
    partnerSession:
      type: apiKey
      in: cookie
      name: registrar_session
      description: The partner space's sign-in cookie, for the browser; scripts use an API key (`partnerApiKey`). Writes also need an `Origin` header equal to this register's origin.
    operatorToken:
      type: http
      scheme: bearer
      description: The sandbox operator's token. Partners use an API key or their session.
x-refined-from:
- france-identite-organisation-openapi.yml
- france-identite-organisation-openapi.yml