🖥️REST API

Magami API conventions.

The Magami API is purposed for helping developers to make use of Magami interface.

Servers

Here are the list of available API servers:

URL
Description

https://app.magami.id/api/v1

Magami API v1

Accessing the API

Currently, the API only purposed for developing participant/end-user microsite.

The microsite endpoint is available at /campaigns/{campaignSlug} and requires payload to be submitted using the HTTP GET or POST method and the application/json content type.

You can get the slug needed for the campaignSlug attribute by visiting Campaigns page inside your admin dashboard and copy one of your active campaign's slug.

Authenticating with the API

You need to add a Bearer token header whose value is a valid API key for your Magami tenant access to authenticate a request to the API. You can get the API key by visiting Integrations page inside your admin dashboard.

Usage with Magami Client SDK

The API key and the campaign slug mentioned before can also be used with Magami Client SDK. You can read more about the SDK here.

Last updated