CURL

post
LOGIN

https://api.configtree.co/v1/login
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
password
required
string
supersecurepassword
organizationSlug
required
string
acme
email
required
string
johny@example.com
200: OK
Cake successfully retrieved.
{
"refresh": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTU1NDUwNTkyNSwianRpIjoiNjAzYWU5NzFmNWE5NDIyODlhOGU2M2ZjZTMxZDA4MzkiLCJ1c2VyX2lkIjoiY2RiZjQyMDktMGU5NC00N2YyLTlhYmEtYTQ5OGY5N2JjMzQ2In0.9AbE5ucKggNmAn1adOtnMfGBP41elx3DWs2AVzgkdFA",
"access": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTU0NDE5ODI1LCJqdGkiOiIyZjYxNmI3MTMyNjY0N2JhYWNlODRjNmI5OTljMWJiYiIsInVzZXJfaWQiOiJjZGJmNDIwOS0wZTk0LTQ3ZjItOWFiYS1hNDk4Zjk3YmMzNDYifQ.0QT3Piz1Y5dQ78d9vCi8WGmIsY0-sVXPmT9FbiMjFhs",
"user": {
"id": "cdbf4209-0e94-47f2-9aba-a498f97bc346",
"email": "johnny@example.com"
}
}

post
Refresh Token

https://api.configtree.co/v1/login/refresh/
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
refresh
required
string
refresh token
200: OK
{
"access": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTU0NDIzMTI2LCJqdGkiOiJjZTlhM2JjMGM0NGU0ZGY3ODQ1ZTA4MTFjNDI3NTFjYiIsInVzZXJfaWQiOiJjZGJmNDIwOS0wZTk0LTQ3ZjItOWFiYS1hNDk4Zjk3YmMzNDYifQ.cei2h4crs6HSOd6PgNkcFOiqY6g1pp9CMEisg_55DhY"
}

get
Get Live Version

https://api.configtree.co/v1/{OrganizationSlug}/versions/?applicationName={AppName}&environmentName={EnvName}
Gets the live version that is returned by default.
Request
Response
Path Parameters
organizationSlug
required
string
Your organization slug
Headers
Authorization
required
string
Bearer token
Query Parameters
EnvName
required
string
testing, staging, prod...
AppName
required
string
the application's version
200: OK
{
"id": "fb155a5b-52fe-4674-ac99-b1689d11df9f",
"name": "v1",
"createdAt": "2019-04-04 22:41:54.176696+00:00",
"createdBy": null,
"lastUpdatedBy": "cdbf4209-0e94-47f2-9aba-a498f97bc346",
"organizationSlug": "example",
"applicationId": "74fc34ac-30de-4a1f-87b6-702046b39bc5",
"environmentId": "0183ac3b-0507-444f-ac9d-605e063cdcb7",
"configuration": {
"id": "03ce007a-556b-48b7-9799-13954c335da2",
"name": "v1",
"createdAt": "2019-04-04 22:48:49.297872+00:00",
"createdBy": null,
"lastUpdatedBy": "cdbf4209-0e94-47f2-9aba-a498f97bc346",
"organizationSlug": "example",
"applicationId": "74fc34ac-30de-4a1f-87b6-702046b39bc5",
"environmentId": "0183ac3b-0507-444f-ac9d-605e063cdcb7",
"versionId": "fb155a5b-52fe-4674-ac99-b1689d11df9f",
"versionName": "v1",
"document": "{\"supportEmail\":\"support@configtree.co\",\"smtpKey\":\"xzZnWL51RZ4xGSSC69j9Revfo1\",\"smtpAccountUUID\":\"af85e4a3-0b3b-4c45-ac39-4d233c019624\"}"
},
"live": true
}