create api works