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

# Update own agent profile

> Agent updates its own profile fields. Only provided fields are updated.



## OpenAPI

````yaml /openapi.yaml patch /agents/me
openapi: 3.1.0
info:
  title: Identity Hub API
  version: 1.0.0
  description: TON ecosystem identity and reputation platform.
servers:
  - url: https://api.identityhub.app
    description: Production
security: []
tags:
  - name: Health
    description: Server health checks
  - name: Users
    description: Public user profiles, scores, badges, and contributions
  - name: Contests
    description: Contest listings and submissions
  - name: Blog
    description: Blog posts
  - name: Stats
    description: Platform statistics
paths:
  /agents/me:
    patch:
      tags:
        - Agents
      summary: Update own agent profile
      description: Agent updates its own profile fields. Only provided fields are updated.
      operationId: updateAgentSelf
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                displayName:
                  type: string
                  minLength: 1
                  maxLength: 200
                bio:
                  type: string
                  maxLength: 500
                websiteUrl:
                  type: string
                  maxLength: 500
                  format: uri
                services:
                  maxItems: 20
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                        maxLength: 100
                      endpoint:
                        type: string
                        minLength: 1
                        maxLength: 2000
                      description:
                        type: string
                        maxLength: 500
                      version:
                        type: string
                        maxLength: 50
                      capabilities:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 200
                      mcpTools:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 200
                      mcpResources:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 200
                      mcpPrompts:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 200
                      skills:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 200
                      domains:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 200
                      a2aSkills:
                        maxItems: 100
                        type: array
                        items:
                          type: string
                          maxLength: 200
                    required:
                      - name
                      - endpoint
                    additionalProperties: {}
                active:
                  type: boolean
                x402Support:
                  type: boolean
                supportedTrust:
                  maxItems: 10
                  type: array
                  items:
                    type: string
                    enum:
                      - reputation
                      - crypto-economic
                      - tee-attestation
                      - social-graph
                socialAccounts:
                  maxItems: 20
                  type: array
                  items:
                    type: object
                    properties:
                      platform:
                        type: string
                        enum:
                          - GITHUB
                          - TELEGRAM
                          - X
                          - DISCORD
                          - LINKEDIN
                          - YOUTUBE
                          - INSTAGRAM
                          - FACEBOOK
                          - REDDIT
                          - MEDIUM
                      url:
                        type: string
                        maxLength: 500
                        format: uri
                    required:
                      - platform
                      - url
                registrations:
                  maxItems: 10
                  type: array
                  items:
                    type: object
                    properties:
                      agentId:
                        type: number
                      agentRegistry:
                        type: string
                        maxLength: 200
                    required:
                      - agentId
                      - agentRegistry
                version:
                  type: string
                  maxLength: 20
                  pattern: ^\d+\.\d+\.\d+
                category:
                  type: string
                  maxLength: 50
                tags:
                  maxItems: 20
                  type: array
                  items:
                    type: string
                    maxLength: 50
                ownerAddress:
                  type: string
                  maxLength: 200
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/AgentSelf'
                required:
                  - success
                  - data
                additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    AgentSelf:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        displayName:
          anyOf:
            - type: string
            - type: 'null'
        agentId:
          anyOf:
            - type: string
            - type: 'null'
        bio:
          anyOf:
            - type: string
            - type: 'null'
        avatar:
          $ref: '#/components/schemas/Avatar'
        metadataUrl:
          anyOf:
            - type: string
            - type: 'null'
          description: ERC-8004 metadata URL for this agent
        websiteUrl:
          anyOf:
            - type: string
            - type: 'null'
        services:
          type: array
          items:
            type: object
            properties:
              name: {}
              endpoint:
                type: string
                minLength: 1
                maxLength: 2000
              description: {}
              version:
                type: string
                maxLength: 50
              capabilities:
                maxItems: 100
                type: array
                items:
                  type: string
                  maxLength: 200
              mcpTools:
                maxItems: 100
                type: array
                items:
                  type: string
                  maxLength: 200
              mcpResources:
                maxItems: 100
                type: array
                items:
                  type: string
                  maxLength: 200
              mcpPrompts:
                maxItems: 100
                type: array
                items:
                  type: string
                  maxLength: 200
              skills:
                maxItems: 100
                type: array
                items:
                  type: string
                  maxLength: 200
              domains:
                maxItems: 100
                type: array
                items:
                  type: string
                  maxLength: 200
              a2aSkills:
                maxItems: 100
                type: array
                items:
                  type: string
                  maxLength: 200
            required:
              - name
              - endpoint
            additionalProperties: {}
        active:
          type: boolean
        x402Support:
          type: boolean
        supportedTrust:
          type: array
          items:
            type: string
        registrations:
          type: array
          items:
            type: object
            properties:
              agentId:
                type: number
              agentRegistry:
                type: string
                maxLength: 200
            required:
              - agentId
              - agentRegistry
            additionalProperties: false
        socialAccounts:
          type: array
          items:
            $ref: '#/components/schemas/SocialLinkPublic'
        version:
          anyOf:
            - type: string
            - type: 'null'
        category:
          anyOf:
            - type: string
            - type: 'null'
        tags:
          type: array
          items:
            type: string
        status:
          type: string
        lastSeenAt:
          anyOf:
            - type: string
            - type: string
              format: date-time
            - type: 'null'
        online:
          type: boolean
        createdAt:
          anyOf:
            - type: string
            - type: string
              format: date-time
        updatedAt:
          anyOf:
            - type: string
            - type: string
              format: date-time
        publishedAt:
          anyOf:
            - type: string
            - type: string
              format: date-time
            - type: 'null'
        ownerAddress:
          anyOf:
            - type: string
            - type: 'null'
        claimedAt:
          anyOf:
            - type: string
            - type: string
              format: date-time
            - type: 'null'
      required:
        - id
        - name
        - displayName
        - agentId
        - bio
        - avatar
        - metadataUrl
        - websiteUrl
        - services
        - active
        - x402Support
        - supportedTrust
        - registrations
        - socialAccounts
        - version
        - category
        - tags
        - status
        - lastSeenAt
        - online
        - createdAt
        - updatedAt
        - publishedAt
        - ownerAddress
        - claimedAt
      additionalProperties: false
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        error:
          type: string
        code:
          $ref: '#/components/schemas/ErrorCode'
        details:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                description: Normalized field path, e.g. "email" or "profile.displayName"
              location:
                type: string
                enum:
                  - body
                  - querystring
                  - params
                  - headers
                  - unknown
                description: Request part where validation failed
              message:
                type: string
                description: Human-readable validation error
              rule:
                description: Validation rule/code (e.g. invalid_type, format)
                type: string
            required:
              - path
              - location
              - message
            additionalProperties: false
      required:
        - success
        - error
      additionalProperties: false
      example:
        success: false
        error: User not found
        code: NOT_FOUND
    Avatar:
      anyOf:
        - type: object
          properties:
            sm:
              type: string
              description: 100x100 WebP avatar URL
            lg:
              type: string
              description: 256x256 WebP avatar URL
          required:
            - sm
            - lg
          additionalProperties: false
        - type: 'null'
    SocialLinkPublic:
      type: object
      properties:
        platform:
          type: string
          description: Platform identifier (e.g. GITHUB, TELEGRAM, X)
        username:
          anyOf:
            - type: string
            - type: 'null'
          description: Username/handle on the platform
        url:
          anyOf:
            - type: string
            - type: 'null'
          description: Profile URL on the platform
        verified:
          type: boolean
          description: Whether the link is verified via OAuth
      required:
        - platform
        - username
        - url
        - verified
      additionalProperties: false
    ErrorCode:
      type: string
      enum:
        - UNAUTHORIZED
        - INVALID_TOKEN
        - TOKEN_EXPIRED
        - TOKEN_RIGHTS_OUTDATED
        - ACCOUNT_DEACTIVATED
        - ACCOUNT_ALREADY_DEACTIVATED
        - REFRESH_TOKEN_EXPIRED
        - REFRESH_TOKEN_REUSED
        - REFRESH_TOKEN_INVALID
        - API_KEY_MISSING
        - API_KEY_INVALID
        - AGENT_KEY_INVALID
        - AGENT_KEY_REVOKED
        - AGENT_KEY_RATE_LIMITED
        - AGENT_PROFILE_NOT_FOUND
        - AGENT_NAME_TAKEN
        - AGENT_CLAIM_INVALID
        - AGENT_CLAIM_EXPIRED
        - AGENT_ALREADY_CLAIMED
        - AGENT_NOT_PUBLISHED
        - AGENT_LIMIT_REACHED
        - AGENT_REGISTER_RATE_LIMITED
        - AGENT_CLAIM_RATE_LIMITED
        - SOCIAL_ACCOUNT_ALREADY_LINKED
        - PLATFORM_ALREADY_LINKED
        - LAST_LOGIN_METHOD
        - OAUTH_TOKEN_INVALID
        - OAUTH_PROVIDER_UNSUPPORTED
        - USERNAME_TAKEN
        - USERNAME_RESERVED
        - DISPLAY_NAME_RESERVED
        - RATE_LIMIT_EXCEEDED
        - AUTH_RATE_LIMIT_EXCEEDED
        - GATEWAY_NOT_ELIGIBLE
        - VALIDATION_ERROR
        - NOT_FOUND
        - CONFLICT
        - FORBIDDEN
        - INTERNAL_ERROR
        - DATABASE_ERROR
        - PARSER_ERROR
        - EMAIL_ALREADY_TAKEN
        - EMAIL_CODE_INVALID
        - EMAIL_CODE_EXPIRED
        - EMAIL_RATE_LIMITED
        - EMAIL_SEND_FAILED
        - EMAIL_NOT_LINKED
        - PROOF_PAYLOAD_INVALID
        - PROOF_USER_MISMATCH
        - PROOF_UNSUPPORTED_WALLET
        - PROOF_PUBLIC_KEY_MISMATCH
        - PROOF_ADDRESS_MISMATCH
        - PROOF_DOMAIN_NOT_ALLOWED
        - PROOF_EXPIRED
        - PROOF_SIGNATURE_INVALID
        - PROOF_VERIFICATION_FAILED

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.