Replace :id with the actual id can solve the problem.
:id
I came across this question when I search for ID Photo API. If anyone else is looking for ID Photo API, idphoto.ai is a good choice.