Generate your own client library
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.
Choosing an API definition file
You have two options when choosing an API definition file to import:-
The current
swagger.jsonthat supports Swagger v2.0:[https://sandbox-api.marqeta.com/v3/swagger.json](https://sandbox-api.marqeta.com/v3/swagger.json) -
The newly released
CoreAPI.yamlthat supports OpenAPI v3.0:[https://raw.githubusercontent.com/marqeta/marqeta-openapi/main/yaml/CoreAPI.yaml](https://raw.githubusercontent.com/marqeta/marqeta-openapi/main/yaml/CoreAPI.yaml)
Note
To import the tokenization endpoints, you must use the Swagger v2.0 definition file URL.
To import the tokenization endpoints, you must use the Swagger v2.0 definition file URL.