Προγραμματιστές → REST API
Domains, DNS, SSL και app servers μέσω HTTPS. JSON στην είσοδο, JSON στην έξοδο, ένα βασικό URL.
https://nameocean.net/api/v1
Authorization: Bearer <key> με κλειδί από τον Πίνακα ελέγχου → Κλειδιά API.
/api/v1/openapi.json · εισαγάγετέ το στο Postman, στο Insomnia ή στο Bruno ή δημιουργήστε έναν client.
Κάθε κλειδί φέρει δικαιώματα. Το GET απαιτεί <area>:read, οι άλλες μέθοδοι <area>:write· κάθε endpoint παρακάτω αναφέρει τι χρειάζεται. Χωρίς αυτό, η απάντηση είναι 403 με κωδικό missing_scope και required_scopes. Όλες οι εμβέλειες.
Κάθε σφάλμα έχει την ίδια μορφή: ένα μήνυμα γραμμένο για ανθρώπους και πράκτορες AI, και έναν σταθερό κωδικό για διακλάδωση. Το field υποδεικνύει την εσφαλμένη είσοδο, όταν υπάρχει.
{"error": "ip: Enter a valid IPv4 or IPv6 address.", "code": "invalid_field", "field": "ip"}
Κωδικοί: invalid_request invalid_field unauthorized forbidden missing_scope not_found conflict already_exists insufficient_credit domain_unavailable premium_not_accepted email_not_confirmed contact_details_missing renewed_recently nameservers_not_nameocean rate_limited idempotency_key_reused idempotency_in_progress upstream_error unavailable limit_reached not_eligible mx_records_exist forwarding_off invalid_code refused not_approved dns_not_ready password_unknown quota_exceeded too_large domain_suppressed server_suspended server_not_running server_busy server_unreachable not_supported command_failed nothing_pushed commit_mismatch payment_method_required card_required free_limit_reached verification_required backups_disabled protected invalid_zone_file zone_changed apply_failed spend_limit_reached test_key_not_allowed registry_unavailable search_off endpoint_exists too_soon page_limit crawled_page
120 αιτήματα το λεπτό ανά λογαριασμό. Κάθε απάντηση περιέχει X-RateLimit-Limit, X-RateLimit-Remaining και X-RateLimit-Reset (δευτερόλεπτα μέχρι να ελευθερωθεί θέση). Πέρα από το όριο, η απάντηση είναι 429 με κωδικό rate_limited και retry_after σε δευτερόλεπτα.
Στείλτε μια κεφαλίδα Idempotency-Key (ένα UUID) με τα αιτήματα POST, PUT, PATCH και DELETE. Αν η σύνδεση διακοπεί, επαναλάβετε το αίτημα με το ίδιο κλειδί: θα λάβετε πίσω την πρώτη απάντηση με Idempotent-Replayed: true, και το domain δεν θα καταχωριστεί ούτε θα χρεωθεί δύο φορές. Οι επιτυχημένες απαντήσεις διατηρούνται για 24 ώρες ανά λογαριασμό· το ίδιο κλειδί με διαφορετικό αίτημα απορρίπτεται με 422 idempotency_key_reused. Τα σφάλματα δεν διατηρούνται, οπότε αφού διορθώσετε την αιτία (για παράδειγμα, προσθέτοντας πίστωση), μια επανάληψη με το ίδιο κλειδί εκτελείται ξανά.
$ curl -X POST https://nameocean.net/api/v1/domains \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" -d '{"name": "example.com", "years": 1}'
Account, credit and the activity log.
/ #Describe the API. Endpoints, record types, TTL values and scopes, as JSON.
Εμβέλειες: καμία
curl -X GET https://nameocean.net/api/v1/ \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
Σφάλματα: 400 · 401 · 404 · 429
/account #Account and credit. Your email and account credit in USD.
Εμβέλειες: account:read
curl -X GET https://nameocean.net/api/v1/account \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
email | string | |
credit | string | USD amount as a decimal string |
currency | "USD" | |
domains | integer | |
dns_zones | integer | |
add_funds_url | string | |
spending | Spending | |
test | boolean | true when the call used a test key (sandbox credit and domains) |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/audit #Activity log. What was done on the account through the API, the CLI and MCP (every write call, refused calls and transfer-code reads) and API key and app changes in the dashboard. Newest first; pass next_cursor as cursor for the next page.
Εμβέλειες: account:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
limit | query | |
cursor | query | next_cursor from the previous page |
channel | query |
curl -X GET https://nameocean.net/api/v1/audit?limit=1&cursor=1&channel=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
events | AuditEvent[] | |
next_cursor | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/sandbox/reset #Reset test mode. Test keys (no_test_) only: deletes the test domains and transfers, puts the test credit back to $1000 and zeroes this month's test spending. A live key gets 409 not_supported.
Εμβέλειες: domains:write · Idempotency-Key
curl -X POST https://nameocean.net/api/v1/sandbox/reset \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
reset | boolean | |
deleted_domains | integer | |
credit | string | USD amount as a decimal string |
test | boolean |
Σφάλματα: 400 · 401 · 403 · 404 · 429
Search, register, renew and manage domains.
/domains/check #Check availability and price. Is a domain free to register, and what it costs.
Εμβέλειες: domains:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
name * | query | π.χ. example.com |
years | query |
curl -X GET https://nameocean.net/api/v1/domains/check?name=example.com&years=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
available | boolean | |
reason | string | Why it is not available. |
years | integer | |
premium | boolean | |
register_price | string | USD amount as a decimal string |
renew_price | string | USD amount as a decimal string |
currency | "USD" |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/domains/search #Search domain names. A word or name in, the website's suggestions out (popular TLDs and domain hacks), each available or not. Prices are for one year; /domains/check quotes a longer period and premium renewals.
Εμβέλειες: domains:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
q * | query |
curl -X GET https://nameocean.net/api/v1/domains/search?q=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
query | string | |
results | object[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/whois/{name} #WHOIS lookup. Registration data of any domain, not only yours: registrar, created / updated / expiry dates, status codes, nameservers and DNSSEC. Read over RDAP when the TLD has it, otherwise from the registry's WHOIS text (returned as raw). Answers are cached for an hour; 502 with code registry_unavailable when the registry does not answer.
Εμβέλειες: domains:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
name * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/whois/example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
registered | boolean | false when the registry has no such domain. |
registrar | string | null | |
registrar_iana_id | string | null | |
created_at | string | null | ISO 8601; a date only when the registry gives no time. |
updated_at | string | null | |
expires_at | string | null | |
status | string[] | EPP status codes (clientTransferProhibited, ok, ...); some ccTLDs use their own words. |
nameservers | string[] | |
dnssec | boolean | null | null when the registry does not say. |
source | string | One of: rdap, whois |
server | string | The RDAP base URL or WHOIS server that answered. |
raw | string | Only for source whois: the text the fields were read from. |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/domains #List domains
Εμβέλειες: domains:read
curl -X GET https://nameocean.net/api/v1/domains \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domains | Domain[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/domains #Register a domain. Paid from account credit; 402 with code insufficient_credit when it is not enough. Premium names need accept_premium: true. Send an Idempotency-Key so a retry never registers twice. dry_run: true returns the quote (price, credit, spending limit) and charges nothing. A purchase that would go over the account's monthly API spending limit answers 402 spend_limit_reached and puts the domain in the cart instead (pay_url).
Εμβέλειες: domains:write billing:write · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
name * | string | |
years | integer | |
accept_premium | boolean | |
dry_run | boolean |
curl -X POST https://nameocean.net/api/v1/domains \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "example.com", "years": 1}'
200 dry_run: the quote
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
dry_run | "True" | |
action | string | One of: register, renew, transfer |
name | string | |
price | string | USD amount as a decimal string |
currency | "USD" | |
credit | string | USD amount as a decimal string |
enough_credit | boolean | |
within_spend_limit | boolean | |
spending | Spending |
201 Registered
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | Domain | |
charged | string | USD amount as a decimal string |
credit | string | USD amount as a decimal string |
Σφάλματα: 400 · 401 · 402 · 403 · 404 · 429
/domains/{name} #Get a domain. Nameservers, lock, auto-renew and SSL status.
Εμβέλειες: domains:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
name * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/domains/example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
active | boolean | |
pending | boolean | |
suspended | boolean | |
expires_on | string | null | |
auto_renew | boolean | |
locked | boolean | |
created_at | string | null | |
renewal_price | string | null | |
renew_url | string | Where the user renews it in the dashboard |
nameservers | string[] | |
custom_nameservers | boolean | |
dns_zone | boolean | |
ssl | Ssl |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/domains/{name} #Change auto-renew or lock
Εμβέλειες: domains:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
name * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
auto_renew | boolean | |
locked | boolean |
curl -X PATCH https://nameocean.net/api/v1/domains/example.com \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"auto_renew": true}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
active | boolean | |
pending | boolean | |
suspended | boolean | |
expires_on | string | null | |
auto_renew | boolean | |
locked | boolean | |
created_at | string | null | |
renewal_price | string | null | |
renew_url | string | Where the user renews it in the dashboard |
nameservers | string[] | |
custom_nameservers | boolean | |
dns_zone | boolean | |
ssl | Ssl |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/domains/{name}/nameservers #Set nameservers. Two to four hostnames, or "nameocean" for NameOcean DNS.
Εμβέλειες: domains:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
name * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
nameservers * | array | string |
curl -X PUT https://nameocean.net/api/v1/domains/example.com/nameservers \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"nameservers": ["ns1.example.net", "ns2.example.net"]}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
active | boolean | |
pending | boolean | |
suspended | boolean | |
expires_on | string | null | |
auto_renew | boolean | |
locked | boolean | |
created_at | string | null | |
renewal_price | string | null | |
renew_url | string | Where the user renews it in the dashboard |
nameservers | string[] | |
custom_nameservers | boolean | |
dns_zone | boolean | |
ssl | Ssl |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/domains/{name}/renew #Renew one year. Paid from account credit, within 60 days of expiry. Send an Idempotency-Key. dry_run: true returns the quote. Over the monthly API spending limit: 402 spend_limit_reached with the dashboard link (pay_url).
Εμβέλειες: domains:write billing:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
name * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
dry_run | boolean |
curl -X POST https://nameocean.net/api/v1/domains/example.com/renew \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
Σφάλματα: 400 · 401 · 402 · 403 · 404 · 429
/domains/{name}/auth-code #Get the transfer code. The EPP code to move the domain away.
Εμβέλειες: domains:write
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
name * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/domains/example.com/auth-code \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
auth_code | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/cart #Get the cart. Domains waiting to be bought, with the checkout link.
Εμβέλειες: domains:read
curl -X GET https://nameocean.net/api/v1/cart \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
items | object[] | |
total | string | USD amount as a decimal string |
currency | string | |
checkout_url | string | The user pays here; nothing is charged through the API |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/cart #Put a domain in the cart. Checks availability and price and adds the domain (or changes its years). Charges nothing: the user pays at checkout_url. 409 taken or unavailable.
Εμβέλειες: domains:write · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
name * | string | |
years | integer |
curl -X POST https://nameocean.net/api/v1/cart \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "example.com", "years": 1}'
201 Added
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
items | object[] | |
total | string | USD amount as a decimal string |
currency | string | |
checkout_url | string | The user pays here; nothing is charged through the API |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/cart/{name} #Take a domain out of the cart
Εμβέλειες: domains:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
name * | path | Domain name π.χ. example.com |
curl -X DELETE https://nameocean.net/api/v1/cart/example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Removed
Σφάλματα: 400 · 401 · 403 · 404 · 429
/transfers #List transfers. Transfers in and out, newest first. state: awaiting_payment, paid, in_progress, completed, failed, rejected or cancelled; registrar_status is the registrar's message. ?name= filters by domain.
Εμβέλειες: domains:read
curl -X GET https://nameocean.net/api/v1/transfers \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
transfers | object[] | |
start_url | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/transfers #Transfer a domain in. Pays the transfer from account credit and sends it to the registry with the auth (EPP) code from the current registrar; follow it with GET /transfers or the domain.transfer.* webhooks. If the registry refuses it (state failed: wrong code, still locked), POST again with a new auth_code: it is retried at no charge (202). dry_run: true returns the quote. Over the monthly API spending limit: 402 spend_limit_reached; the transfer waits unpaid at pay_url. Send an Idempotency-Key.
Εμβέλειες: domains:write billing:write · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
name * | string | |
auth_code * | string | |
dry_run | boolean |
curl -X POST https://nameocean.net/api/v1/transfers \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "example.com", "auth_code": "Xy7#k2Lp9q"}'
200 dry_run: the quote
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
dry_run | "True" | |
action | string | One of: register, renew, transfer |
name | string | |
price | string | USD amount as a decimal string |
currency | "USD" | |
credit | string | USD amount as a decimal string |
enough_credit | boolean | |
within_spend_limit | boolean | |
spending | Spending |
201 Paid and requested
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
transfer | Transfer | |
charged | string | USD amount as a decimal string |
credit | string | USD amount as a decimal string |
202 A failed transfer retried with the new code, no charge
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
transfer | Transfer | |
charged | string | USD amount as a decimal string |
retry | boolean |
Σφάλματα: 400 · 401 · 402 · 403 · 404 · 429
/transfers/check #Check a transfer in. Whether the domain can move to NameOcean now (registered, not locked, older than 60 days), its current registrar and the transfer price (one year is added to the expiry). 409 not_supported when the extension is not sold, already_exists when the domain is already at NameOcean.
Εμβέλειες: domains:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
name * | query | π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/transfers/check?name=example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
transferable | boolean | |
reason | string | null | |
registrar | string | null | |
locked | boolean | |
price | string | USD amount as a decimal string |
currency | string | |
years_added | integer | |
auth_code_required | boolean |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/tlds #List extensions. Every extension NameOcean sells, with the one-year register, renew and transfer price.
Εμβέλειες: domains:read
curl -X GET https://nameocean.net/api/v1/tlds \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
tlds | Tld[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/tlds/{tld} #Get an extension. Prices and rules of one extension: registration periods, transfer rules, length limits, IDN and DNSSEC support, redemption period, who can register and required documents.
Εμβέλειες: domains:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
tld * | path | Extension without the dot π.χ. com |
curl -X GET https://nameocean.net/api/v1/tlds/com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
tld | string | |
register_price | string | USD amount as a decimal string |
renew_price | string | USD amount as a decimal string |
transfer_price | string | USD amount as a decimal string |
currency | "USD" | |
registration_years | integer[] | |
transfer | object | |
restricted | boolean | |
min_length | integer | null | |
max_length | integer | null | |
idn | boolean | null | |
dnssec | boolean | null | |
redemption_days | integer | null | |
who_can_register | string | null | |
documents | string | null | |
notes | string | null | |
operator | string | null | |
url | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
Zones and records.
/dns #List DNS zones
Εμβέλειες: dns:read
curl -X GET https://nameocean.net/api/v1/dns \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
zones | object[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns #Create a DNS zone. Free. Point the domain's nameservers to ns1-ns4.nameocean.net to use it.
Εμβέλειες: dns:write · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
name * | string |
curl -X POST https://nameocean.net/api/v1/dns \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "example.com"}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
records | Record[] | |
hint | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/records #List records
Εμβέλειες: dns:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/dns/example.com/records \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
zone | string | |
records | Record[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/records #Add a record
Εμβέλειες: dns:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
type * | string | One of: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS, REDIRECT |
hostname * | string | @ for the zone itself |
ip | string | A (IPv4 or IPv6) |
target | string | CNAME, MX, SRV, PTR, NS, ALIAS, REDIRECT; HTTPS and SVCB ("." for the name itself) |
params | string | HTTPS, SVCB: SvcParams such as alpn=h2,h3 ipv4hint=192.0.2.1 |
text | string | TXT |
priority | integer | MX, SRV, HTTPS, SVCB (0 is AliasMode) |
weight | integer | SRV |
port | integer | SRV |
save_path | boolean | REDIRECT: keep the path |
addresses | string[] | ALIAS: what the target resolves to now (read-only) |
resolved_at | string | ALIAS: last successful lookup (read-only) |
error | string | ALIAS: why the last lookup failed; the previous addresses are still served (read-only) |
key_tag | integer | DS: key tag of the child's DNSKEY |
algorithm | integer | DS: DNSSEC algorithm number, e.g. 13 |
digest_type | integer | DS: 2 is SHA-256 One of: 1, 2, 3, 4 |
digest | string | DS: hex digest of the child's DNSKEY |
tag | string | CAA One of: issue, issuewild, iodef |
flags | integer | CAA: 0 (default) or 128 (critical) One of: 0, 128 |
value | string | CAA: a CA domain (or ; to forbid issuing) for issue and issuewild, a mailto: or https: URL for iodef |
ttl | string | One of: 5m, 15m, 30m, 1h, 1d |
curl -X POST https://nameocean.net/api/v1/dns/example.com/records \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "A", "hostname": "@", "ip": "203.0.113.10", "ttl": "1h"}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
type | string | One of: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS, REDIRECT |
hostname | string | @ for the zone itself |
ip | string | A (IPv4 or IPv6) |
target | string | CNAME, MX, SRV, PTR, NS, ALIAS, REDIRECT; HTTPS and SVCB ("." for the name itself) |
params | string | HTTPS, SVCB: SvcParams such as alpn=h2,h3 ipv4hint=192.0.2.1 |
text | string | TXT |
priority | integer | MX, SRV, HTTPS, SVCB (0 is AliasMode) |
weight | integer | SRV |
port | integer | SRV |
save_path | boolean | REDIRECT: keep the path |
addresses | string[] | ALIAS: what the target resolves to now (read-only) |
resolved_at | string | ALIAS: last successful lookup (read-only) |
error | string | ALIAS: why the last lookup failed; the previous addresses are still served (read-only) |
key_tag | integer | DS: key tag of the child's DNSKEY |
algorithm | integer | DS: DNSSEC algorithm number, e.g. 13 |
digest_type | integer | DS: 2 is SHA-256 One of: 1, 2, 3, 4 |
digest | string | DS: hex digest of the child's DNSKEY |
tag | string | CAA One of: issue, issuewild, iodef |
flags | integer | CAA: 0 (default) or 128 (critical) One of: 0, 128 |
value | string | CAA: a CA domain (or ; to forbid issuing) for issue and issuewild, a mailto: or https: URL for iodef |
ttl | string | One of: 5m, 15m, 30m, 1h, 1d |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/records/{type}/{id} #Get a record
Εμβέλειες: dns:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
type * | path | Record type: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS or REDIRECT π.χ. A |
id * | path | Numeric id π.χ. 42 |
curl -X GET https://nameocean.net/api/v1/dns/example.com/records/A/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
type | string | One of: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS, REDIRECT |
hostname | string | @ for the zone itself |
ip | string | A (IPv4 or IPv6) |
target | string | CNAME, MX, SRV, PTR, NS, ALIAS, REDIRECT; HTTPS and SVCB ("." for the name itself) |
params | string | HTTPS, SVCB: SvcParams such as alpn=h2,h3 ipv4hint=192.0.2.1 |
text | string | TXT |
priority | integer | MX, SRV, HTTPS, SVCB (0 is AliasMode) |
weight | integer | SRV |
port | integer | SRV |
save_path | boolean | REDIRECT: keep the path |
addresses | string[] | ALIAS: what the target resolves to now (read-only) |
resolved_at | string | ALIAS: last successful lookup (read-only) |
error | string | ALIAS: why the last lookup failed; the previous addresses are still served (read-only) |
key_tag | integer | DS: key tag of the child's DNSKEY |
algorithm | integer | DS: DNSSEC algorithm number, e.g. 13 |
digest_type | integer | DS: 2 is SHA-256 One of: 1, 2, 3, 4 |
digest | string | DS: hex digest of the child's DNSKEY |
tag | string | CAA One of: issue, issuewild, iodef |
flags | integer | CAA: 0 (default) or 128 (critical) One of: 0, 128 |
value | string | CAA: a CA domain (or ; to forbid issuing) for issue and issuewild, a mailto: or https: URL for iodef |
ttl | string | One of: 5m, 15m, 30m, 1h, 1d |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/records/{type}/{id} #Change a record. Send only the fields to change.
Εμβέλειες: dns:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
type * | path | Record type: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS or REDIRECT π.χ. A |
id * | path | Numeric id π.χ. 42 |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
type * | string | One of: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS, REDIRECT |
hostname * | string | @ for the zone itself |
ip | string | A (IPv4 or IPv6) |
target | string | CNAME, MX, SRV, PTR, NS, ALIAS, REDIRECT; HTTPS and SVCB ("." for the name itself) |
params | string | HTTPS, SVCB: SvcParams such as alpn=h2,h3 ipv4hint=192.0.2.1 |
text | string | TXT |
priority | integer | MX, SRV, HTTPS, SVCB (0 is AliasMode) |
weight | integer | SRV |
port | integer | SRV |
save_path | boolean | REDIRECT: keep the path |
addresses | string[] | ALIAS: what the target resolves to now (read-only) |
resolved_at | string | ALIAS: last successful lookup (read-only) |
error | string | ALIAS: why the last lookup failed; the previous addresses are still served (read-only) |
key_tag | integer | DS: key tag of the child's DNSKEY |
algorithm | integer | DS: DNSSEC algorithm number, e.g. 13 |
digest_type | integer | DS: 2 is SHA-256 One of: 1, 2, 3, 4 |
digest | string | DS: hex digest of the child's DNSKEY |
tag | string | CAA One of: issue, issuewild, iodef |
flags | integer | CAA: 0 (default) or 128 (critical) One of: 0, 128 |
value | string | CAA: a CA domain (or ; to forbid issuing) for issue and issuewild, a mailto: or https: URL for iodef |
ttl | string | One of: 5m, 15m, 30m, 1h, 1d |
curl -X PATCH https://nameocean.net/api/v1/dns/example.com/records/A/42 \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ip": "203.0.113.20"}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
type | string | One of: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS, REDIRECT |
hostname | string | @ for the zone itself |
ip | string | A (IPv4 or IPv6) |
target | string | CNAME, MX, SRV, PTR, NS, ALIAS, REDIRECT; HTTPS and SVCB ("." for the name itself) |
params | string | HTTPS, SVCB: SvcParams such as alpn=h2,h3 ipv4hint=192.0.2.1 |
text | string | TXT |
priority | integer | MX, SRV, HTTPS, SVCB (0 is AliasMode) |
weight | integer | SRV |
port | integer | SRV |
save_path | boolean | REDIRECT: keep the path |
addresses | string[] | ALIAS: what the target resolves to now (read-only) |
resolved_at | string | ALIAS: last successful lookup (read-only) |
error | string | ALIAS: why the last lookup failed; the previous addresses are still served (read-only) |
key_tag | integer | DS: key tag of the child's DNSKEY |
algorithm | integer | DS: DNSSEC algorithm number, e.g. 13 |
digest_type | integer | DS: 2 is SHA-256 One of: 1, 2, 3, 4 |
digest | string | DS: hex digest of the child's DNSKEY |
tag | string | CAA One of: issue, issuewild, iodef |
flags | integer | CAA: 0 (default) or 128 (critical) One of: 0, 128 |
value | string | CAA: a CA domain (or ; to forbid issuing) for issue and issuewild, a mailto: or https: URL for iodef |
ttl | string | One of: 5m, 15m, 30m, 1h, 1d |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/records/{type}/{id} #Replace a record. Same as PATCH.
Εμβέλειες: dns:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
type * | path | Record type: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS or REDIRECT π.χ. A |
id * | path | Numeric id π.χ. 42 |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
type * | string | One of: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS, REDIRECT |
hostname * | string | @ for the zone itself |
ip | string | A (IPv4 or IPv6) |
target | string | CNAME, MX, SRV, PTR, NS, ALIAS, REDIRECT; HTTPS and SVCB ("." for the name itself) |
params | string | HTTPS, SVCB: SvcParams such as alpn=h2,h3 ipv4hint=192.0.2.1 |
text | string | TXT |
priority | integer | MX, SRV, HTTPS, SVCB (0 is AliasMode) |
weight | integer | SRV |
port | integer | SRV |
save_path | boolean | REDIRECT: keep the path |
addresses | string[] | ALIAS: what the target resolves to now (read-only) |
resolved_at | string | ALIAS: last successful lookup (read-only) |
error | string | ALIAS: why the last lookup failed; the previous addresses are still served (read-only) |
key_tag | integer | DS: key tag of the child's DNSKEY |
algorithm | integer | DS: DNSSEC algorithm number, e.g. 13 |
digest_type | integer | DS: 2 is SHA-256 One of: 1, 2, 3, 4 |
digest | string | DS: hex digest of the child's DNSKEY |
tag | string | CAA One of: issue, issuewild, iodef |
flags | integer | CAA: 0 (default) or 128 (critical) One of: 0, 128 |
value | string | CAA: a CA domain (or ; to forbid issuing) for issue and issuewild, a mailto: or https: URL for iodef |
ttl | string | One of: 5m, 15m, 30m, 1h, 1d |
curl -X PUT https://nameocean.net/api/v1/dns/example.com/records/A/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
type | string | One of: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS, REDIRECT |
hostname | string | @ for the zone itself |
ip | string | A (IPv4 or IPv6) |
target | string | CNAME, MX, SRV, PTR, NS, ALIAS, REDIRECT; HTTPS and SVCB ("." for the name itself) |
params | string | HTTPS, SVCB: SvcParams such as alpn=h2,h3 ipv4hint=192.0.2.1 |
text | string | TXT |
priority | integer | MX, SRV, HTTPS, SVCB (0 is AliasMode) |
weight | integer | SRV |
port | integer | SRV |
save_path | boolean | REDIRECT: keep the path |
addresses | string[] | ALIAS: what the target resolves to now (read-only) |
resolved_at | string | ALIAS: last successful lookup (read-only) |
error | string | ALIAS: why the last lookup failed; the previous addresses are still served (read-only) |
key_tag | integer | DS: key tag of the child's DNSKEY |
algorithm | integer | DS: DNSSEC algorithm number, e.g. 13 |
digest_type | integer | DS: 2 is SHA-256 One of: 1, 2, 3, 4 |
digest | string | DS: hex digest of the child's DNSKEY |
tag | string | CAA One of: issue, issuewild, iodef |
flags | integer | CAA: 0 (default) or 128 (critical) One of: 0, 128 |
value | string | CAA: a CA domain (or ; to forbid issuing) for issue and issuewild, a mailto: or https: URL for iodef |
ttl | string | One of: 5m, 15m, 30m, 1h, 1d |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/records/{type}/{id} #Delete a record
Εμβέλειες: dns:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
type * | path | Record type: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS, HTTPS, SVCB, ALIAS or REDIRECT π.χ. A |
id * | path | Numeric id π.χ. 42 |
curl -X DELETE https://nameocean.net/api/v1/dns/example.com/records/A/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Deleted
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/history #Change history. Every change of a record, newest first: actor (dashboard, API key name, app, system), channel, action (create, update, delete), the record before and after. Page with limit (1-200) and cursor=next_cursor. Records NameOcean keeps for itself (HTTP redirect addresses, ACME challenges) are not listed.
Εμβέλειες: dns:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
limit | query | |
cursor | query |
curl -X GET https://nameocean.net/api/v1/dns/example.com/history?limit=1&cursor=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/history/{id}/revert #Undo a change. A created record is deleted, a deleted one comes back (with a new id), a changed one gets its old values. 409 cannot_revert when the record is gone or was changed after that entry, or when the old values are not valid any more (for example a CNAME now holds the name). The revert is itself in the history.
Εμβέλειες: dns:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
id * | path | Numeric id π.χ. 42 |
curl -X POST https://nameocean.net/api/v1/dns/example.com/history/42/revert \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/dnssec #DNSSEC state. state is off, pending (signing, or waiting for the registrar), active, manual (signed; the owner adds the DS at the registrar) or disabling (key removed, signature stays 2 more days). dnskey and ds are what the registrar needs.
Εμβέλειες: dns:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/dns/example.com/dnssec \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/dnssec #Turn DNSSEC on or off. Signing takes about a minute; the key goes to the registrar when the domain is registered with us and uses our nameservers. Turning it off removes the key at once and keeps the signature for 2 more days. Poll GET for progress.
Εμβέλειες: dns:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
enabled * | boolean |
curl -X PUT https://nameocean.net/api/v1/dns/example.com/dnssec \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled": true}'
200 OK
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/axfr #Secondary nameservers (AXFR). allow_from: addresses or networks that may transfer the zone (AXFR) from ns1-ns4.nameocean.net; notify: addresses that get a NOTIFY from ns1-ns4 after each change; primaries: what your secondary lists as its primary servers (it must accept NOTIFY from their addresses).
Εμβέλειες: dns:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/dns/example.com/axfr \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/axfr #Set the secondary nameservers. Replaces allow_from and/or notify (a key left out keeps its list, [] clears it). allow_from: up to 10 public IP addresses or networks, at most /24 (IPv4) or /48 (IPv6) wide; notify: up to 5 public IP addresses. ns1-ns4 apply it within a minute.
Εμβέλειες: dns:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
allow_from | string[] | |
notify | string[] |
curl -X PUT https://nameocean.net/api/v1/dns/example.com/axfr \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"allow_from": ["203.0.113.53", "2001:db8:53::/64"], "notify": ["203.0.113.53"]}'
200 OK
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/export #Export the zone file. The zone as one file for DNS as code (schema: https://nameocean.net/schemas/dns-zone.json). output=yaml (or Accept: application/yaml) gives YAML, otherwise JSON. The X-Zone-Serial header is the zone serial.
Εμβέλειες: dns:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
output | query | bind: a BIND zone file (text/dns) with the SOA and NS records, to move the zone elsewhere. |
curl -X GET https://nameocean.net/api/v1/dns/example.com/export?output=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
$schema | string | |
zone | string | The zone (domain) this file is for, e.g. example.com. |
ttl | string | Default ttl for records that have none (default 1h). One of: 5m, 15m, 30m, 1h, 1d |
records | object[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/plan #Plan a zone file. Compares a zone file (the whole zone) with the zone and lists what apply would create, change and delete. Changes nothing; needs dns:read. Send JSON, or YAML with Content-Type: application/yaml. prune=false keeps records the file does not list. Records NameOcean keeps for itself (HTTP redirect addresses, ACME challenges) are never listed or touched.
Εμβέλειες: dns:read · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
prune | query | Delete records the file does not list (default). false only adds and changes. |
input | query | bind: the body is a BIND zone file (any text content type). SOA, NS, DNSSEC and unsupported types are skipped and listed in the answer under skipped; ttl values that are not allowed are moved to the nearest one (notes). |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
$schema | string | |
zone | string | The zone (domain) this file is for, e.g. example.com. |
ttl | string | Default ttl for records that have none (default 1h). One of: 5m, 15m, 30m, 1h, 1d |
records * | object[] |
curl -X POST https://nameocean.net/api/v1/dns/example.com/plan?prune=1&input=1 \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"zone": "example.com", "records": [{"name": "@", "type": "A", "value": "203.0.113.10"}, {"name": "www", "type": "CNAME", "value": "@"}, {"name": "@", "type": "MX", "value": "mail.example.com", "priority": 10}, {"name": "@", "type": "TXT", "value": "v=spf1 mx -all", "ttl": "5m"}]}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
zone | string | |
serial | integer | Pass it to apply as ?serial= to refuse a changed zone. |
create | ZoneFileRecord[] | |
update | object[] | |
delete | ZoneFileRecord[] | |
summary | object |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/dns/{zone}/apply #Apply a zone file. Makes the zone match the file in one transaction: deletes, then changes, then new records. When any record is refused nothing is changed (400 apply_failed). Pass the serial from the plan so the call fails with 409 zone_changed if the zone was changed in between.
Εμβέλειες: dns:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
prune | query | Delete records the file does not list (default). false only adds and changes. |
serial | query | The serial a plan returned: 409 zone_changed if the zone is not at it any more. |
input | query | bind: the body is a BIND zone file (any text content type). SOA, NS, DNSSEC and unsupported types are skipped and listed in the answer under skipped; ttl values that are not allowed are moved to the nearest one (notes). |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
$schema | string | |
zone | string | The zone (domain) this file is for, e.g. example.com. |
ttl | string | Default ttl for records that have none (default 1h). One of: 5m, 15m, 30m, 1h, 1d |
records * | object[] |
curl -X POST https://nameocean.net/api/v1/dns/example.com/apply?prune=1&serial=1&input=1 \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"zone": "example.com", "records": [{"name": "@", "type": "A", "value": "203.0.113.10"}, {"name": "www", "type": "CNAME", "value": "@"}, {"name": "@", "type": "MX", "value": "mail.example.com", "priority": 10}, {"name": "@", "type": "TXT", "value": "v=spf1 mx -all", "ttl": "5m"}]}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
zone | string | |
serial | integer | Pass it to apply as ?serial= to refuse a changed zone. |
create | ZoneFileRecord[] | |
update | object[] | |
delete | ZoneFileRecord[] | |
summary | object | |
applied | boolean |
Σφάλματα: 400 · 401 · 403 · 404 · 429
Free wildcard certificates.
/ssl/{zone} #Certificate status
Εμβέλειες: ssl:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/ssl/example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
zone | string | |
status | string | One of: none, issuing, waiting_for_nameservers, active |
auto_renew | boolean | |
expires_on | string | null | |
download_url | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/ssl/{zone} #Issue a certificate. Free wildcard Let's Encrypt certificate; the zone must use NameOcean nameservers. Poll GET until active.
Εμβέλειες: ssl:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
curl -X POST https://nameocean.net/api/v1/ssl/example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
202 Issuing
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
status | string | One of: none, issuing, waiting_for_nameservers, active |
auto_renew | boolean | |
expires_on | string | null | |
download_url | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/ssl/{zone} #Change auto-renew
Εμβέλειες: ssl:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
auto_renew * | boolean |
curl -X PATCH https://nameocean.net/api/v1/ssl/example.com \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"auto_renew": true}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
zone | string | |
status | string | One of: none, issuing, waiting_for_nameservers, active |
auto_renew | boolean | |
expires_on | string | null | |
download_url | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/ssl/{zone}/certificate.zip #Download the certificate. The certificate and its private key as a zip (fullchain.pem, privkey.pem, ...). Needs ssl:read. This is the only way to get the files outside the dashboard: they have no public URL.
Εμβέλειες: ssl:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
zone * | path | DNS zone (domain) name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/ssl/example.com/certificate.zip \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 The zip
Σφάλματα: 400 · 401 · 403 · 404 · 429
App servers: create, power, backups, apps, logs, env, SSH keys, git push deploys, ports and domains.
/servers #List app servers
Εμβέλειες: servers:read
curl -X GET https://nameocean.net/api/v1/servers \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
servers | Server[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers #Create a server. Two steps: without confirm the answer is the plan and its price (confirm_required); with "confirm": true the server is created and billed monthly by the hour. Needs servers:write and billing:write, a confirmed email and a card or credit on the account. The free plan is once per account, ever (403 free_limit_reached), needs a card even with credit (402 card_required) and is free for 12 months (free_until), then moves to the starter plan, billed to the card. Poll GET /servers/{server} until running.
Εμβέλειες: servers:write billing:write · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
plan * | string | |
name | string | |
confirm | boolean | |
app | string | A one-click app from GET /apps (wordpress, n8n, ghost...): it is installed as soon as the server is up. |
curl -X POST https://nameocean.net/api/v1/servers \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"plan": "starter", "name": "api", "confirm": true}'
201 Building
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
name | string | |
status | string | |
plan | string | null | |
default_domain | string | |
free_until | string | null | Free plan: free until then, then moved to the Starter plan and billed. null on paid plans |
cpu | integer | |
memory_mb | integer | |
disk_gb | integer | |
private_ip | string | null | |
ipv6 | string | null | |
ssh | object | |
git_remote | string | null | |
backups | boolean | |
ports | Port[] | |
domains | Binding[] |
Σφάλματα: 400 · 401 · 402 · 403 · 404 · 429
/servers/{server} #Get a server. SSH, git remote, ports and domains.
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
name | string | |
status | string | |
plan | string | null | |
default_domain | string | |
free_until | string | null | Free plan: free until then, then moved to the Starter plan and billed. null on paid plans |
cpu | integer | |
memory_mb | integer | |
disk_gb | integer | |
private_ip | string | null | |
ipv6 | string | null | |
ssh | object | |
git_remote | string | null | |
backups | boolean | |
ports | Port[] | |
domains | Binding[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server} #Rename a server or change its notes. Send only what changes. name is up to 20 letters, digits and hyphens; the container keeps its hostname.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
notes | string |
curl -X PATCH https://nameocean.net/api/v1/servers/3f9a1c2e \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "api"}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
name | string | |
status | string | |
plan | string | null | |
default_domain | string | |
free_until | string | null | Free plan: free until then, then moved to the Starter plan and billed. null on paid plans |
cpu | integer | |
memory_mb | integer | |
disk_gb | integer | |
private_ip | string | null | |
ipv6 | string | null | |
ssh | object | |
git_remote | string | null | |
backups | boolean | |
ports | Port[] | |
domains | Binding[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/plans #List server plans. Plans you can create, with the monthly price.
Εμβέλειες: servers:read
curl -X GET https://nameocean.net/api/v1/servers/plans \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
plans | ServerPlan[] | |
billing | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/apps #List one-click apps. Apps NameOcean installs on a new server (Docker, HTTPS address, admin account created). Install one with POST /servers and {plan, app}.
Εμβέλειες: servers:read
curl -X GET https://nameocean.net/api/v1/apps \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
apps | OneClickApp[] | |
install | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/app #Get the server's app. Version, status (pending, installing, running, updating, failed) and available_version when an update is out.
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/app \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
app | string | |
name | string | |
version | string | |
status | string | One of: pending, installing, running, updating, failed |
message | string | null | |
url | string | |
admin_url | string | |
auto_update | boolean | |
available_version | string | null | |
installed_at | string | null | |
last_update_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/app #Change app settings. auto_update: install new versions of the same major every night (a backup is taken first).
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
auto_update * | boolean |
curl -X PATCH https://nameocean.net/api/v1/servers/3f9a1c2e/app \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"auto_update": false}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
app | string | |
name | string | |
version | string | |
status | string | One of: pending, installing, running, updating, failed |
message | string | null | |
url | string | |
admin_url | string | |
auto_update | boolean | |
available_version | string | null | |
installed_at | string | null | |
last_update_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/app/update #Update the app. Takes a backup, then moves the app to available_version; the previous version is put back when the new one does not start. Sends app.updated or app.update.failed. 409 up_to_date when there is nothing newer.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/app/update \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
app | string | |
name | string | |
version | string | |
status | string | One of: pending, installing, running, updating, failed |
message | string | null | |
url | string | |
admin_url | string | |
auto_update | boolean | |
available_version | string | null | |
installed_at | string | null | |
last_update_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/app/restart #Restart the app. Restarts the app's containers.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/app/restart \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
app | string | |
name | string | |
version | string | |
status | string | One of: pending, installing, running, updating, failed |
message | string | null | |
url | string | |
admin_url | string | |
auto_update | boolean | |
available_version | string | null | |
installed_at | string | null | |
last_update_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/app/retry #Retry a failed install. Keeps whatever was set up already (passwords, data).
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/app/retry \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
app | string | |
name | string | |
version | string | |
status | string | One of: pending, installing, running, updating, failed |
message | string | null | |
url | string | |
admin_url | string | |
auto_update | boolean | |
available_version | string | null | |
installed_at | string | null | |
last_update_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/app/logs #App logs. The app containers' output. ?lines=1-1000.
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/app/logs \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
app | string | |
name | string | |
version | string | |
status | string | One of: pending, installing, running, updating, failed |
message | string | null | |
url | string | |
admin_url | string | |
auto_update | boolean | |
available_version | string | null | |
installed_at | string | null | |
last_update_at | string | null | |
lines | string[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/app/credentials #App admin login. Read from the server's .env; NameOcean keeps no copy. Not available through MCP (secrets never go to the model).
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/app/credentials \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
app | string | |
name | string | |
version | string | |
status | string | One of: pending, installing, running, updating, failed |
message | string | null | |
url | string | |
admin_url | string | |
auto_update | boolean | |
available_version | string | null | |
installed_at | string | null | |
last_update_at | string | null | |
credentials | object |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/start #Start a server
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/start \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
202 Starting
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
status | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/stop #Stop a server. Billing continues while it is stopped.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/stop \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
202 Stopping
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
status | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/restart #Restart a server. Reboots the whole server.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/restart \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
202 Restarting
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
status | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/resize #Resize a server. Move to a bigger plan (upgrades only). Without confirm: the old and new plan and price. With "confirm": true: CPU and memory change live, the disk grows, and the month is billed at the new price from now on. Needs billing:write on a scoped key.
Εμβέλειες: servers:write billing:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
plan * | string | |
confirm | boolean |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/resize \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"plan": "pro", "confirm": true}'
202 Resizing
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
name | string | |
status | string | |
plan | string | null | |
default_domain | string | |
free_until | string | null | Free plan: free until then, then moved to the Starter plan and billed. null on paid plans |
cpu | integer | |
memory_mb | integer | |
disk_gb | integer | |
private_ip | string | null | |
ipv6 | string | null | |
ssh | object | |
git_remote | string | null | |
backups | boolean | |
ports | Port[] | |
domains | Binding[] |
Σφάλματα: 400 · 401 · 402 · 403 · 404 · 429
/servers/{server}/backups #List backups. Free for every server: nightly, plus the ones you start. The last backup of each of the last 7 days is kept (at most 7).
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/backups \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
enabled | boolean | |
backups | object[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/backups #Back up now. Free. Of one day's backups only the newest is kept.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/backups \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
202 Started
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
status | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/backups/restore #Restore a backup. Replaces EVERYTHING on the server with the backup; the server restarts. Can't be undone.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
backup * | string |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/backups/restore \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"backup": "pbs1:backup/ct/101/2026-11-02T03:00:12Z"}'
202 Restoring
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
status | string | |
backup | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/apps #List apps. Supervisor programs on the server and their state (App Servers only).
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/apps \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
apps | App[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/reload #Restart apps. Restarts every supervisor program (re-reading their config and env variables) and reloads nginx.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/reload \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
apps | App[] | |
nginx | string | One of: reloaded, failed |
output | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/logs #Read app logs. The last lines of a supervisor program's output, or of nginx (app=nginx or nginx-access).
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
app | query | Program name; default: the first one |
lines | query | |
stream | query |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/logs?app=1&lines=1&stream=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
app | string | |
stream | string | null | |
lines | string[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/env #List env variables. Variables every app gets (kept on the server in /root/conf/env). Needs servers:write: values are secrets.
Εμβέλειες: servers:write
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/env \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
env | object |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/env #Change env variables. set adds or replaces, unset removes; then the apps restart unless restart is false. Values are one line; they can't start or end with a quote, contain both ' and ", or have a space before # or ;.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
set | object | |
unset | string[] | |
restart | boolean |
curl -X PATCH https://nameocean.net/api/v1/servers/3f9a1c2e/env \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"set": {"DATABASE_URL": "postgres://app@127.0.0.1/app"}, "unset": ["DEBUG"]}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
env | object | |
restarted | boolean |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/ssh-keys #List SSH keys. Keys that can log in as root.
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/ssh-keys \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
keys | SshKey[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/ssh-keys #Add an SSH key. One public key line (~/.ssh/id_ed25519.pub).
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
key * | string |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/ssh-keys \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "ssh-ed25519 AAAAC3Nza... me@laptop"}'
201 Added
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
fingerprint | string | |
added | boolean | |
keys | SshKey[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/ssh-keys/{fingerprint} #Remove an SSH key. NameOcean's own key (managed_by_nameocean) can't be removed.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
fingerprint * | path | SHA256 key fingerprint (with or without the SHA256: prefix) π.χ. SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8 |
curl -X DELETE https://nameocean.net/api/v1/servers/3f9a1c2e/ssh-keys/SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Removed
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/git #Prepare git push. Makes /root/app a push target with NameOcean's post-receive hook (it is on new servers already) and answers the remote URL, the branch it deploys and the current commit.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/git \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
remote | string | |
branch | string | |
commit | string | null | |
custom_hook | boolean |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/deploys #List deploys. The commit in /root/app now and the last deploys.
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/deploys \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
current | object | null | |
deploys | Deploy[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/deploys #Record a deploy. After git push: checks /root/app has commit (409 commit_mismatch otherwise), restarts the apps, reloads nginx, records the deploy and sends server.deployed. nameocean deploy does push + this.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
commit | string | |
branch | string | |
restart | boolean |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/deploys \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"commit": "3f9a1c2", "branch": "main"}'
201 Deployed
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
commit | string | |
short_commit | string | |
message | string | |
branch | string | null | |
status | string | One of: succeeded, failed |
source | string | One of: api, cli, mcp, github |
actor | string | null | GitHub login of the pusher (source github) |
created_at | string | null | |
apps | App[] | |
nginx | string | null | |
output | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/ports #List open ports
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/ports \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | string | |
ports | Port[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/ports #Open a port. The external port is assigned.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
port * | integer | |
protocol | string | One of: tcp, udp |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/ports \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"port": 25565, "protocol": "tcp"}'
201 Opened
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
protocol | string | One of: tcp, udp |
internal_port | integer | |
external_port | integer | |
ipv4 | string | Shared host address and external port, e.g. 65.108.42.142:42480. |
ipv6 | string | The server's own IPv6 and the internal port, e.g. [2a01:db8::17]:5432. Null without IPv6. |
connect_to | string | Only when the port was just opened. |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/ports/{id} #Close a port
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
id * | path | Numeric id π.χ. 42 |
curl -X DELETE https://nameocean.net/api/v1/servers/3f9a1c2e/ports/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Closed
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/domains #List bound domains
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/domains \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | string | |
domains | Binding[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/domains #Bind a domain. Serves a domain or subdomain from the server: DNS records, SSL and the load balancer. Poll GET until status is active.
Εμβέλειες: servers:write dns:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
domain * | string | |
subdomain | string |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/domains \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "app.example.com"}'
201 Setting up
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
domain | string | |
status | string | One of: setting_up, active |
url | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/domains/{id} #Unbind a domain
Εμβέλειες: servers:write dns:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
id * | path | Numeric id π.χ. 42 |
curl -X DELETE https://nameocean.net/api/v1/servers/3f9a1c2e/domains/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Unbound
Σφάλματα: 400 · 401 · 403 · 404 · 429
Mailboxes, aliases and mailing lists on your paid mail domains (Mox).
/email/domains #List mail domains. Domains with paid email hosting. Buying, upgrading and reactivating a plan is done in the dashboard.
Εμβέλειες: email:read
curl -X GET https://nameocean.net/api/v1/email/domains \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domains | MailDomain[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain} #Get a mail domain. With its mailboxes, aliases, mailing lists and the IMAP/SMTP settings.
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/email/domains/example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
active | boolean | |
suspended_reason | string | null | One of: unpaid, ended, admin, None |
plan | string | null | |
storage_gb | integer | |
used_gb | string | Decimal GB, as of the last refresh |
assigned_gb | integer | Sum of the mailboxes' quotas (at most storage_gb) |
max_mailboxes | integer | null | |
mailbox_count | integer | |
expires_at | string | null | |
auto_renew | boolean | |
catchall | string | null | Mailbox that gets mail to unknown addresses |
dashboard | string | |
mailboxes | Mailbox[] | Only on GET /email/domains/{domain} |
aliases | MailAlias[] | |
lists | MailingList[] | |
settings | object | IMAP, SMTP and webmail for mail clients |
sending | SendQuota |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain} #Change mail auto-renew. auto_renew, and/or catchall: the mailbox (username or address) that gets mail to unknown addresses, or null to refuse it.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
auto_renew | boolean | |
catchall | string | null |
curl -X PATCH https://nameocean.net/api/v1/email/domains/example.com \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"catchall": "info"}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
active | boolean | |
suspended_reason | string | null | One of: unpaid, ended, admin, None |
plan | string | null | |
storage_gb | integer | |
used_gb | string | Decimal GB, as of the last refresh |
assigned_gb | integer | Sum of the mailboxes' quotas (at most storage_gb) |
max_mailboxes | integer | null | |
mailbox_count | integer | |
expires_at | string | null | |
auto_renew | boolean | |
catchall | string | null | Mailbox that gets mail to unknown addresses |
dashboard | string | |
mailboxes | Mailbox[] | Only on GET /email/domains/{domain} |
aliases | MailAlias[] | |
lists | MailingList[] | |
settings | object | IMAP, SMTP and webmail for mail clients |
sending | SendQuota |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/dns-check #Check mail DNS. Looks up NS, MX, SPF, DKIM and DMARC now and compares them with what NameOcean mail needs.
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/email/domains/example.com/dns-check \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
ok | boolean | |
checks | object | ns, mx, spf, dkim, dmarc |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/mailboxes #List mailboxes
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/email/domains/example.com/mailboxes \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
mailboxes | Mailbox[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/mailboxes #Create a mailbox. Without a password one is generated. The answer is the only time the password is returned. quota_gb comes out of the plan's storage (default 1).
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
username * | string | |
full_name | string | |
password | string | |
quota_gb | integer |
curl -X POST https://nameocean.net/api/v1/email/domains/example.com/mailboxes \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "info", "full_name": "Info"}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
address | string | |
username | string | |
full_name | string | |
quota_gb | integer | |
used_gb | string | |
aliases | string[] | |
password | string | Only in the answer that set it |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/mailboxes/{username} #Get a mailbox
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
username * | path | Mailbox name, the part before @ (or the full address) π.χ. info |
curl -X GET https://nameocean.net/api/v1/email/domains/example.com/mailboxes/info \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
address | string | |
username | string | |
full_name | string | |
quota_gb | integer | |
used_gb | string | |
aliases | string[] | |
password | string | Only in the answer that set it |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/mailboxes/{username} #Change a mailbox. Send only what changes.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
username * | path | Mailbox name, the part before @ (or the full address) π.χ. info |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
full_name | string | |
quota_gb | integer |
curl -X PATCH https://nameocean.net/api/v1/email/domains/example.com/mailboxes/info \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"quota_gb": 5}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
address | string | |
username | string | |
full_name | string | |
quota_gb | integer | |
used_gb | string | |
aliases | string[] | |
password | string | Only in the answer that set it |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/mailboxes/{username} #Delete a mailbox. Deletes the mailbox, all its mail and its aliases. This can't be undone.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
username * | path | Mailbox name, the part before @ (or the full address) π.χ. info |
curl -X DELETE https://nameocean.net/api/v1/email/domains/example.com/mailboxes/info \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Deleted
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/mailboxes/{username}/password #Set a mailbox password. Sets the password you send, or generates one when you send none, and returns it.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
username * | path | Mailbox name, the part before @ (or the full address) π.χ. info |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
password | string |
curl -X POST https://nameocean.net/api/v1/email/domains/example.com/mailboxes/info/password \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
address | string | |
username | string | |
full_name | string | |
quota_gb | integer | |
used_gb | string | |
aliases | string[] | |
password | string | Only in the answer that set it |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/aliases #List mail aliases
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/email/domains/example.com/aliases \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
aliases | MailAlias[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/aliases #Add a mail alias. Mail to alias is delivered to the mailbox. Both are on the same domain; send the full address or the part before @.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
alias * | string | |
mailbox * | string |
curl -X POST https://nameocean.net/api/v1/email/domains/example.com/aliases \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"alias": "sales", "mailbox": "info"}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
address | string | |
mailbox | string | The mailbox that receives it |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/aliases/{alias} #Delete a mail alias
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
alias * | path | Alias address, or the part before @ π.χ. sales |
curl -X DELETE https://nameocean.net/api/v1/email/domains/example.com/aliases/sales \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Deleted
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/lists #List mailing lists
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/email/domains/example.com/lists \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
lists | MailingList[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/lists #Create a mailing list. Mail to the list's address goes to every member (mailboxes of the domain).
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
address * | string | |
name | string | |
members | string[] |
curl -X POST https://nameocean.net/api/v1/email/domains/example.com/lists \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"address": "team", "members": ["info", "sales"]}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
address | string | |
name | string | |
members | string[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/lists/{address} #Get a mailing list
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
address * | path | A mailing list address (or the part before @), or an email address for suppressions π.χ. team |
curl -X GET https://nameocean.net/api/v1/email/domains/example.com/lists/team \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
address | string | |
name | string | |
members | string[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/lists/{address} #Change a mailing list. members replaces the whole member list.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
address * | path | A mailing list address (or the part before @), or an email address for suppressions π.χ. team |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
members | string[] |
curl -X PATCH https://nameocean.net/api/v1/email/domains/example.com/lists/team \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"members": ["info"]}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
address | string | |
name | string | |
members | string[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/lists/{address} #Delete a mailing list
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
address * | path | A mailing list address (or the part before @), or an email address for suppressions π.χ. team |
curl -X DELETE https://nameocean.net/api/v1/email/domains/example.com/lists/team \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Deleted
Σφάλματα: 400 · 401 · 403 · 404 · 429
Free forwarding and mail-to-webhook for domains registered at NameOcean.
/email/forwarding #List forwarding domains. Every active domain registered in your account, with whether forwarding is on and, when off, why it can't be.
Εμβέλειες: email:read
curl -X GET https://nameocean.net/api/v1/email/forwarding \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domains | Forwarding[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain} #Get forwarding. Aliases and mail webhooks.
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/email/forwarding/example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
active | boolean | |
disabled_reason | string | null | |
problems | string[] | Why it can't be turned on, when it is off |
alias_count | integer | |
webhook_count | integer | |
mx | string | The MX host forwarding writes into the zone |
max_aliases | integer | |
max_webhooks | integer | |
daily_limit | integer | Mails forwarded per day for this domain (lower in its first 7 days) |
aliases | ForwardAlias[] | |
webhooks | MailWebhook[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain} #Turn forwarding on. Free for domains registered at NameOcean that use NameOcean nameservers. Writes the MX record; other MX records are removed only with replace_mx: true (otherwise 409 mx_records_exist).
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
replace_mx | boolean |
curl -X POST https://nameocean.net/api/v1/email/forwarding/example.com \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"replace_mx": false}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
active | boolean | |
disabled_reason | string | null | |
problems | string[] | Why it can't be turned on, when it is off |
alias_count | integer | |
webhook_count | integer | |
mx | string | The MX host forwarding writes into the zone |
max_aliases | integer | |
max_webhooks | integer | |
daily_limit | integer | Mails forwarded per day for this domain (lower in its first 7 days) |
aliases | ForwardAlias[] | |
webhooks | MailWebhook[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain} #Turn forwarding off. Removes the MX record; aliases are kept for when it is turned on again.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X DELETE https://nameocean.net/api/v1/email/forwarding/example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Turned off
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/aliases #List forwarding aliases
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/email/forwarding/example.com/aliases \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
aliases | ForwardAlias[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/aliases #Add a forwarding alias. localpart@domain forwards to `to`; * forwards every address without its own alias. An address not confirmed yet gets a mail with a link and a code; mail is forwarded once it is confirmed.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
localpart * | string | |
to * | string |
curl -X POST https://nameocean.net/api/v1/email/forwarding/example.com/aliases \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"localpart": "hello", "to": "me@gmail.com"}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
localpart | string | * = every address without its own alias |
address | string | |
catch_all | boolean | |
to | string | |
to_status | string | One of: pending, confirmed, refused |
active | boolean | |
note | string | Only when just added: what happens next |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/aliases/{localpart} #Delete a forwarding alias. Use * (%2A) for the catch-all.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
localpart * | path | The part before @, or * (%2A) for the catch-all π.χ. hello |
curl -X DELETE https://nameocean.net/api/v1/email/forwarding/example.com/aliases/hello \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Deleted
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/targets #List forwarding targets. Addresses you forward to and whether they confirmed.
Εμβέλειες: email:read
curl -X GET https://nameocean.net/api/v1/email/forwarding/targets \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
targets | ForwardTarget[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/targets/{id}/verify #Confirm a forwarding target. The 6-digit code from the confirmation mail.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
code * | string |
curl -X POST https://nameocean.net/api/v1/email/forwarding/targets/42/verify \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code": "123456"}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
email | string | |
status | string | One of: pending, confirmed, refused |
confirmed_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/targets/{id}/resend #Resend a confirmation code. At most 3 a day per address.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
curl -X POST https://nameocean.net/api/v1/email/forwarding/targets/42/resend \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
email | string | |
status | string | One of: pending, confirmed, refused |
confirmed_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/messages #List forwarded mail. The last 30 days, newest first: headers and what happened, never the body.
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
limit | query | |
cursor | query | |
status | query |
curl -X GET https://nameocean.net/api/v1/email/forwarding/example.com/messages?limit=1&cursor=1&status=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
messages | ForwardedMessage[] | |
next_cursor | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/messages/{message_id}/release #Forward held mail. Forwards a message held as spam, over the daily limit or failed (releasable: true).
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
message_id * | path | Message id (uuid) π.χ. 6f1c2a4e-8b3d-4f5a-9c7e-1d2b3a4c5e6f |
curl -X POST https://nameocean.net/api/v1/email/forwarding/example.com/messages/6f1c2a4e-8b3d-4f5a-9c7e-1d2b3a4c5e6f/release \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
202 Forwarding
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | string | |
received_at | string | null | |
to | string | |
forwarded_to | string | null | |
from | string | null | |
subject | string | null | |
size | integer | |
status | string | One of: forwarded, spam, quota, release_requested, released, bounced, loop, failed |
spam_score | number | null | |
releasable | boolean | |
smtp_response | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/webhooks #List mail webhooks. Addresses whose mail is posted to your URL as JSON, with their signing secrets.
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/email/forwarding/example.com/webhooks \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
webhooks | MailWebhook[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/webhooks #Add a mail webhook. Mail to localpart@domain is posted to url as JSON (an email.received event). Open after a short review (403 not_approved until then); ask for it in the dashboard.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
localpart * | string | |
url * | string |
curl -X POST https://nameocean.net/api/v1/email/forwarding/example.com/webhooks \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"localpart": "inbound", "url": "https://example.com/hooks/mail"}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
localpart | string | |
address | string | |
catch_all | boolean | |
url | string | |
active | boolean | |
created_at | string | null | |
failed_streak | integer | Mails in a row that could not be posted; 5 turn the webhook off |
last_error | string | null | |
disabled_reason | string | null | Why it was turned off (active: false) |
secret | string | whsec_...; signs X-NameOcean-Signature |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/webhooks/{localpart} #Delete a mail webhook
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
localpart * | path | The part before @, or * (%2A) for the catch-all π.χ. hello |
curl -X DELETE https://nameocean.net/api/v1/email/forwarding/example.com/webhooks/hello \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Deleted
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/webhooks/{localpart}/rotate-secret #Rotate a mail webhook secret. The old secret stops working at once.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
localpart * | path | The part before @, or * (%2A) for the catch-all π.χ. hello |
curl -X POST https://nameocean.net/api/v1/email/forwarding/example.com/webhooks/hello/rotate-secret \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
localpart | string | |
address | string | |
catch_all | boolean | |
url | string | |
active | boolean | |
created_at | string | null | |
failed_streak | integer | Mails in a row that could not be posted; 5 turn the webhook off |
last_error | string | null | |
disabled_reason | string | null | Why it was turned off (active: false) |
secret | string | whsec_...; signs X-NameOcean-Signature |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/webhooks/{localpart}/test #Send a test mail to a webhook. Posts a made-up email.received payload (with test: true) now, signed like real mail, whether or not the webhook is on. Does not change failed_streak.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
localpart * | path | The part before @, or * (%2A) for the catch-all π.χ. hello |
curl -X POST https://nameocean.net/api/v1/email/forwarding/example.com/webhooks/hello/test \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
ok | boolean | |
detail | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/forwarding/{domain}/webhooks/{localpart}/enable #Turn a mail webhook on again. After 5 mails in a row could not be posted the webhook is turned off (active: false) and its owner is mailed. This turns it on again with a clean failed_streak.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
localpart * | path | The part before @, or * (%2A) for the catch-all π.χ. hello |
curl -X POST https://nameocean.net/api/v1/email/forwarding/example.com/webhooks/hello/enable \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
localpart | string | |
address | string | |
catch_all | boolean | |
url | string | |
active | boolean | |
created_at | string | null | |
failed_streak | integer | Mails in a row that could not be posted; 5 turn the webhook off |
last_error | string | null | |
disabled_reason | string | null | Why it was turned off (active: false) |
secret | string | whsec_...; signs X-NameOcean-Signature |
Σφάλματα: 400 · 401 · 403 · 404 · 429
Transactional email from your mailboxes, delivery events and suppression lists.
/email/send #Send an email. Sends from any address of one of your sending domains, or from a mailbox or alias of one of your mail domains; SPF and DKIM must be published (else 409 dns_not_ready). Accepted for delivery (202): each recipient gets an id; what happens next arrives as email.delivered, email.delayed, email.bounced or email.suppressed events and in GET /email/sent. Needs the email:send scope. Attachments with content_id are inline (cid:). Limits: 50 recipients, 10 MB, the account's monthly quota (1,000 free; see GET /email/sending; 429 quota_exceeded), 100 a day for a domain's first 14 days, 60 recipients a minute per account (429 rate_limited; SMTP gets 451 for the same limit).
Εμβέλειες: email:send · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
from * | string | |
to * | string[] | |
cc | string[] | |
bcc | string[] | |
reply_to | string | |
subject * | string | |
text | string | |
html | string | |
attachments | object[] | |
headers | object | |
metadata | object | Up to 10 keys; comes back in events and the log |
send_at | string | Up to 7 days ahead |
curl -X POST https://nameocean.net/api/v1/email/send \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"from": "Shop <info@example.com>", "to": ["alice@example.org"], "subject": "Order 1042 shipped", "text": "Your order is on its way.", "metadata": {"order": "1042"}}'
202 Accepted
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
message_id | string | |
from | string | |
subject | string | |
recipients | object[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/sent #List sent email. One entry per recipient, newest first, for 30 days.
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain | query | |
to | query | |
message_id | query | |
status | query | |
limit | query | |
cursor | query |
curl -X GET https://nameocean.net/api/v1/email/sent?domain=1&to=1&message_id=1&status=1&limit=1&cursor=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
emails | SentEmail[] | |
next_cursor | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/sent/{sent_id} #Get a sent email
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
sent_id * | path | Sent email id, from POST /email/send π.χ. 6f1c2a4e-8b3d-4f5a-9c7e-1d2b3a4c5e6f |
curl -X GET https://nameocean.net/api/v1/email/sent/6f1c2a4e-8b3d-4f5a-9c7e-1d2b3a4c5e6f \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | string | |
message_id | string | |
domain | string | |
source | string | smtp: sent over a sending domain's SMTP login One of: api, smtp |
from | string | |
to | string | |
kind | string | One of: to, cc, bcc |
subject | string | |
status | string | One of: queued, delivered, delayed, failed, suppressed |
smtp_code | integer | null | |
smtp_enhanced_code | string | null | |
error | string | null | |
metadata | object | |
created_at | string | null | |
updated_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/sending #Get sending usage and pricing. This month's emails used and free (API and sending-domain SMTP together; mail sent from mailboxes with mail apps doesn't count), pay as you go, the amount so far and the prices.
Εμβέλειες: email:read
curl -X GET https://nameocean.net/api/v1/email/sending \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
period_start | string | null | |
period_end | string | null | |
free | integer | |
used | integer | |
free_remaining | integer | |
paid_count | integer | Emails this month over the free ones |
amount | string | What this month costs so far, USD; charged after it ends |
pay_as_you_go | boolean | Keeps sending past the free emails |
owed | boolean | The balance is below zero: only the free emails go out |
spend_cap | string | null | |
log_days | integer | |
blocked | boolean | Out of quota: the API refuses mail and SMTP logins of sending domains are held |
tiers | object[] | Graduated prices: {from, to (null: no end), per_1k} |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/sending #Turn pay as you go on or off, set the spend cap. pay_as_you_go: keep sending past the free emails, charged after the month ends (turning it on needs a card or funds on the account: 402 payment_method_required otherwise). spend_cap: at most this many USD a month, or null for no cap.
Εμβέλειες: email:write · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
pay_as_you_go | boolean | |
spend_cap | string | number | null |
curl -X PATCH https://nameocean.net/api/v1/email/sending \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"pay_as_you_go": true, "spend_cap": "50"}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
period_start | string | null | |
period_end | string | null | |
free | integer | |
used | integer | |
free_remaining | integer | |
paid_count | integer | Emails this month over the free ones |
amount | string | What this month costs so far, USD; charged after it ends |
pay_as_you_go | boolean | Keeps sending past the free emails |
owed | boolean | The balance is below zero: only the free emails go out |
spend_cap | string | null | |
log_days | integer | |
blocked | boolean | Out of quota: the API refuses mail and SMTP logins of sending domains are held |
tiers | object[] | Graduated prices: {from, to (null: no end), per_1k} |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/sending-domains #List sending domains
Εμβέλειες: email:read
curl -X GET https://nameocean.net/api/v1/email/sending-domains \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domains | SendingDomain[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/sending-domains #Add a sending domain. Send from any address of a domain without email hosting, over the API and SMTP. The answer has the SMTP password (only here and on reset). On NameOcean DNS the SPF, DKIM and DMARC records are written for you; elsewhere GET the domain for the records to add. The free plan has 1 sending domain. 409 has_email_hosting for a domain with email hosting: send from its mailboxes.
Εμβέλειες: email:write · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
domain * | string |
curl -X POST https://nameocean.net/api/v1/email/sending-domains \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "example.com"}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
status | string | pending: SPF and DKIM are not published yet One of: pending, active, suspended |
nameocean_dns | boolean | true: the records are written for you |
smtp | object | |
verified_at | string | null | |
created_at | string | null | |
dns | object | Detail only: spf, dkim and dmarc with the records to enter, what is live and done |
sending | object | Detail only: the account's quota and the domain's daily cap while new |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/sending-domains/{domain} #Get a sending domain. With the DNS records to publish and whether they are live.
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/email/sending-domains/example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
status | string | pending: SPF and DKIM are not published yet One of: pending, active, suspended |
nameocean_dns | boolean | true: the records are written for you |
smtp | object | |
verified_at | string | null | |
created_at | string | null | |
dns | object | Detail only: spf, dkim and dmarc with the records to enter, what is live and done |
sending | object | Detail only: the account's quota and the domain's daily cap while new |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/sending-domains/{domain} #Delete a sending domain. Its SMTP login stops working.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X DELETE https://nameocean.net/api/v1/email/sending-domains/example.com \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Deleted
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/sending-domains/{domain}/verify #Check a sending domain's DNS. Looks up SPF, DKIM and DMARC now; with SPF and DKIM live the domain becomes active.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X POST https://nameocean.net/api/v1/email/sending-domains/example.com/verify \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
status | string | pending: SPF and DKIM are not published yet One of: pending, active, suspended |
nameocean_dns | boolean | true: the records are written for you |
smtp | object | |
verified_at | string | null | |
created_at | string | null | |
dns | object | Detail only: spf, dkim and dmarc with the records to enter, what is live and done |
sending | object | Detail only: the account's quota and the domain's daily cap while new |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/sending-domains/{domain}/smtp-password #Reset the SMTP password. A new password for the domain's SMTP login (and API sending); the old one stops working.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X POST https://nameocean.net/api/v1/email/sending-domains/example.com/smtp-password \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
status | string | pending: SPF and DKIM are not published yet One of: pending, active, suspended |
nameocean_dns | boolean | true: the records are written for you |
smtp | object | |
verified_at | string | null | |
created_at | string | null | |
dns | object | Detail only: spf, dkim and dmarc with the records to enter, what is live and done |
sending | object | Detail only: the account's quota and the domain's daily cap while new |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/suppressions #List suppressed addresses. Addresses the domain's mailboxes no longer send to, after a hard bounce or repeated failures.
Εμβέλειες: email:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
curl -X GET https://nameocean.net/api/v1/email/domains/example.com/suppressions \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
suppressions | Suppression[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/suppressions #Suppress an address. Stop sending to an address from every mailbox of the domain (e.g. after a complaint or an unsubscribe).
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
address * | string | |
reason | string |
curl -X POST https://nameocean.net/api/v1/email/domains/example.com/suppressions \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"address": "alice@example.org"}'
201 Added
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
domain | string | |
suppressions | Suppression[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/email/domains/{domain}/suppressions/{address} #Unsuppress an address. Mail to the address is sent again.
Εμβέλειες: email:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
domain * | path | Domain name π.χ. example.com |
address * | path | A mailing list address (or the part before @), or an email address for suppressions π.χ. team |
curl -X DELETE https://nameocean.net/api/v1/email/domains/example.com/suppressions/team \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Removed
Σφάλματα: 400 · 401 · 403 · 404 · 429
Uptime monitors (HTTP, TCP, push heartbeats) checked from several locations, and their incidents.
/monitors #List monitors. With status and uptime over 24 hours, 7 and 30 days.
Εμβέλειες: monitors:read
curl -X GET https://nameocean.net/api/v1/monitors \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
monitors | Monitor[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/monitors #Add a monitor. Checked every minute (or 5) from several locations; down when most of them fail. Up to 20 per account. Alerts go to the account's Telegram/Slack/Discord channels and subscribed browsers unless channels is given. notify_email costs $1/month per monitor and needs billing:write on a scoped key.
Εμβέλειες: monitors:write · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
name * | string | |
kind | string | One of: http, tcp, push |
target | string | https://... (http) or host:port (tcp); not for push |
interval | integer | One of: 60, 300 |
timeout | integer | |
retries | integer | |
expected_status | integer[] | |
keyword | string | |
keyword_absent | boolean | |
follow_redirects | boolean | |
ip | string | |
notify_email | boolean | |
notify_browser | boolean | |
channels | integer[] | Alert channel ids (set up in the dashboard) |
remind_every | integer | Minutes; 0 never One of: 0, 30, 60, 240 |
curl -X POST https://nameocean.net/api/v1/monitors \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Shop", "target": "https://example.com/health", "keyword": "ok"}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
name | string | |
kind | string | One of: http, tcp, push |
target | string | null | URL (http), host:port (tcp), null (push) |
status | string | One of: pending, up, down, paused |
active | boolean | |
interval | integer | Seconds between checks One of: 60, 300 |
status_changed_at | string | null | |
last_checked_at | string | null | |
last_error | string | null | |
uptime_24h | number | null | Percent |
uptime_7d | number | null | |
uptime_30d | number | null | |
avg_response_ms_24h | integer | null | |
ssl_expires_at | string | null | |
server_id | integer | null | The NameOcean server it watches, if any |
push_url | string | null | push monitors: GET or POST it from your job; ?status=down&msg=... reports a failure |
timeout | integer | Detail only. Seconds, 1-30 |
retries | integer | Detail only. Failures in a row before a location counts it down |
expected_status | integer[] | Detail only. Empty: any 2xx/3xx |
keyword | string | null | |
keyword_absent | boolean | |
follow_redirects | boolean | |
ip | string | null | Connect to this address, with the URL's host name |
alerts | object | |
locations | object[] | |
incidents | Incident[] | Detail only. The last 10 |
created_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/monitors/{id} #Get a monitor. Settings, alerts, each location's last result and recent incidents.
Εμβέλειες: monitors:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
curl -X GET https://nameocean.net/api/v1/monitors/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
name | string | |
kind | string | One of: http, tcp, push |
target | string | null | URL (http), host:port (tcp), null (push) |
status | string | One of: pending, up, down, paused |
active | boolean | |
interval | integer | Seconds between checks One of: 60, 300 |
status_changed_at | string | null | |
last_checked_at | string | null | |
last_error | string | null | |
uptime_24h | number | null | Percent |
uptime_7d | number | null | |
uptime_30d | number | null | |
avg_response_ms_24h | integer | null | |
ssl_expires_at | string | null | |
server_id | integer | null | The NameOcean server it watches, if any |
push_url | string | null | push monitors: GET or POST it from your job; ?status=down&msg=... reports a failure |
timeout | integer | Detail only. Seconds, 1-30 |
retries | integer | Detail only. Failures in a row before a location counts it down |
expected_status | integer[] | Detail only. Empty: any 2xx/3xx |
keyword | string | null | |
keyword_absent | boolean | |
follow_redirects | boolean | |
ip | string | null | Connect to this address, with the URL's host name |
alerts | object | |
locations | object[] | |
incidents | Incident[] | Detail only. The last 10 |
created_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/monitors/{id} #Change a monitor. Send only what changes. active: false pauses it, true resumes it.
Εμβέλειες: monitors:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
name | string | |
kind | string | One of: http, tcp, push |
target | string | https://... (http) or host:port (tcp); not for push |
interval | integer | One of: 60, 300 |
timeout | integer | |
retries | integer | |
expected_status | integer[] | |
keyword | string | |
keyword_absent | boolean | |
follow_redirects | boolean | |
ip | string | |
notify_email | boolean | |
notify_browser | boolean | |
channels | integer[] | Alert channel ids (set up in the dashboard) |
remind_every | integer | Minutes; 0 never One of: 0, 30, 60, 240 |
active | boolean |
curl -X PATCH https://nameocean.net/api/v1/monitors/42 \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"active": false}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
name | string | |
kind | string | One of: http, tcp, push |
target | string | null | URL (http), host:port (tcp), null (push) |
status | string | One of: pending, up, down, paused |
active | boolean | |
interval | integer | Seconds between checks One of: 60, 300 |
status_changed_at | string | null | |
last_checked_at | string | null | |
last_error | string | null | |
uptime_24h | number | null | Percent |
uptime_7d | number | null | |
uptime_30d | number | null | |
avg_response_ms_24h | integer | null | |
ssl_expires_at | string | null | |
server_id | integer | null | The NameOcean server it watches, if any |
push_url | string | null | push monitors: GET or POST it from your job; ?status=down&msg=... reports a failure |
timeout | integer | Detail only. Seconds, 1-30 |
retries | integer | Detail only. Failures in a row before a location counts it down |
expected_status | integer[] | Detail only. Empty: any 2xx/3xx |
keyword | string | null | |
keyword_absent | boolean | |
follow_redirects | boolean | |
ip | string | null | Connect to this address, with the URL's host name |
alerts | object | |
locations | object[] | |
incidents | Incident[] | Detail only. The last 10 |
created_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/monitors/{id} #Delete a monitor
Εμβέλειες: monitors:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
curl -X DELETE https://nameocean.net/api/v1/monitors/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Deleted
Σφάλματα: 400 · 401 · 403 · 404 · 429
/monitors/{id}/incidents #List incidents. Down periods, newest first.
Εμβέλειες: monitors:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
limit | query |
curl -X GET https://nameocean.net/api/v1/monitors/42/incidents?limit=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
monitor | integer | |
incidents | Incident[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/status-pages #List status pages
Εμβέλειες: monitors:read
curl -X GET https://nameocean.net/api/v1/status-pages \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
status_pages | StatusPage[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/status-pages #Add a status page. A public page with the chosen monitors' state, 90-day uptime and recent outages (never their URLs or errors). Up to 5 per account. monitors defaults to all of the account's monitors, published to true. With domain (e.g. status.example.com) the answer lists the DNS records to add; the certificate is free.
Εμβέλειες: monitors:write · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
title * | string | |
slug * | string | 3-40 lowercase letters, digits and hyphens |
description | string | |
monitors | integer[] | |
published | boolean | |
domain | string | null | A custom domain like status.example.com; null removes it |
curl -X POST https://nameocean.net/api/v1/status-pages \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Acme status", "slug": "acme", "monitors": [12, 13]}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
slug | string | The address: https://nameocean.net/status/<slug>/ |
title | string | |
description | string | null | |
published | boolean | false: only the owner (signed in) sees it |
url | string | |
monitors | integer[] | Monitor ids shown on the page |
domain | object | null | The custom domain, or null |
overall | string | Detail only One of: up, partial, down, unknown |
rows | object[] | Detail only. What visitors see per monitor |
created_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/status-pages/{id} #Get a status page. With what visitors see now (overall, rows).
Εμβέλειες: monitors:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
curl -X GET https://nameocean.net/api/v1/status-pages/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
slug | string | The address: https://nameocean.net/status/<slug>/ |
title | string | |
description | string | null | |
published | boolean | false: only the owner (signed in) sees it |
url | string | |
monitors | integer[] | Monitor ids shown on the page |
domain | object | null | The custom domain, or null |
overall | string | Detail only One of: up, partial, down, unknown |
rows | object[] | Detail only. What visitors see per monitor |
created_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/status-pages/{id} #Change a status page. Send only what changes. domain: a host name sets the custom domain (the checks start over), null removes it.
Εμβέλειες: monitors:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
title | string | |
slug | string | 3-40 lowercase letters, digits and hyphens |
description | string | |
monitors | integer[] | |
published | boolean | |
domain | string | null | A custom domain like status.example.com; null removes it |
curl -X PATCH https://nameocean.net/api/v1/status-pages/42 \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "status.example.com"}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
slug | string | The address: https://nameocean.net/status/<slug>/ |
title | string | |
description | string | null | |
published | boolean | false: only the owner (signed in) sees it |
url | string | |
monitors | integer[] | Monitor ids shown on the page |
domain | object | null | The custom domain, or null |
overall | string | Detail only One of: up, partial, down, unknown |
rows | object[] | Detail only. What visitors see per monitor |
created_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/status-pages/{id} #Delete a status page
Εμβέλειες: monitors:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
curl -X DELETE https://nameocean.net/api/v1/status-pages/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Deleted
Σφάλματα: 400 · 401 · 403 · 404 · 429
/status-pages/{id}/check-domain #Check a status page domain's DNS. We check every 5 minutes anyway; this checks now, only while domain.status is pending (429 when called again within 30 seconds or 10 minutes after a certificate request). When the records are right the certificate is requested and the page usually goes live within a few minutes.
Εμβέλειες: monitors:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
curl -X POST https://nameocean.net/api/v1/status-pages/42/check-domain \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
checked | boolean |
Σφάλματα: 400 · 401 · 403 · 404 · 429
Connect a GitHub repository to an app server: every push to its branch deploys it.
/github/installations #List GitHub installations. GitHub accounts and organizations where the NameOcean app is installed and connected to your account. install_url adds one (open it in a browser while signed in to NameOcean).
Εμβέλειες: servers:read
curl -X GET https://nameocean.net/api/v1/github/installations \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
installations | GitHubInstallation[] | |
install_url | string | |
note | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/github/installations/{installation_id}/repos #List repositories. Repositories the installation can see; q filters by name.
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
installation_id * | path | GitHub installation id (GET /github/installations) π.χ. 61234567 |
q | query | Part of owner/repo. |
curl -X GET https://nameocean.net/api/v1/github/installations/61234567/repos?q=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
installation | integer | |
account | string | |
install_url | string | |
repos | object[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/github #Show the GitHub connection. 404 not_connected when there is none.
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/github \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
installation_id | integer | |
account | string | |
repo | string | |
repo_id | integer | |
repo_url | string | |
branch | string | |
auto_deploy | boolean | |
active | boolean | |
inactive_reason | string | null | |
deploying | string | null | commit being deployed |
last_deploy | ||
connected_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/github #Connect a GitHub repository. Pushes to branch (default: the repo's default branch) deploy the server: it fetches the commit, runs .nameocean/deploy.sh and restarts the apps (not when deploy.sh fails). Deploys the branch head once now (deploy: false skips that). Sends server.github_connected. Replaces an earlier connection.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
installation_id * | integer | |
repo * | string | integer | owner/repo or the repo id |
branch | string | |
auto_deploy | boolean | |
deploy | boolean |
curl -X PUT https://nameocean.net/api/v1/servers/3f9a1c2e/github \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"installation_id": 61234567, "repo": "acme/site", "branch": "main"}'
201 Connected
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
installation_id | integer | |
account | string | |
repo | string | |
repo_id | integer | |
repo_url | string | |
branch | string | |
auto_deploy | boolean | |
active | boolean | |
inactive_reason | string | null | |
deploying | string | null | commit being deployed |
last_deploy | ||
connected_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/github #Change the GitHub connection. branch and auto_deploy. A new branch is not deployed until its next push or POST .../github/deploy.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
branch | string | |
auto_deploy | boolean |
curl -X PATCH https://nameocean.net/api/v1/servers/3f9a1c2e/github \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"auto_deploy": false}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
installation_id | integer | |
account | string | |
repo | string | |
repo_id | integer | |
repo_url | string | |
branch | string | |
auto_deploy | boolean | |
active | boolean | |
inactive_reason | string | null | |
deploying | string | null | commit being deployed |
last_deploy | ||
connected_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/github #Disconnect GitHub. Pushes stop deploying; the server keeps its last deploy. The app stays installed on GitHub. Sends server.github_disconnected.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X DELETE https://nameocean.net/api/v1/servers/3f9a1c2e/github \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Disconnected
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/github/deploy #Deploy from GitHub now. Deploys the branch head, or commit (a full hash) of the connected repo, in the background. The result is in GET /servers/{server}/deploys and the server.deployed event.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
commit | string |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/github/deploy \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
202 Queued
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
repo | string | |
branch | string | |
commit | string | |
queued | boolean | |
note | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
Answer /.well-known/search on a server's domains: NameOcean crawls its public pages and answers AI agents' searches at the edge. Free up to 500 pages.
/servers/{server}/search #Show search for agents. Whether the server's domains answer /.well-known/search, the index (free, up to 500 pages) and the last crawl.
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/search \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
enabled | boolean | |
inject_tags | boolean | |
page_limit | integer | |
endpoints | string[] | /.well-known/search on each domain |
pages | object | |
crawling | boolean | |
last_crawl | object | |
queries | integer | |
enabled_at | string | null | |
docs | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/search #Turn on search for agents. NameOcean crawls the server's public pages (sitemaps, else links from the home page; robots.txt, Content-Signal and noindex respected; through the server's own edge) and its domains answer GET|QUERY /.well-known/search at the edge within 5 minutes. The app's database is never read. inject_tags: the edge adds the agent:* discovery tags to its HTML. 409 endpoint_exists when the app answers /.well-known/search itself (force: true overrides). Sends server.search.indexed after the first crawl. On already: changes inject_tags.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
inject_tags | boolean | |
force | boolean |
curl -X PUT https://nameocean.net/api/v1/servers/3f9a1c2e/search \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"inject_tags": true}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
enabled | boolean | |
inject_tags | boolean | |
page_limit | integer | |
endpoints | string[] | /.well-known/search on each domain |
pages | object | |
crawling | boolean | |
last_crawl | object | |
queries | integer | |
enabled_at | string | null | |
docs | string |
201 Turned on
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
enabled | boolean | |
inject_tags | boolean | |
page_limit | integer | |
endpoints | string[] | /.well-known/search on each domain |
pages | object | |
crawling | boolean | |
last_crawl | object | |
queries | integer | |
enabled_at | string | null | |
docs | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/search #Change search for agents. inject_tags.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
inject_tags * | boolean |
curl -X PATCH https://nameocean.net/api/v1/servers/3f9a1c2e/search \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"inject_tags": false}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
enabled | boolean | |
inject_tags | boolean | |
page_limit | integer | |
endpoints | string[] | /.well-known/search on each domain |
pages | object | |
crawling | boolean | |
last_crawl | object | |
queries | integer | |
enabled_at | string | null | |
docs | string |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/search #Turn off search for agents. Deletes the index (crawled pages and pushed documents); the edge stops answering within 5 minutes.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X DELETE https://nameocean.net/api/v1/servers/3f9a1c2e/search \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Turned off
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/search/reindex #Crawl again now. Queues a crawl (pages are also crawled daily). 429 too_soon within 10 minutes of the last start; server.search.indexed when it finishes.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/search/reindex \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
202 Queued
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
enabled | boolean | |
inject_tags | boolean | |
page_limit | integer | |
endpoints | string[] | /.well-known/search on each domain |
pages | object | |
crawling | boolean | |
last_crawl | object | |
queries | integer | |
enabled_at | string | null | |
docs | string | |
queued | boolean |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/search/documents #List indexed pages. Crawled pages and pushed documents, with why a page is skipped.
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
source | query | |
offset | query | |
limit | query | 1-500, default 100 |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/search/documents?source=1&offset=1&limit=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
total | integer | |
offset | integer | |
documents | SearchDocument[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/search/documents #Push documents. Adds or replaces documents the crawler can't see (JavaScript-rendered pages, data behind a form): url must be on one of the server's domains, text is Markdown (100,000 characters max). Up to 100 per call. They count towards the page limit (409 page_limit) and a crawl never removes them.
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
documents * | object[] |
curl -X POST https://nameocean.net/api/v1/servers/3f9a1c2e/search/documents \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"documents": [{"url": "https://example.com/menu", "title": "Menu", "text": "# Menu\n\nRye bread..."}]}'
201 Saved
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
saved | integer | |
documents | SearchDocument[] | |
pages | object |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/search/documents #Remove a pushed document. 409 crawled_page for a crawled page (it would come back: use noindex or robots.txt).
Εμβέλειες: servers:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
url * | string |
curl -X DELETE https://nameocean.net/api/v1/servers/3f9a1c2e/search/documents \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/menu"}'
204 Removed
Σφάλματα: 400 · 401 · 403 · 404 · 429
/servers/{server}/search/query #Search the index. What an agent gets from /.well-known/search, as JSON. host limits it to one domain's pages.
Εμβέλειες: servers:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
server * | path | Server id, or its default domain such as 3f9a1c2e.nameocean.org π.χ. 3f9a1c2e |
q * | query | |
limit | query | 1-50, default 10 |
host | query |
curl -X GET https://nameocean.net/api/v1/servers/3f9a1c2e/search/query?q=1&limit=1&host=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
server | integer | |
query | string | |
results | SearchResult[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
Endpoints that receive account events: https://nameocean.net/developers/webhooks/
/webhooks/events #List event types. Every event type and group you can subscribe to.
Εμβέλειες: webhooks:read
curl -X GET https://nameocean.net/api/v1/webhooks/events \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
events | object[] | |
groups | string[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/webhooks #List webhook endpoints
Εμβέλειες: webhooks:read
curl -X GET https://nameocean.net/api/v1/webhooks \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
webhooks | WebhookEndpoint[] |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/webhooks #Add a webhook endpoint. An https URL on a public server. The answer includes the signing secret. Up to 10 endpoints.
Εμβέλειες: webhooks:write · Idempotency-Key
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
url * | string | |
events * | string[] | |
description | string |
curl -X POST https://nameocean.net/api/v1/webhooks \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/hooks/nameocean", "events": ["dns.*", "ssl.issued"]}'
201 Created
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
url | string | |
description | string | |
events | string[] | Event types, groups like "dns.*", or ["*"] |
active | boolean | |
disabled_reason | string | null | Why NameOcean turned it off |
secret | string | whsec_...: verify X-NameOcean-Signature with it. Not in list answers. |
created_at | string | null | |
last_success_at | string | null | |
last_failure_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/webhooks/{id} #Get a webhook endpoint. With its signing secret.
Εμβέλειες: webhooks:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
curl -X GET https://nameocean.net/api/v1/webhooks/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
url | string | |
description | string | |
events | string[] | Event types, groups like "dns.*", or ["*"] |
active | boolean | |
disabled_reason | string | null | Why NameOcean turned it off |
secret | string | whsec_...: verify X-NameOcean-Signature with it. Not in list answers. |
created_at | string | null | |
last_success_at | string | null | |
last_failure_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/webhooks/{id} #Change a webhook endpoint. Send only what changes. active: true turns a disabled endpoint back on.
Εμβέλειες: webhooks:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
| Πεδίο σώματος | Τύπος | Περιγραφή |
|---|---|---|
url | string | |
events | string[] | |
description | string | |
active | boolean |
curl -X PATCH https://nameocean.net/api/v1/webhooks/42 \
-H "Authorization: Bearer $NAMEOCEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"active": true}'
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | integer | |
url | string | |
description | string | |
events | string[] | Event types, groups like "dns.*", or ["*"] |
active | boolean | |
disabled_reason | string | null | Why NameOcean turned it off |
secret | string | whsec_...: verify X-NameOcean-Signature with it. Not in list answers. |
created_at | string | null | |
last_success_at | string | null | |
last_failure_at | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/webhooks/{id} #Delete a webhook endpoint
Εμβέλειες: webhooks:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
curl -X DELETE https://nameocean.net/api/v1/webhooks/42 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
204 Deleted
Σφάλματα: 400 · 401 · 403 · 404 · 429
/webhooks/{id}/test #Send a test event. Posts a webhook.test event now, whatever the endpoint's event filter, and returns the delivery.
Εμβέλειες: webhooks:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
curl -X POST https://nameocean.net/api/v1/webhooks/42/test \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | string | whd_..., also sent as X-NameOcean-Delivery |
event | object | |
status | string | One of: pending, succeeded, failed |
attempts | integer | |
next_attempt_at | string | null | |
last_attempt_at | string | null | |
response_status | integer | null | |
response_body | string | null | First 500 characters |
error | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/webhooks/{id}/deliveries #List deliveries. Newest first; pass next_cursor as cursor for the next page.
Εμβέλειες: webhooks:read
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
limit | query | |
cursor | query | |
status | query |
curl -X GET https://nameocean.net/api/v1/webhooks/42/deliveries?limit=1&cursor=1&status=1 \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
deliveries | WebhookDelivery[] | |
next_cursor | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429
/webhooks/{id}/deliveries/{delivery_id}/resend #Resend a delivery. Posts the same event (same id) again now.
Εμβέλειες: webhooks:write · Idempotency-Key
| Παράμετρος | Θέση | Περιγραφή |
|---|---|---|
id * | path | Numeric id π.χ. 42 |
delivery_id * | path | Delivery id (whd_...) π.χ. whd_3f9a1c2e4b5d6a7c8e9f0a1b |
curl -X POST https://nameocean.net/api/v1/webhooks/42/deliveries/whd_3f9a1c2e4b5d6a7c8e9f0a1b/resend \ -H "Authorization: Bearer $NAMEOCEAN_API_KEY"
200 OK
| Πεδίο απόκρισης | Τύπος | Περιγραφή |
|---|---|---|
id | string | whd_..., also sent as X-NameOcean-Delivery |
event | object | |
status | string | One of: pending, succeeded, failed |
attempts | integer | |
next_attempt_at | string | null | |
last_attempt_at | string | null | |
response_status | integer | null | |
response_body | string | null | First 500 characters |
error | string | null |
Σφάλματα: 400 · 401 · 403 · 404 · 429