# Create a new redirect **POST /api** ## Servers - Production server (Secured with API Key): https://s.jqshuv.com (Production server (Secured with API Key)) - Local development server by wrangler: http://localhost:8787 (Local development server by wrangler) ## Authentication methods - Authorization with header - Authorization with query ## Parameters ### Body: application/json (object) - **redirect** (string) - **shortcode** (string) - **expire** (number) The number of minutes before the shortcode expires. Default is 0, which means never expires. ## Responses ### 201 Created - Resource successfully created #### Body: application/json (object) - **shortcode** (string) - **redirect** (string) - **status** (string) ### 400 Bad Request #### Body: application/json (object) - **status** (string) ### 401 Unauthorized #### Body: application/json (object) - **status** (string) ### 403 Forbidden #### Body: application/json (object) - **status** (string) Shortcode is blocked ### 409 Shortcode already exists #### Body: application/json (object) - **status** (string) [Powered by Bump.sh](https://bump.sh)