---
title: "Create a search term"
method: POST
path: "/marketing/search-terms"
tags: ["Admin Marketing: Search & SEO"]
---

# Create a search term

`POST /marketing/search-terms`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/marketing/search-terms`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/marketing/search-terms/post.ts> (a function with typed inputs; its response is checked against the schema)

Manually create a search term with an optional redirect URL for a channel and locale. Mirrors the admin Search & SEO → Search Terms create form.

## Request body

- object
  - `term` string, required
  - `redirect_url` string, nullable
  - `channel_id` integer, required
  - `locale` string, required

## Response `201`

Search term created; returns the detail.

## Other responses

- `400`: Invalid input
- `422`: Validation failure.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
