HydraCore
API by router

Customer signup

Create Signup

POST
/v1/public/signup

Request Body

application/json
  1. body
company_name*Company Name
Length1 <= length <= 200
email*Email
Formatemail
plan?Plan
Lengthlength <= 50
Default"starter"
tenant_slug*Tenant Slug
Length1 <= length <= 100

Response Body

Successful Response

application/json
  1. response
customer_id*Customer Id
Formatuuid
message?Message
Default"Check your email to get started"
site_url?string|null
Example Request
curl -X POST 'https://example.com/v1/public/signup' \  -H 'Content-Type: application/json' \  -d '{  "company_name": "string",  "email": "user@example.com",  "tenant_slug": "string"}'
Example Response
{  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",  "message": "Check your email to get started",  "site_url": "string"}

List Plans

GET
/v1/public/signup/plans/{tenant_slug}

Path Parameters

tenant_slug*Tenant Slug

Response Body

Successful Response

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://example.com/v1/public/signup/plans/string'
Example Response
[  {    "description": "string",    "features": [      "string"    ],    "name": "string",    "price": "string"  }]

Verify Signup

POST
/v1/public/signup/verify

Request Body

application/json
  1. body
code*Code
Length6 <= length <= 6
email*Email
Formatemail
tenant_slug*Tenant Slug
Length1 <= length <= 100

Response Body

Successful Response

application/json
  1. response
access_token*Access Token
customer_id*Customer Id
Formatuuid
expires_in?Expires In
Default3600
refresh_token*Refresh Token
tenant_id*Tenant Id
Formatuuid
token_type?Token Type
Default"bearer"
Example Request
curl -X POST 'https://example.com/v1/public/signup/verify' \  -H 'Content-Type: application/json' \  -d '{  "code": "string",  "email": "user@example.com",  "tenant_slug": "string"}'
Example Response
{  "access_token": "string",  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",  "expires_in": 3600,  "refresh_token": "string",  "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",  "token_type": "bearer"}