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

# Create verification session

> Creates a PID-scoped verification session and returns a verification URL containing pid + sid.



## OpenAPI

````yaml /api/openapi.json post /api/v1/verify/session
openapi: 3.1.0
info:
  title: Dock API
  description: >-
    API for managing links between Roblox and Discord accounts, including
    mapping, updating, removing links, and resetting the custom database.
  version: 1.0.0
servers:
  - url: https://api.docksys.xyz
security:
  - bearerAuth: []
paths:
  /api/v1/verify/session:
    post:
      summary: Create verification session
      description: >-
        Creates a PID-scoped verification session and returns a verification URL
        containing pid + sid.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifySessionCreateRequest'
            example:
              pid: pid-yourapp
              clientId: user_123
              guildId: optional
      responses:
        '200':
          description: Verification session created or existing pending session reused.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifySessionCreateResponse'
        '400':
          description: Missing required body fields.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: PID does not belong to the API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Verify request quota exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    VerifySessionCreateRequest:
      type: object
      required:
        - pid
        - clientId
      properties:
        pid:
          type: string
          description: PID owned by the authenticated API key.
        clientId:
          type: string
          description: >-
            Developer-defined client identifier used to map completion back to
            your user.
        guildId:
          type: string
          nullable: true
    VerifySessionCreateResponse:
      type: object
      properties:
        status:
          type: integer
          enum:
            - 200
        data:
          type: object
          properties:
            sid:
              type: string
            pid:
              type: string
            clientId:
              type: string
            expiresAt:
              type: string
              format: date-time
            reusedExisting:
              type: boolean
            verifyUrl:
              type: string
        timestamp:
          type: string
          format: date-time
        version:
          type: string
        verifyRequestsRemaining:
          type: integer
          nullable: true
        verifyIpRequestsRemaining:
          type: integer
          nullable: true
    ErrorResponse:
      type: object
      properties:
        status:
          type: integer
          enum:
            - 400
            - 401
            - 403
            - 404
            - 500
          description: The HTTP status code of the error response.
        error:
          type: string
          description: A message describing the error.
        timestamp:
          type: string
          format: date-time
          description: The timestamp of the response in ISO 8601 format.
        version:
          type: string
          example: 1.0.0
          description: The API version.
        requestsRemaining:
          type: integer
          nullable: true
          description: Number of requests remaining in the daily quota.
        ipRequestsRemaining:
          type: integer
          nullable: true
          description: >-
            Remaining IP-linked quota shared across API keys detected on the
            same IP.
    RateLimitErrorResponse:
      type: object
      properties:
        status:
          type: integer
          enum:
            - 429
          description: The HTTP status code of the rate limit error response.
        error:
          type: string
          description: A message describing the rate limit error.
        timestamp:
          type: string
          format: date-time
          description: The timestamp of the response in ISO 8601 format.
        version:
          type: string
          example: 1.0.0
          description: The API version.
        retryAfter:
          type: integer
          description: Seconds until the rate limit resets or the next request can be made.
        requestsRemaining:
          type: integer
          nullable: true
          description: Number of requests remaining in the daily quota.
        ipRequestsRemaining:
          type: integer
          nullable: true
          description: >-
            Remaining IP-linked quota shared across API keys detected on the
            same IP.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````