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

# Create User

> Creates a new user.



## OpenAPI

````yaml post /users
openapi: 3.0.1
info:
  title: TrustOS EVM ID API
  description: >-
    TrustOS EVM ID API is used to interact with EVM based blockchain networks.
    In case you have some questions or need more about the use of this API,
    don't hesitate to contact B-Team:
  contact:
    name: Blockchain Team
    email: soporte-bteam@telefonica.com
  version: 2.3.3
servers:
  - url: https://lab.trustos.telefonicatech.com/id/v2
    description: Lab
security: []
tags:
  - name: Authentication
    description: Users authentication via a JSON Web Token (JWT).
  - name: Identity
    description: User identity management.
paths:
  /users:
    post:
      tags:
        - Identity
      summary: Create user.
      requestBody:
        description: Data needed for the creation of a user inside TrustOS.
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  example: john@john.com
                company:
                  type: string
                  example: Company Name
                password:
                  type: string
                  example: password
                credits:
                  type: number
                  example: 10000
                networks:
                  type: array
                  items:
                    type: number
                    example: 10004
      responses:
        '201':
          $ref: '#/components/responses/201-UserCreated'
        '400':
          $ref: '#/components/responses/400-ValidationError'
        '401':
          $ref: '#/components/responses/401-AuthenticationError'
        '500':
          $ref: '#/components/responses/500-InternalServerError'
      security:
        - bearerAuth: []
components:
  responses:
    201-UserCreated:
      description: Successful user creation.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 201
              message:
                type: string
                description: Message returned by the request.
                example: User created
              data:
                type: object
                description: Data returned by the request.
                properties:
                  username:
                    type: string
                    description: The user's did.
                    example: did:user:<id>
                  address:
                    type: string
                    description: The Ethereum address of the user.
                    example: '0x1234'
    400-ValidationError:
      description: Validation Error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 400
              type:
                type: string
                description: Error type.
                example: Validation Error
              message:
                type: string
                description: Message returned by the request.
                example: Request parameters are wrong, check requirements
              errors:
                type: array
                description: All the validation errors encountered in the request.
                items:
                  type: object
                  properties:
                    field:
                      type: string
                      description: Name of the field.
                      example: ''
                    error:
                      type: string
                      description: Description of the error encountered.
                      example: ''
    401-AuthenticationError:
      description: Authentication Error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 401
              type:
                type: string
                description: Error type.
                example: Authentication Error
              message:
                type: string
                description: Message returned by the request.
                example: Token is not provided
    500-InternalServerError:
      description: Internal Server Error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 500
              type:
                type: string
                description: Error type.
                example: Internal Server Error
              message:
                type: string
                description: Message returned by the request.
                example: Oops! Something went wrong, please try again later
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````