Every request to the Video API or the Scheduling API must carry a valid API token, and which token you use determines what you're allowed to do.

Bearer authentication

The API is protected against unauthorized access. Include your token in the Authorization header of every request, using the Bearer scheme:

Authorization: Bearer eyJhbGciOiJIUzI1****

Requests without a valid token receive 401 Unauthorized. The Scheduling API answers in its JSON error format with the code unauthorized.

Token types

There are two types of API tokens with different scopes. Independently of the type, every token also has an access level.

Instance API Token (full access)

Instance tokens are created by administrators and provide full access to the whole installation. In the Video API they can create, read, update, and delete every room in the tenant, and they are the only tokens accepted by the feedbacks endpoints. A room created with an Instance API Token belongs to no organization.

In the Scheduling API an Instance API Token acts across organizations. On installations with organizations it names the organization a request is about, with organization_id or organization_external_id:

  • Creating anything (users, availability types, appointments, ...) requires it. Without it the request returns 422 with the code organization_required.
  • On lists it works as a filter. Without it, a list covers every organization.
  • On a single record it is optional. If you send it, it must match the record's organization, otherwise the answer is 404.

Only Instance API Tokens can create and delete organizations, and only they can set the plan, seats, trial, contract, features, custom domain, theme and external_id of an organization.

How to obtain one:

  1. Log in as an admin user into the MeetOne application.
  2. Navigate to the API Tokens section via the side menu, or directly at https://acme.meetone.io/admin_ng/api_tokens.
  3. Create a token, giving it a name and an expiry date.
  4. Copy the token from the page shown right after creating it. It is shown only this once; later visits show its first characters. A lost token cannot be shown again: delete it and create a new one.

Organization API Token (scoped access)

Organization tokens are designed for organizations to integrate with their own systems. They work against the same endpoints as an Instance API Token, but every request is scoped to the organization the token belongs to.

In the Video API:

  • Create rooms: the room is owned by the token's organization.
  • Read, update, close, and delete the organization's own rooms.
  • List rooms that belong to the organization, the rooms of its appointments included.

Rooms of other organizations are not visible to the token: they answer 404 Not Found, exactly as an unknown room public_id would, not 403 Forbidden. The feedbacks endpoints are the exception. They are tenant-wide and require an Instance API Token.

In the Scheduling API the organization is implicit. You do not have to name it, and you may name your own. Naming any other organization returns 403 Forbidden with the code organization_forbidden, whether that organization exists or not. Records of other organizations return 404 Not Found, exactly as if they did not exist. An Organization API Token can read and update its own organization, except the fields only an Instance API Token may set (403, code attribute_forbidden), and it can neither create nor delete organizations. The waitlist entries of the Waitlist API are the other way round: only an Organization API Token can read them, and an Instance API Token gets 403 with the code organization_token_required.

Organization API Tokens are also rate limited: 50 requests per minute, and 100 requests per five minutes. See Rate limits for guidance on staying within them.

How to obtain one:

  1. Log in as an organization owner.
  2. Navigate to the Integrations page.
  3. In the API section, click Create API token if there is none yet.
  4. Copy the token from the page shown right after. It is shown only this once; later visits show its first characters.
  5. If you lose the token or need a new one, click Regenerate token. The old token stops working at once, and the new one is again shown only once.

Tokens created before MeetOne started showing them only once keep working, but they too show only their first characters now.

An administrator can also create additional tokens for the organization under Developer > API Tokens in the admin area. Organization tokens cannot be created through the API.

If an organization is deleted through the API, its organization tokens stop working at once and answer 401 Unauthorized. See Organizations endpoints.

Access level

Each token, of either type, is read & write or read only. A read-only token can call the GET endpoints only. Every endpoint that changes data or sends email answers 403 Forbidden; in the Scheduling API with the code read_only_token. Use a read-only token for dashboards, reporting and sync jobs that never write.

What each token can do

Capability Instance API Token Organization API Token
List rooms (GET /api/rooms) Every room in the tenant Rooms that belong to the organization, including its appointments' rooms
Create a room (POST /api/rooms) Yes, the room belongs to no organization Yes, the room is owned by the token's organization
Read, update, close, delete a room Any room in the tenant The organization's own rooms; others return 404 Not Found
Room feedbacks (/api/room_feedbacks, /api/room_feedbacks/summary) Yes No, returns 403 Forbidden, requires Instance API Token
Scheduling API: organization of a request Named with organization_id or organization_external_id; required to create Implicit; naming another organization returns 403, its records 404
Create or delete organizations (POST, DELETE /api/v1/organizations) Yes No, returns 403 Forbidden (instance_token_required)
Update an organization (PATCH /api/v1/organizations/{id}) All fields, any organization Own organization, without instance-token-only fields (attribute_forbidden)
Other Scheduling API endpoints (users, availability types, appointment resources, availabilities, free slots, appointments) In any organization In its own organization
Waitlist entries (GET /api/v1/waitlist_entries) No, returns 403 Forbidden (organization_token_required) Its own organization's entries, read only
Rate limit 300 POST per 5 min per IP address; 60 room status reads per min per token 50 req/min, 100 req/5 min per token; 300 POST per 5 min per IP address; 60 room status reads per min per token
Appointments booked through the API Not limited At most 1,000 per month

401 responses

Any request missing a token, or presenting an invalid or expired one, receives 401 Unauthorized. See Errors & pagination for the full list of status codes returned by the APIs.

403 responses

The Scheduling API tells you why a request is forbidden with a stable code:

Code Meaning
read_only_token A read-only token called an endpoint that changes data.
instance_token_required The endpoint needs an Instance API Token.
organization_token_required The endpoint needs an Organization API Token. Only the waitlist entries do.
organization_forbidden An Organization API Token named another organization.
attribute_forbidden An Organization API Token sent a field only an Instance API Token may set. The attribute names it.
feature_disabled The feature the endpoint depends on is not enabled for the organization. See Scheduling API overview.
subscription_inactive Where the installation uses trials and contracts: the organization of an Organization API Token has no running trial or contract and cannot book new appointments. The Video API likewise refuses to create new rooms; existing rooms stay usable.
monthly_limit_reached An Organization API Token has booked the maximum number of appointments for the month.

An Organization API Token asking for a room or record that belongs to another organization gets 404 Not Found, not 403 Forbidden. The API does not confirm that something exists outside the token's scope, so treat 404 on something you expected to see as a scope problem rather than a deletion. The exception are rooms past your installation's retention period: they are deleted and answer 404 as well.

Security best practices

  • Keep tokens server-side. Never embed an API token in browser JavaScript, a mobile app, or any other client the end user controls. Send requests to the API from your backend only.
  • Store tokens as secrets. Use environment variables or a secrets manager, not source control or configuration files checked into a repository. Do it right away: MeetOne cannot show you a token again once you have left the page it was shown on.
  • Set expiry dates on Instance API Tokens and re-create them periodically rather than using a single long-lived token indefinitely.
  • Regenerate Organization API Tokens from the Integrations page if you suspect a token has been exposed.
  • Prefer the narrowest token for the job. If your integration only works with one organization, use an Organization API Token rather than an Instance API Token: it can manage everything in your organization, and it cannot reach anything outside it. If a job only reads, make the token read only.

An Instance API Token can create, read, update, and delete every room, feedback and organization in your tenant, and delete an organization together with all of its data. Handle it with the same care as an administrator credential.

Questions? Contact us at support@meetone.io.