> ## 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.

# 銀行管理リンクAPIの作成：銀行アクセス管理ページを開く

> Didit の管理リンク作成エンドポイントは、サインイン中のユーザーの銀行アクセス管理ページを開く、15分間有効・1回限りのリンクを返します。

Diditの Create a Manage Linkエンドポイントは、1件の銀行接続について、有効期間15分の単回使用リンクを返します。このリンクから、本人専用のアクセスページを開けます。ページでは、本人がどの情報を共有しているかを確認でき、共有を停止することもできます。

リンクを要求する前に、サーバー側でその接続がサインイン中のユーザーのものであることを確認してください。返された`url`はすぐに開いてください。このリンクは本人確認をスキップするため、決してメールで送信せず、ログにも記録しないでください。同じ`Idempotency-Key`と同じ認証情報を使い、24時間以内に同じリクエストを再試行すると、元のURLが返されます。ただし、接続を削除すると、この再試行は成功せず、`409 idempotency_key_forgotten`が返されます。リンクの使用後または有効期限切れ後に新たにクリックする場合は、新しいキーを使用してください。

`manage_url`が`null`の一回限りの接続でも、マネージリンクを作成できます。収集が完了すると、ページには共有が終了したことが表示されます。メールや領収書には、永続的な`manage_url`が存在する場合にのみ使用してください。このURLには本人確認が必要で、シードされたデモ用の接続では存在しない場合もあります。

