tokens api implemented