Auth
- Written for
- + Written for
- Deprecated
- + Deprecated
- Applies to
- + Applies to
https://shippified.net/api/auth/registerRequest body application/json
{
"email": "string",
"password": "string",
"displayName": "string"
}Responses
{
"token": "string",
"user": {}
}cURL
curl -X POST "https://shippified.net/api/auth/register" \
-H "Content-Type: application/json" \
-d '{"email":"string","password":"string","displayName":"string"}'TypeScript
const res = await fetch('https://shippified.net/api/auth/register', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({"email":"string","password":"string","displayName":"string"}),
});
const data = await res.json();Python
import requests
res = requests.request(
"POST",
"https://shippified.net/api/auth/register",
headers={
"Content-Type": "application/json",
},
json={"email": "string", "password": "string", "displayName": "string"},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("POST", "https://shippified.net/api/auth/register", strings.NewReader(`{"email":"string","password":"string","displayName":"string"}`))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/auth/register');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"email":"string","password":"string","displayName":"string"}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://shippified.net/api/auth/register')
req = Net::HTTP::Post.new(uri)
req['Content-Type'] = 'application/json'
req.body = '{"email":"string","password":"string","displayName":"string"}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://shippified.net/api/auth/register"))
.header("Content-Type", "application/json")
.method("POST", BodyPublishers.ofString("{\"email\":\"string\",\"password\":\"string\",\"displayName\":\"string\"}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());https://shippified.net/api/auth/loginRequest body application/json
{
"email": "string",
"password": "string"
}Responses
cURL
curl -X POST "https://shippified.net/api/auth/login" \
-H "Content-Type: application/json" \
-d '{"email":"string","password":"string"}'TypeScript
const res = await fetch('https://shippified.net/api/auth/login', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({"email":"string","password":"string"}),
});
const data = await res.json();Python
import requests
res = requests.request(
"POST",
"https://shippified.net/api/auth/login",
headers={
"Content-Type": "application/json",
},
json={"email": "string", "password": "string"},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("POST", "https://shippified.net/api/auth/login", strings.NewReader(`{"email":"string","password":"string"}`))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/auth/login');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"email":"string","password":"string"}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://shippified.net/api/auth/login')
req = Net::HTTP::Post.new(uri)
req['Content-Type'] = 'application/json'
req.body = '{"email":"string","password":"string"}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://shippified.net/api/auth/login"))
.header("Content-Type", "application/json")
.method("POST", BodyPublishers.ofString("{\"email\":\"string\",\"password\":\"string\"}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());https://shippified.net/api/auth/meResponses
cURL
curl -X GET "https://shippified.net/api/auth/me"TypeScript
const res = await fetch('https://shippified.net/api/auth/me', {
method: 'GET',
});
const data = await res.json();Python
import requests
res = requests.request(
"GET",
"https://shippified.net/api/auth/me",
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://shippified.net/api/auth/me", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/auth/me');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://shippified.net/api/auth/me')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://shippified.net/api/auth/me"))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());https://shippified.net/api/auth/sessionResponses
cURL
curl -X DELETE "https://shippified.net/api/auth/session"TypeScript
const res = await fetch('https://shippified.net/api/auth/session', {
method: 'DELETE',
});
const data = await res.json();Python
import requests
res = requests.request(
"DELETE",
"https://shippified.net/api/auth/session",
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("DELETE", "https://shippified.net/api/auth/session", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/auth/session');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://shippified.net/api/auth/session')
req = Net::HTTP::Delete.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://shippified.net/api/auth/session"))
.method("DELETE", BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());https://shippified.net/api/auth/providersPublic. The sign-in page calls this to decide which SSO buttons to show and whether to render a Turnstile challenge.
Responses
{
"google": true,
"discord": true,
"discordSlug": null,
"turnstile": true,
"turnstileSiteKey": null,
"billingEnabled": true
}cURL
curl -X GET "https://shippified.net/api/auth/providers"TypeScript
const res = await fetch('https://shippified.net/api/auth/providers', {
method: 'GET',
});
const data = await res.json();Python
import requests
res = requests.request(
"GET",
"https://shippified.net/api/auth/providers",
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://shippified.net/api/auth/providers", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/auth/providers');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://shippified.net/api/auth/providers')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://shippified.net/api/auth/providers"))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());https://shippified.net/api/auth/forgot-passwordPublic. Always answers `{ ok: true }` for a well-formed request, whether or not an account uses that email, so it can't be used to find out who has an account. When one does (and outbound mail is configured) a link valid for 1 hour is sent. Shares the 10/min per-IP auth rate limit.
Request body application/json
{
"email": "string",
"turnstileToken": "string"
}Responses
{
"ok": true
}{
"error": "string"
}cURL
curl -X POST "https://shippified.net/api/auth/forgot-password" \
-H "Content-Type: application/json" \
-d '{"email":"string","turnstileToken":"string"}'TypeScript
const res = await fetch('https://shippified.net/api/auth/forgot-password', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({"email":"string","turnstileToken":"string"}),
});
const data = await res.json();Python
import requests
res = requests.request(
"POST",
"https://shippified.net/api/auth/forgot-password",
headers={
"Content-Type": "application/json",
},
json={"email": "string", "turnstileToken": "string"},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("POST", "https://shippified.net/api/auth/forgot-password", strings.NewReader(`{"email":"string","turnstileToken":"string"}`))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/auth/forgot-password');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"email":"string","turnstileToken":"string"}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://shippified.net/api/auth/forgot-password')
req = Net::HTTP::Post.new(uri)
req['Content-Type'] = 'application/json'
req.body = '{"email":"string","turnstileToken":"string"}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://shippified.net/api/auth/forgot-password"))
.header("Content-Type", "application/json")
.method("POST", BodyPublishers.ofString("{\"email\":\"string\",\"turnstileToken\":\"string\"}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());https://shippified.net/api/auth/reset-passwordPublic. On success every existing session for the account is revoked and a fresh session is returned, so the caller is signed in straight away. Shares the 10/min per-IP auth rate limit.
Request body application/json
{
"token": "string",
"password": "string",
"turnstileToken": "string"
}Responses
{
"ok": true,
"token": "string",
"user": {},
"state": {}
}{
"error": "string"
}cURL
curl -X POST "https://shippified.net/api/auth/reset-password" \
-H "Content-Type: application/json" \
-d '{"token":"string","password":"string","turnstileToken":"string"}'TypeScript
const res = await fetch('https://shippified.net/api/auth/reset-password', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({"token":"string","password":"string","turnstileToken":"string"}),
});
const data = await res.json();Python
import requests
res = requests.request(
"POST",
"https://shippified.net/api/auth/reset-password",
headers={
"Content-Type": "application/json",
},
json={"token": "string", "password": "string", "turnstileToken": "string"},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("POST", "https://shippified.net/api/auth/reset-password", strings.NewReader(`{"token":"string","password":"string","turnstileToken":"string"}`))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/auth/reset-password');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"token":"string","password":"string","turnstileToken":"string"}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://shippified.net/api/auth/reset-password')
req = Net::HTTP::Post.new(uri)
req['Content-Type'] = 'application/json'
req.body = '{"token":"string","password":"string","turnstileToken":"string"}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://shippified.net/api/auth/reset-password"))
.header("Content-Type", "application/json")
.method("POST", BodyPublishers.ofString("{\"token\":\"string\",\"password\":\"string\",\"turnstileToken\":\"string\"}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());https://shippified.net/api/auth/resend-verifyIssues a new link (valid 24 hours), replacing any earlier one. Mail failures come back in the body with a 200, not as an error status.
Responses
{
"ok": true,
"already": true,
"reason": "not_configured"
}cURL
curl -X POST "https://shippified.net/api/auth/resend-verify"TypeScript
const res = await fetch('https://shippified.net/api/auth/resend-verify', {
method: 'POST',
});
const data = await res.json();Python
import requests
res = requests.request(
"POST",
"https://shippified.net/api/auth/resend-verify",
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("POST", "https://shippified.net/api/auth/resend-verify", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/auth/resend-verify');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://shippified.net/api/auth/resend-verify')
req = Net::HTTP::Post.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://shippified.net/api/auth/resend-verify"))
.method("POST", BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());https://shippified.net/api/auth/verifyPublic browser endpoint. Always answers with a redirect: `/home?verify=ok` on success, `/auth?verify=missing` without a token, `/auth?verify=invalid` for an unknown or expired token.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token | query | string | yes |
Responses
cURL
curl -X GET "https://shippified.net/api/auth/verify?token="TypeScript
const res = await fetch('https://shippified.net/api/auth/verify?token=', {
method: 'GET',
});
const data = await res.json();Python
import requests
res = requests.request(
"GET",
"https://shippified.net/api/auth/verify?token=",
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://shippified.net/api/auth/verify?token=", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://shippified.net/api/auth/verify?token=');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://shippified.net/api/auth/verify?token=')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://shippified.net/api/auth/verify?token="))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());