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

# Create Session Grant



## OpenAPI

````yaml /api/openapi.json post /api/graph/v1/chart-agent-auth/clients/{client_id}/grants
openapi: 3.1.0
info:
  title: Sequency Graph API
  description: >

    # Sequency Graph-Native Trading API


    Graph-native API for trading intelligence, built on FalkorDB.


    ## Features


    - **Screener**: Filter stocks using graph-native queries with relationship
    expansion

    - **Stock Detail**: Complete stock context with all relationships

    - **Confluence Scoring**: Setup quality assessment with weighted components

    - **Strategy Matching**: Find matching options strategies via graph
    traversal

    - **Market Context**: Current market-wide context for trading decisions


    ## Data Sources


    All data is sourced from the FalkorDB knowledge graph, populated by:

    - Pattern detector (Go) - Technical indicators, patterns

    - Graph sync service - Levels, volume profiles, news, day classification
  version: 1.0.0
servers: []
security: []
paths:
  /api/graph/v1/chart-agent-auth/clients/{client_id}/grants:
    post:
      tags:
        - Chart Agent Auth
      summary: Create Session Grant
      operationId: createSessionGrant
      parameters:
        - name: client_id
          in: path
          required: true
          schema:
            type: string
            title: Client Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateGrantRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateGrantRequest:
      properties:
        agent_id:
          type: string
          maxLength: 128
          minLength: 1
          title: Agent Id
        session_id:
          type: string
          maxLength: 128
          minLength: 1
          title: Session Id
        scopes:
          items:
            type: string
          type: array
          maxItems: 8
          minItems: 1
          title: Scopes
        resource_ids:
          items:
            type: string
          type: array
          maxItems: 200
          title: Resource Ids
        expires_at:
          type: string
          format: date-time
          title: Expires At
        idempotency_key:
          type: string
          maxLength: 128
          minLength: 1
          title: Idempotency Key
      additionalProperties: false
      type: object
      required:
        - agent_id
        - session_id
        - scopes
        - expires_at
        - idempotency_key
      title: CreateGrantRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````