Admin API

A comprehensive RESTful API for managing your Admin workspace, users, projects, and analytics. All requests are made over HTTPS and return JSON responses.

Base URL
https://api.admin.com/v2/

Authentication

Authenticate your API requests using Bearer tokens. Include your API key in the Authorization header:

HTTP Header
Authorization: Bearer your_api_key_here

Generate your API key from the Settings > API Keys section of your Admin dashboard. Keep your keys secure and never expose them in client-side code.

Users API

Manage team members, roles, and permissions.

GET /users List all users

Returns a paginated list of users in your workspace.

ParameterTypeRequiredDescription
pageintegerPage number (default: 1)
limitintegerItems per page (default: 20, max: 100)
rolestringFilter by role: admin, member, viewer
Response
{ "data": [ { "id": "usr_8x72k9", "email": "sarah@example.com", "role": "admin", "created_at": "2024-01-15T08:30:00Z", "status": "active" } ], "meta": { "page": 1, "total": 42, "limit": 20 } }
POST /users Create a user

Invite a new member to your workspace.

ParameterTypeRequiredDescription
emailstringRequiredUser email address
rolestringRequiredAssigned role
namestringFull name
Request Body
{ "email": "mike@example.com", "role": "member", "name": "Mike Chen" }

Projects API

Full lifecycle management for your projects.

GET /projects/{id} Get project details

Retrieve comprehensive details for a specific project.

ParameterTypeRequiredDescription
idstringRequiredProject identifier
Response
{ "id": "prj_99a2b1", "name": "Q3 Marketing Campaign", "status": "active", "owner_id": "usr_8x72k9", "created_at": "2024-03-10T14:22:00Z", "settings": { "privacy": "team", "notifications": true } }
DELETE /projects/{id} Delete a project

Permanently removes a project. This action cannot be undone.

Response
{ "success": true, "message": "Project deleted successfully" }

Interactive Console

Test endpoints directly from your browser. Your API key is stored securely in local storage.

Waiting for request...

Error Handling

Admin uses standard HTTP status codes. Error responses include a machine-readable code and human-readable message.

CodeStatusDescription
400Bad RequestMalformed request or missing parameters
401UnauthorizedInvalid or missing API key
403ForbiddenInsufficient permissions
404Not FoundResource does not exist
429Too Many RequestsRate limit exceeded
500Internal ErrorUnexpected server error