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

# Register a member

> Accepts the signed message for member registration. This is the second step
in the member registration flow for API members. After submitting the registration,
an admin must still submit a member proposal to add the member to the organization and execute it.




## OpenAPI

````yaml /openapi.yaml post /members/registrations
openapi: 3.1.0
info:
  title: Den API
  version: 2.0.0
  description: >
    API for managing wallets with Den. This API provides programmatic access to
    all platform capabilities

    including wallet accounts, members, groups, policies, and transactions.


    ## Authentication

    All API requests require authentication via Bearer token in the
    Authorization header.


    ## Idempotency

    All mutation requests (POST, PUT, DELETE) require an X-Idempotency-Key
    header for safe retries.


    ## Two Transaction Types

    - **Account Transactions**: Value movement and contract interactions
    (governed by policies)

    - **Organization Operations**: Governance/admin changes (governed by admin
    threshold)
servers:
  - url: https://api.onchainden.com/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Members
    description: Manage organization members
  - name: Groups
    description: Manage member groups
  - name: Policies
    description: Manage transaction policies
  - name: Accounts
    description: Manage wallet accounts
  - name: Transactions
    description: Create and execute account transactions
  - name: Admins
    description: Manage admin configuration
  - name: AuditLogs
    description: View audit log entries
paths:
  /members/registrations:
    post:
      tags:
        - Members
      summary: Register a member
      description: >
        Accepts the signed message for member registration. This is the second
        step

        in the member registration flow for API members. After submitting the
        registration,

        an admin must still submit a member proposal to add the member to the
        organization and execute it.
      operationId: registerMember
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - walletAddress
                - signature
              properties:
                walletAddress:
                  type: string
                  pattern: ^0x[a-fA-F0-9]{40}$
                  example: 0xabc...
                signature:
                  type: string
                  example: 0xdef...
      responses:
        '200':
          description: Registration successful
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/RegistrationResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '426':
          $ref: '#/components/responses/UpgradeRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      x-codeSamples:
        - lang: javascript
          label: SDK
          source: >
            const client = new DenClient({ apiKey: 'ck_live_...' });

            // First get the payload

            const { data: payload } = await
            client.getMemberRegistrationPayload('0xabc...');

            // Sign with wallet (e.g., using viem)

            const signature = await wallet.signMessage({ message:
            payload.messageToSign });

            // Send signed message for registration

            const { data: result } = await client.submitRegistration('0xabc...',
            signature);
components:
  parameters:
    IdempotencyKey:
      name: X-Idempotency-Key
      in: header
      required: true
      schema:
        type: string
        format: uuid
      description: Idempotency key for safely retrying mutation requests.
  schemas:
    RegistrationResult:
      type: object
      required:
        - walletAddress
        - registered
        - registeredAt
      properties:
        walletAddress:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
        registered:
          type: boolean
        registeredAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    ErrorObject:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          description: Human-readable error message
        details:
          $ref: '#/components/schemas/ErrorDetails'
    ErrorCode:
      type: string
      enum:
        - validationError
        - invalidSignature
        - unauthorized
        - forbidden
        - notFound
        - conflict
        - thresholdNotMet
        - proposalExpired
        - idempotencyConflict
        - upgradeRequired
        - rateLimited
        - internalError
      description: Machine-readable error codes
    ErrorDetails:
      type: object
      additionalProperties: true
      description: Additional error details (structure varies by error type)
      properties:
        field:
          type: string
          description: Field that caused the error (for validation errors)
        message:
          type: string
          description: Detailed message about the error
  responses:
    BadRequest:
      description: Invalid request body or signature
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            validationError:
              value:
                error:
                  code: validationError
                  message: Validation failed
            invalidSignature:
              value:
                error:
                  code: invalidSignature
                  message: Signature verification failed
    Unauthorized:
      description: API key is missing or invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Invalid API key
    Forbidden:
      description: Not permitted for this action
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: forbidden
              message: Not permitted for this action
    Conflict:
      description: Resource already exists or proposal already queued
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: conflict
              message: Resource already exists
    UnprocessableEntity:
      description: >-
        Request cannot be processed due to proposal state or idempotency
        conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            thresholdNotMet:
              value:
                error:
                  code: thresholdNotMet
                  message: Threshold not reached
            proposalExpired:
              value:
                error:
                  code: proposalExpired
                  message: Proposal expired
            idempotencyConflict:
              value:
                error:
                  code: idempotencyConflict
                  message: Idempotency key used with different request body
    UpgradeRequired:
      description: HTTPS required; plain HTTP requests are rejected
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: upgradeRequired
              message: HTTPS required
    RateLimited:
      description: Too many requests
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: rateLimited
              message: Too many requests
    InternalError:
      description: Server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internalError
              message: Server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API key authentication. Include your API key in the Authorization
        header.

````