BaseURL: https://cloud.nubenautas.com/api
Request Header: authorization: Bearer [token] except for /sign_in

Authentication

POST /sign_in


Request URL parameters
email=[string]
password=[string]

Response
Code 200
Header token

Example
curl -i -X POST -d 'email=[..]&password=[..]' https://cloud.nubenautas.com/api/sign_in
HTTP/2 200
server: nginx/1.18.0
date: Tue, 16 Feb 2021 19:02:08 GMT
content-type: application/json
content-length: 84
authorization: Bearer [token]
x-content-type-options: nosniff

{"id":"[..]","email":"[..]","firstname":"[..]","lastname":"[..]"}

DELETE /sign_out


Response
Code 200

Example
curl -i -X DELETE -H 'authorization: Bearer [token]' https://cloud.nubenautas.com/api/sign_out
HTTP/2 200
server: nginx/1.18.0
date: Tue, 16 Feb 2021 20:28:06 GMT
content-type: application/json
content-length: 4
x-content-type-options: nosniff

true

DNS

GET /dns/[domain_name]/records


Response
Code 200

Example
[
	{
		"id": 20142611,
		"content": "127.0.0.1",
		"created_at": "2020-10-25T22:23:09Z",
		"domain_id": "sentidocomun.ninja",
		"name": "",
		"prio": null,
		"ttl": 3600,
		"type": "A"
	},
	{
		"id": 22545628,
		"content": "127.0.0.1",
		"created_at": "2020-10-25T22:23:14Z",
		"domain_id": "sentidocomun.ninja",
		"name": "www",
		"prio": null,
		"ttl": 3600,
		"type": "A"
	}
]

POST /dns/[domain_name]/records


Request
type=[string]
name=[string]
content=[string]
Optional
ttl=[string]
prio=[string]

Response
Code 200

Example
{
	"id": 20245620,
	"content": "127.0.0.1",
	"created_at": "2020-10-25T22:23:14Z",
	"domain_id": "sentidocomun.ninja",
	"name": "test",
	"prio": null,
	"ttl": 3600,
	"type": "A"
}

PUT /dns/[domain_name]/records/[record_id]


Request
type=[string]
name=[string]
content=[string]
Optional
ttl=[string]
prio=[string]

Response
Code 200

Example
{
	"id": 20245620,
	"content": "127.0.0.1",
	"created_at": "2020-10-25T22:23:14Z",
	"domain_id": "sentidocomun.ninja",
	"name": "test",
	"prio": null,
	"ttl": 3600,
	"type": "A"
}

DELETE /dns/[domain_name]/records/[record_id]


Response
Code 200

Tools

GET http://ip.nubenautas.net for current public IP

curl http://ip.nubenautas.net
187.225.224.88