Service REST API

Connect your WordPress site to your apps, CRM and partners.

Orders, members and content move where they are needed, through endpoints that check who is asking before they answer. Each one comes with documentation the other team can start using the same day.

100+ WordPress plugins and themes of our own, most with REST endpoints
Endpoint sheet Example
GET /members Anyone, cached
GET /members/me Signed-in member only
POST /orders Signed-in, rate limited
PUT /members/me The owner of the record
DELETE /members/{id} Administrators only

Delivered with an OpenAPI spec and a request collection, so the other team can start the same day.

  • Who can call what Permissions checked on every route
  • Documented OpenAPI spec and a request collection
  • Tested PHPUnit tests ship with the endpoints
  • 48 hours To a fixed price after a free call

REST API work, by what you need

The gain from a good API is that your apps, your CRM and your partners work from the same live data, with no copying and no exports. Here is what we build for each kind of caller.

  • Feed your own front end

    Read endpoints with a stable schema, cached where the response is not personal. We need to know which screens need the data.

    Your front end stays fast and does not break when WordPress changes.

  • Run a mobile app on WordPress

    Endpoints with token sign-in and permissions that match the website. We need the app screens and which users see what.

    One backend for the site and the app, with the same rules.

  • Link WordPress to your CRM or ERP

    Sends and receives orders, contacts or stock through the other system's API, with retries and a log. We need API access and which system owns each field.

    Less retyping, and a log to check when a record looks wrong.

  • Offer a public or partner API

    Versioned routes with authentication, rate limits, an OpenAPI spec and examples. We need to know who will call it and what they may change.

    Partners integrate without a support call.

  • Get cleaner access to WooCommerce or BuddyPress data

    Project-specific endpoints layered over the plugin without modifying it. We need the data the consumer actually needs.

    The consumer gets what it needs, and the plugin stays untouched.

  • Hand over something the other team can use

    An OpenAPI spec, a Postman or Bruno collection, a README per endpoint group and examples in curl and JavaScript. The code lives in your repository.

    Another developer starts work on day one, not week two.

How to choose a WordPress REST API developer

Choose the developer who can show you a route with its permission callback, its schema and its tests, because an endpoint that works is not the same as one that is safe to expose. Ask how each route is authenticated and what stops a caller reading data that is not theirs.

Ask what happens when you need to change a response shape after other teams depend on it, and how the API is documented for them. A clear answer about versioning is the best sign the developer has run an API for other people.

Why this matters

Most WordPress REST endpoints in the wild fail a basic security review.

Permission callbacks set to __return_true. No schema validation. Cache invalidation missing. Rate limits unset. Client teams pinging Slack at midnight because the API contract changed without warning. The WordPress REST API is excellent. Most implementations of it are not.

We build endpoints the way WordPress core intends them. Schema first, auth enforced, cached at the right layer, rate limited at the route, tested in CI, and documented before the frontend team starts integrating.

A request, hop by hop

Where the milliseconds actually go.

What a request against a custom WP REST endpoint looks like: auth, schema validation, DB query, serialize, response. Timings shown are examples. The bottleneck is usually where you would expect; the fix is cached lookups and prepared statements. Scroll up and back down to replay.

GET /wp-json/example/v1/members?role=premium · authenticated example Total 184ms
Auth verify application password · cached
9ms
Capability check user_can(list_members)
5ms
Schema validate rest_sanitize_request_arg
3ms
DB query · WP_User_Query 7 joins · prepared
111ms bottleneck
Serialize · prepare_response 142 rows · 4.8KB
47ms
Response · gzip 2.1KB compressed
9ms
Cold response 184ms Cached response 38ms p95 (24h) 312ms Test coverage 94%
  • OpenAPI spec generated · the frontend team sees types before integration
  • PHPUnit gates · contract changes require explicit migration notes
  • Rate-limited · per-key, per-IP, per-route · audit logged for compliance

What we build

REST endpoints the frontend team can rely on.

Schema validated, properly authenticated, cached where it matters, rate limited where it counts. PHPUnit tests in CI. OpenAPI docs auto-generated. Versioned so the contract holds.

01

Auth that survives security review

Application passwords for service accounts, JWT for headless frontends, nonce + capability checks for browser calls. Permission callbacks on every route. No public endpoint that should be authenticated.

Endpoints pass enterprise security audits.

02

Schema validation, not duck typing

Every endpoint declares its request schema and response schema. WP_REST_Request validates inputs before they hit the callback. OpenAPI spec generated from the schema for client teams.

Frontend never gets a surprise response shape.

03

Object cache aware

Endpoints use WordPress transients or object cache for expensive queries. Cache keys versioned, invalidation tied to the underlying post or option saves. Redis or Memcached when the host supports it.

API stays fast under traffic spikes.

04

Rate limited at the route

Per IP and per user rate limits, configurable per route. 429 responses with proper Retry-After headers. Optional integration with Cloudflare Rate Limiting at the edge for the routes that need it.

Abuse blocked without breaking real clients.

05

Tested with PHPUnit and Postman

PHPUnit tests with WP_UnitTestCase covering happy path, auth failures, validation errors, and edge cases. Postman or Bruno collections committed to the repo for manual testing and client teams.

Refactor without breaking the contract.

06

Documented for client teams

Auto-generated OpenAPI spec, plus a human-readable README per endpoint group. Examples in curl and JavaScript fetch. Versioning policy documented from day one.

Frontend team integrates without Slack pings.

Every route

ships with a real permission callback, nonce verification and sanitised input

Never permission_callback __return_true, which is the single most common way a WordPress REST route leaks data it should not.

How we build it

Controller-style endpoints, the way WordPress core does it.

Extending WP_REST_Controller gives you the right hook points for permissions, schema, and serialization. We follow the same pattern WordPress core uses for posts, users, and comments.

ScansController.php php
    
      
          
          <?php
        
          
          namespace Wbcom\REST;
        
          
           
        
          
          class ScansController extends \WP_REST_Controller {
        
          
              public function register_routes(): void {
        
          
                  register_rest_route( 'wbcom/v1', '/scans', [
        
          
                      [
        
          
                          'methods'  => \WP_REST_Server::CREATABLE,
        
          
                          'callback' => [ $this, 'create_item' ],
        
          
                          'permission_callback' => [ $this, 'create_item_permissions_check' ],
        
          
                          'args' => $this->get_endpoint_args_for_item_schema( \WP_REST_Server::CREATABLE ),
        
          
                      ],
        
          
                      'schema' => [ $this, 'get_public_item_schema' ],
        
          
                  ] );
        
          
              }
        
          
           
        
          
              public function create_item_permissions_check( \WP_REST_Request $request ): bool {
        
          
                  return current_user_can( 'manage_options' );
        
          
              }
        
          
           
        
          
              public function create_item( \WP_REST_Request $request ) {
        
          
                  $params = $request->get_json_params();
        
          
                  $scan_id = wp_insert_post( [
        
          
                      'post_type'   => 'wbcom_scan',
        
          
                      'post_status' => 'pending',
        
          
                      'meta_input'  => [ 'site_url' => esc_url_raw( $params['url'] ) ],
        
          
                  ] );
        
          
           
        
          
                  return rest_ensure_response( $this->prepare_item_for_response( get_post( $scan_id ), $request ) );
        
          
              }
        
          
          }
        
    
  

What it costs

API pricing follows the number of endpoints and who is allowed to call them.

A few read endpoints for your own front end and a public API with authentication and rate limits are the same sentence and very different projects. Here is what moves the number.

What moves the number

  • How many endpoints The count matters less than whether each has a stable shape you can commit to, because changing that later breaks callers.
  • Who calls it Your own front end is one thing. Third parties need authentication, versioning, rate limits and documentation you can hand over.
  • Read or write Reading is straightforward. Writing needs validation, permissions and a story for partial failure.
  • How fast it must be Caching an API is different from caching pages, and personalised responses cannot be cached the same way.
  • Whether it must not break Versioning and a deprecation path are cheap to plan and expensive to retrofit once people depend on you.

Small, well-defined work is usually better handled as an hourly block than scoped as a project, and we will say so rather than inflate it into one.

Rough idea to delivery

  1. You send the details What you want built, roughly, plus budget range and timing. The form asks for all of it
  2. Same day, Monday to Friday We read it and reply. Nothing is scheduled before we know what it is about
  3. Then the call Free discovery, booked once there is enough on the table to make it worth your hour
  4. Within 48 hours of the call A written fixed-price quote you approve before anything starts
Tell us about your project

How we work

How a REST API engagement runs.

Free
first call with the engineers
10+
monthly developer hours
48h
to a fixed-price quote

Ongoing work uses one blended team rate that covers analysis, front end, back end and QA, with every hour logged.

Tell us about your project
  1. Define every endpoint firstOne week. Endpoint inventory, request and response schemas, auth model, rate limit map, cache strategy. Output is an OpenAPI draft and fixed price quote. Frontend team can start mocking on day three.
  2. Endpoints built with tests alongsideTwo to four weeks. Endpoints written one at a time, PHPUnit tests alongside. Postman or Bruno collection updated as we go. Code review per route. Every route ships green.
  3. OpenAPI docs and examples handed overOne week. OpenAPI spec finalized, README per endpoint group, examples in curl and JavaScript. Optional client SDK generated. Client teams onboard without Slack pings.

Quick enquiry

Need WordPress to talk to something else?

Tell us what needs the data and whether it is your own app or somebody else's. That decides how much of this is engineering versus product.

Prefer the full form? Tell us about your project

No drip sequences, no marketing list. We reply and that is it.

Common questions

Questions about WordPress APIs and integrations

  1. Why custom REST endpoints instead of GraphQL?

    REST is built into WordPress core. No extra plugin to maintain, no resolver layer to debug, no schema sync issues. For most use cases REST is faster to ship and easier to cache. We build GraphQL when the data shape needs it, not by default.

  2. How do you authenticate REST calls?

    Three patterns. Browser calls use nonce + capability checks. Server-to-server uses application passwords. Headless frontends use JWT. Each has the right permission callback and rate limit. We pick the pattern in the discovery call.

  3. How do you handle versioning?

    Namespace per major version. wbcom/v1, wbcom/v2. Old versions kept live for 12 months minimum after a v2 ships, with deprecation headers. No breaking changes inside a version, ever.

  4. Can you wrap an existing third-party plugin's data in custom endpoints?

    Yes. Common pattern: WooCommerce or BuddyPress data exposed through cleaner, faster, project-specific endpoints. We do not modify the upstream plugin, we layer on top with proper caching and schema validation.

  5. Do you write the client too?

    When asked. We have shipped TypeScript client SDKs and React hooks generated from the OpenAPI spec. Frontend teams consume the API the same way they would consume Stripe or Twilio.

  6. How much does WordPress REST API development cost?

    Every project gets a fixed price within 48 hours of a free call. A few read endpoints for your own front end are a contained job; a public, versioned API with authentication, rate limits and client SDKs is a larger one.

  7. Can WordPress be the backend for a mobile app?

    Yes. Custom REST endpoints give the app exactly the data it needs, with token sign-in and permissions that match the website. Members, content, orders and community activity stay in one place, so the app and the site never disagree.

  8. What do we get at the end of a WordPress REST API project?

    You get the endpoints, PHPUnit tests, a Postman or Bruno collection, an OpenAPI spec, a README for each endpoint group and examples in curl and JavaScript. A client SDK is optional. The code lives in your repository.

  9. How do I choose a WordPress REST API developer?

    Ask to see a route with its permission callback, schema and tests, and how the API is versioned and documented for other teams. A good developer can explain who may call each route and what stops them reading anything else. Our team can walk through this on a free call.

  10. How do you connect WordPress to our CRM or ERP?

    Through each system's API: WordPress sends and receives orders, contacts or stock as they change, with retries and a log when the other system is down. We decide which system owns each field first, so records do not overwrite each other.

What clients say

★★★★★
“Wbcom Designs was methodical, reliable, innovative, and knowledgeable. They communicated with us every step of the way and delivered on time and on budget.”
Upwork review, Forum setup, 2023
★★★★★
“A partner, very trustworthy, very reliable. Gets the job done.”
Upwork review, Site development, 2 years

Rated 4.8 out of 5 across 360+ Upwork jobs since 2010, on our company and founder profiles.See them on Upwork

Our plugin customers rate us 4.8 on Trustpilot (96 reviews).Read them

Need REST endpoints that hold up?

Tell us what needs to connect to your site.

Discovery call is free. Fixed-price quote within 48 hours.