POST /entries

This endpoint allows you to create entry into Factom chain.

post
Create entry

http://localhost:8081/v1/entries
Important! `content` and `extIds` are sent and received into Base64 format. Open API SDKs automatically convert the data into Base64.
Request
Response
Query Parameters
callback_url
optional
string
URL for status callbacks
Body Parameters
chainId
required
string
Chain ID of the Factom chain, where to add new entry.
extIds
optional
string
One or many external ids identifying new chain. Should be sent as array of strings.
content
optional
string
The content of the new entry.
200: OK
{
"result": {
"entryHash": "a773592954dfbcedc538eb89d39166b9a00ffa5e0114f383ff849e47839f6938",
"chainId": "9aa8eebdaa9e6ba6790dd27692519530c046e08be73fe488597947205cc563c0",
"extIds": [
"RmFjdG9tIE9wZW4gQVBJ",
"UEhQIFNESyBUZXN0"
],
"content": "",
"status": "queue",
"createdAt": "2019-04-18T20:04:00Z"
}
}
400: Bad Request
Validation error
{
"result": false,
"code": 1420,
"error": "Key: 'Entry.ExtIDs[0]' Error:Field validation for 'ExtIDs[0]' failed on the 'base64' tag"
}
500: Internal Server Error
Internal server error
{
"result": false,
"code": 1510,
"error": "Chain 0aa8eebdaa9e6ba6790dd27692519530c046e08be73fe488597947205cc563c0"
}

‚Äč