Travis CI API Docs

Key pair (generated)

Every repository has an auto-generated RSA key pair. This is used when cloning the repository from GitHub and when encrypting/decrypting secure data for use in builds, e.g. via the Travis CI command line client.

Users may read the public key and fingerprint via GET request, or generate a new key pair via POST, but otherwise this key pair cannot be edited or removed.

Attributes

Standard Representation

Included when the resource is the main response of a request, or is eager loaded.

NameTypeDescription
descriptionStringA text description.
public_keyStringThe public key.
fingerprintStringThe fingerprint.

Minimal Representation

Included when the resource is returned as part of another resource.

NameTypeDescription
descriptionStringA text description.
public_keyStringThe public key.
fingerprintStringThe fingerprint.

Actions

Find

Return the current key pair.

GET
/repo/{provider}/{repository.id}/key_pair/generated
Template VariableTypeDescription
providerUnknownDocumentation missing.
repository.idIntegerValue uniquely identifying the repository.
Query ParameterTypeDescription
include[String]List of attributes to eager load.
GET
/repo/{provider}/{repository.slug}/key_pair/generated
Template VariableTypeDescription
providerUnknownDocumentation missing.
repository.slugStringSame as {repository.owner.name}/{repository.name}.
Query ParameterTypeDescription
include[String]List of attributes to eager load.
GET
/repo/{repository.id}/key_pair/generated
Template VariableTypeDescription
repository.idIntegerValue uniquely identifying the repository.
Query ParameterTypeDescription
include[String]List of attributes to eager load.

Example:GET /repo/891/key_pair/generated

GET
/repo/{repository.slug}/key_pair/generated
Template VariableTypeDescription
repository.slugStringSame as {repository.owner.name}/{repository.name}.
Query ParameterTypeDescription
include[String]List of attributes to eager load.

Example:GET /repo/rails%2Frails/key_pair/generated

Create

Generate a new key pair, replacing the previous one.

POST
/repo/{provider}/{repository.id}/key_pair/generated
Template VariableTypeDescription
providerUnknownDocumentation missing.
repository.idIntegerValue uniquely identifying the repository.
POST
/repo/{provider}/{repository.slug}/key_pair/generated
Template VariableTypeDescription
providerUnknownDocumentation missing.
repository.slugStringSame as {repository.owner.name}/{repository.name}.
POST
/repo/{repository.id}/key_pair/generated
Template VariableTypeDescription
repository.idIntegerValue uniquely identifying the repository.

Example:POST /repo/891/key_pair/generated

POST
/repo/{repository.slug}/key_pair/generated
Template VariableTypeDescription
repository.slugStringSame as {repository.owner.name}/{repository.name}.

Example:POST /repo/rails%2Frails/key_pair/generated