詳しくは[本人向けアクセスページ](https://docs.didit.me/ja/core-technology/bank-verification/connections.md#エンドユーザー向けアクセスページ)をご覧ください。


## OpenAPI

````yaml ja/openapi-25.json POST /v3/bank/connections/{id}/manage-link/
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. One-time reads of real banks are open to live applications.
      Ongoing access with real banks is not open yet for live applications: it
      is available for sandbox applications with the Didit Test Bank, and opens
      country by country. Nothing is charged in sandbox. A call made with an API
      key needs a key that can reach Bank data: a full-access key can, and a
      scoped key needs `bank-data` in its scopes (read for reads, write for
      operations that change something). A scoped key without it is refused, and
      the call answers `403 bank_data_access_denied`. The account check is the
      exception: it needs write access to sessions, or full access, and not the
      Bank data scope. 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/bank/connections/{id}/manage-link/:
    post:
      tags:
        - Bank Data
      summary: Create a manage link
      description: >-
        On your server, verify that the connection belongs to the signed-in user
        before you request a manage link. Open the single-use URL immediately.
        It bypasses identity proof and expires in 15 minutes. Never email or log
        it. Retrying the same operation with the same `Idempotency-Key` and the
        same credential within 24 hours returns the original URL. The replay
        does not survive deleting the connection: that retry answers `409
        idempotency_key_forgotten`. Use a new key to issue a fresh link after
        use or expiry.


        The person can review or stop sharing. After bank confirmation, the
        revocation event reports `ended_by: end_user`. You can mint a link for a
        one-time connection even when its persistent `manage_url` is null. After
        collection, its page shows that access ended.


        Use an application client-credentials bearer token or an API key. A
        scoped key needs `bank-data` write access. A full-access key also works.
      operationId: createBankManageLink
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The connection id.
        - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '201':
          description: The manage link.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankManageLink'
              examples:
                Manage link:
                  summary: A link valid for 15 minutes
                  value:
                    url: >-
                      https://verify.didit.me/bank/access/bam_9Wc3Rk7Tn2Xv5Lq1Hd8Zs4Py6Ma0
                    expires_at: '2026-11-21T12:25:00Z'
        '400':
          description: Shorten the Idempotency-Key to 255 characters or fewer.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - detail
                properties:
                  code:
                    type: string
                    enum:
                      - idempotency_key_invalid
                  detail:
                    type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/BankDataAccessDenied'
        '404':
          description: The connection does not exist in this application and environment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankDataError'
              examples:
                Not found:
                  summary: Not found
                  value:
                    code: not_found
                    message: The resource does not exist.
                    request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                    field: null
                    next_action: null
                    retry_after: null
        '409':
          description: >-
            Use a new key for a different request. If the original request is in
            progress, wait for Retry-After before retrying it with the same key.
            If the connection was deleted after the first request, the key
            answers `idempotency_key_forgotten`: send the request again with a
            new key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankIdempotencyConflictError'
          headers:
            Retry-After:
              description: Seconds to wait when the original request is still in progress.
              schema:
                type: integer
        '429':
          $ref: '#/components/responses/RateLimitedWrite'
        '500':
          $ref: '#/components/responses/BankDataInternalError'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            'https://verification.didit.me/v3/bank/connections/5e1d2a70-3b94-4c1f-8a6e-d2f07b9c1e35/manage-link/'
            \
              -H 'x-api-key: YOUR_API_KEY'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        Optional retry-safety key you choose for one operation, up to 255
        characters (a UUID works). A request repeated with the same key,
        endpoint, query and body is answered with the first response, same
        status and same body, and runs and bills nothing a second time. The same
        key with another endpoint, query or body returns `409`
        `idempotency_key_reused`, and while the first request is still running,
        `409` `idempotency_key_in_progress` with `Retry-After`. If a deletion
        erased a resource named in the first request or its successful response,
        within 24 hours of that request's first successful response the key is
        refused whatever the request with `409` `idempotency_key_forgotten` and
        nothing runs. The first write already ran: if you only need its result,
        do not resend; to write again, send the request again with a new key.
        After 24 hours from the first successful response, the same key starts a
        new request. A write that runs and returns a `4xx` or `5xx` releases its
        key so you can retry with the same key. If Didit refuses a key before
        running the write, that refusal leaves the existing reservation in
        place. Keys belong to your application, whether you call with an API key
        or an access token. See [Retries and
        idempotency](/integration/api-errors#retries-and-idempotency).
      schema:
        type: string
        minLength: 1
        maxLength: 255
  schemas:
    BankManageLink:
      type: object
      description: A short-lived link to the person's own access page.
      properties:
        url:
          type: string
          format: uri
          description: >-
            On your server, verify that the connection belongs to the signed-in
            user before you request a manage link. The URL skips identity proof,
            works once and must never be emailed or logged.
        expires_at:
          type: string
          format: date-time
          description: 'When the link stops working: 15 minutes after creation.'
      required:
        - url
        - expires_at
    BankDataError:
      type: object
      description: Error body of every Bank data operation. Every field is always present.
      properties:
        code:
          type: string
          enum:
            - ongoing_access_not_available
            - country_not_available
            - segment_not_available
            - window_not_available
            - history_window_ambiguous
            - redirect_url_not_registered
            - link_origin_not_allowed
            - bank_data_access_denied
            - connection_not_active
            - one_time_connection
            - consent_expired
            - renewal_not_needed
            - renewal_window_expired
            - access_removed
            - refresh_limit_reached
            - refresh_too_soon
            - cursor_expired
            - page_expired
            - invalid_cursor
            - page_token_mismatch
            - contract_rate_missing
            - insufficient_credits
            - invalid_request
            - not_found
            - internal_error
          description: Machine-readable error code. Branch on this, never on `message`.
        message:
          type: string
          description: >-
            Plain-language explanation for a developer. The wording can change;
            do not parse it.
        request_id:
          type: string
          description: Identifier of this request. Quote it when you contact support.
        field:
          type: string
          description: >-
            The request field to correct, when the error is about one field.
            Otherwise `null`.
          nullable: true
        next_action:
          type: string
          enum:
            - retry_later
            - renew_connection
            - create_link
            - restart_from_cursor
            - restart_read
            - top_up_balance
            - enable_bank_data_access
            - contact_support
            - null
          description: >-
            What to do next, so a client can act without guessing. `null` when
            there is no standard next step. `enable_bank_data_access` means the
            key has no access to Bank data: use a key that has it (a full-access
            key, or a scoped key that names `bank-data`).
          nullable: true
        retry_after:
          type: integer
          description: >-
            Seconds to wait before retrying. Set on rate-limit and temporary
            errors, otherwise `null`.
          nullable: true
      required:
        - code
        - message
        - request_id
        - field
        - next_action
        - retry_after
      example:
        code: ongoing_access_not_available
        message: >-
          This bank cannot keep access open. Use access one_time or choose
          another bank.
        request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
        field: institution_id
        next_action: create_link
        retry_after: null
    BankIdempotencyConflictError:
      type: object
      description: >-
        A refusal from the shared idempotency layer when a key was used with
        another request, the first request is still running (with
        `Retry-After`), or a deletion erased a resource named in the first
        request or its successful response.
      properties:
        detail:
          type: string
          description: Plain-language explanation.
        code:
          type: string
          enum:
            - idempotency_key_reused
            - idempotency_key_in_progress
            - idempotency_key_forgotten
          description: >-
            `idempotency_key_reused`: the key was used with another endpoint,
            query or body. `idempotency_key_in_progress`: the first request with
            this key is still running. `idempotency_key_forgotten`: a deletion
            erased a resource named in the first request or its successful
            response. The first write already ran: if you only need its result,
            do not resend; to write again, send the request again with a new
            key.
      required:
        - detail
        - code
    RateLimitBudgetError:
      type: object
      description: >-
        Returned only for a rate-limit middleware budget refusal. Other 429
        errors, including idempotency conflicts and endpoint-specific caps, do
        not promise these metadata fields.
      required:
        - detail
        - reference
        - limit
        - remaining
        - reset
        - window_seconds
      properties:
        detail:
          type: string
          description: Existing human-readable budget refusal message.
        reference:
          type: string
          pattern: ^RL-[0-9a-f]{32}$
          description: >-
            Opaque support reference: RL- followed by 32 lowercase UUID
            hexadecimal characters.
        limit:
          type: integer
          description: Budget for the exceeded scope; equals X-RateLimit-Limit.
        remaining:
          type: integer
          minimum: 0
          description: Remaining budget, clamped to zero; equals X-RateLimit-Remaining.
        reset:
          type: integer
          format: int64
          description: Window reset time in Unix seconds; equals X-RateLimit-Reset.
        window_seconds:
          type: integer
          description: >-
            Fixed-window duration in seconds, not the remaining wait. Honor
            Retry-After before retrying.
      example:
        detail: >-
          Write request rate limit exceeded. You can make up to 300 requests per
          minute.
        reference: RL-00000000000040008000000000000001
        limit: 300
        remaining: 0
        reset: 1794358860
        window_seconds: 60
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          examples:
            Invalid API Key:
              summary: Invalid API Key
              value:
                detail: Invalid API Key.
    BankDataAccessDenied:
      description: >-
        A scoped API key does not name Bank data (`bank-data`) in its scopes. A
        request authenticated without an API key (client credentials, on raw
        data) is refused with this body too. A full-access key is not refused
        for its scopes. The refusal comes before any lookup, so it says nothing
        about whether an object exists.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BankDataError'
          examples:
            Bank data not allowed:
              summary: Bank data not allowed
              value:
                code: bank_data_access_denied
                message: >-
                  Bank data calls need an API key that carries the Bank data
                  permission.
                request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                field: null
                next_action: enable_bank_data_access
                retry_after: null
    RateLimitedWrite:
      description: >-
        The shared write limit of 300 requests per minute per API key was
        exceeded. Honor `Retry-After` before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitBudgetError'
          example:
            detail: >-
              Write request rate limit exceeded. You can make up to 300 requests
              per minute.
            reference: RL-00000000000040008000000000000001
            limit: 300
            remaining: 0
            reset: 1794358860
            window_seconds: 60
      headers:
        Retry-After:
          $ref: '#/components/headers/BudgetRetryAfter'
        X-RateLimit-Scope:
          $ref: '#/components/headers/BudgetXRateLimitScope'
        X-RateLimit-Limit:
          $ref: '#/components/headers/BudgetXRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/BudgetXRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/BudgetXRateLimitReset'
    BankDataInternalError:
      description: >-
        Something went wrong on Didit's side. Any unexpected error under
        `/v3/bank/` answers in the Bank error shape, never an HTML page: quote
        `request_id` to support.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BankDataError'
          examples:
            Internal error:
              summary: An unexpected error
              value:
                code: internal_error
                message: >-
                  Something went wrong on our side. Quote the request_id to
                  support.
                request_id: 3f6a1c8e92b54d07a1e38c4b7f0d2e59
                field: null
                next_action: contact_support
                retry_after: null
  headers:
    BudgetRetryAfter:
      description: >-
        Seconds to wait, rounded up to the next window. Present on middleware
        budget refusals.
      schema:
        type: integer
    BudgetXRateLimitScope:
      description: >-
        The scope whose budget was exceeded. Present on middleware budget
        refusals.
      schema:
        type: string
    BudgetXRateLimitLimit:
      description: >-
        Budget for the exceeded scope; equals body limit. Present on middleware
        budget refusals.
      schema:
        type: integer
    BudgetXRateLimitRemaining:
      description: >-
        Remaining budget, clamped to zero; equals body remaining. Present on
        middleware budget refusals.
      schema:
        type: integer
    BudgetXRateLimitReset:
      description: >-
        Reset time in Unix seconds; equals body reset. Present on middleware
        budget refusals.
      schema:
        type: integer
  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.
    BearerAuth:
      type: http
      scheme: bearer
      description: The application's client-credentials access token.

````

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