The REST API is now versioned. For more information, see "About API versioning."
REST API endpoints for deploy keys
Use the REST API to create and manage deploy keys.
Use the REST API to create and manage deploy keys.
REST API endpoints for deploy keys - GitHub Docs