Skip to main content

Security

RestAPI.com provides comprehensive security features to protect your data and control access at multiple levels.

Overview

Security in RestAPI.com is built on three core concepts:

ConceptDescription
RolesNamed groups that users belong to
Access RulesDefine which roles can perform which operations
Security PoliciesControl access based on data relationships

Built-in Roles

Every API includes these system roles:

RoleDescription
_EVERYONEPublic access — anyone can access, no authentication required
_AUTHENTICATED_USERAny authenticated user can access
_CREATOROnly the creator of a record can access it

How Access Control Works

Access is evaluated at multiple levels:

Request → Authentication → Role Check → Security Policy → Data
  1. Authentication — Is the user authenticated? (required for most operations)
  2. Role Check — Does the user have a role that permits this operation?
  3. Security Policy — Does the user have access through data relationships?

Sections