Add support for api token