adding id to api