Ryvn API Reference
The Ryvn API allows you to programmatically manage your organizations, environments, services, and deployments. All API endpoints use REST principles and return JSON responses.Base URL
Authentication
The Ryvn API uses OAuth 2.0 client credentials flow for authentication. All API requests require a Bearer token in the Authorization header:Service User Setup
To access the API, you need to create a service user in your organization settings. Navigate to Settings > Service Users and click “Create” to generate your credentials.
- Client ID: Your unique client identifier
- Client Secret: Your secret key for authentication
OAuth Token Exchange
Once you have your service user credentials, you must exchange them for an access token using the OAuth 2.0 client credentials flow. Authentication Endpoint:https://auth.ryvn.app/oauth/v2/token
cURL Example
Response
Required Scopes
The following scopes are required for API access:openid: OpenID Connect authenticationemail: Access to email informationprofile: Access to profile informationoffline_access: Refresh token capabilityurn:zitadel:iam:org:project:id:298766811497774120:aud: Project-specific audience scope
Code Examples
- Go
- Python
- JavaScript
Using the Access Token
Once you have an access token, include it in the Authorization header for all API requests:Token Expiration
Access tokens expire after the time specified in theexpires_in field (typically 12 hours). You will need to request a new token when the current one expires. Consider implementing token caching and automatic refresh in your applications to handle this gracefully.