Growth Spaces Documentation

Growth Spaces is a platform that easily lets you connect users on your apps and websites to relevant content. Let us help you connect users with engaging, life-changing, empowering content.

Authentications

check authentication

Endpoint

GET /api/v1/authentication

Request

Route

GET /api/v1/authentication

Headers

Access-Id: MQ==

Access-Secret: Y92tQT3THBXm52J3v3+HBNXw3/NAuRqX6YJTqgfK5phuo01+2i72l0vCUfw7azJ9+cMF8blagQrbOlXkjS+1zA==
Host: example.org
Cookie: 

Response

Simulated Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=utf-8
ETag: W/"444bcb3a3fcf8389296c49467f27e1d6"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 9127d55f-f774-496f-9014-bcc113727879
X-Runtime: 0.058587
Content-Length: 2

Body

ok

Contents

get content

Endpoint

GET /api/v1/content

Parameters

Name Description
route_id route to find corresponding content
language_code language code to find corresponding content

Request

Route

GET /api/v1/content?route_id=1&language_code=VT

Headers

Access-Id: Mg==

Access-Secret: GX1q2kgFv5mRZQQiIgOylcdmt7MVpJo8SK11B2yVZ8lCjmVC4jMquDp0jSx3cs7V7nG+Gg43Rug3ddKgoSnovQ==
Host: example.org
Cookie: 

Query Parameters

route_id=1
language_code=VT

Response

Simulated Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"7518f966fbcb7ee5a9cd8a9bc2b34d11"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 4f7de810-5bdb-465e-9e57-f46b976d3107
X-Runtime: 0.087459
Content-Length: 131

Body

{
  "id": 1,
  "name": "Kanlam",
  "summary": "programming the microchip won't do anything, we need to synthesize the wireless HTTP firewall!"
}

Languages

list languages

Endpoint

GET /api/v1/languages

Request

Route

GET /api/v1/languages

Headers

Access-Id: Mw==

Access-Secret: cYMQcs+9veBEsuiJhFSmSp74LYIi5tCInKbtQ1V3NzV6ttA5Fq+VHeySeJ71HgH6IZEzdN71h1WhO3E+UG70eg==
Host: example.org
Cookie: 

Response

Simulated Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"7b1fc6dc7973665455e1d40fb3239997"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 812a0164-a521-4966-9c22-a66b206a9001
X-Runtime: 0.026613
Content-Length: 214

Body

[
  {
    "id": 2,
    "name": "Swaziland (1)",
    "code": "NH"
  },
  {
    "id": 3,
    "name": "Gambia (2)",
    "code": "OR"
  },
  {
    "id": 4,
    "name": "Bhutan (3)",
    "code": "AZ"
  },
  {
    "id": 5,
    "name": "Australia (4)",
    "code": "AZ"
  },
  {
    "id": 6,
    "name": "Mongolia (5)",
    "code": "NM"
  }
]

Routes

list routes

Endpoint

GET /api/v1/routes

Request

Route

GET /api/v1/routes

Headers

Access-Id: NA==

Access-Secret: nytjg/4h+YVYgbdyNsqILtPeKaMGr9uS8HrDtrN95AcCHEy3x5t8eQ6Vkgm0A4wl55YUGQllsPXjHg0w0t/jbQ==
Host: example.org
Cookie: 

Response

Simulated Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"1816cc4441e312e17c80dd31effdd8ee"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 425e5e83-769c-4c2f-ac6c-5ff6ff37d838
X-Runtime: 0.054846
Content-Length: 155

Body

[
  {
    "id": 2,
    "name": "Zontrax (1)"
  },
  {
    "id": 3,
    "name": "Sub-Ex (2)"
  },
  {
    "id": 4,
    "name": "Zontrax (3)"
  },
  {
    "id": 5,
    "name": "Zaam-Dox (4)"
  },
  {
    "id": 6,
    "name": "Mat Lam Tam (5)"
  }
]

Subscribers

create subscriber

Endpoint

POST /api/v1/subscribers

Parameters

Name Description
subscriber[route_id] required route to find corresponding content
subscriber[language_code] required language code to find corresponding content
subscriber[first_name] subscriber's first name
subscriber[last_name] subscriber's last name
subscriber[email] required subscriber's email address

Request

Route

POST /api/v1/subscribers

Headers

Access-Id: NQ==

Access-Secret: KqYVdNA/khQxqsODxJVDcNnYgIMct8aZuTKS8ikr7tAQh2Z4pdAHXXqNfGGLTQUR0CEGGW2vZVQa4UEdwl2GXQ==
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Body

subscriber[route_id]=7&subscriber[language_code]=SD&subscriber[first_name]=Keenan&subscriber[last_name]=Lind&subscriber[email]=alexandria.dickens%40metz.org

Response

Simulated Response

Status

201

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"3e0bfb08738966a91418124bfb5d61b6"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 4aeafd96-686a-48f3-aceb-f3ee61dee43d
X-Runtime: 0.096182
Content-Length: 121

Body

{
  "id": 1,
  "first_name": "Keenan",
  "last_name": "Lind",
  "email": "[email protected]",
  "route_id": 7,
  "language_code": "SD"
}