Namespace API keys in config, add threads/details endpoint