ci4-api

Implement standardized CodeIgniter 4 REST APIs with Bearer token authentication.

21|7|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-Code --skill ci4-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ci4-api
Source: https://github.com/enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-Code/tree/main/ci4-api
Command: npx skills add https://github.com/enlivenapp/Codeigniter4-App-and-API-Skills-for-Claude-Code --skill ci4-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the risk of building inconsistent, insecure, or hard-to-maintain REST APIs with CodeIgniter 4 by providing standardized, production-ready patterns for response formatting, authentication, validation, and error handling that work seamlessly across web, mobile, and third-party clients.

Core Features & Use Cases

  • Standardized API Structure: Enforces consistent JSON response envelopes, proper HTTP status codes, and URL versioning to ensure existing clients never break when updates are deployed.
  • Integrated Authentication & Authorization: Implements Bearer token auth, role-based access filters, and full token lifecycle management using CodeIgniter Shield, including login, registration, logout, and scope-based permissions.
  • Production-Grade Guardrails: Includes pre-built patterns for rate limiting, CORS configuration, secure webhook handling (Stripe, GitHub), and global JSON error handling for API routes to meet production security and reliability requirements.
  • Use Case: For example, use this Skill to build a versioned user management API with public registration/login endpoints, rate-limited authenticated user routes, and a Stripe webhook receiver that follows security best practices.

Quick Start

Ask Claude to implement a versioned CI4 REST API endpoint for user registration with token authentication, input validation, and a standardized JSON success response.

Frequently Asked Questions about ci4-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a production-ready REST API with CodeIgniter 4?

Build a production-ready CodeIgniter 4 REST API by applying standardized patterns for JSON response envelopes, URL versioning, Bearer token authentication, and global error handling to ensure consistency across web and mobile clients.

How do I implement Bearer token authentication in CodeIgniter 4?

Implement Bearer token authentication in CodeIgniter 4 using Shield auth, which provides full token lifecycle management including login, registration, logout, and scope-based role permissions for secure API routes.

What is the best way to handle rate limiting and CORS in a CI4 API?

Handle rate limiting and CORS in a CI4 API by applying pre-built production guardrail patterns that restrict request frequency and configure cross-origin access, meeting security and reliability requirements for client applications.

How do I securely verify third-party webhooks in CodeIgniter 4?

Securely verify third-party webhooks in CodeIgniter 4 by implementing signature verification patterns for incoming payloads from services like Stripe and GitHub, ensuring webhook requests are authenticated and unaltered.

Does CodeIgniter 4 support standardized JSON response envelopes for APIs?

CodeIgniter 4 supports standardized JSON response envelopes through implementation patterns that enforce consistent JSON formatting and proper HTTP status codes, preventing existing web and mobile clients from breaking during updates.