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

# One-call entity onboarding

> Creates an account, an optional agent, and a wallet in a single atomic call. Returns all generated credentials. Useful for wizards and scripted setups. Sandbox-funded if `initial_funding` is provided.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/accounts/onboard
openapi: 3.1.0
info:
  title: Sly API
  description: >-
    The Agentic Economy Platform — stablecoin payments, agent wallets,
    multi-protocol commerce, and AI agent orchestration.
  version: 1.0.0
  contact:
    name: Sly
    url: https://getsly.ai
    email: support@getsly.ai
servers:
  - url: https://api.getsly.ai/v1
    description: Production
  - url: https://sandbox.getsly.ai/v1
    description: Sandbox
security:
  - bearerAuth: []
paths:
  /v1/accounts/onboard:
    post:
      tags:
        - Accounts
      summary: One-call entity onboarding
      description: >-
        Creates an account, an optional agent, and a wallet in a single atomic
        call. Returns all generated credentials. Useful for wizards and scripted
        setups. Sandbox-funded if `initial_funding` is provided.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OnboardAccountInput'
      responses:
        '201':
          description: Onboarded
          content:
            application/json:
              schema:
                type: object
                properties:
                  account:
                    $ref: '#/components/schemas/Account'
                  agent:
                    type: object
                    properties:
                      id:
                        type: string
                      token:
                        type: string
                    required:
                      - id
                  wallet:
                    type: object
                    properties:
                      id:
                        type: string
                      address:
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                required:
                  - account
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    OnboardAccountInput:
      type: object
      properties:
        account_name:
          type: string
          minLength: 1
          maxLength: 255
        account_type:
          type: string
          enum:
            - person
            - business
        agent_name:
          type: string
          minLength: 1
          maxLength: 255
        kya_tier:
          type: integer
          minimum: 0
          maximum: 3
          default: 0
        initial_funding:
          type: string
          description: Sandbox only — funds the wallet from the faucet
      required:
        - account_name
        - account_type
    Account:
      type: object
      properties:
        id:
          type: string
          format: uuid
        tenantId:
          type: string
          format: uuid
        environment:
          type: string
          enum:
            - test
            - live
        type:
          type: string
          enum:
            - person
            - business
        subtype:
          type:
            - string
            - 'null'
        name:
          type: string
        email:
          type: string
          format: email
        country:
          type: string
        currency:
          type: string
          default: USDC
        metadata:
          type: object
          additionalProperties: {}
          default: {}
        verificationTier:
          type: integer
          minimum: 0
          maximum: 3
        verificationStatus:
          type: string
          enum:
            - unverified
            - pending
            - verified
            - rejected
            - suspended
        verificationType:
          type: string
          enum:
            - kyc
            - kyb
        balanceTotal:
          type: number
        balanceAvailable:
          type: number
        balanceInStreams:
          type: number
        balanceBuffer:
          type: number
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - tenantId
        - environment
        - type
        - name
        - verificationTier
        - verificationStatus
        - verificationType
        - balanceTotal
        - balanceAvailable
        - balanceInStreams
        - balanceBuffer
        - createdAt
        - updatedAt
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details: {}
        request_id:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (pk_test_* or pk_live_*), JWT session, agent token (agent_*),
        Ed25519 session (sess_*), or portal token (portal_*).

````