Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

OriginStamp C# Client

Build Status

A C# implementation of the OriginStamp API. For endpoint documentation see OriginStamp Documentation.

For endpoint documentation see OriginStamp Documentation. This C# SDK is automatically generated by the Swagger Codegen project:

For more information, please visit

Frameworks supported

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)


The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742


Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using OriginStamp.Client.Api;
using OriginStamp.Client.Client;
using OriginStamp.Client.Model;

Getting Started

The package is available via NuGet here.

using System;
using System.Diagnostics;
using OriginStamp.Client.Api;
using OriginStamp.Client.Client;
using OriginStamp.Client.Model;

namespace Example
    public class CreateTimestampExample
        public void main()
            var apiInstance = new TimestampApi();
            var authorization = "authorization_example";  // string | A valid API key is essential for authorization to handle the request.
            var timestampRequest = new TimestampRequest(); // TimestampRequest | DTO for the hash submission. Add all relevant information concerning your hash submission.

                // Submission
                DefaultOfTimestampResponse result = apiInstance.CreateTimestamp(authorization, timestampRequest);
            catch (Exception e)
                Debug.Print("Exception when calling TimestampApi.CreateTimestamp: " + e.Message );

Documentation for API Endpoints

All URIs are relative to

Class Method HTTP request Description
APIKeyApi GetApiKeyUsage GET /v3/api_key/usage Usage
BulkApi CreateBulkTimestamp POST /v4/timestamp/bulk/create Bulk Submission
BulkApi GetSeedStatus GET /v4/timestamp/status/seed/{seed_id} Seed Status
ProofApi GetProof POST /v3/timestamp/proof/url Proof
SchedulerApi GetActiveCurrencies GET /v3/currencies/get Get active currencies
TimestampApi CreateTimestamp POST /v4/timestamp/create Submission
TimestampApi GetHashStatus GET /v4/timestamp/{hash_string} Status
TimestampApi GetSeedStatus GET /v4/timestamp/status/seed/{seed_id} Seed Status
WebhookApi GetWebhookStatus POST /v3/webhook/information Webhook
WebhookApi RegisterWebhookNotification POST /v3/webhook/register Webhook
WebhookApi TriggerTimestampWebhook POST /v3/webhook/start Dev

Documentation for Models

Documentation for Authorization

API Key Authorization

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header



C# Client for the OriginStamp service




No packages published