@opusdns/api 0.231.0 → 0.232.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/openapi.yaml +51 -69
package/package.json
CHANGED
package/src/openapi.yaml
CHANGED
|
@@ -9600,77 +9600,59 @@ components:
|
|
|
9600
9600
|
tokenUrl: token
|
|
9601
9601
|
type: oauth2
|
|
9602
9602
|
info:
|
|
9603
|
-
description:
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
with OpusDNS runs smoothly. The sandbox is completely
|
|
9642
|
-
configurations, and actions inside this environment
|
|
9643
|
-
data or production systems. It is a full test system
|
|
9644
|
-
and completely free to use
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
The sandbox API Base URL is `https://sandbox.opusdns.com`.
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
If you have any questions about the API or run into issues, please open a ticket
|
|
9658
|
-
at support@opusdns.com. We are happy to help!
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
# Open-source SDKs and libraries
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
We''re constantly building new features and services from SDKs and plugins to
|
|
9665
|
-
other exciting tools. Check out [our GitHub](https://github.com/OpusDNS/) to see
|
|
9666
|
-
the latest developments and try them out yourself!
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
'
|
|
9603
|
+
description: "# Authentication\n\nOpusDNS supports API authentication in two ways:\n\
|
|
9604
|
+
\n- Direct API key authentication using the `X-Api-Key` header\n- OAuth token\
|
|
9605
|
+
\ authentication using the `/v1/auth/token` endpoint\n\n## Creating an API key\
|
|
9606
|
+
\ in the Dashboard\n\nYou can create API keys from the OpusDNS Dashboard.\n\n\
|
|
9607
|
+
- Create a new API key in the dashboard under [API Credentials](https://app.opusdns.com/developer/api-credentials)\n\
|
|
9608
|
+
\nStore the generated key securely when it is shown to you.\n## Authentication\
|
|
9609
|
+
\ options\n\n### Option 1: `X-Api-Key` header\n\nSend your full OpusDNS API key\
|
|
9610
|
+
\ in the `X-Api-Key` header on each request:\n\n```http\nGET /v1/domains HTTP/1.1\n\
|
|
9611
|
+
Host: sandbox.opusdns.com\nX-Api-Key: opk_your_full_api_key_here\n```\n\nThis\
|
|
9612
|
+
\ is the most direct way to authenticate.\n\n### Option 2: OAuth token flow\n\n\
|
|
9613
|
+
OpusDNS also supports retrieving a bearer token from the token endpoint:\n\n```http\n\
|
|
9614
|
+
POST /v1/auth/token HTTP/1.1\nHost: sandbox.opusdns.com\nContent-Type: application/x-www-form-urlencoded\n\
|
|
9615
|
+
\ngrant_type=client_credentials&client_id=organization_...&client_secret=...\n\
|
|
9616
|
+
```\n\nSuccessful responses return a bearer token and expiry:\n\n```json\n{\n\
|
|
9617
|
+
\ \"access_token\": \"eyJ...\",\n \"token_type\": \"Bearer\",\n \"expires_in\"\
|
|
9618
|
+
: 3600\n}\n```\n\nYou can then use that token on subsequent requests:\n\n```http\n\
|
|
9619
|
+
GET /v1/domains HTTP/1.1\nHost: sandbox.opusdns.com\nAuthorization: Bearer eyJ...\n\
|
|
9620
|
+
```\n\nYou can use this method when:\n\n- Your platform prefers standard OAuth-style\
|
|
9621
|
+
\ bearer tokens\n- You want short-lived access tokens instead of sending the API\
|
|
9622
|
+
\ key on every request\n- Your HTTP tooling already expects `Authorization: Bearer\
|
|
9623
|
+
\ ...`\n\n\n\n\n# Resource IDs\n\nThe API uses extensively [Type IDs](https://github.com/jetify-com/typeid):\
|
|
9624
|
+
\ type-safe, K-sortable, globally unique identifier inspired by Stripe IDs. They\
|
|
9625
|
+
\ can be easily identified with a format like `prefix_01jxe1nzrmf78scaqbkjx0va0f`.\
|
|
9626
|
+
\ The `prefix` gives context to the ID - some examples include `user`, `organization`,\
|
|
9627
|
+
\ `domain`. The rest of the ID is a 128-bit UUIDv7 encoded as a 26-character string\
|
|
9628
|
+
\ using a modified base32 encoding. See [formal specification for details](https://github.com/jetify-com/typeid/tree/main/spec).\n\
|
|
9629
|
+
\nThis approach allows using unique IDs (UUIDv7), preventing iteration attacks,\
|
|
9630
|
+
\ while also easily identifying the \"namespace\" of the ID. `01975c1f-a15a-7f6c-a5ce-b75fe33de079`\
|
|
9631
|
+
\ is hardly distuingishable from `01975c1f-f120-7874-8dc2-de7d728bf261` by humans\
|
|
9632
|
+
\ on first glance. However, when represented as Type IDs, they could be represented\
|
|
9633
|
+
\ as `user_01jxe1z8atfxpabknqbzhkvr3s` and `domain_01jxe1zw90f1t8vgpyfns8qwk1`,\
|
|
9634
|
+
\ immediately making it easier to differentiate between them.\n\nAdditionally,\
|
|
9635
|
+
\ this gives type safety and additional validation that can be done. There's [libraries\
|
|
9636
|
+
\ available for many languages to make handling Type IDs easier](https://github.com/jetify-com/typeid?tab=readme-ov-file#official-implementations-by-jetify).\
|
|
9637
|
+
\ We're using them ourselves on the backend to quickly catch mistakes like passing\
|
|
9638
|
+
\ the wrong Type ID (passing a user ID like `user_01jxe1z8atfxpabknqbzhkvr3s`\
|
|
9639
|
+
\ where a domain ID `domain_01jxe1zw90f1t8vgpyfns8qwk1` was expected).\n\n\n#\
|
|
9640
|
+
\ Sandbox Environment\n\nWe provide a free sandbox environment where you can test\
|
|
9641
|
+
\ and make sure your integration with OpusDNS runs smoothly. The sandbox is completely\
|
|
9642
|
+
\ isolated, meaning all domains, configurations, and actions inside this environment\
|
|
9643
|
+
\ have no effect on your live data or production systems. It is a full test system\
|
|
9644
|
+
\ for safe experimentation and completely free to use.\n\nPlease register a new\
|
|
9645
|
+
\ sandbox account at https://app.sandbox.opusdns.com and create a new API key\
|
|
9646
|
+
\ there.\n\nThis sandbox provides a separate dashboard at [app.sandbox.opusdns.com](https://app.sandbox.opusdns.com).\n\
|
|
9647
|
+
\nThe sandbox API Base URL is `https://sandbox.opusdns.com`.\n\nIf you have any\
|
|
9648
|
+
\ questions about the API or run into issues, please open a ticket at support@opusdns.com.\
|
|
9649
|
+
\ We are happy to help!\n\n# Open-source SDKs and libraries\n\nWe're constantly\
|
|
9650
|
+
\ building new features and services from SDKs and plugins to other exciting tools.\
|
|
9651
|
+
\ Check out [our GitHub](https://github.com/OpusDNS/) to see the latest developments\
|
|
9652
|
+
\ and try them out yourself!\n\n\n"
|
|
9671
9653
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
9672
9654
|
title: OpusDNS API
|
|
9673
|
-
version: 2026-04-01-
|
|
9655
|
+
version: 2026-04-01-081711
|
|
9674
9656
|
x-logo:
|
|
9675
9657
|
altText: OpusDNS API Reference
|
|
9676
9658
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|