> ## Documentation Index
> Fetch the complete documentation index at: https://docs.schoolmaker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API Quickstart

> The SchoolMaker REST API lets you manage your members and track your school's activity. 

## Authentication

> [!NOTE]
>
> Only schools on the **Pro** and **Business** plans will get access to the SchoolMaker API. You can upgrade your plan from your school's billing settings or contact our support team if you want to get API access.

> [!WARNING]
>
> Your SchoolMaker API key should never be used client side or exposed to your end users.

Start here if you want to use the SchoolMaker API to manage your members or track your school activity.

> [accordion] Authentication Steps
>
> To get started, you’ll need an API key. Go to `Settings` -> `Integration & API` in your SchoolMaker settings and scroll down to the API Section.
>
> ![](https://mintcdn.com/schoolmaker/_ZoY-Fb2AJv2rB35/get_api_key.png?fit=max\&auto=format\&n=_ZoY-Fb2AJv2rB35\&q=85\&s=4a3055b2dd4f4e5c17f58f0e03b44cb8)
>
> You will be able to copy your API key by clicking on the clipboard button.
>
> > [!NOTE]
> >
> > When making an API call, you will need to add an Authorization header and set the API key as a Bearer token.
>
> Here’s an example Curl request (replace `YOUR_API_KEY` with your own API key):
>
> ```bash theme={null}
> curl --request GET \
>   --url https://schoolmaker.co/api/v1/products \
>   --header 'Authorization: Bearer YOUR_API_KEY'
> ```

## Rate Limiting

> [!WARNING]
>
> Exceeding rate limits may temporarily block your API access. If you hit the limit, you'll get a 429 Too Many Requests response. Handle limits carefully.

The SchoolMaker API uses rate limits to manage request volumes and ensure fair usage.

> [accordion] Rate Limiting Details
>
> **Rate Limit Headers**:
>
> Each API response includes headers to help you track your usage:
>
> * X-RateLimit-Limit: Maximum requests allowed per period.
> * X-RateLimit-Remaining: Requests left in the current period.
> * X-RateLimit-Reset: Time when the limit resets (epoch time).
>
> **Rate Limiting Rules**:
>
> General API Requests: 5 requests per second per IP.

## Base URL

```text theme={null}
https://schoolmaker.co/api/v1
```

## Response Format

All responses are in JSON format. Successful responses will contain the requested data, while error responses will have this structure:

```json theme={null}
{
  "error": "Error message or array of error messages"
}
```

## HTTP Status Codes

* 200: Success
* 201: Created
* 202: Background operation accepted
* 204: No Content
* 400: Bad Request
* 401: Unauthorized
* 403: Forbidden
* 404: Not Found
* 422: Unprocessable Entity
* 500: Internal Server Error

## Debugging

Sometimes things go wrong. Here are some tips to help you debug your API requests.

> [accordion] Debugging Steps
>
> If you are having trouble with the API, we recommend using a tool like [Postman](https://www.postman.com/) to test your requests.
>
> 1. Dealing with “Not Authenticated” Codes:
>    * Make sure you are using an API key from the SchoolMaker "Integrations & API" settings page and that you are including it in your requests.
>    * Your API key should be included in the “Authorization” header of your request, following the format “Authorization: Bearer YOUR\_API\_KEY”.
> 2. Authorization Header:
>    * Ensure that you are correctly including the “Authorization” header in your requests. The value of this header should follow the format “Bearer YOUR\_API\_KEY”.
> 3. Handling 400-level Responses:
>    * 400-level responses typically indicate that there was a problem with the request. The response body will contain more information about what went wrong, so be sure to check it for details.
>    * Check on your request type (GET, POST, PUT, DELETE) and ensure that you are using the correct one for the endpoint you are trying to access.
>
> If you have followed these steps and are still experiencing issues, don’t hesitate to [reach out to the SchoolMaker team](mailto:support@schoolmaker.co) for further assistance.

## Where to find IDs?

> [accordion] How to find member, offer, or program IDs
>
> **✨ New**: It is now possible to easily copy IDs from your school UI in one click. You will usually find this ID when editing or in the settings of the element for which you need an ID.
>
> ![](https://mintcdn.com/schoolmaker/_ZoY-Fb2AJv2rB35/images/id_copy.png?fit=max\&auto=format\&n=_ZoY-Fb2AJv2rB35\&q=85\&s=86f61c880b43e3e978477d5996fc0503)
>
> To find a **member ID**, go to the member's profile in your admin space, and copy the ID from the current URL:
>
> ![](https://mintcdn.com/schoolmaker/_ZoY-Fb2AJv2rB35/member_id.png?fit=max\&auto=format\&n=_ZoY-Fb2AJv2rB35\&q=85\&s=791a4e6a088adeeb79b3bd43ea12ea75)
>
> To find an **offer ID**, go to the offer in your admin space, and copy the ID from the current URL:
>
> ![](https://mintcdn.com/schoolmaker/_ZoY-Fb2AJv2rB35/offer_id.png?fit=max\&auto=format\&n=_ZoY-Fb2AJv2rB35\&q=85\&s=9ca2f44c94674f0b26632f42cdc87ad9)
>
> To find a **program ID**, go to the program in your admin space, and copy the ID from the current URL:
>
> ![](https://mintcdn.com/schoolmaker/_ZoY-Fb2AJv2rB35/program_id.png?fit=max\&auto=format\&n=_ZoY-Fb2AJv2rB35\&q=85\&s=6df6f49bf45c521dfec2a9b316af52e4)

## Members

The SchoolMaker API allows you to get information about your members:

> [card] [Get member details](https://docs.schoolmaker.com/api-reference/endpoints/members/get.md)
>
> Get details from a member like their first name, last name, email, or creation date

> [card] [List members](https://docs.schoolmaker.com/api-reference/endpoints/members/get.md)
>
> Get a list of your school's members. Note that this list has pagination

> [card] [Get member offer accesses](https://docs.schoolmaker.com/api-reference/endpoints/members/accesses.md)
>
> Get a detailed list of which offers a specific member has access to

> [card] [Set Member Suspend Status](https://docs.schoolmaker.com/api-reference/endpoints/members/set_suspend.md)
>
> Change a member's suspension status with the API

> [card] [Set Member Ban Status](https://docs.schoolmaker.com/api-reference/endpoints/members/set_ban.md)
>
> Change a member's ban status with the API

> [card] [Delete a member](https://docs.schoolmaker.com/api-reference/endpoints/members/delete_member.md)
>
> Delete a member from your school with the API

## Admins & Moderators

The SchoolMaker API allows you to get information about admins & moderators in your school:

> [card] [List admins & moderators](https://docs.schoolmaker.com/api-reference/endpoints/admins/ge)
>
> Get a list of your school's admins and moderators, with details about each

> [card] [Get admin or moderator details](https://docs.schoolmaker.com/api-reference/endpoints/admins/get.md)
>
> Get details from a specific admin or moderator from your school

## Offers

Configure and list your school's offers:

> [card] [List all offers](https://docs.schoolmaker.com/api-reference/endpoints/offers/list.md)
>
> List all of your school's offers and get their names, descriptions & prices

> [card] [Get offer details](https://docs.schoolmaker.com/api-reference/endpoints/offers/get.md)
>
> Get details from a specific offer like its name, description, prices or creation date

> [card] [Set offer details](https://docs.schoolmaker.com/api-reference/endpoints/offers/update.md)
>
> Updates offer’s name, description, and publish status

> [card] [Set a drip boost](https://docs.schoolmaker.com/api-reference/endpoints/offers/set_drip_boost.md)
>
> Updates the drip boost value for a specific member in a specific offer

> [card] [Set offer access for a member](https://docs.schoolmaker.com/api-reference/endpoints/offers/accesses/create.md)
>
> Change member access status for a specific offer in your school or add a new member

## Programs

List school programs and get more information about specific programs and member progressions:

> [card] [List programs](https://docs.schoolmaker.com/api-reference/endpoints/products/list.md)
>
> List all of your school's published programs with their IDs, names & descriptions

> [card] [Get program details](https://docs.schoolmaker.com/api-reference/endpoints/products/get.md)
>
> Get details from a specific program and check specific member's progression for a program

## Coachings

Create coaching appointments and list coaching types:

> [card] [Create a coaching appointment](https://docs.schoolmaker.com/api-reference/endpoints/coachings/appointments/create.md)
>
> Create a coaching appointment, for example after a booking is created in Calendly

> [card] [List coaching types](https://docs.schoolmaker.com/api-reference/endpoints/coachings/types/list.md)
>
> Get a list of all coaching types you have created in your school

## Conversations

Create conversations to communicate with your members directly from your school.

> [card] [Create a Conversation Group](https://docs.schoolmaker.com/api-reference/endpoints/conversations/groups/create.md)
>
> Create a conversation with two or more participants with a custom message

> [card] [Send a Conversation Message](https://docs.schoolmaker.com/api-reference/endpoints/conversations/groups/send_message.md)
>
> Sends a message from an admin or moderator account

## Gamification

Retrieves leaderboard ranking and filters by time range.

> [card] [Get Leaderboard Ranking](https://docs.schoolmaker.com/api-reference/endpoints/gamifications/leaderboards/list.md)
>
> Get the top 10 members in the community gamification leaderboard ranking with filters by time range

## Webhooks (Triggers)

Webhooks will allow you to detect when a specified event occurs. Supported event types include:

* `element_completed` → When a step is completed
* `element_pending` → When a member submits an answer that needs to be corrected.
* `member_joining_offer` → When a member is added to an offer
  * **extra\_parameters**:
    * `offerFilter` → An offer ID or multiple offer IDs separated by commas. This event will only trigger if the member is added to an offer that matches the filter
* `new_payment` → When a member initiates a new payment (whether it is on a one-time offer price, a multiple installment price, or a subscription)
* `member_inactivity` → Will trigger at the same time as the member inactivity notification from SchoolMaker
* `gamification_level_passed` → Which will trigger when a level is passed in the community gamification feature
  * **extra\_parameters**:
    * `activeLevels` → A comma-separated list of level numbers. This event will only trigger if the member has passed a level that is in the list
* `conversation_message_received` → When a User receives a new message in a conversation group
  * **extra\_parameters**:
    * `user_ids` → A list of User IDs. The event will only trigger when one of these Users receives the message. Leave empty to include all Users
    * `author_types` → Use `members` or `users` to filter messages by author type. Leave empty to include messages from both Members and Users

> [card] [List webhooks](https://docs.schoolmaker.com/api-reference/endpoints/webhooks/list.md)

> [card] [Create a webhook](https://docs.schoolmaker.com/api-reference/endpoints/webhooks/create.md)

> [card] [Delete a Webhook](https://docs.schoolmaker.com/api-reference/endpoints/webhooks/delete.md)

To see the payload for each event, please refer to the [Webhooks Payload](https://docs.schoolmaker.com/api-reference/endpoints/webhooks/payload.md) page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.