User - App

The User Client sends an API request to the App Endpoint with the following data:

  • App API Endpoint Example:

POST http://127.0.0.1:8000/apps
  • Example Request from User to the App:

curl --request POST \
  --url http://127.0.0.1:8000/apps \
  --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/user_endpoint"
}'

Last updated