---
agentTools:
  projectIndex: https://underdog.readme.io/llms.txt
---

# Retrieve a Domain

# OpenAPI definition

```json
{
  "info": {
    "version": "2.0.0",
    "title": "Underdog Protocol API"
  },
  "servers": [
    {
      "url": "https://devnet.underdogprotocol.com",
      "description": "Solana Devnet"
    },
    {
      "url": "https://mainnet.underdogprotocol.com",
      "description": "Solana Mainnet"
    }
  ],
  "openapi": "3.0.0",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "paths": {
    "/v2/domains/{namespace}": {
      "get": {
        "summary": "Retrieve a Domain",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Domains"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "namespace",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a Domain by namespace",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "address": {
                      "type": "string",
                      "description": "Base-58 encoded string representing an on-chain address",
                      "example": "dustFPTV7dujoJjgkKtf6is3bYaFEy1nswS23vxHfvt"
                    },
                    "authority": {
                      "type": "string",
                      "description": "Base-58 encoded string representing an on-chain address",
                      "example": "dustFPTV7dujoJjgkKtf6is3bYaFEy1nswS23vxHfvt"
                    },
                    "namespace": {
                      "type": "string"
                    },
                    "expiredAt": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "nullable": true
                        }
                      ]
                    }
                  },
                  "required": [
                    "address",
                    "authority",
                    "namespace"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 120,
      "2": 18,
      "3": 31,
      "4": 87,
      "5": 216,
      "6": 33,
      "7": 0,
      "8": 11,
      "9": 154,
      "10": 241,
      "11": 226
    }
  }
}
```