Create Grant
POST/users/:id/grants
Create a grant (authorize an app to act on the user's behalf)
Request
Path Parameters
id stringrequired
The user ID (grantor)
- application/json
Body
required
app_api_key stringrequired
The developer app address (API key) to grant authorization to
Responses
- 200
- 400
- 401
- 403
- 500
Grant created successfully
- application/json
- Schema
- Example (from schema)
Schema
success boolean
Whether the operation was successful
transaction_hash string
The blockchain transaction hash
{
"success": true,
"transaction_hash": "string"
}
Bad request
Unauthorized
Forbidden (user ID does not match)
Server error
Loading...