Codebase API Documentation

Hooks

Repository hooks are HTTP requests which get made after Codebase has received a repository push.

API URLs

Data Method URL
All hooks on a repository GET /project/repository/hooks
Create new hook on a repository POST /project/repository/hooks

Object Properties

<repository-hook>
    <id type="integer">4</id>
    <url>http://paste.codebasehq.com/pastes/8qpw1f8u3totu8yzn5</url>
    <username>dan</username>
    <password>danspassword</password>
</repository-hook>
  • id is the ID of the hook
  • url is the URL where the hook will be delivered to
  • username is the username that will be used for basic auth (if any) when making the request
  • password is the password that will be used for basic auth (if any) when making the request