Nudgescribe API Reference
APIs
API types
  • Authentication
  • Content
  • Campaign
APIs
API types
  • Authentication
  • Content
  • Campaign
  1. Customer Profile Fields
  • Nudgescribe API
  • Authentication
    • Authentication
    • Authenticate
      POST
    • Re-Authenticate
      GET
  • Content
    • Customers
      • Customer Management
      • Upload and Validate Customer Data
      • Get pages
      • Get Customers
      • Update Customers
      • Delete Customers
    • Customer Groups
      • Customer Groups
      • Create Customer Group
      • Get Customer Groups
      • Update Customer Group
      • Delete Customer Group
    • Customer Profile Fields
      • Customer Profile Fields
      • Create a Custom Profile Field
        PUT
      • Get Customer Profile Fields for a Workspace
        POST
      • Update Custom Fields
        PATCH
      • Delete Custom Fields
        DELETE
  • Campaigns
    • Campaigns and Campaign Messages
    • Get All Accounts Campaigns
      POST
    • Publish Messages to Secure Storage
      POST
    • Retrieve Published Messages
      POST
    • Get Campaign Messages Pages
      POST
  1. Customer Profile Fields

Create a Custom Profile Field

PUT
https://client-api.dev.nudgescribe.com/v1/cpf
ContentCustomerProfleCustomer Profile FieldsCPFCreate
Creates a new custom field for collecting customer profile data within your workspace. This endpoint allows you to define dynamic fields that match your specific customer data collection needs.
Enables your application to programmatically create custom fields that will be used for customer data collection, allowing you to tailor the customer profile schema to your business requirements.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠400Bad Request
🟠401Enum Data Error
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://client-api.dev.nudgescribe.com/v1/cpf' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "workspace_id": "your-workspace-uuid",
    "display_name": "Customer Type",
    "field_type": "Enum",
    "field_format": ["VIP", "Regular", "Prospect"],
    "is_required": true,
    "pii": false
  }'
Response Response Example
200 - Example 1
{
    "workspace_id": "workspace-uuid",
    "field_key": "customer_type",
    "display_name": "Customer Type",
    "field_format": null,
    "is_required": true,
    "pii": false,
    "is_default": false,
    "field_id": "d0947335-dc95-439b-8b7b-94470b8205cf",
    "created_at": "2025-09-11T09:42:25.949Z",
    "updated_at": "2025-09-11T09:42:25.949Z"
}
Modified at 2025-09-11 12:34:23
Previous
Customer Profile Fields
Next
Get Customer Profile Fields for a Workspace
Built with