---
updatedAt: 2025-06-04T20:32:25.000Z
agentTools:
  projectIndex: https://docs.universalname.space/llms.txt
---

# Lock a Name

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Locks",
    "description": "# Locks\n\nThis resource allows developers to reserve for a period of time a name for a persona. Right now lock time is set to 30 minutes and after expiration time, the name will be released again.\n\nIn order to re-lock the name after expiration you need to call again the same endpoint.\n\n---\n\n## List of Endpoints\n\n`POST - v1/locks`\n\n`GET - v1/locks/{{lock_id}}`\n\n**Check each endpoint for further details for data requirements to successfully perform a request.**",
    "contact": {},
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api-dev.universalname.space/v1",
      "variables": {}
    }
  ],
  "paths": {
    "/locks": {
      "post": {
        "tags": [
          "Locks"
        ],
        "summary": "Lock a Name",
        "operationId": "LockaName",
        "parameters": [
          {
            "name": "x-api-key",
            "in": "header",
            "description": "",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "example": "{{api_key}}"
            }
          },
          {
            "name": "x-org-code",
            "in": "header",
            "description": "",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string",
              "example": "{{org_code}}"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LockaNameRequest"
                  },
                  {
                    "example": {
                      "name": "aleix_lopez",
                      "persona_id": "69e7ce3d-ecb4-501e-8e03-5e11e81658e2"
                    }
                  }
                ]
              },
              "example": {
                "name": "aleix_lopez",
                "persona_id": "69e7ce3d-ecb4-501e-8e03-5e11e81658e2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "headers": {}
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {
      "LockaNameRequest": {
        "title": "LockaNameRequest",
        "required": [
          "name",
          "persona_id"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "persona_id": {
            "type": "string"
          }
        },
        "example": {
          "name": "aleix_lopez",
          "persona_id": "69e7ce3d-ecb4-501e-8e03-5e11e81658e2"
        }
      }
    },
    "securitySchemes": {
      "httpBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "httpBearer": []
    }
  ],
  "tags": [
    {
      "name": "Locks",
      "description": ""
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```