---
title: "Accept Prompt Suggestion"
method: POST
path: "/prompts/suggestions/{prompt_suggestion_id}/accept"
tags: ["Project"]
---

# Accept Prompt Suggestion

`POST /prompts/suggestions/{prompt_suggestion_id}/accept`

## Request

- Base URL: `https://api.peec.ai/customer/v1`
- URL: `https://api.peec.ai/customer/v1/prompts/suggestions/{prompt_suggestion_id}/accept`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in query parameter `api_key`
  - HTTP bearer

Accept a prompt suggestion by ID, creating a new prompt from it. Accepts both standard suggestions (`ps_`) and Prompt discovery suggestions (`pr_`); accepting a Prompt discovery suggestion also promotes its pending topic into a project topic. Optionally pass a country_code to override the suggestion's country for the created prompt — it applies to standard suggestions only, since a Prompt discovery suggestion keeps the market it was generated for.

## Path parameters

- `prompt_suggestion_id` string, required

## Request body

- object
  - `country_code` 'AE' | 'AL' | 'AM' | 'AR' | 'AT' | 'AU' | 'BA' | 'BE' | 'BG' | 'BH' | 'BO' | 'BR' | 'BS' | 'BY' | 'CA' | 'CH' | 'CL' | 'CN' | 'CO' | 'CR' | 'CY' | 'CZ' | 'DE' | 'DK' | 'DO' | 'EC' | 'EE' | 'EG' | 'ES' | 'FI' | 'FR' | 'GB' | 'GE' | 'GH' | 'GR' | 'GT' | 'HK' | 'HN' | 'HR' | 'HU' | 'ID' | 'IE' | 'IL' | 'IN' | 'IQ' | 'IS' | 'IT' | 'JO' | 'JP' | 'KR' | 'KW' | 'LB' | 'LI' | 'LT' | 'LU' | 'LV' | 'MA' | 'MD' | 'ME' | 'MK' | 'MN' | 'MT' | 'MX' | 'MY' | 'NG' | 'NI' | 'NL' | 'NO' | 'NZ' | 'OM' | 'PK' | 'PA' | 'PE' | 'PH' | 'PL' | 'PT' | 'PY' | 'PS' | 'QA' | 'RO' | 'RS' | 'SA' | 'SE' | 'SG' | 'SI' | 'SK' | 'SV' | 'TH' | 'TN' | 'TR' | 'TW' | 'UA' | 'US' | 'UY' | 'VE' | 'VN' | 'ZA' | 'AD' | 'AF' | 'AS' | 'AZ' | 'BB' | 'BQ' | 'CG' | 'CI' | 'CM' | 'CW' | 'DM' | 'DZ' | 'FO' | 'GF' | 'GP' | 'JM' | 'KG' | 'KH' | 'KI' | 'KZ' | 'LK' | 'LR' | 'LS' | 'MW' | 'NC' | 'PG' | 'TD' | 'TF' | 'UG' | 'VU' | 'ZW'

## Response `200`

Prompt suggestion accepted and prompt created

- object: Prompt suggestion accepted and prompt created
  - `id` string, required
  - `warning` string: Present when the project's daily new-prompt allowance was reached; the prompt is created but its first chats are deferred.

## Other responses

- `400`: Response for status 400
- `402`: Response for status 402
- `404`: Response for status 404
- `409`: Response for status 409

## Changes

- **2026-11-03** `9fdffdff48a5`: 5 info
  - added the new `MN` enum value to the request property `country_code` (media type: application/json)
  - added the new `MN` enum value to the request property `country_code` (media type: application/x-www-form-urlencoded)
  - added the new `MN` enum value to the request property `country_code` (media type: multipart/form-data)
  - added the non-success response with the status `400`
  - …1 more

[Operation history](https://skmtc.dev/peec/apis/peec-ai-customer-api/changes/prompts/suggestions/:prompt_suggestion_id/accept/post.md)

---

[API](https://skmtc.dev/peec/apis/peec-ai-customer-api.md) - [All operations](https://skmtc.dev/peec/apis/peec-ai-customer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/peec/apis/peec-ai-customer-api/revisions/9d774600c8eb?raw)
