curl --request GET \
--url https://api.datalyr.com/v1/signup/{signupId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datalyr.com/v1/signup/{signupId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datalyr.com/v1/signup/{signupId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.datalyr.com/v1/signup/{signupId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.datalyr.com/v1/signup/{signupId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.datalyr.com/v1/signup/{signupId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datalyr.com/v1/signup/{signupId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"signup_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending_email",
"expires_at": "2023-11-07T05:31:56Z",
"workspace_id": "<string>",
"key_request": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"approval_url": null
}
}{
"error": "<string>"
}Get signup status
Where a signup stands. Poll it with the signup_secret from POST /signup until status is paid. It never returns a key: collect that from key_request.request_id with GET /keys/requests/{requestId}.
An unknown id and a wrong secret return the same 404, so this route confirms nothing to a caller without the secret.
curl --request GET \
--url https://api.datalyr.com/v1/signup/{signupId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datalyr.com/v1/signup/{signupId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datalyr.com/v1/signup/{signupId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.datalyr.com/v1/signup/{signupId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.datalyr.com/v1/signup/{signupId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.datalyr.com/v1/signup/{signupId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datalyr.com/v1/signup/{signupId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"signup_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending_email",
"expires_at": "2023-11-07T05:31:56Z",
"workspace_id": "<string>",
"key_request": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"approval_url": null
}
}{
"error": "<string>"
}Authorizations
Returned once by POST /signup. Accepted only by GET /signup/{signupId} and the key-request routes.
Path Parameters
The signup_id returned by POST /signup.
Response
Successful response.
pending_email: the person has not continued to payment. pending_payment: checkout started and has not settled. paid: the workspace exists. expired: 7 days passed without payment.
pending_email, pending_payment, paid, expired Public workspace id. Present only when status is paid.
Present only when status is paid and the signup carried a key_request. approval_url is always null: the approval card is on the person's page, not in this response.
Show child attributes
Show child attributes
Was this page helpful?