api_key retrieval through API using basic authentication