Hi, I have a self-hosted Appwrite instance and I can’t quite figure out how to create a server-side API that lets me automate the creation of projects. The only API key I’ve seen is the one that allows access to specific projects, but I need a more general one. Maybe it’s a configuration variable to set in the .env file. Thanks for the help.
Hello, any help?
you can setup a console session
const session = await axios.post(
endpoint + accountPath,
{
email: <email>,
password: <password>,
},
{
headers: {
'content-type': 'application/json',
'X-Appwrite-Project': 'console',
},
}
);
const sessionCookie = session.headers['set-cookie'][0];
// now make any call using:
// headers: {
// 'content-type': 'application/json',
// 'X-Appwrite-Project': 'console',
// Cookie: sessionCookie,
// },
Recommended threads
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...