# GoDaddy

GoDaddy Domains API v1.

| Field | Value |
|---|---|
| Addon id | `registrar-godaddy` |
| Kind | `registrar` |
| Provides | `godaddy` |
| Engine | `wasm` |
| ABI | `0.2.0` |
| Version | 0.1.0 |
| Author | MythicalSystems |
| Source | `extensions/addons/reg-godaddy` |
| Permissions (shown at install) | `domains.manage`, `network.outbound` |

## Capabilities

| Capability | Value |
|---|---|
| [`http`](capabilities.md) | `api.godaddy.com`, `api.ote-godaddy.com`, `$setting:api_base` |
| [`secrets`](capabilities.md) | none |

## Events and hooks

| What | Value |
|---|---|
| Listens to (`events`) | none |
| Hooks | none |
| Emits | none |
| Mixins | none |
| Scheduled jobs | none |

## Settings and secrets

| Setting | Type | Required |
|---|---|---|
| `api_key` | `secret` | yes |
| `api_secret` | `secret` | yes |
| `customer_ip` | `text` | no |
| `test_mode` | `bool` | no |
| `api_base` | `text` | no |

Secrets (stored encrypted, never returned by the API): none.

Outbound HTTP allowed to: `api.godaddy.com`, `api.ote-godaddy.com`, `$setting:api_base`. `$server` is the hostname of the server configured for the product, `$setting:<key>` the host of that setting.

## addon.json

_extensions/addons/reg-godaddy/addon.json_

```json
{
  "abi": "0.2.0",
  "author": "MythicalSystems",
  "capabilities": {
    "http": [
      "api.godaddy.com",
      "api.ote-godaddy.com",
      "$setting:api_base"
    ],
    "secrets": []
  },
  "description": "addons.desc.registrar.godaddy",
  "engine": "wasm",
  "id": "registrar-godaddy",
  "kind": "registrar",
  "name": "GoDaddy",
  "permissions": [
    "domains.manage",
    "network.outbound"
  ],
  "provides": "godaddy",
  "settings": [
    {
      "key": "api_key",
      "kind": "secret",
      "label": "addons.registrar.setting.api_key",
      "required": true
    },
    {
      "key": "api_secret",
      "kind": "secret",
      "label": "addons.registrar.setting.api_secret",
      "required": true
    },
    {
      "key": "customer_ip",
      "kind": "text",
      "label": "addons.registrar.setting.customer_ip",
      "required": false
    },
    {
      "default": false,
      "key": "test_mode",
      "kind": "bool",
      "label": "addons.registrar.setting.test_mode",
      "required": false
    },
    {
      "key": "api_base",
      "kind": "text",
      "label": "addons.registrar.setting.api_base",
      "required": false
    }
  ],
  "version": "0.1.0",
  "wasm": "addon.wasm"
}
```

