Generate OAuth connection link
curl --request POST \
--url https://api.juicer.io/v1/social_accounts/connect_url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "facebook"
}
'import requests
url = "https://api.juicer.io/v1/social_accounts/connect_url"
payload = { "provider": "facebook" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: 'facebook'})
};
fetch('https://api.juicer.io/v1/social_accounts/connect_url', 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.juicer.io/v1/social_accounts/connect_url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider' => 'facebook'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.juicer.io/v1/social_accounts/connect_url"
payload := strings.NewReader("{\n \"provider\": \"facebook\"\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))
}HttpResponse<String> response = Unirest.post("https://api.juicer.io/v1/social_accounts/connect_url")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"facebook\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.juicer.io/v1/social_accounts/connect_url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider\": \"facebook\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"provider": "<string>",
"connection_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"allows_multiple": true,
"note": "<string>"
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}Social Accounts
Generate OAuth connection link
Generates a single-use magic link that signs the user in and redirects straight to the OAuth authorization page. The user does not need to be logged into Juicer — just clicking the link is enough.
The link expires in 30 minutes and can only be used once.
Agent workflow:
- Call this endpoint with the provider
- Present the
connection_urlto the user (e.g., “Click here to connect Instagram”) - User clicks, authorizes, and is redirected back to Juicer
- Poll
GET /social_accountsorGET /social_accounts/statusto confirm the connection
POST
/
social_accounts
/
connect_url
Generate OAuth connection link
curl --request POST \
--url https://api.juicer.io/v1/social_accounts/connect_url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "facebook"
}
'import requests
url = "https://api.juicer.io/v1/social_accounts/connect_url"
payload = { "provider": "facebook" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: 'facebook'})
};
fetch('https://api.juicer.io/v1/social_accounts/connect_url', 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.juicer.io/v1/social_accounts/connect_url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider' => 'facebook'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.juicer.io/v1/social_accounts/connect_url"
payload := strings.NewReader("{\n \"provider\": \"facebook\"\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))
}HttpResponse<String> response = Unirest.post("https://api.juicer.io/v1/social_accounts/connect_url")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"facebook\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.juicer.io/v1/social_accounts/connect_url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider\": \"facebook\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"provider": "<string>",
"connection_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"allows_multiple": true,
"note": "<string>"
}
}{
"error": {
"code": "feed_limit_reached",
"message": "Your Free plan allows 1 feed(s). Upgrade to create more.",
"details": {
"name": [
"can't be blank"
]
},
"action": {
"type": "upgrade_plan",
"current_plan": "small",
"current_plan_display_name": "Free",
"required_plan": "large",
"required_plan_display_name": "Pro",
"upgrade_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}
}Authorizations
API key prefixed with jcr_. To obtain a key programmatically
(no dashboard required), see POST /v1/authorize.
Body
application/json
OAuth provider name. Use the provider field from GET /social_accounts/status
or the requires_connection.provider field from GET /platforms.
Common values: facebook, instagram_login, tiktok, slack, tumblr.
Example:
"facebook"
Response
Magic link created
Show child attributes
Show child attributes
⌘I