Create signer
curl --request POST \
--url https://api.neynar.com/v2/farcaster/signer/ \
--header 'x-api-key: <api-key>'import requests
url = "https://api.neynar.com/v2/farcaster/signer/"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.neynar.com/v2/farcaster/signer/', 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.neynar.com/v2/farcaster/signer/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.neynar.com/v2/farcaster/signer/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.neynar.com/v2/farcaster/signer/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.neynar.com/v2/farcaster/signer/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"public_key": "0x3daa8f99c5f760688a3c9f95716ed93dee5ed5d7722d776b7c4deac957755f22",
"signer_uuid": "19d0c5fd-9b33-4a48-a0e2-bc7b0555baec",
"status": "generated",
"fid": 3,
"object": "signer",
"permissions": [
"WRITE_ALL"
],
"signer_approval_url": "<string>"
}{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"status": 123
}Neynar Managed
Create signer
Creates a signer and returns the signer status.
Note: While tesing please reuse the signer, it costs money to approve a signer.
POST
/
v2
/
farcaster
/
signer
/
Create signer
curl --request POST \
--url https://api.neynar.com/v2/farcaster/signer/ \
--header 'x-api-key: <api-key>'import requests
url = "https://api.neynar.com/v2/farcaster/signer/"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.neynar.com/v2/farcaster/signer/', 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.neynar.com/v2/farcaster/signer/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.neynar.com/v2/farcaster/signer/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.neynar.com/v2/farcaster/signer/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.neynar.com/v2/farcaster/signer/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"public_key": "0x3daa8f99c5f760688a3c9f95716ed93dee5ed5d7722d776b7c4deac957755f22",
"signer_uuid": "19d0c5fd-9b33-4a48-a0e2-bc7b0555baec",
"status": "generated",
"fid": 3,
"object": "signer",
"permissions": [
"WRITE_ALL"
],
"signer_approval_url": "<string>"
}{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"status": 123
}Easiest way to start is to clone our repo that has sign in w/ Farcaster and writes
Read more about how writes to Farcaster work with Neynar managed signersNode.js SDK
๐ SDK Method: createSigner Use this API endpoint with the Neynar Node.js SDK for typed responses and better developer experience.Authorizations
API key to authorize requests
Response
Success
Ed25519 public key
Pattern:
^0x[a-fA-F0-9]{64}$Example:
"0x3daa8f99c5f760688a3c9f95716ed93dee5ed5d7722d776b7c4deac957755f22"
UUID of the signer.
signer_uuid is paired with API key, can't use a uuid made with a different API key.
Example:
"19d0c5fd-9b33-4a48-a0e2-bc7b0555baec"
Available options:
generated, pending_approval, approved, revoked The unique identifier of a farcaster user or app (unsigned integer)
Required range:
x >= 0Example:
3
Available options:
signer Available options:
WRITE_ALL, READ_ONLY, NONE, PUBLISH_CAST, DELETE_CAST, PUBLISH_REACTION, DELETE_REACTION, UPDATE_PROFILE, FOLLOW_USER, UNFOLLOW_USER, FOLLOW_CHANNEL, UNFOLLOW_CHANNEL, ADD_VERIFICATION, REMOVE_VERIFICATION, WRITE_FRAME_ACTION Related topics
createSignerCreate new Farcaster AccountWrite Data with Managed SignersUnderstanding Signers in the Farcaster ProtocolRegister new accountWas this page helpful?