/api/external/v1/organizationScope: read:portalGet organization profile
Returns the organization identity and plan details for the OAuth client’s organization (id, name, slug, active tier, and seat count).
Developer Docs
SaaS Starter External API
Public integration documentation for customers who want to connect the platform to other services. Authenticate with OAuth client credentials, call organization-scoped endpoints, and import the OpenAPI definition into your API tooling.
Base URL
https://production.demo.api.meccaproduction.com
Auth
OAuth 2.0 Client Credentials
API Version
External API v1
Endpoints
1 public route(s)
Use OAuth client credentials to issue a short-lived bearer token for an organization.
read:portal.POST /api/oauth/token with a JSON body containing grant_type, client_id, and client_secret.Authorization header as Bearer <token>.grant_typeRequired. Must be client_credentials.
client_idRequired. Issued when an OAuth client is created for the organization.
client_secretRequired. One-time visible secret returned when the client is created.
scopeOptional. Space-delimited scope string. Defaults to the client's allowed scopes when omitted.
Successful responses return token_type, expires_in, access_token, and scope.
Tokens expire after 1 hour (3600 seconds).
401 with { error: "invalid_client" }.400 with { error: "invalid_scope" }.Call an organization-scoped endpoint with the bearer token returned by the OAuth token endpoint.
/api/external/v1/organizationScope: read:portalReturns the organization profile attached to the OAuth client token, including name, slug, tier, and seat count. This endpoint does not require request parameters.
AuthorizationBearer access token from the OAuth token endpoint.
200Organization payload returned.
401Missing or invalid bearer token.
403Token is missing the required scope.
404Organization not found.
Current public endpoints exposed to customer integrations.
/api/external/v1/organizationScope: read:portalGet organization profile
Returns the organization identity and plan details for the OAuth client’s organization (id, name, slug, active tier, and seat count).
Import the API definition into Postman, Insomnia, or code generation tooling.
OpenAPI
3.1.0
Spec Version
1.0.0
Path Count
2
Security Scheme
OAuth2 Client Credentials