You can pre-create applications and application registrations on behalf of a developer or team using the {{site.konnect_short_name}} API.
- Create a developer application by sending a
POSTrequest to the/portals/{portalId}/applicationsendpoint: {% capture create-application %}
{% konnect_api_request %} url: /v3/portals/$DEV_PORTAL_ID/applications method: POST status_code: 201 body: name: "KongAir Application" description: "A portal application provisioned for a developer by a Portal Admin." auth_strategy_id: "$AUTH_STRATEGY_ID" owner: id: "$DEVELOPER_ID" type: "developer" {% endkonnect_api_request %}
{% endcapture %} {{create-application | indent: 3}}
- Copy and export the application ID:
export APPLICATION_ID='YOUR APPLICATION ID'- Create an application registration by sending a
POSTrequest to the/portals/{portalId}/applications/{applicationId}/registrationsendpoint: {% capture create-application-registration %}
{% konnect_api_request %} url: /v3/portals/$DEV_PORTAL_ID/applications/$APPLICATION_ID/registrations method: POST status_code: 201 body: api_id: "$API_ID" status: "approved" {% endkonnect_api_request %}
{% endcapture %} {{create-application-registration | indent: 3}}
{:.warning}
DCR applications: If the application will be using a DCR provider with the given auth strategy, the request must specify
dcr_client_id.