Before calling any API endpoint, create and configure an application in your Mokapen Developer account.
The Mokapen API is a REST API. All requests must include a valid Authorization: Bearer <access_token> header unless noted otherwise.
Base URL: https://mokapen.com/api
API version prefix: v1 (example: /api/v1/{org_id}/contacts).
Sign in to Mokapen, open your organization, and go to Account → Developer → My Applications. From there you can view existing apps or create a new one.
Mokapen supports two application types:
client_credentials grant. Tokens are generated from the Developer dashboard without an end-user OAuth redirect.| Field | Public app | Private app |
|---|---|---|
| Company name | Required | Required |
| Company website URL | Required | Required |
| Application name | Required | Required |
| Company logo | Required | Required |
| Redirect URL | Required | Not required |
| Dedicated user | Not required | Required |
| Stakeholders | Optional | Optional |
After filling in the application details, click Continue to choose the API scopes (permissions) your app needs, then save the application.
Only scopes you enable during setup can be requested at authorization time (public apps) or included in tokens (private apps).
Private applications are activated immediately after creation. Organization owners and admins can disable or re-enable them at any time from the application page.
Public applications start as Pending review. Mokapen reviews the requested scopes before activating the app. Once status is Active, open the Credentials tab to retrieve your client_id and client_secret and start the OAuth authorization code flow.
If you change scopes on an active public application, it returns to pending review and existing tokens are revoked.
Store credentials securely. Never expose the client secret in client-side code or public repositories.
¿Necesitas ayuda?