Criar area de trabalho, projeto e primeira analise do usuario
curl --request POST \
--url http://localhost:4000/v1/auth/bootstrap \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceName": "Workspace de Vinicius Coimbra",
"projectName": "Refy Site",
"rawValue": "https://refy.to/blog/content-audit"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceName: 'Workspace de Vinicius Coimbra',
projectName: 'Refy Site',
rawValue: 'https://refy.to/blog/content-audit'
})
};
fetch('http://localhost:4000/v1/auth/bootstrap', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/auth/bootstrap"
payload = {
"workspaceName": "Workspace de Vinicius Coimbra",
"projectName": "Refy Site",
"rawValue": "https://refy.to/blog/content-audit"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/auth/bootstrap"
payload := strings.NewReader("{\n \"workspaceName\": \"Workspace de Vinicius Coimbra\",\n \"projectName\": \"Refy Site\",\n \"rawValue\": \"https://refy.to/blog/content-audit\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"user": {
"id": "<string>",
"displayName": "<string>",
"email": "jsmith@example.com",
"username": "<string>",
"avatarUrl": "<string>"
},
"workspace": {
"id": "ws_123",
"slug": "refy-labs",
"name": "Refy Labs",
"plan": "starter",
"status": "active"
},
"project": {
"id": "prj_123",
"workspaceId": "ws_123",
"name": "Refy Blog",
"primaryDomain": "refy.to",
"createdAt": "2026-04-28T12:10:00.000Z"
},
"analysis": {
"id": "ana_123",
"projectId": "prj_123",
"inputType": "url",
"inputPayload": {
"url": "https://refy.to/blog/content-audit"
},
"mode": "standard",
"status": "completed",
"creditsConsumed": 1,
"createdAt": "2026-04-28T12:11:00.000Z",
"completedAt": "2026-04-28T12:11:07.000Z"
}
}Criar area de trabalho, projeto e primeira analise do usuario
POST
/
v1
/
auth
/
bootstrap
Criar area de trabalho, projeto e primeira analise do usuario
curl --request POST \
--url http://localhost:4000/v1/auth/bootstrap \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceName": "Workspace de Vinicius Coimbra",
"projectName": "Refy Site",
"rawValue": "https://refy.to/blog/content-audit"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceName: 'Workspace de Vinicius Coimbra',
projectName: 'Refy Site',
rawValue: 'https://refy.to/blog/content-audit'
})
};
fetch('http://localhost:4000/v1/auth/bootstrap', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/auth/bootstrap"
payload = {
"workspaceName": "Workspace de Vinicius Coimbra",
"projectName": "Refy Site",
"rawValue": "https://refy.to/blog/content-audit"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/auth/bootstrap"
payload := strings.NewReader("{\n \"workspaceName\": \"Workspace de Vinicius Coimbra\",\n \"projectName\": \"Refy Site\",\n \"rawValue\": \"https://refy.to/blog/content-audit\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"user": {
"id": "<string>",
"displayName": "<string>",
"email": "jsmith@example.com",
"username": "<string>",
"avatarUrl": "<string>"
},
"workspace": {
"id": "ws_123",
"slug": "refy-labs",
"name": "Refy Labs",
"plan": "starter",
"status": "active"
},
"project": {
"id": "prj_123",
"workspaceId": "ws_123",
"name": "Refy Blog",
"primaryDomain": "refy.to",
"createdAt": "2026-04-28T12:10:00.000Z"
},
"analysis": {
"id": "ana_123",
"projectId": "prj_123",
"inputType": "url",
"inputPayload": {
"url": "https://refy.to/blog/content-audit"
},
"mode": "standard",
"status": "completed",
"creditsConsumed": 1,
"createdAt": "2026-04-28T12:11:00.000Z",
"completedAt": "2026-04-28T12:11:07.000Z"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
201 - application/json
Onboarding concluido
Example:
{
"id": "ana_123",
"projectId": "prj_123",
"inputType": "url",
"inputPayload": {
"url": "https://refy.to/blog/content-audit"
},
"mode": "standard",
"status": "completed",
"creditsConsumed": 1,
"createdAt": "2026-04-28T12:11:00.000Z",
"completedAt": "2026-04-28T12:11:07.000Z"
}