---
updatedAt: 2025-06-05T21:48:37.000Z
agentTools:
  projectIndex: https://docs.cloudloop.com/llms.txt
---

# Create Agreement

Create/Enact an Agreement

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "cloudloop",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.cloudloop.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/Certus/CreateAgreement": {
      "get": {
        "summary": "Create Agreement",
        "description": "Create/Enact an Agreement",
        "operationId": "create-subscriber-1",
        "parameters": [
          {
            "name": "plan",
            "in": "query",
            "description": "Cloudloop Plan Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "GC-CERTUS100-IOT-0MB-1-USD",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expiryBehaviour",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "RENEW",
                "SUSPEND",
                "WARN",
                "DEACTIVATE"
              ]
            }
          },
          {
            "name": "overflowBehaviour",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "RENEW",
                "SUSPEND",
                "WARN",
                "DEACTIVATE"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"agreement\": {\n    \"enactedAt\": \"2023-01-17T00:00:00\",\n    \"expiryBehaviour\": \"RENEW\",\n    \"expiryAt\": \"2023-11-16T23:59:59\",\n    \"name\": \"d245d1a2-7d49-45f0-aefb-5390d0046c3a_10M_Jan23\",\n    \"overflown\": false,\n    \"id\": \"RoDmGzOePxrJZKWAvEagyQXlpAkvMwjY\",\n    \"overflownAt\": null,\n    \"plan\": \"RoDmGzOePxrJZKWAvEagyQXlpAkvMwjY\",\n    \"account\": \"dYrLZzemNQwPagWmxnyOqXbvMVjAoDGK\",\n    \"overflowBehaviour\": \"SUSPEND\",\n    \"status\": \"ENACTED\"\n  }\n}"
                  },
                  "Incomplete Request": {
                    "value": "{\n  \"at\": 1525423899542,\n  \"error\": \"DispatcherInputException\"\n}"
                  },
                  "Plan Required": {
                    "value": "{\n  \"at\": 1676029429052,\n  \"error\": \"DispatcherValidationException\",\n  \"exceptions\": [\n    {\n      \"name\": \"Overflow Behaviour Required\",\n      \"id\": 1001\n    },\n    {\n      \"name\": \"Expiry Behaviour Required\",\n      \"id\": 1002\n    },\n    {\n      \"name\": \"Name Required\",\n      \"id\": 1005\n    },\n    {\n      \"name\": \"Plan Required\",\n      \"id\": 2000\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "agreement": {
                          "type": "object",
                          "properties": {
                            "enactedAt": {
                              "type": "string",
                              "example": "2023-01-17T00:00:00"
                            },
                            "expiryBehaviour": {
                              "type": "string",
                              "example": "RENEW"
                            },
                            "expiryAt": {
                              "type": "string",
                              "example": "2023-11-16T23:59:59"
                            },
                            "name": {
                              "type": "string",
                              "example": "d245d1a2-7d49-45f0-aefb-5390d0046c3a_10M_Jan23"
                            },
                            "overflown": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            },
                            "id": {
                              "type": "string",
                              "example": "RoDmGzOePxrJZKWAvEagyQXlpAkvMwjY"
                            },
                            "overflownAt": {},
                            "plan": {
                              "type": "string",
                              "example": "RoDmGzOePxrJZKWAvEagyQXlpAkvMwjY"
                            },
                            "account": {
                              "type": "string",
                              "example": "dYrLZzemNQwPagWmxnyOqXbvMVjAoDGK"
                            },
                            "overflowBehaviour": {
                              "type": "string",
                              "example": "SUSPEND"
                            },
                            "status": {
                              "type": "string",
                              "example": "ENACTED"
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Incomplete Request",
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "example": 1525423899542,
                          "default": 0
                        },
                        "error": {
                          "type": "string",
                          "example": "DispatcherInputException"
                        }
                      }
                    },
                    {
                      "title": "Plan Required",
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "example": 1676029429052,
                          "default": 0
                        },
                        "error": {
                          "type": "string",
                          "example": "DispatcherValidationException"
                        },
                        "exceptions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "Overflow Behaviour Required"
                              },
                              "id": {
                                "type": "integer",
                                "example": 1001,
                                "default": 0
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```