Skip to content

Conversation

brunomiguelpinto
Copy link
Contributor

@brunomiguelpinto brunomiguelpinto commented Jun 20, 2025

Context

This pr adds the create Organization endpoint for admin

Description

It adds a lightweight admin endpoint to create organizations via API, which is useful for self-hosted users and on-duty ops. POST /admin/organizations takes name and email, spins up the org with an admin invite, and returns both in the response.

Authentication in Admin::BaseController now accepts either the existing Google ID token (Authorization: Bearer …) or a static admin key passed as X-Admin-API-Key, read from ADMIN_API_KEY

@brunomiguelpinto brunomiguelpinto changed the title feat: address pr comments feat: Admin test endpoint Jun 20, 2025
Copy link
Contributor

@jdenquin jdenquin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@brunomiguelpinto brunomiguelpinto changed the title feat: Admin test endpoint feat: Admin add organization Jun 20, 2025
@brunomiguelpinto brunomiguelpinto merged commit dd2d27a into main Jun 20, 2025
14 checks passed
@brunomiguelpinto brunomiguelpinto deleted the feat-admin-create-org branch June 20, 2025 17:40
diegocharles pushed a commit that referenced this pull request Jul 11, 2025
## Context

This pr adds the create Organization endpoint for admin 

## Description
It adds a lightweight admin endpoint to create organizations via API,
which is useful for self-hosted users and on-duty ops. POST
/admin/organizations takes name and email, spins up the org with an
admin invite, and returns both in the response.

Authentication in Admin::BaseController now accepts either the existing
Google ID token (Authorization: Bearer …) or a static admin key passed
as X-Admin-API-Key, read from ADMIN_API_KEY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants