Create / update account permissions to the token

POST {{base_url_servicing}}/tokens/{{token_id}}/permissions

https://docs.tokeny.com/reference/addtokenaccountaccess

BODY PARAMS

  • email: string required
    • Email address receiving token permissions
  • permission: stringrequired
    • Permission type of the token access
    • AGENT or OWNER
  • notification boolean required
    • Send notification email to permission recipient
    • true false
  • agentWallet string required
    • Agent wallet address

ADMINISTRATION:

This endpoint creates an entry in “token accosunt access”.

How to add an agent with the builtin Tokeny wallet?

Via API using https://servicing-api-testing.tokeny.com/api/tokens/{{token_id}}/permissions

  1. In the Body, for agentWallet : “X”, where X is a new compatible wallet
  2. That should create a “token account acces” in FE
  3. Then go in “token account access” and delete that wallet

Request Body

{"email"=>"publiclyavailabledummyagentone@yopmail.com", "permission"=>"AGENT", "notification"=>true, "agentWallet"=>"0x28e1e589B5d4753328cF049dB0dEDb0c85b89785"}

RESPONSES

status: Created