---
updatedAt: 2026-07-31T14:16:06.000Z
agentTools:
  projectIndex: https://reference.fidel.uk/llms.txt
---

# Create Program

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "fidel-api",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.fidel.uk/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Fidel-Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/programs": {
      "post": {
        "summary": "Create Program",
        "description": "",
        "operationId": "create-program",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "application/json",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FIdel-Key",
            "in": "header",
            "description": "test/live API secret key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name of the Program. 4 - 50 characters."
                  },
                  "icon": {
                    "type": "string",
                    "description": "Emoji to associate with the Program. Also used on the Fidel Dashboard. Uses the `:emoji-name:` format. Accepts between 4 and 200 characters."
                  },
                  "iconBackground": {
                    "type": "string",
                    "description": "Background color for the program icon. Used on the Fidel Dashboard. Accepts a HEX CSS string, like \"#333333\"."
                  },
                  "metadata": {
                    "properties": {
                      "customKey": {
                        "type": "string",
                        "description": "Custom key/value."
                      }
                    },
                    "required": [],
                    "type": "object",
                    "description": "Metadata object with custom index and properties. Object size limited to 2kb."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"items\": [\n    {\n      \"accountId\": \"3693ac7e-3e2b-432c-8c60-2b786453ca9b\",\n      \"icon\": \":avocado:\",\n      \"iconBackground\": \"#BADA55\",\n      \"live\": false,\n      \"metadata\": {\n        \"customKey1\": \"customValue1\",\n        \"customKey2\": \"customValue2\"\n      },\n      \"name\": \"Program X\",\n      \"syncStats\": {\n        \"status\": \"completed\"\n      },\n      \"updated\": \"2020-08-20T13:19:37.650Z\",\n      \"created\": \"2020-08-20T13:19:37.650Z\",\n      \"id\": \"0228b979-6f7c-4238-a309-40f9d6efd3ea\",\n      \"active\": true,\n      \"activeDate\": \"2020-08-20T13:19:37.650Z\",\n      \"sync\": false\n    }\n  ],\n  \"resource\": \"/v1/programs\",\n  \"status\": 201,\n  \"execution\": 29.160558\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "accountId": {
                            "type": "string",
                            "example": "3693ac7e-3e2b-432c-8c60-2b786453ca9b"
                          },
                          "icon": {
                            "type": "string",
                            "example": ":avocado:"
                          },
                          "iconBackground": {
                            "type": "string",
                            "example": "#BADA55"
                          },
                          "live": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "metadata": {
                            "type": "object",
                            "properties": {
                              "customKey1": {
                                "type": "string",
                                "example": "customValue1"
                              },
                              "customKey2": {
                                "type": "string",
                                "example": "customValue2"
                              }
                            }
                          },
                          "name": {
                            "type": "string",
                            "example": "Program X"
                          },
                          "syncStats": {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "example": "completed"
                              }
                            }
                          },
                          "updated": {
                            "type": "string",
                            "example": "2020-08-20T13:19:37.650Z"
                          },
                          "created": {
                            "type": "string",
                            "example": "2020-08-20T13:19:37.650Z"
                          },
                          "id": {
                            "type": "string",
                            "example": "0228b979-6f7c-4238-a309-40f9d6efd3ea"
                          },
                          "active": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "activeDate": {
                            "type": "string",
                            "example": "2020-08-20T13:19:37.650Z"
                          },
                          "sync": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          }
                        }
                      }
                    },
                    "resource": {
                      "type": "string",
                      "example": "/v1/programs"
                    },
                    "status": {
                      "type": "integer",
                      "example": 201,
                      "default": 0
                    },
                    "execution": {
                      "type": "number",
                      "example": 29.160558,
                      "default": 0
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "Omitting the MIME header:\n\n{\n\t\"resource\": \"/v1/programs\",\n\t\"status\": 400,\n\t\"error\": {\n\t\t\"code\": \"schema\",\n\t\t\"date\": \"2020-08-22T07:23:49.601Z\",\n\t\t\"message\": \"Invalid schema\",\n\t\t\"metadata\": [\n\t\t\t{\n\t\t\t\t\"keyword\": \"type\",\n\t\t\t\t\"dataPath\": \"\",\n\t\t\t\t\"schemaPath\": \"#/type\",\n\t\t\t\t\"params\": {\n\t\t\t\t\t\"type\": \"object\"\n\t\t\t\t},\n\t\t\t\t\"message\": \"should be object\"\n\t\t\t}\n\t\t]\n\t},\n\t\"execution\": 11.677838\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "resource": {
                      "type": "string",
                      "example": "/v1/programs"
                    },
                    "status": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "schema"
                        },
                        "date": {
                          "type": "string",
                          "example": "2020-08-22T07:16:48.246Z"
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid schema"
                        },
                        "metadata": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "keyword": {
                                "type": "string",
                                "example": "required"
                              },
                              "dataPath": {
                                "type": "string",
                                "example": ""
                              },
                              "schemaPath": {
                                "type": "string",
                                "example": "#/required"
                              },
                              "params": {
                                "type": "object",
                                "properties": {
                                  "missingProperty": {
                                    "type": "string",
                                    "example": "name"
                                  }
                                }
                              },
                              "message": {
                                "type": "string",
                                "example": "should have required property 'name'"
                              }
                            }
                          }
                        }
                      }
                    },
                    "execution": {
                      "type": "number",
                      "example": 14.055777,
                      "default": 0
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X POST https://api.fidel.uk/v1/programs \\\n  -H 'content-type: application/json' \\\n  -H 'fidel-key: sk_test_50ea90b6-2a3b-4a56-814d-1bc592ba4d63' \\\n  -d '{\n    \"name\": \"Program X\",\n    \"icon\": \":avocado:\",\n    \"iconBackground\": \"#BADA55\",\n    \"metadata\": {\n      \"customKey1\": \"customValue1\",\n      \"customKey2\": \"customValue2\"\n    }\n  }'"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```