{"id":30048268,"url":"https://github.com/segmentio/public-api-sdk-csharp","last_synced_at":"2026-01-20T17:56:00.200Z","repository":{"id":257951387,"uuid":"858428321","full_name":"segmentio/public-api-sdk-csharp","owner":"segmentio","description":"C# SDK for Public API","archived":false,"fork":false,"pushed_at":"2025-08-07T00:11:36.000Z","size":5873,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-07T02:27:03.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/segmentio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-16T21:53:56.000Z","updated_at":"2025-08-07T00:11:38.000Z","dependencies_parsed_at":"2024-10-25T23:39:57.932Z","dependency_job_id":"25b837b6-5484-44e5-a4ab-d1d193be086b","html_url":"https://github.com/segmentio/public-api-sdk-csharp","commit_stats":null,"previous_names":["segmentio/public-api-sdk-csharp"],"tags_count":574,"template":false,"template_full_name":null,"purl":"pkg:github/segmentio/public-api-sdk-csharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fpublic-api-sdk-csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fpublic-api-sdk-csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fpublic-api-sdk-csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fpublic-api-sdk-csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segmentio","download_url":"https://codeload.github.com/segmentio/public-api-sdk-csharp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fpublic-api-sdk-csharp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269188978,"owners_count":24375471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-07T10:08:03.446Z","updated_at":"2026-01-20T17:56:00.189Z","avatar_url":"https://github.com/segmentio.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Segment Public API C# SDK\n\n:warning: This SDK is currently released as [Public Beta](https://segment.com/legal/first-access-beta-preview/). Its use in critical systems is discouraged, but [feedback is welcome](#contributing).\n\nThe Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs.\n\nAll CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace.\n\nSee the next sections for more information on how to use the Segment Public API.\n\n\nThis C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:\n\n- API version: 62.0.6\n- Generator version: 7.0.1\n- Build package: org.openapitools.codegen.languages.CSharpClientCodegen\n    For more information, please visit [https://docs.segmentapis.com](https://docs.segmentapis.com)\n\n## Dependencies\n\n- [RestSharp](https://www.nuget.org/packages/RestSharp) - 112.0.0 or later\n- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.2 or later\n- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later\n- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later\n\n\n## Getting Started\n\n```csharp\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing Segment.PublicApi.Api;\nusing Segment.PublicApi.Client;\nusing Segment.PublicApi.Model;\n\n\npublic class Example\n{\n    public static void Main()\n    {\n\n        Configuration config = new Configuration();\n        config.BasePath = \"https://api.segmentapis.com\";\n        // Configure Bearer token for authorization: token\n        config.AccessToken = \"YOUR_BEARER_TOKEN\";\n\n        WorkspacesApi workspacesApi = new WorkspacesApi(config);\n\n        try\n        {\n            GetWorkspace200Response workspace200Response = workspacesApi.GetWorkspace();\n            Console.WriteLine(workspace200Response.Data.Workspace.Slug);\n\n        }\n        catch (ApiException e)\n        {\n            Debug.Print(\"Exception when calling APICallsApi.GetDailyPerSourceAPICallsUsage: \" + e.Message );\n            Debug.Print(\"Status Code: \"+ e.ErrorCode);\n            Debug.Print(e.StackTrace);\n        }\n\n        SourcesApi sourcesApi = new SourcesApi(config);\n        PaginationInput paginationInput = new PaginationInput(count: 100, cursor: \"\");\n        try\n        {\n            do\n            {\n                ListSources200Response sources200Response = sourcesApi.ListSources(paginationInput);\n                foreach (SourceV1 source in sources200Response.Data.Sources)\n                {\n                    // iterate over the sources\n                }\n                paginationInput.Cursor = sources200Response.Data.Pagination.Next;\n            } while (paginationInput.Cursor != null);\n        }\n        catch (ApiException e)\n        {\n            Debug.Print(\"Exception when calling APICallsApi.GetDailyPerSourceAPICallsUsage: \" + e.Message);\n            Debug.Print(\"Status Code: \" + e.ErrorCode);\n            Debug.Print(e.StackTrace);\n        }\n\n    }\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Fpublic-api-sdk-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegmentio%2Fpublic-api-sdk-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Fpublic-api-sdk-csharp/lists"}