LINE Line Module Attach API

The line-module-attach API from LINE — 1 operation(s) for line-module-attach.

Operations 1

POST /module/auth/v1/token #

Documentation

Specifications

Other Resources

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/line-line-module-attach-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

line-line-module-attach-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LINE Messaging Line Module Attach API
  version: 0.0.1
  description: This document describes LINE Messaging API.
servers:
- url: https://manager.line.biz
security:
- basicAuth: []
tags:
- name: line-module-attach
paths:
  /module/auth/v1/token:
    post:
      externalDocs:
        url: https://developers.line.biz/en/reference/partner-docs/#link-attach-by-operation-module-channel-provider
      tags:
      - line-module-attach
      operationId: attachModule
      description: Attach by operation of the module channel provider
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              description: request of the attachModule
              type: object
              properties:
                grant_type:
                  type: string
                  description: authorization_code
                  example: authorization_code
                code:
                  type: string
                  description: Authorization code received from the LINE Platform.
                redirect_uri:
                  type: string
                  description: Specify the redirect_uri specified in the URL for authentication and authorization.
                code_verifier:
                  type: string
                  description: Specify when using PKCE (Proof Key for Code Exchange) defined in the OAuth 2.0 extension specification as a countermeasure against authorization code interception attacks.
                client_id:
                  type: string
                  description: 'Instead of using Authorization header, you can use this parameter to specify the channel ID of the module channel.

                    You can find the channel ID of the module channel in the LINE Developers Console.

                    '
                client_secret:
                  type: string
                  description: 'Instead of using Authorization header, you can use this parameter to specify the channel secret of the module channel.

                    You can find the channel secret of the module channel in the LINE Developers Console.

                    '
                region:
                  type: string
                  description: 'If you specified a value for region in the URL for authentication and authorization, specify the same value.

                    '
                basic_search_id:
                  type: string
                  description: If you specified a value for basic_search_id in the URL for authentication and authorization, specify the same value.
                scope:
                  type: string
                  description: If you specified a value for scope in the URL for authentication and authorization, specify the same value.
                brand_type:
                  type: string
                  description: If you specified a value for brand_type in the URL for authentication and authorization, specify the same value.
              required:
              - grant_type
              - code
              - redirect_uri
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttachModuleResponse'
              example:
                bot_id: U45c5c51f0050ef0f0ee7261d57fd3c56
                scopes:
                - message:send
                - message:receive
          description: OK
components:
  schemas:
    AttachModuleResponse:
      externalDocs:
        url: https://developers.line.biz/en/reference/partner-docs/#link-attach-by-operation-module-channel-provider
      description: Attach by operation of the module channel provider
      required:
      - bot_id
      - scopes
      properties:
        bot_id:
          type: string
          description: User ID of the bot on the LINE Official Account.
        scopes:
          type: array
          description: Permissions (scope) granted by the LINE Official Account admin.
          items:
            type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic