Title: Copypress Rest API
Author: copypressdev
Published: <strong>نیسان 8, 2025</strong>
Last modified: ئاب 24, 2026

---

گەڕان لە پێوەکراوەکان

![](https://ps.w.org/copypress-rest-api/assets/banner-772x250.png?rev=3269194)

![](https://ps.w.org/copypress-rest-api/assets/icon-256x256.png?rev=3269194)

# Copypress Rest API

 لەلایەن [copypressdev](https://profiles.wordpress.org/copypressdev/)

[داگرتن](https://downloads.wordpress.org/plugin/copypress-rest-api.1.3.1.zip)

 * [وردەکارییەکان](https://ku.wordpress.org/plugins/copypress-rest-api/#description)
 * [پێداچوونەوەکان](https://ku.wordpress.org/plugins/copypress-rest-api/#reviews)
 *  [دامەزراندن](https://ku.wordpress.org/plugins/copypress-rest-api/#installation)
 * [گەشەپێدان](https://ku.wordpress.org/plugins/copypress-rest-api/#developers)

 [پشتیوانی](https://wordpress.org/support/plugin/copypress-rest-api/)

## وەسف

The **COPYPRESS REST API** plugin extends the WordPress REST API with custom endpoints
for managing posts, categories, tags, post types, and taxonomies.

### Features

 * Create, update, and delete posts via REST API.
 * Fetch categories, tags, post types, and taxonomies.
 * Supports CORS (Cross-Origin Resource Sharing) for making API requests from different
   origins.
 * Allows attaching images to posts via URLs.

### Endpoints

 1.  `/copypress-api/v1/login` – Login with username and password to get a JWT token.
 2.   * Request Body:
      * `username` (string): WordPress username
      * `password` (string): WordPress password
 3.  `POST /copypress-api/v1/posts` – Create a new post.
 4.   * Request Body:
         - `title` (string): The title of the post.
         - `content` (string): The content of the post.
         - `excerpt` (string, optional): The excerpt of the post.
         - `category_main` (string): The category taxonomy name.
         - `category` (string): The category name or slug.
         - `tags_main` (string, optional): The tags taxonomy name. Required only when
           tags are provided.
         - `tags` (string, optional): Comma-separated list of tag names or slugs.
         - `image` (string, optional): URL of an image to be set as the post’s featured
           image.
         - `post_type` (string, optional): The post type (default: `post`).
         - `author_id` (int, optional): The ID of the post author (default: current
           user).
         - `post_status` (string): Post publish status.
      * Note: Tags are optional. If no tags are provided, `tags_main` can be empty 
        and tag processing will be skipped.
      * Response: Success message, HTTP status code, and created post object.
 5.  `PUT /copypress-api/v1/posts/{id}` – Update an existing post.
 6.   * Request Body: Same as `POST` endpoint.
      * Response: Success message, HTTP status code, and updated post object.
 7.  `DELETE /copypress-api/v1/posts/{id}` – Delete a post.
 8.   * Response: Success message and HTTP status code.
 9.  `GET /copypress-api/v1/categories` – Get all categories.
 10.  * Response: Category ID, name, and slug.
 11. `GET /copypress-api/v1/tags` – Get all tags.
 12.  * Response: Tag ID, name, and slug.
 13. `GET /copypress-api/v1/post-types` – Get all public post types.
 14.  * Response: Post type name and label.
 15. `GET /copypress-api/v1/get-taxonomies/{post_type}` – Get all taxonomies (categories
     and tags) associated with a specific post type.
 16.  * Response: List of categories (hierarchical taxonomies) and tags (non-hierarchical
        taxonomies).

### CORS Support

This plugin allows cross-origin requests for all the REST API endpoints, enabling
requests from different domains.

### Allowed Methods:

 * `GET`, `POST`, `PUT`, `DELETE`

### Allowed Headers:

 * `Content-Type`, `X-Custom-Header`, `x-csrf-token`, `Authorization`

### Allowed Origin:

 * `*` (Any domain)

### Usage

Once the plugin is activated, the custom API routes are available for interaction
with posts, categories, tags, post types, and taxonomies. You can make requests 
to the respective endpoints from any external application or client that can interact
with REST APIs. To create or update posts, a valid JWT token must be provided in
the Authorization header as:
 Authorization: Bearer YOUR_TOKEN_HERE

### License

This plugin is licensed under the GPLv2 license.

## دامەزراندن

 1. Download the plugin files.
 2. Upload the plugin folder to the `/wp-content/plugins/` directory.
 3. Activate the plugin from the WordPress admin panel.

## پێداچوونەوەکان

هیچ پێداچوونەوەیەک نەنووسراوە بۆ ئەم پێوەکراوە.

## بەشداربووان و گەشەپێدەران

“Copypress Rest API” نەرمەواڵەیەکی سەرچاوە کراوەیە. ئەم کەسانەی خوارەوە بەشدارییان
تێدا کردووە.

بەشداربووان

 *   [ copypressdev ](https://profiles.wordpress.org/copypressdev/)

[“Copypress Rest API” وەربگێڕە بۆ زمانەکەی خۆت.](https://translate.wordpress.org/projects/wp-plugins/copypress-rest-api)

### دەتەوێت بەشداربیت لە گەشەپێدان؟

[گەڕان لە کۆدەکەدا بکە](https://plugins.trac.wordpress.org/browser/copypress-rest-api/)،
سەیری [تەمارگەی (SVN)](https://plugins.svn.wordpress.org/copypress-rest-api/) بکە،
یان بەشداربە لە [ڕووداوتۆماری گەشەپێدان](https://plugins.trac.wordpress.org/log/copypress-rest-api/)
لە ڕێگەی [(RSS)](https://plugins.trac.wordpress.org/log/copypress-rest-api/?limit=100&mode=stop_on_copy&format=rss).

## ڕووداوتۆمارگەریی گۆڕین

#### 1.3.1

 * Made tag taxonomy optional when no tags are provided.
 * Skip tag validation and assignment when no tags are selected.
 * Preserved existing category and tag assignment behaviour.

#### 1.3

 * Secure Image Upload Validation
 * File Extension, MIME Type & Image Verification
 * JWT Authentication & Authorization
 * JWT Signature & Expiration Validation
 * Role-Based Access Control
 * API Rate Limiting
 * Post Type, Author, Taxonomy & Post Status Validation
 * Content Sanitization

#### 1.2

 * Role-based permissions for Administrator, Editor, and Contributor to publish 
   content have been added.

#### 1.1

 * added permission check.
 * added login with token solution.
 * removed api-key based functionality.

#### 1.0

 * Initial release with functionality for post creation, update, deletion, and fetching
   categories, tags, post types, and taxonomies.

## مێتا

 *  وەشان **1.3.1**
 *  دوایین بەڕۆژکردنەوە **1 مانگ لەمەوبەر**
 *  دامەزراندنی چالاک **90+**
 *  وەشانی وۆردپرێس ** 6.4 یان بەرزتر **
 *  تاقیکراوەتەوە تا **7.0.6**
 *  وەشانی PHP ** 7.4 یان بەرزتر **
 *  زمان
 * [English (US)](https://wordpress.org/plugins/copypress-rest-api/)
 * تاگەکان
 * [categories](https://ku.wordpress.org/plugins/tags/categories/)[image upload](https://ku.wordpress.org/plugins/tags/image-upload/)
   [posts](https://ku.wordpress.org/plugins/tags/posts/)[rest-api](https://ku.wordpress.org/plugins/tags/rest-api/)
   [tags](https://ku.wordpress.org/plugins/tags/tags/)
 *  [بینینی پێشکەوتوو](https://ku.wordpress.org/plugins/copypress-rest-api/advanced/)

## هەڵسەنگاندنەکان

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/copypress-rest-api/reviews/#new-post)

[بینینی هەموو پێداچوونەوەکان](https://wordpress.org/support/plugin/copypress-rest-api/reviews/)

## بەشداربووان

 *   [ copypressdev ](https://profiles.wordpress.org/copypressdev/)

## پشتیوانی

هیچت هەیە بۆ وتن؟ پێویستت بە یارمەتییە؟

 [بینینی مەکۆی پاڵپشتی](https://wordpress.org/support/plugin/copypress-rest-api/)