Composio · Capability

Composio Platform API — Authentication

Composio Platform API — Authentication. 3 operations. Lead operation: Get current user session information. Self-contained Naftiko capability covering one Composio business surface.

Run with Naftiko ComposioAuthentication

What You Can Do

GET
Getauthsessioninfo — Get current user session information
/v1/api/v3/auth/session/info
POST
Postauthsessionlogout — End user session and clear authentication
/v1/api/v3/auth/session/logout
POST
Postconnectedaccountsbynanoidrefresh — Refresh authentication for a connected account
/v1/api/v3/connected-accounts/{nanoid}/refresh

MCP Tools

get-current-user-session-information

Get current user session information

read-only idempotent
end-user-session-and-clear

End user session and clear authentication

refresh-authentication-connected-account

Refresh authentication for a connected account

Capability Spec

composio-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Composio Platform API — Authentication
  description: 'Composio Platform API — Authentication. 3 operations. Lead operation: Get current user session information.
    Self-contained Naftiko capability covering one Composio business surface.'
  tags:
  - Composio
  - Authentication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COMPOSIO_API_KEY: COMPOSIO_API_KEY
capability:
  consumes:
  - type: http
    namespace: composio-authentication
    baseUri: https://backend.composio.dev
    description: Composio Platform API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: api-v3-auth-session-info
      path: /api/v3/auth/session/info
      operations:
      - name: getauthsessioninfo
        method: GET
        description: Get current user session information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-v3-auth-session-logout
      path: /api/v3/auth/session/logout
      operations:
      - name: postauthsessionlogout
        method: POST
        description: End user session and clear authentication
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-v3-connected_accounts-nanoid-refresh
      path: /api/v3/connected_accounts/{nanoid}/refresh
      operations:
      - name: postconnectedaccountsbynanoidrefresh
        method: POST
        description: Refresh authentication for a connected account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: nanoid
          in: path
          type: string
          description: The unique identifier of the connected account
          required: true
        - name: redirect_url
          in: query
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: x-api-key
      value: '{{env.COMPOSIO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: composio-authentication-rest
    port: 8080
    description: REST adapter for Composio Platform API — Authentication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v3/auth/session/info
      name: api-v3-auth-session-info
      description: REST surface for api-v3-auth-session-info.
      operations:
      - method: GET
        name: getauthsessioninfo
        description: Get current user session information
        call: composio-authentication.getauthsessioninfo
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v3/auth/session/logout
      name: api-v3-auth-session-logout
      description: REST surface for api-v3-auth-session-logout.
      operations:
      - method: POST
        name: postauthsessionlogout
        description: End user session and clear authentication
        call: composio-authentication.postauthsessionlogout
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v3/connected-accounts/{nanoid}/refresh
      name: api-v3-connected-accounts-nanoid-refresh
      description: REST surface for api-v3-connected_accounts-nanoid-refresh.
      operations:
      - method: POST
        name: postconnectedaccountsbynanoidrefresh
        description: Refresh authentication for a connected account
        call: composio-authentication.postconnectedaccountsbynanoidrefresh
        with:
          nanoid: rest.nanoid
          redirect_url: rest.redirect_url
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: composio-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Composio Platform API — Authentication. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-current-user-session-information
      description: Get current user session information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: composio-authentication.getauthsessioninfo
      outputParameters:
      - type: object
        mapping: $.
    - name: end-user-session-and-clear
      description: End user session and clear authentication
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: composio-authentication.postauthsessionlogout
      outputParameters:
      - type: object
        mapping: $.
    - name: refresh-authentication-connected-account
      description: Refresh authentication for a connected account
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: composio-authentication.postconnectedaccountsbynanoidrefresh
      with:
        nanoid: tools.nanoid
        redirect_url: tools.redirect_url
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.