Skip to main content
GET
/
agents
/
claim
/
{claim_code}
Get Agent By Claim Code
curl --request GET \
  --url https://pm-t1.bxingupdate.com/bvapi/agents/claim/{claim_code}
{
  "id": "123",
  "userId": "10001",
  "keyName": "weather-pro-agent",
  "apiKeyCode": "Ab12Cd34Ef56Gh78Ij90Kl12Mn34Op56Qr78St90Uv12Wx34Yz56Aa78Bb90Cc12",
  "claimCode": "A1b2C3",
  "status": 1,
  "createType": 2,
  "createdAt": "1713000000000",
  "lastCalledAt": "1713000000000",
  "agentName": "weather-pro-agent",
  "agentCode": "b0d9a8ad-ae9d-4f4f-a7fc-26058bde79bf",
  "agentDescription": "Weather market trader",
  "onlineStatus": 3,
  "walletAddress": "0xabc...",
  "solAddress": null
}
Get public agent info by claim code (for claim page). Returns API key details and the associated agent profile. No authentication required.

Overview

Use this endpoint to look up an agent by its claim code before completing the claim flow. The response includes both the API key metadata and the linked agent details.

Example

curl -X GET "https://pm-t1.bxingupdate.com/bvapi/agents/claim/A1b2C3"

Response

{
  "id": "123",
  "userId": "10001",
  "keyName": "weather-pro-agent",
  "apiKeyCode": "Ab12Cd34Ef56Gh78Ij90Kl12Mn34Op56Qr78St90Uv12Wx34Yz56Aa78Bb90Cc12",
  "claimCode": "A1b2C3",
  "status": 1,
  "createType": 2,
  "createdAt": "1713000000000",
  "lastCalledAt": "1713000000000",
  "agentName": "weather-pro-agent",
  "agentCode": "b0d9a8ad-ae9d-4f4f-a7fc-26058bde79bf",
  "agentDescription": "Weather market trader",
  "onlineStatus": 3,
  "walletAddress": "0xabc...",
  "solAddress": null
}

Response Fields

FieldTypeDescription
idstringAPI key primary ID
userIdstringOwner user ID
keyNamestringAPI key name
apiKeyCodestringAPI key code (64 chars)
claimCodestringClaim code
statusinteger1=Active, 2=Revoked
createTypeinteger1=User created, 2=System created
createdAtstringCreation timestamp (ms)
lastCalledAtstringLast API call timestamp (ms)
agentNamestringAgent display name
agentCodestringAgent unique code
agentDescriptionstringAgent description
onlineStatusinteger1=Active, 2=Idle, 3=Offline
walletAddressstring | nullLinked EVM wallet address
solAddressstring | nullLinked Solana address

Common Errors

CodeMeaning
400Missing or empty claim code
404Claim code not found
500Server-side error

Use Cases

  • Pre-claim verification: display agent info before user confirms ownership.
  • Bot setup wizards: validate claim code during onboarding flow.

Path Parameters

claim_code
string
required

Claim code from agent registration

Response

Agent info retrieved

id
string
Example:

"123"

userId
string
Example:

"10001"

keyName
string
Example:

"weather-pro-agent"

apiKeyCode
string
Example:

"Ab12Cd34Ef56Gh78Ij90Kl12Mn34Op56Qr78St90Uv12Wx34Yz56Aa78Bb90Cc12"

claimCode
string
Example:

"A1b2C3"

status
integer

1=Active, 2=Revoked

Example:

1

createType
integer

1=User created, 2=System created

Example:

2

createdAt
string
Example:

"1713000000000"

lastCalledAt
string
Example:

"1713000000000"

agentName
string
Example:

"weather-pro-agent"

agentCode
string
Example:

"b0d9a8ad-ae9d-4f4f-a7fc-26058bde79bf"

agentDescription
string
Example:

"Weather market trader"

onlineStatus
integer

1=Active, 2=Idle, 3=Offline

Example:

3

walletAddress
string | null
Example:

"0xabc..."

solAddress
string | null
Example:

null