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

# Phone SDK公開キーの発行

> Didit で、iOS・Android・Webクライアント用の公開キーを作成し、クライアント側の検証での使用を許可するアプリ識別子を指定します。

参照：[Phone SDKの公開キー一覧](https://docs.didit.me/ja/standalone-apis/phone-sdk-key-list.md)。


## OpenAPI

````yaml ja/openapi-25.json POST /v3/phone/sdk-keys/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: Identity verification API. Authenticate with x-api-key header.
servers:
  - url: https://verification.didit.me
security: []
tags:
  - name: Bank Data
    description: >-
      Bank Link, connections, accounts, balances, transactions, institutions and
      coverage. Bank data is available for sandbox applications. A live
      application's calls answer `404` until live access is announced. Nothing
      is charged in sandbox. A call made with an API key needs a key that
      carries the Bank data permission (`bank-data`): read for reads, write for
      operations that change something. The account check is the exception: it
      needs write access to sessions, or full access, and not the Bank data
      permission. Bank data is not part of full access: a full-access key is
      refused, and the call answers `403 bank_data_access_denied` until you
      create a key that carries the permission. Raw bank data (accounts,
      balances, transactions and the change feed) also refuses a request that
      carries no API key.


      Every refusal under `/v3/bank/` except the account check's has the same
      JSON body (`code`, `message`, `request_id`, `field`, `next_action`,
      `retry_after`). A path that is not an operation, an id that is not a UUID
      or an unknown sub-resource answers `404 not_found` for every method, and
      any unexpected error answers `500 internal_error` with a `request_id`.
      Where Bank data is not available, every operation answers the platform's
      standard `404`, exactly as an unknown route does.
paths:
  /v3/phone/sdk-keys/:
    post:
      tags:
        - Standalone APIs
      summary: Issue a publishable key for a client SDK
      description: >-
        Issue a publishable key for the iOS, Android or web build of your app:
        `platform`, the `app_ids` it may run in (bundle ids, package names or
        `https` origins) and an optional `name` shown in API keys. The answer
        carries `publishable_key`, which is safe to ship inside the app because
        it can only start the client SDK's checks.


        **Rotation.** To replace a key in an app that is already installed,
        rotate it (`POST /v3/phone/sdk-keys/{key_id}/rotate/`) rather than
        issuing a second one: the old value keeps working while your update
        ships.


        **Permissions.** Only an Owner or Admin API key may issue a publishable
        key.


        **Authentication.** Send your application's API key in `x-api-key`.


        **Rate limit.** Requests count against the key's budget; over it the
        answer is `429` with `Retry-After`.
      operationId: create_phone_sdk_key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PhoneSdkKeyRequest'
            examples:
              iOS app:
                summary: iOS app
                value:
                  platform: ios
                  app_ids:
                    - com.demoapp.ios
                  name: iOS app
      responses:
        '201':
          description: The key, with the value to ship in the app.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneSdkKey'
              examples:
                Issued:
                  summary: Issued
                  value:
                    key_id: sk_01JCL2B6
                    platform: ios
                    publishable_key: pk_live_ios_7Hq2
                    app_ids:
                      - com.demoapp.ios
                    status: active
                    created_at: '2026-11-21T09:00:00Z'
        '400':
          description: '`invalid_app_id` - Not a bundle id, package name or `https` origin.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneApiError'
        '401':
          description: >-
            The `x-api-key` is wrong, revoked or expired: replace the
            credential.
        '403':
          description: >-
            The `x-api-key` header is missing, or the key is not an Owner or
            Admin key of the application.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneApiError'
        '429':
          description: >-
            `rate_limited` - Over 600 requests a minute for the key: wait for
            Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneApiError'
      security:
        - ApiKeyAuth: []
      x-codeSamples: []
components:
  schemas:
    PhoneSdkKeyRequest:
      type: object
      properties:
        platform:
          type: string
          enum:
            - ios
            - android
            - web
          description: 'The platform the key is for: `ios`, `android` or `web`.'
          example: ios
        app_ids:
          type: array
          items:
            type: string
            example: com.demoapp.ios
          minItems: 1
          description: The bundle ids, package names or `https` origins the key works for.
          example:
            - com.demoapp.ios
        name:
          type: string
          description: Shown in API keys.
          example: iOS app
      required:
        - platform
        - app_ids
    PhoneSdkKey:
      type: object
      description: >-
        A publishable key of a client SDK. It is not a secret: it is bound to
        the app ids it may run in and cannot make a server call.
      properties:
        key_id:
          type: string
          description: The key.
          example: sk_01JCL2B6
        platform:
          type: string
          enum:
            - ios
            - android
            - web
          description: The platform it is for.
          example: ios
        publishable_key:
          type: string
          description: >-
            Safe to ship inside the app: it can only start the checks the client
            SDK runs, never a server call.
          example: pk_live_ios_7Hq2
        app_ids:
          type: array
          items:
            type: string
            example: com.demoapp.ios
          description: The bundle ids, package names or `https` origins it works for.
          example:
            - com.demoapp.ios
        status:
          type: string
          enum:
            - active
            - expiring
            - revoked
          description: >-
            `active` - it works; `expiring` - it was rotated and stops working
            at `previous_expires_at`; `revoked` - it stopped working.
          example: active
        created_at:
          type: string
          format: date-time
          description: When it was issued.
          example: '2026-11-21T09:00:00Z'
      required:
        - key_id
        - platform
        - status
    PhoneApiError:
      type: object
      description: >-
        An error answer. The HTTP status says the class of failure; `code` names
        the reason and `detail` says it in words.
      properties:
        code:
          type: string
          description: Machine-readable reason, as each response documents it.
          example: not_found
        detail:
          type: string
          description: What went wrong, in one sentence a user can act on.
          example: No factor with this id in your application.
      required:
        - detail
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your application's API key, from Developers -> API keys in the Business
        Console. The primary key has full access. A named key can be scoped:
        none, read or write per resource, limited to some workflows or to
        approved sessions, to a list of IP addresses, and to an expiry date. 401
        means the key is wrong, revoked or expired; 403 means no key was sent,
        the key has no access to this resource or action, or the request came
        from an address outside its IP list; 404 on a session route means the
        session is outside the key's workflows or statuses. A key without media
        access receives image, video and PDF URLs as null, and a key without
        sessions write receives session links and tokens as null. See
        https://docs.didit.me/console/api-keys.

````

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