Skip to main content
POST
/
v1
/
apis
/
register
Register API
curl --request POST \
  --url https://gateway.apiosk.com/v1/apis/register \
  --header 'Content-Type: application/json' \
  --header 'x-wallet-address: <api-key>' \
  --header 'x-wallet-nonce: <api-key>' \
  --header 'x-wallet-signature: <api-key>' \
  --header 'x-wallet-timestamp: <api-key>' \
  --data '
{
  "name": "<string>",
  "slug": "<string>",
  "endpoint_url": "<string>",
  "price_usd": 5.00005,
  "description": "<string>",
  "owner_wallet": "<string>"
}
'
const options = {
method: 'POST',
headers: {
'x-wallet-address': '<api-key>',
'x-wallet-signature': '<api-key>',
'x-wallet-timestamp': '<api-key>',
'x-wallet-nonce': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
slug: '<string>',
endpoint_url: '<string>',
price_usd: 5.00005,
description: '<string>',
owner_wallet: '<string>'
})
};

fetch('https://gateway.apiosk.com/v1/apis/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "success": true,
  "api_id": "<string>",
  "slug": "<string>",
  "gateway_url": "<string>",
  "status": "<string>",
  "verified": true,
  "health_check_passed": true,
  "message": "<string>"
}
{}

Authorizations

x-wallet-address
string
header
required

Wallet address used for signed management calls.

x-wallet-signature
string
header
required

Signature over the canonical Apiosk auth message.

x-wallet-timestamp
string
header
required

Unix timestamp used in the signed auth message.

x-wallet-nonce
string
header
required

Replay-protected nonce used in the signed auth message.

Body

application/json
name
string
required
slug
string
required
endpoint_url
string<uri>
required
price_usd
number
required
Required range: 0.0001 <= x <= 10
description
string
required
owner_wallet
string
required
category
string
default:data
listing_metadata
object

Response

Register result.

success
boolean
api_id
string
slug
string
gateway_url
string
status
string
verified
boolean
health_check_passed
boolean
message
string