Generate new PFIDs with a partition matching the account
POST
/api/v1/pfid/generate
const url = 'https://app.prefactorai.com/api/v1/pfid/generate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '"013xrzp12g3nqk8ns6jadrqmpgrjkeny"'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.prefactorai.com/api/v1/pfid/generate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '"013xrzp12g3nqk8ns6jadrqmpgrjkeny"'Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Account_Id
A valid account ID
string
Example
013xrzp12g3nqk8ns6jadrqmpgrjkenyResponses
Section titled “Responses”Success
Media typeapplication/json
object
account_id
Account_Id
A valid account ID
string
pfids
Generated PFIDs with matching partition
Array<string>
status
string
Example
{ "account_id": "013xrzp12g3nqk8ns6jadrqmpgrjkeny", "pfids": [ "013xrzp12g3nqk8ns6jadrqmpgrjkeny" ], "status": "success"}default
Section titled “default”Error