Connect php with coda

Hello, I’m trying to connect a php file with coda using the toke, doc id and table id but it tells me: doc does not exist or is inaccessible., I gave it the permissions but I don’t understand how I can connect and why it gives me this problem