Skills
Log in

Create addon

Creates a new addon

Required permission

Project > Addons > General > Create

Path parameters

    • projectId

      string required
      ID of the project

Request body

  • (multiple options: anyOf)
    The provisioner type of the addon
    • {object}
      Native Northflank addons
      • name

        string required
        The name of the addon.
        min length
        3
        max length
        39
        pattern
        ^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$
      • description

        string
        A description of the addon.
        max length
        200
        pattern
        ^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$
      • projectId

        string
        ID of parent project
        pattern
        ^[A-Za-z0-9-]+$
      • stageId

        string
        min length
        3
        max length
        100
        pattern
        ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
      • tags

        [array]
        An array of previously defined tags to help identify and group the resource.
        • string
          min length
          3
          max length
          100
          pattern
          ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
      • type

        string required
        The identifier for the type of addon. Addon types can be found at the Get Addon Types endpoint.
      • infrastructure

        {object}
        • architecture

          string
          one of
          x86, arm
      • podDisruptionBudget

        {object}
        Requests voluntary-disruption protection for supported BYOC MongoDB and Patroni PostgreSQL addons on Kubernetes 1.31 or newer. Protection is derived from the live database StatefulSet and requires at least three replicas. MySQL HA protection is mandatory.
        • enabled

          boolean required
      • version

        string required
        The version of the addon type to use. If set to `latest`, the addon will be created with the most recent addon version. If set to a major version appended with `-latest`, e.g. `14-latest` or `14.5-latest`, the addon will be created with the most recent minor/patch version belonging to that major version.
      • billing

        {object} required
        • deploymentPlan

          string required
          The ID of the deployment plan to use.
          min length
          3
          max length
          100
          pattern
          ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
        • storageClass

          string
          The type of storage. Only configurable if the relevant feature flag is enabled for you account
          min length
          3
          max length
          39
          pattern
          ^[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$
        • storage

          integer
          The size of the addon storage, in megabytes. Required for addon types that support persistent storage; omit for stateless addon types.
          min
          1
        • replicas

          integer required
          The number of addon replicas to run.
          min
          1
        • zonalRedundancy

          {object}
          • type

            string
            Defines scheduling behaviour across different zones within the same region.
            one of
            required, disabled
          • minZones

            integer
            Defines how many zones are required and will prevent containers from additional scheduling into existing zones. (Only relevant if type is set to "required")
            min
            1
        • diskAutoscaling

          {object}
          Automatic disk scaling configuration.
          • enabled

            boolean required
            Enable automatic disk scaling when usage exceeds the configured threshold.
          • thresholdPercent

            number
            Disk usage percentage that triggers a resize. Defaults to 90.
            one of
            75, 90
          • maxSizeMib

            integer
            Maximum disk size in mebibytes. When set, autoscaling will not expand storage beyond this value. Must be greater than the current storage size.
            min
            1
      • source

        (multiple options: oneOf)
        Fork source backup for the addon
        • {object}
          Optional object containing data about an existing addon to fork. If provided, the addon will be created from that existing addon backup.
          • projectId

            string
            ID of the project of the source addon. Only required if not the same as target addon
            pattern
            ^[A-Za-z0-9-]+$
          • addonId

            string required
            ID of the addon to fork.
            pattern
            ^[A-Za-z0-9-]+$
          • backupId

            string required
            ID of a backup belonging to that addon to use for the fork.
            pattern
            ^[A-Za-z0-9-]+$
          • backupType

            string
            Type of backup to select when backupId is `latest`. Defaults to `snapshot`.
            one of
            snapshot, global

          OR

        • {object}
          Optional object containing the reference to a backup addressed by its UUID
          • backupUid

            string required
            Uid of the backup
      • tlsEnabled

        boolean
        Enables access to the addon via TLS (if supported by the addon type).
      • externalAccessEnabled

        boolean
        Enables external access to the addon via TLS (if supported by the addon type).
      • vpcAccessible

        boolean
        Exposes the addon on the cluster's private (VPC) load balancer. Mutually exclusive with `externalAccessEnabled`.
      • ipPolicies

        [array]
        An array of IP address policies.
        • {object}
          • addresses

            [array] required
            An array of IP addresses used for this rule
            • string
              An IP address used by this rule
          • action

            string required
            The action for this rule.
            one of
            ALLOW, DENY
      • typeSpecificSettings

        {object}
        • redisMaxMemoryPolicy

          string
          Redis only: Key eviction policy at memory pressure.
          one of
          noeviction, allkeys-lru, allkeys-lfu, volatile-lru, volatile-lfu, allkeys-random, volatile-random, volatile-ttl, volatile-lrm, allkeys-lrm
        • redisSentinelEnabled

          boolean
          Redis only: Deploy Redis with Sentinel high availability. Default: false
        • postgresqlWalLevel

          string
          PostgreSQL only: Configure wal_level setting.
          one of
          replica, logical
        • postgresqlSupabaseMode

          boolean
          PostgreSQL only: Enable Supabase mode (additional extensions and event trigger creation support). Cannot be changed after creation.
        • postgresqlEdbRelease

          string
          EDB mode only: Release channel. Defaults to stable. Changing release can restart the addon. Switching from beta or nightly to another channel may be incompatible.
          one of
          stable, beta, nightly
        • postgresqlEdbMode

          boolean
          PostgreSQL only: Enable EDB mode (EDB extension set: edb_stat_monitor, query_advisor, edb_pg_tuner, aidb, pgaa and others). Requires PostgreSQL 18 or newer. Cannot be changed after creation.
        • postgresqlConnectionPoolerEnabled

          boolean
          PostgreSQL only: Run connection pooler in front of postgres instance.
        • postgresqlConnectionPoolerReplicas

          integer
          PostgreSQL only: Number of connection pooler replicas in case connection pooler is enabled.
          min
          1
          max
          3
        • postgresqlReadConnectionPoolerEnabled

          boolean
          PostgreSQL only: Run connection pooler in front of read-only postgres instance.
        • postgresqlReadConnectionPoolerReplicas

          integer
          PostgreSQL only: Number of read-only connection pooler replicas in case read-only connection pooler is enabled.
          min
          1
          max
          3
        • postgresqlImportMode

          boolean
          PostgreSQL only: Configure PostgreSQL for higher import speed. Not recommended for production workloads.
        • mysqlHaModeEnabled

          boolean
          MySQL only: Run MySQL in HA configuration with auto-failover and connection poolers.
        • mysqlHaRouterEnabled

          boolean
          MySQL HA only: Run connection routers in front of MySQL instances.
        • mysqlRouterReplicas

          integer
          MysqlHA only: Number of connection router replicas in case connection router is enabled.
          min
          1
          max
          6
        • memcachedAuthenticationEnabled

          boolean
          Memcached only: Enable SASL authentication. Defaults to false and cannot be changed after creation. Required for public or VPC access.
      • customCredentials

        {object}
        • dbName

          string
          Custom database name. Not supported for all addon types.
      • backupSchedules

        [array]
        • {object}
          • scheduling

            {object} required
            Schedule for the backup.
            • interval

              string required
              The interval between backups. Each addon can only have one backup schedule of each interval for each backup type.
              one of
              hourly, daily, weekly
            • minute

              [array] required
              An array of minutes when the backup should be performed.
              • integer
                A minute when the backup should be performed.
                min
                0
                max
                59
            • hour

              [array]
              An array of hours in 24 hour format when the backup should be performed. At these hours, a backup will be performed at each of the minutes provided in the `minute` field. Required for `daily` and `weekly` intervals and unavailable for `hourly` intervals.
              • integer
                An hour when the backup should be performed, in 24 hour format.
                min
                0
                max
                23
            • day

              [array]
              An array of days of the week when the backup should be performed, where `0` represents Sunday and `6` represents Saturday. On these days, a backup will be performed at each of the minutes provided in the `minute` field whenever it is an hour from the `hour` field. Required for `weekly` intervals and unavailable for `hourly` and `daily` intervals.
              • integer
                A day of the week when the backup should be performed, where `0` represents Sunday and `6` represents Saturday.
                min
                0
                max
                6
          • backupType

            string required
            The type of the backup to be performed.
            one of
            dump, snapshot
          • customDestinationId

            string
            min length
            3
            max length
            100
            pattern
            ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
          • additionalDestinations

            [array]
            List of destinations for which a backup should be created of this backup. Only applicable for snapshot backups.
            • {object}
              • destinationId

                string required
                Additional custom back up destination that should be used to store the snapshot.
                min length
                3
                max length
                100
                pattern
                ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
              • retentionTime

                integer
                Retention time of the additional back up in days.
                min
                1
              • type

                string required
                The type of backup destination to use
                one of
                custom
          • compressionType

            string
            The compression algorithm of the backup. Only applicable for dump backups. Defaults to `gz`.
            one of
            gz, zstd
          • retentionTime

            integer required
            The time the backup is retained for, in days.
            min
            1
      • metadata

        {object}
        Allow setting custom labels and annotations for workloads.
        • labels

          {object}
          Specify custom labels for the workload.
          • annotations

            {object}
            Specify custom annotations for the workload as string or object.

          OR

        • {object}
          Northflank bring your own addon with templating engine
          • name

            string required
            The name of the addon.
            min length
            3
            max length
            39
            pattern
            ^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$
          • description

            string
            A description of the addon.
            max length
            200
            pattern
            ^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$
          • projectId

            string
            ID of parent project
            pattern
            ^[A-Za-z0-9-]+$
          • stageId

            string
            min length
            3
            max length
            100
            pattern
            ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
          • tags

            [array]
            An array of previously defined tags to help identify and group the resource.
            • string
              min length
              3
              max length
              100
              pattern
              ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
          • type

            string required
            The identifier for the type of addon. Addon types can be found at the Get Addon Types endpoint.
          • infrastructure

            {object}
            • architecture

              string
              one of
              x86, arm
          • templateValues

            {object}
            The template values to be passed to the templating engine.

            OR

          • {object}
            Northflank managed bucket addon
            • name

              string required
              The name of the addon.
              min length
              3
              max length
              39
              pattern
              ^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$
            • description

              string
              A description of the addon.
              max length
              200
              pattern
              ^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$
            • projectId

              string
              ID of parent project
              pattern
              ^[A-Za-z0-9-]+$
            • stageId

              string
              min length
              3
              max length
              100
              pattern
              ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
            • tags

              [array]
              An array of previously defined tags to help identify and group the resource.
              • string
                min length
                3
                max length
                100
                pattern
                ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
            • type

              string required
              The identifier for the type of addon. Addon types can be found at the Get Addon Types endpoint.
            • infrastructure

              {object}
              • architecture

                string
                one of
                x86, arm
            • region

              string
              The AWS region identifier for the bucket location.

        Response body

        • {object}
          Response object.
          • data

            (multiple options: oneOf) required
            Result data.
            • {object}
              Native Northflank addons
              • name

                string required
                The name of the addon.
                min length
                3
                max length
                39
                pattern
                ^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$
              • description

                string
                A description of the addon.
                max length
                200
                pattern
                ^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$
              • stageId

                string
                min length
                3
                max length
                100
                pattern
                ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
              • tags

                [array]
                An array of previously defined tags to help identify and group the resource.
                • string
                  min length
                  3
                  max length
                  100
                  pattern
                  ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
              • type

                string required
                The identifier for the type of addon. Addon types can be found at the Get Addon Types endpoint.
              • infrastructure

                {object}
                • architecture

                  string
                  one of
                  x86, arm
              • podDisruptionBudget

                {object}
                Requests voluntary-disruption protection for supported BYOC MongoDB and Patroni PostgreSQL addons on Kubernetes 1.31 or newer. Protection is derived from the live database StatefulSet and requires at least three replicas. MySQL HA protection is mandatory.
                • enabled

                  boolean required
              • version

                string required
                The version of the addon type to use. If set to `latest`, the addon will be created with the most recent addon version. If set to a major version appended with `-latest`, e.g. `14-latest` or `14.5-latest`, the addon will be created with the most recent minor/patch version belonging to that major version.
              • billing

                {object} required
                • deploymentPlan

                  string required
                  The ID of the deployment plan to use.
                  min length
                  3
                  max length
                  100
                  pattern
                  ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
                • storageClass

                  string
                  The type of storage. Only configurable if the relevant feature flag is enabled for you account
                  min length
                  3
                  max length
                  39
                  pattern
                  ^[a-zA-Z](-?[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*)?$
                • storage

                  integer
                  The size of the addon storage, in megabytes. Required for addon types that support persistent storage; omit for stateless addon types.
                  min
                  1
                • replicas

                  integer required
                  The number of addon replicas to run.
                  min
                  1
                • zonalRedundancy

                  {object}
                  • type

                    string
                    Defines scheduling behaviour across different zones within the same region.
                    one of
                    required, disabled
                  • minZones

                    integer
                    Defines how many zones are required and will prevent containers from additional scheduling into existing zones. (Only relevant if type is set to "required")
                    min
                    1
                • diskAutoscaling

                  {object}
                  Automatic disk scaling configuration.
                  • enabled

                    boolean required
                    Enable automatic disk scaling when usage exceeds the configured threshold.
                  • thresholdPercent

                    number
                    Disk usage percentage that triggers a resize. Defaults to 90.
                    one of
                    75, 90
                  • maxSizeMib

                    integer
                    Maximum disk size in mebibytes. When set, autoscaling will not expand storage beyond this value. Must be greater than the current storage size.
                    min
                    1
              • source

                (multiple options: oneOf)
                Fork source backup for the addon
                • {object}
                  Optional object containing data about an existing addon to fork. If provided, the addon will be created from that existing addon backup.
                  • projectId

                    string
                    ID of the project of the source addon. Only required if not the same as target addon
                    pattern
                    ^[A-Za-z0-9-]+$
                  • addonId

                    string required
                    ID of the addon to fork.
                    pattern
                    ^[A-Za-z0-9-]+$
                  • backupId

                    string required
                    ID of a backup belonging to that addon to use for the fork.
                    pattern
                    ^[A-Za-z0-9-]+$
                  • backupType

                    string
                    Type of backup to select when backupId is `latest`. Defaults to `snapshot`.
                    one of
                    snapshot, global

                  OR

                • {object}
                  Optional object containing the reference to a backup addressed by its UUID
                  • backupUid

                    string required
                    Uid of the backup
              • tlsEnabled

                boolean
                Enables access to the addon via TLS (if supported by the addon type).
              • externalAccessEnabled

                boolean
                Enables external access to the addon via TLS (if supported by the addon type).
              • vpcAccessible

                boolean
                Exposes the addon on the cluster's private (VPC) load balancer. Mutually exclusive with `externalAccessEnabled`.
              • ipPolicies

                [array]
                An array of IP address policies.
                • {object}
                  • addresses

                    [array] required
                    An array of IP addresses used for this rule
                    • string
                      An IP address used by this rule
                  • action

                    string required
                    The action for this rule.
                    one of
                    ALLOW, DENY
              • typeSpecificSettings

                {object}
                • redisMaxMemoryPolicy

                  string
                  Redis only: Key eviction policy at memory pressure.
                  one of
                  noeviction, allkeys-lru, allkeys-lfu, volatile-lru, volatile-lfu, allkeys-random, volatile-random, volatile-ttl, volatile-lrm, allkeys-lrm
                • redisSentinelEnabled

                  boolean
                  Redis only: Deploy Redis with Sentinel high availability. Default: false
                • postgresqlWalLevel

                  string
                  PostgreSQL only: Configure wal_level setting.
                  one of
                  replica, logical
                • postgresqlSupabaseMode

                  boolean
                  PostgreSQL only: Enable Supabase mode (additional extensions and event trigger creation support). Cannot be changed after creation.
                • postgresqlEdbRelease

                  string
                  EDB mode only: Release channel. Defaults to stable. Changing release can restart the addon. Switching from beta or nightly to another channel may be incompatible.
                  one of
                  stable, beta, nightly
                • postgresqlEdbMode

                  boolean
                  PostgreSQL only: Enable EDB mode (EDB extension set: edb_stat_monitor, query_advisor, edb_pg_tuner, aidb, pgaa and others). Requires PostgreSQL 18 or newer. Cannot be changed after creation.
                • postgresqlConnectionPoolerEnabled

                  boolean
                  PostgreSQL only: Run connection pooler in front of postgres instance.
                • postgresqlConnectionPoolerReplicas

                  integer
                  PostgreSQL only: Number of connection pooler replicas in case connection pooler is enabled.
                  min
                  1
                  max
                  3
                • postgresqlReadConnectionPoolerEnabled

                  boolean
                  PostgreSQL only: Run connection pooler in front of read-only postgres instance.
                • postgresqlReadConnectionPoolerReplicas

                  integer
                  PostgreSQL only: Number of read-only connection pooler replicas in case read-only connection pooler is enabled.
                  min
                  1
                  max
                  3
                • postgresqlImportMode

                  boolean
                  PostgreSQL only: Configure PostgreSQL for higher import speed. Not recommended for production workloads.
                • mysqlHaModeEnabled

                  boolean
                  MySQL only: Run MySQL in HA configuration with auto-failover and connection poolers.
                • mysqlHaRouterEnabled

                  boolean
                  MySQL HA only: Run connection routers in front of MySQL instances.
                • mysqlRouterReplicas

                  integer
                  MysqlHA only: Number of connection router replicas in case connection router is enabled.
                  min
                  1
                  max
                  6
                • memcachedAuthenticationEnabled

                  boolean
                  Memcached only: Enable SASL authentication. Defaults to false and cannot be changed after creation. Required for public or VPC access.
              • customCredentials

                {object}
                • dbName

                  string
                  Custom database name. Not supported for all addon types.
              • backupSchedules

                [array]
                • {object}
                  • scheduling

                    {object} required
                    Schedule for the backup.
                    • interval

                      string required
                      The interval between backups. Each addon can only have one backup schedule of each interval for each backup type.
                      one of
                      hourly, daily, weekly
                    • minute

                      [array] required
                      An array of minutes when the backup should be performed.
                      • integer
                        A minute when the backup should be performed.
                        min
                        0
                        max
                        59
                    • hour

                      [array]
                      An array of hours in 24 hour format when the backup should be performed. At these hours, a backup will be performed at each of the minutes provided in the `minute` field. Required for `daily` and `weekly` intervals and unavailable for `hourly` intervals.
                      • integer
                        An hour when the backup should be performed, in 24 hour format.
                        min
                        0
                        max
                        23
                    • day

                      [array]
                      An array of days of the week when the backup should be performed, where `0` represents Sunday and `6` represents Saturday. On these days, a backup will be performed at each of the minutes provided in the `minute` field whenever it is an hour from the `hour` field. Required for `weekly` intervals and unavailable for `hourly` and `daily` intervals.
                      • integer
                        A day of the week when the backup should be performed, where `0` represents Sunday and `6` represents Saturday.
                        min
                        0
                        max
                        6
                  • backupType

                    string required
                    The type of the backup to be performed.
                    one of
                    dump, snapshot
                  • customDestinationId

                    string
                    min length
                    3
                    max length
                    100
                    pattern
                    ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
                  • additionalDestinations

                    [array]
                    List of destinations for which a backup should be created of this backup. Only applicable for snapshot backups.
                    • {object}
                      • destinationId

                        string required
                        Additional custom back up destination that should be used to store the snapshot.
                        min length
                        3
                        max length
                        100
                        pattern
                        ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
                      • retentionTime

                        integer
                        Retention time of the additional back up in days.
                        min
                        1
                      • type

                        string required
                        The type of backup destination to use
                        one of
                        custom
                  • compressionType

                    string
                    The compression algorithm of the backup. Only applicable for dump backups. Defaults to `gz`.
                    one of
                    gz, zstd
                  • retentionTime

                    integer required
                    The time the backup is retained for, in days.
                    min
                    1
              • metadata

                {object}
                Allow setting custom labels and annotations for workloads.
                • labels

                  {object}
                  Specify custom labels for the workload.
                  • annotations

                    {object}
                    Specify custom annotations for the workload as string or object.
                  • id

                    string required
                    Identifier for the addon.
                  • appId

                    string required
                    Full identifier used for deployment
                  • status

                    string required
                    The current state of the addon.
                    one of
                    preDeployment, triggerAllocation, allocating, postDeployment, running, paused, scaling, upgrading, resetting, backup, restore, failed, error, errorAllocating, deleting, deleted
                  • cluster

                    {object} required
                    Cluster information
                    • id

                      string required
                      The id of the cluster associated with this project.
                    • name

                      string required
                      The name of the cluster associated with this project.
                    • namespace

                      string
                      Namespace this resource is located within on the cluster.
                    • loadBalancers

                      [array]
                      Load balancer DNS for the cluster.
                      • string
                  • createdAt

                    string
                    time of creation
                  • updatedAt

                    string
                    time of update

                  OR

                • {object}
                  Northflank bring your own addon with templating engine
                  • name

                    string required
                    The name of the addon.
                    min length
                    3
                    max length
                    39
                    pattern
                    ^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$
                  • description

                    string
                    A description of the addon.
                    max length
                    200
                    pattern
                    ^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$
                  • stageId

                    string
                    min length
                    3
                    max length
                    100
                    pattern
                    ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
                  • tags

                    [array]
                    An array of previously defined tags to help identify and group the resource.
                    • string
                      min length
                      3
                      max length
                      100
                      pattern
                      ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
                  • type

                    string required
                    The identifier for the type of addon. Addon types can be found at the Get Addon Types endpoint.
                  • infrastructure

                    {object}
                    • architecture

                      string
                      one of
                      x86, arm
                  • templateValues

                    {object}
                    The template values to be passed to the templating engine.
                    • id

                      string required
                      Identifier for the addon.
                    • appId

                      string required
                      Full identifier used for deployment
                    • status

                      string required
                      The current state of the addon.
                      one of
                      preDeployment, triggerAllocation, allocating, postDeployment, running, paused, scaling, upgrading, resetting, backup, restore, failed, error, errorAllocating, deleting, deleted
                    • cluster

                      {object} required
                      Cluster information
                      • id

                        string required
                        The id of the cluster associated with this project.
                      • name

                        string required
                        The name of the cluster associated with this project.
                      • namespace

                        string
                        Namespace this resource is located within on the cluster.
                      • loadBalancers

                        [array]
                        Load balancer DNS for the cluster.
                        • string
                    • createdAt

                      string
                      time of creation
                    • updatedAt

                      string
                      time of update

                    OR

                  • {object}
                    Northflank managed bucket addon
                    • name

                      string required
                      The name of the addon.
                      min length
                      3
                      max length
                      39
                      pattern
                      ^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$
                    • description

                      string
                      A description of the addon.
                      max length
                      200
                      pattern
                      ^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$
                    • stageId

                      string
                      min length
                      3
                      max length
                      100
                      pattern
                      ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
                    • tags

                      [array]
                      An array of previously defined tags to help identify and group the resource.
                      • string
                        min length
                        3
                        max length
                        100
                        pattern
                        ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$
                    • type

                      string required
                      The identifier for the type of addon. Addon types can be found at the Get Addon Types endpoint.
                    • infrastructure

                      {object}
                      • architecture

                        string
                        one of
                        x86, arm
                    • region

                      string
                      The AWS region identifier for the bucket location.
                    • id

                      string required
                      Identifier for the addon.
                    • appId

                      string required
                      Full identifier used for deployment
                    • status

                      string required
                      The current state of the addon.
                      one of
                      preDeployment, triggerAllocation, allocating, postDeployment, running, paused, scaling, upgrading, resetting, backup, restore, failed, error, errorAllocating, deleting, deleted
                    • cluster

                      {object} required
                      Cluster information
                      • id

                        string required
                        The id of the cluster associated with this project.
                      • name

                        string required
                        The name of the cluster associated with this project.
                      • namespace

                        string
                        Namespace this resource is located within on the cluster.
                      • loadBalancers

                        [array]
                        Load balancer DNS for the cluster.
                        • string
                    • createdAt

                      string
                      time of creation
                    • updatedAt

                      string
                      time of update

              POST /v1/projects/{projectId}/addons

              POST /v1/teams/{teamId}/projects/{projectId}/addons

              Example request

              Request body
              curl --header "Content-Type: application/json" \
                --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
                --request POST \
                --data '{"name":"Example Addon","description":"An addon description","projectId":"example-project","type":"postgresql","version":"latest","billing":{"deploymentPlan":"nf-compute-20","storageClass":"nvme","storage":6144,"replicas":1},"source":{"projectId":"existing-project","addonId":"existing-addon","backupId":"existing-backup","backupType":"snapshot"},"ipPolicies":[{"addresses":["127.0.0.1"],"action":"DENY"}],"backupSchedules":[{"scheduling":{"interval":"weekly","minute":[30],"hour":[18],"day":[4]},"backupType":"snapshot","additionalDestinations":[{"destinationId":"example-backup-destination","retentionTime":7,"type":"custom"}],"compressionType":"gz","retentionTime":7}]}' \
                "https://api.northflank.com/v1/projects/{projectId}/addons"

              Example response

              200 OK

              Details about the newly created addon.

              JSON

              {
                "data": {
                  "name": "Example Addon",
                  "description": "An addon description",
                  "type": "postgresql",
                  "version": "latest",
                  "billing": {
                    "deploymentPlan": "nf-compute-20",
                    "storageClass": "nvme",
                    "storage": 6144,
                    "replicas": 1
                  },
                  "source": {
                    "projectId": "existing-project",
                    "addonId": "existing-addon",
                    "backupId": "existing-backup",
                    "backupType": "snapshot"
                  },
                  "ipPolicies": [
                    {
                      "addresses": [
                        "127.0.0.1"
                      ],
                      "action": "DENY"
                    }
                  ],
                  "backupSchedules": [
                    {
                      "scheduling": {
                        "interval": "weekly",
                        "minute": [
                          30
                        ],
                        "hour": [
                          18
                        ],
                        "day": [
                          4
                        ]
                      },
                      "backupType": "snapshot",
                      "additionalDestinations": [
                        {
                          "destinationId": "example-backup-destination",
                          "retentionTime": 7,
                          "type": "custom"
                        }
                      ],
                      "compressionType": "gz",
                      "retentionTime": 7
                    }
                  ],
                  "id": "example-addon",
                  "appId": "/example-user/default-project/example-addon",
                  "status": "running",
                  "cluster": {
                    "id": "nf-europe-west",
                    "name": "nf-europe-west",
                    "namespace": "ns-8zy2mcjh9zn2",
                    "loadBalancers": [
                      "lb.659200800000000000000000.northflank.com"
                    ]
                  }
                }
              }

              OR

              JSON

              {
                "data": {
                  "name": "Example Addon",
                  "description": "An addon description",
                  "type": "postgresql",
                  "templateValues": {},
                  "id": "example-addon",
                  "appId": "/example-user/default-project/example-addon",
                  "status": "running",
                  "cluster": {
                    "id": "nf-europe-west",
                    "name": "nf-europe-west",
                    "namespace": "ns-8zy2mcjh9zn2",
                    "loadBalancers": [
                      "lb.659200800000000000000000.northflank.com"
                    ]
                  }
                }
              }

              OR

              JSON

              {
                "data": {
                  "name": "Example Addon",
                  "description": "An addon description",
                  "type": "postgresql",
                  "region": "eu-west-2",
                  "id": "example-addon",
                  "appId": "/example-user/default-project/example-addon",
                  "status": "running",
                  "cluster": {
                    "id": "nf-europe-west",
                    "name": "nf-europe-west",
                    "namespace": "ns-8zy2mcjh9zn2",
                    "loadBalancers": [
                      "lb.659200800000000000000000.northflank.com"
                    ]
                  }
                }
              }

              © 2026 Northflank Ltd. All rights reserved.

              northflank.com / Terms / Privacy / feedback@northflank.com