How to use SugarAPI in same environment?

Hi,

Suppose my sugar application is in www.xyz.com When I try to use Sugar Search API of www.xyz.com in the code of www.xyz.com I can not create access_key. I'll appreciate your suggestions.