SDKs
You can use an SDK to access the Marqeta Core API.
Generate your own client library
Copy section link
You can reduce the effort required to integrate your code with the Marqeta API by automatically generating your client library for the language of your choice. When Marqeta updates the API definition, simply regenerate the library to update your code.
The following is the basic procedure to generate your library:
-
In the Swagger Editor, import the URL of the API definition file, as described in Choosing an API definition file below.
-
Generate the client library by selecting Generate Client and the language you prefer, such as Java or Go.
For information on tools you can use to create an automatic build process, see OpenAPI.Tools.
Choosing an API definition file
Copy section link
You have two options when choosing an API definition file to import:
-
The current
swagger.json
that supports Swagger v2.0:https://sandbox-api.marqeta.com/v3/swagger.json
-
The newly released
CoreAPI.yaml
that supports OpenAPI v3.0:https://raw.githubusercontent.com/marqeta/marqeta-openapi/main/yaml/CoreAPI.yaml
The OpenAPI definition is currently in beta, and subject to change. It offers greater accuracy than the Swagger v2.0 definition file because it is generated directly from source code. It might, however, be missing some endpoints. For details on what to expect, see Marqeta’s blog post announcing this beta release.