App - Dataset

When the App receives a request from a user, it can optionally send an API request to the Dataset Server Endpoint with the following data:

Request ParametersRequirementTypeDescription

uaaid

Required

string

User Account Wallet Address

identity_contract_address

Required

string

KIP Identification contract address

app_token_id

Required

string

Unique ID assigned to the App

prompt

Optional

string

Description of the prompt content

callback_url

Required

string

App endpoint for response

  • Dataset Server API Endpoint Example:

POST http://127.0.0.1:8000/dataset
  • Example request from App to Dataset Server:

curl --request POST \
  --url http://127.0.0.1:8000/dataset \
  --header 'Content-Type: application/json' \
  --data '{
    "uaaid": "0xF9F36dC75eAfc38f5e6525fadbA2939FCbC666e0",
    "identity_contract_address": "0x3cDfD20F5AA27335bE4A68d0e1B1085A65418b09",
    "app_token_id": "123456",
    "prompt": "Hello?",
    "callback_url": "http://127.0.0.1:8000/app"
}'

Last updated